:root {
    --bg: #020713;
    --panel: rgba(6, 22, 46, 0.78);
    --panel-strong: rgba(8, 32, 66, 0.9);
    --line: rgba(43, 148, 255, 0.34);
    --text: #f4f8ff;
    --muted: rgba(187, 202, 228, 0.78);
    --cyan: #3ddbff;
    --blue: #1f8dff;
    --purple: #7a8cff;
    --gold: #ffc75b;
    --green: #2ff093;
    --danger: #ff4e70;
    --pink: #ff5bd6;
    --neutral: #7a8cff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
    --parallax-y: 0;
    --scroll-progress: 0;
    --scroll-top-glow: 1;
    --scroll-bottom-glow: 0;
    --scroll-velocity: 0;
    --pointer-x: 50%;
    --pointer-y: 18%;
    scrollbar-color: rgba(61, 219, 255, 0.62) rgba(5, 16, 36, 0.9);
}

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 42%, rgba(61, 219, 255, 0.2), transparent 28%),
        linear-gradient(135deg, rgba(2, 7, 19, 0.9), rgba(3, 14, 31, 0.86));
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    opacity: 1;
    transition: opacity 0.34s ease, visibility 0.34s ease;
}

.loading-overlay[hidden] {
    display: none;
}

.loading-overlay.is-leaving {
    opacity: 0;
}

.loading-card {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(240px, 1fr);
    gap: 18px;
    align-items: center;
    width: min(520px, calc(100vw - 40px));
    overflow: hidden;
    padding: 22px 24px;
    border: 1px solid rgba(61, 219, 255, 0.42);
    border-radius: 14px;
    background:
        linear-gradient(100deg, rgba(9, 36, 74, 0.94), rgba(4, 15, 35, 0.9)),
        rgba(6, 22, 46, 0.82);
    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 42px rgba(61, 219, 255, 0.14);
}

.loading-radar {
    position: relative;
    width: 62px;
    height: 62px;
    border: 1px solid rgba(61, 219, 255, 0.52);
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(126, 230, 184, 0.72) 0 9px, rgba(61, 219, 255, 0.22) 10px 18px, transparent 19px),
        conic-gradient(from 20deg, rgba(61, 219, 255, 0.72), transparent 42%, rgba(126, 230, 184, 0.38), transparent 72%);
    box-shadow: inset 0 0 18px rgba(61, 219, 255, 0.28), 0 0 24px rgba(61, 219, 255, 0.22);
    animation: loadingRadarSpin 1.7s linear infinite;
}

.loading-radar::after {
    position: absolute;
    inset: 12px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: inherit;
}

.loading-copy {
    display: grid;
    gap: 4px;
}

.loading-copy strong {
    color: #f8fcff;
    font-size: 1.12rem;
    font-weight: 900;
}

.loading-copy span {
    color: rgba(220, 234, 255, 0.76);
    font-size: 0.92rem;
    font-weight: 800;
}

.loading-scan {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -22%;
    width: 20%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), rgba(61, 219, 255, 0.28), transparent);
    transform: skewX(-18deg);
    animation: loadingScanSweep 1.45s ease-in-out infinite;
    pointer-events: none;
}

.scroll-edge {
    display: none;
}

.scene-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background:
        radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(61, 219, 255, 0.16), transparent 18%),
        linear-gradient(125deg, rgba(31, 141, 255, 0.16), transparent 34%),
        linear-gradient(250deg, rgba(122, 140, 255, 0.15), transparent 35%),
        linear-gradient(180deg, #041229 0%, #020713 100%);
    perspective: 900px;
}

.scene-bg::before,
.scene-bg::after {
    position: absolute;
    inset: -20%;
    content: "";
    pointer-events: none;
    opacity: 0.34;
    will-change: transform;
}

.scene-bg::before {
    background:
        conic-gradient(from 130deg at 35% 40%, transparent, rgba(61, 219, 255, 0.14), transparent 32%),
        conic-gradient(from 300deg at 68% 58%, transparent, rgba(47, 240, 147, 0.12), transparent 34%);
    transform: translate3d(calc(var(--scroll-velocity) * -0.08px), calc(var(--parallax-y) * -0.034px), 0) rotate(0.01deg);
    animation: ambientDrift 16s ease-in-out infinite alternate;
}

.scene-bg::after {
    background:
        repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.036) 0 1px, transparent 1px 78px),
        linear-gradient(98deg, transparent 0 18%, rgba(255, 91, 214, 0.12) 34%, transparent 58%);
    transform: translate3d(calc(var(--scroll-velocity) * 0.08px), calc(var(--parallax-y) * -0.052px), 0);
    animation: ambientSlide 18s linear infinite;
}

.scene-aurora,
.scene-ribbons,
.scene-scanlines {
    position: absolute;
    inset: -18%;
    pointer-events: none;
    will-change: transform, opacity;
}

.scene-aurora {
    opacity: 0.36;
    background:
        linear-gradient(118deg, transparent 6%, rgba(61, 219, 255, 0.16) 21%, transparent 37%),
        linear-gradient(64deg, transparent 18%, rgba(47, 240, 147, 0.13) 42%, transparent 62%),
        linear-gradient(146deg, transparent 38%, rgba(122, 140, 255, 0.16) 58%, transparent 76%);
    filter: blur(14px) saturate(1.25);
    transform: translate3d(calc(var(--scroll-velocity) * -0.16px), calc(var(--parallax-y) * -0.075px), 0);
    animation: auroraFlow 17s ease-in-out infinite alternate;
}

.scene-ribbons {
    opacity: 0.28;
    background:
        repeating-linear-gradient(102deg, transparent 0 76px, rgba(61, 219, 255, 0.11) 77px 78px, transparent 79px 152px),
        linear-gradient(90deg, transparent, rgba(255, 199, 91, 0.08), transparent);
    mix-blend-mode: screen;
    transform: translate3d(calc(var(--scroll-velocity) * 0.12px), calc(var(--parallax-y) * -0.04px), 0) skewY(-7deg);
    animation: ribbonDrift 24s linear infinite;
}

.scene-scanlines {
    inset: 0;
    opacity: 0.16;
    background:
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 7px),
        linear-gradient(90deg, transparent, rgba(61, 219, 255, 0.09), transparent);
    mix-blend-mode: overlay;
    transform: translate3d(0, calc(var(--parallax-y) * -0.018px), 0);
    animation: scanlineFlow 8s linear infinite;
}

.scene-grid {
    position: absolute;
    inset: 42% -20% -40%;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 76px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 56px);
    opacity: 0.28;
    transform: translate3d(0, calc(var(--parallax-y) * -0.07px), 0) rotateX(64deg);
    transform-origin: 50% 0;
    will-change: transform;
    animation: gridBreathe 7.8s ease-in-out infinite;
}

.scene-bars {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background:
        linear-gradient(90deg, transparent 0 6%, rgba(61, 219, 255, 0.18) 6.3% 7.2%, transparent 7.5% 18%, rgba(122, 140, 255, 0.18) 18.4% 19.4%, transparent 19.8% 44%, rgba(255, 199, 91, 0.13) 44.4% 45.2%, transparent 45.7% 69%, rgba(47, 240, 147, 0.16) 69.2% 70%, transparent 70.5%),
        linear-gradient(180deg, transparent 0 54%, rgba(2, 7, 19, 0.84) 100%);
    clip-path: polygon(0 34%, 100% 18%, 100% 72%, 0 88%);
    transform: translate3d(calc(var(--scroll-velocity) * 0.1px), calc(var(--parallax-y) * -0.044px), 0);
    will-change: transform;
    animation: barFloat 13s ease-in-out infinite alternate;
}

.glass-shell,
.metric-card,
.radar-button {
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 12% 0%, rgba(61, 219, 255, 0.16), transparent 30%),
        linear-gradient(145deg, rgba(8, 30, 62, 0.96), rgba(4, 14, 32, 0.88)),
        var(--panel);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(122, 203, 255, 0.18);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
}

main.container-fluid {
    display: block;
    max-width: 1880px;
    margin: 0 auto;
    perspective: 1400px;
}

main > section,
.header-shell {
    transform: translate3d(0, calc(var(--parallax-y) * -0.004px), 0);
    transform-style: preserve-3d;
}

#kpiGrid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 1rem !important;
}

#kpiGrid > * {
    width: 100%;
    padding: 0 !important;
}

.chart-section {
    min-width: 0;
    margin: 0 !important;
}

.header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 86px;
    padding: clamp(16px, 2vw, 24px);
    border-radius: 14px;
}

.eyebrow {
    color: var(--cyan);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

h1 {
    font-size: clamp(1.9rem, 3vw, 3.25rem);
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 0 24px rgba(61, 219, 255, 0.2);
}

h2 {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0;
}

.subtitle,
.text-secondary,
.explanation,
.confidence {
    color: var(--muted) !important;
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-right: 132px;
}

.liquid-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid rgba(61, 219, 255, 0.36);
    border-radius: 999px;
    background:
        radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.26), transparent 24%),
        linear-gradient(145deg, rgba(61, 219, 255, 0.24), rgba(47, 240, 147, 0.12));
    color: white;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 14px 30px rgba(0, 0, 0, 0.22), 0 0 28px rgba(61, 219, 255, 0.12);
}

.liquid-btn::before,
.status-pill::before,
.api-update-legend::before,
.news-tab::before,
.newspaper-arrow::before {
    position: absolute;
    inset: 1px 10% auto;
    height: 42%;
    content: "";
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent);
    opacity: 0.7;
    pointer-events: none;
}

.liquid-btn:hover,
.liquid-btn:focus {
    border-color: rgba(80, 215, 255, 0.7);
    color: white;
    transform: translateY(-1px);
}

.status-pill,
.score-badge,
.api-update-legend {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid rgba(96, 168, 255, 0.28);
    border-radius: 999px;
    background:
        radial-gradient(circle at 22% 16%, rgba(255, 255, 255, 0.28), transparent 28%),
        rgba(9, 24, 51, 0.78);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.api-update-legend {
    min-height: 38px;
    border-color: rgba(61, 219, 255, 0.38);
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.3), transparent 28%),
        linear-gradient(145deg, rgba(61, 219, 255, 0.16), rgba(47, 240, 147, 0.08)),
        rgba(7, 22, 48, 0.72);
    color: rgba(226, 244, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 24px rgba(61, 219, 255, 0.12);
}

.metric-card {
    display: flex;
    min-height: 70px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 10px 11px;
    border-radius: 10px;
}

.metric-card.hot {
    border-color: rgba(244, 199, 106, 0.45);
}

.metric-card.positive {
    border-color: rgba(47, 240, 147, 0.48);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3), 0 0 24px rgba(47, 240, 147, 0.12), inset 0 1px 0 rgba(122, 203, 255, 0.18);
}

.metric-card.negative {
    border-color: rgba(255, 78, 112, 0.52);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3), 0 0 24px rgba(255, 78, 112, 0.13), inset 0 1px 0 rgba(122, 203, 255, 0.18);
}

.metric-card span {
    color: var(--muted);
    font-size: 0.54rem;
    font-weight: 800;
    text-transform: uppercase;
}

.metric-card strong {
    color: var(--text);
    font-size: clamp(1.1rem, 1.08vw, 1.4rem);
    font-weight: 800;
    line-height: 1;
}

.metric-positive {
    color: var(--green) !important;
    text-shadow: 0 0 18px rgba(47, 240, 147, 0.38);
}

.metric-negative {
    color: var(--danger) !important;
    text-shadow: 0 0 18px rgba(255, 78, 112, 0.4);
}

.metric-neutral {
    color: var(--text);
}

.metric-card small {
    display: none;
}

.glass-shell {
    padding: 20px;
    border-radius: 14px;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.range-select {
    width: 148px;
    border-color: rgba(255, 255, 255, 0.18);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.range-select option {
    background: #10172c;
}

.chart-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.forecast-excel-button {
    align-items: center;
    background:
        linear-gradient(145deg, rgba(20, 143, 82, 0.72), rgba(10, 70, 48, 0.56)),
        rgba(7, 22, 48, 0.7);
    border: 1px solid rgba(111, 242, 198, 0.52);
    border-radius: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 12px 28px rgba(18, 185, 116, 0.18);
    color: #d9ffe9;
    display: inline-flex;
    font-size: 1rem;
    height: 38px;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    width: 42px;
}

.forecast-excel-button:hover,
.forecast-excel-button:focus {
    border-color: rgba(111, 242, 198, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 16px 34px rgba(18, 185, 116, 0.26),
        0 0 18px rgba(111, 242, 198, 0.22);
    color: #ffffff;
    transform: translateY(-2px);
}

.chart-box {
    width: 100%;
    height: clamp(430px, 53vh, 545px);
    min-height: 430px;
}

.chart-box canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.chart-shell {
    width: min(100%, 1760px);
    max-width: none;
    min-height: 100%;
    margin: 0 auto;
}

main.container-fluid {
    display: block;
}

.chart-command-grid {
    display: grid;
    grid-template-columns: clamp(118px, 8vw, 142px) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.chart-area {
    min-width: 0;
    width: 100%;
}

#kpiGrid.kpi-rail {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 5px;
    width: clamp(118px, 8vw, 142px);
    min-width: 0;
    margin: 0 !important;
    align-self: stretch;
}

#kpiGrid.kpi-rail > * {
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
}

#kpiGrid.kpi-rail .metric-card {
    min-height: 53px;
    gap: 2px;
    padding: 7px 9px;
    border-radius: 9px;
}

#kpiGrid.kpi-rail .metric-card span {
    font-size: 0.47rem;
    line-height: 1.08;
}

#kpiGrid.kpi-rail .metric-card strong {
    font-size: clamp(0.92rem, 0.82vw, 1.12rem);
    line-height: 1.02;
}

.exposure-form {
    display: grid;
    gap: 11px;
}

.restricted-exposure {
    position: relative;
    overflow: hidden;
    cursor: not-allowed;
}

.restricted-exposure::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background:
        linear-gradient(115deg, transparent 0 42%, rgba(255, 199, 91, 0.08) 48%, transparent 56%),
        repeating-linear-gradient(135deg, transparent 0 24px, rgba(255, 255, 255, 0.025) 25px 26px, transparent 27px 48px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.restricted-exposure:hover::before {
    opacity: 1;
}

.restricted-exposure .form-control,
.restricted-exposure .liquid-btn {
    cursor: not-allowed;
}

.restricted-toast {
    position: fixed;
    z-index: 210;
    width: 330px;
    max-width: calc(100vw - 36px);
    padding: 13px 16px;
    border: 1px solid rgba(255, 210, 70, 0.82);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 199, 91, 0.18), rgba(10, 27, 56, 0.94)),
        rgba(5, 14, 32, 0.96);
    box-shadow:
        0 18px 46px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 0 24px rgba(255, 199, 91, 0.18);
    color: #fff2a8;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 12px, 0) scale(0.96);
    transition: opacity 170ms ease, transform 260ms cubic-bezier(0.2, 1.5, 0.35, 1);
}

.restricted-toast.show {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.exposure-form-wide {
    grid-template-columns: repeat(6, minmax(150px, 1fr)) auto;
    align-items: end;
}

.exposure-form label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.form-control {
    border-color: rgba(255, 255, 255, 0.16);
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
}

.form-control:focus {
    border-color: var(--cyan);
    background-color: rgba(255, 255, 255, 0.11);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(80, 215, 255, 0.14);
}

.net-exposure {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
}

.net-exposure span {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 800;
}

.net-exposure strong,
.recommendation {
    font-weight: 800;
}

.recommendation {
    margin-bottom: 8px;
    color: var(--gold);
}

.risk-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.weights-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
    color: var(--muted);
}

.weights-grid strong {
    color: var(--text);
}

.model-section {
    position: relative;
    z-index: 8;
    margin-top: 0 !important;
    margin-bottom: 1rem;
}

.model-summary-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.model-summary-wide {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(520px, 1.45fr) minmax(260px, 0.55fr);
    grid-template-areas:
        "title metrics terminal"
        "copy metrics terminal";
    gap: 14px 18px;
    align-items: stretch;
}

.model-summary-wide .panel-title {
    grid-area: title;
    align-items: flex-start;
    margin-bottom: 0;
}

.model-summary-wide .model-disclaimer {
    grid-area: copy;
}

.model-summary-wide .model-metrics {
    grid-area: metrics;
}

.model-summary-wide .net-exposure {
    grid-area: terminal;
    margin-top: 0 !important;
}

.model-disclaimer {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

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

.model-summary-wide .model-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.model-metrics > div,
.factor-item {
    border: 1px solid rgba(43, 148, 255, 0.28);
    background:
        radial-gradient(circle at 18% 16%, rgba(61, 219, 255, 0.13), transparent 28%),
        linear-gradient(135deg, rgba(9, 29, 58, 0.82), rgba(4, 16, 37, 0.92));
    box-shadow: inset 0 1px 0 rgba(124, 201, 255, 0.14), 0 16px 34px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.model-metrics > div {
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: end;
    gap: 6px;
    min-height: 116px;
    padding: 18px 16px 16px 64px;
    border-radius: 12px;
}

.model-summary-wide .model-metrics > div {
    min-height: 108px;
    padding: 16px 14px 15px 62px;
}

.model-metrics > div::before {
    display: none;
}

.model-metrics > div::after {
    position: absolute;
    right: 18px;
    bottom: 13px;
    left: 18px;
    height: 4px;
    content: "";
    border-radius: 999px;
    background:
        linear-gradient(90deg, var(--cyan) 0 62%, rgba(61, 219, 255, 0.12) 62% 100%);
}

.model-help-icon {
    position: absolute;
    top: 18px;
    left: 16px;
    z-index: 3;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background:
        radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.72), transparent 20%),
        linear-gradient(145deg, rgba(61, 219, 255, 0.34), rgba(122, 140, 255, 0.28)),
        rgba(9, 26, 58, 0.72);
    color: white;
    box-shadow: 0 0 24px rgba(61, 219, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    animation: modelIconFloat 3.4s ease-in-out infinite;
}

.model-help-icon:hover,
.model-help-icon:focus {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 0 30px rgba(61, 219, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.model-help-icon.icon-auc {
    animation-delay: -0.7s;
}

.model-help-icon.icon-range {
    animation-delay: -1.35s;
}

.model-help-icon.icon-mae {
    animation-delay: -2s;
}

.model-help-copy {
    display: none;
    margin: 2px 0 0;
    color: rgba(205, 219, 245, 0.86);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.3;
}

.model-metrics > div.help-open {
    overflow: visible;
    z-index: 10;
    border-color: rgba(61, 219, 255, 0.46);
    box-shadow: inset 0 1px 0 rgba(124, 201, 255, 0.18), 0 0 34px rgba(61, 219, 255, 0.18), 0 18px 42px rgba(0, 0, 0, 0.34);
}

.model-metrics > div.help-open .model-help-copy {
    display: block;
}

.model-metrics span,
.factor-header span,
.factor-numbers span {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.model-metrics strong {
    color: var(--text);
    font-size: clamp(1.9rem, 2.4vw, 2.55rem);
    font-weight: 800;
    line-height: 1;
}

.factor-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: min(76vh, 780px);
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-color: rgba(61, 219, 255, 0.5) rgba(8, 28, 58, 0.5);
    scrollbar-width: thin;
}

.factor-list::-webkit-scrollbar {
    width: 8px;
}

.factor-list::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(8, 28, 58, 0.5);
}

.factor-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(61, 219, 255, 0.72), rgba(122, 140, 255, 0.45));
}

#modelSamples {
    max-width: min(620px, 100%);
    white-space: normal;
}

.factor-panel-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.factor-click-hint {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: min(520px, 100%);
    padding: 8px 12px;
    border: 1px solid rgba(255, 210, 70, 0.78);
    border-radius: 999px;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.36), transparent 24%),
        linear-gradient(135deg, rgba(255, 199, 91, 0.24), rgba(255, 228, 68, 0.12));
    box-shadow: 0 0 22px rgba(255, 199, 91, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    color: #ffe74f;
    font-size: 0.78rem;
    font-weight: 950;
    line-height: 1.15;
    text-shadow: 0 0 14px rgba(255, 199, 91, 0.28);
}

.factor-click-hint i {
    color: #fff1a6;
    font-size: 1rem;
    filter: drop-shadow(0 0 8px rgba(255, 231, 79, 0.52));
    animation: hintArrowBounce 950ms ease-in-out infinite;
}

.factor-empty {
    grid-column: 1 / -1;
    color: var(--muted);
    font-weight: 700;
}

.factor-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1.18fr) minmax(380px, 0.82fr);
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 6px 10px;
    border: 0;
    border-radius: 10px;
    background:
        radial-gradient(circle at 4% 50%, rgba(61, 219, 255, 0.13), transparent 24%),
        linear-gradient(90deg, rgba(10, 39, 78, 0.82), rgba(4, 15, 35, 0.76));
    box-shadow: inset 0 1px 0 rgba(124, 201, 255, 0.1), 0 10px 24px rgba(0, 0, 0, 0.16);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.factor-item:hover {
    z-index: 3;
    transform: translateY(-3px) scale(1.006);
    background:
        radial-gradient(circle at 4% 50%, rgba(61, 219, 255, 0.2), transparent 28%),
        linear-gradient(90deg, rgba(12, 48, 95, 0.9), rgba(4, 17, 39, 0.86));
    box-shadow: inset 0 1px 0 rgba(124, 201, 255, 0.16), 0 18px 34px rgba(0, 0, 0, 0.26), 0 0 24px rgba(61, 219, 255, 0.08);
}

.factor-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #b8c3ff;
    background:
        radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.35), transparent 22%),
        rgba(122, 140, 255, 0.15);
    box-shadow: 0 0 22px rgba(122, 140, 255, 0.2);
    animation: factorIconPulse 2.9s ease-in-out infinite;
}

.factor-item.up .factor-icon {
    color: var(--danger);
    background:
        radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.34), transparent 22%),
        rgba(255, 78, 112, 0.14);
    box-shadow: 0 0 22px rgba(255, 78, 112, 0.22);
}

.factor-item.down .factor-icon {
    color: var(--green);
    background:
        radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.34), transparent 22%),
        rgba(47, 240, 147, 0.13);
    box-shadow: 0 0 22px rgba(47, 240, 147, 0.2);
}

.factor-main {
    display: grid;
    grid-template-columns: minmax(190px, 0.6fr) minmax(330px, 1fr);
    gap: 4px 12px;
    align-items: center;
    min-width: 0;
}

.factor-header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
}

.factor-header > div {
    display: grid;
    gap: 1px;
}

.factor-header strong {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 850;
    line-height: 1.15;
}

.factor-pressure {
    flex: 0 0 auto;
    width: max-content;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(122, 140, 255, 0.14);
    color: #cfd7ff;
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.factor-item.up .factor-pressure {
    color: #ffb8c4;
    background: rgba(255, 78, 112, 0.18);
}

.factor-item.down .factor-pressure {
    color: #8effc4;
    background: rgba(47, 240, 147, 0.16);
}

.factor-numbers {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.factor-numbers > div {
    display: grid;
    gap: 2px;
    padding-right: 12px;
}

.factor-numbers strong {
    color: var(--text);
    font-size: 0.8rem;
    line-height: 1.12;
}

.factor-bar {
    position: relative;
    grid-column: 1 / -1;
    overflow: hidden;
    height: 4px;
    border-radius: 999px;
    background: rgba(154, 187, 230, 0.12);
}

.factor-bar span {
    position: relative;
    overflow: hidden;
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--neutral), #54d7ff);
    box-shadow: 0 0 18px rgba(122, 140, 255, 0.34);
}

.factor-bar span::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.82), transparent);
    transform: translateX(-120%);
    animation: barShimmer 2.6s ease-in-out infinite;
}

.factor-item.up .factor-bar span {
    background: linear-gradient(90deg, var(--danger), #ff8fa0);
    box-shadow: 0 0 18px rgba(255, 78, 112, 0.34);
}

.factor-item.down .factor-bar span {
    background: linear-gradient(90deg, var(--green), #73ffbf);
    box-shadow: 0 0 18px rgba(47, 240, 147, 0.34);
}

.factor-insight {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 9px;
    align-content: center;
    align-items: center;
}

.factor-item p,
.factor-executive p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.25;
}

.factor-item p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.factor-executive {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) minmax(170px, 220px);
    gap: 18px;
    align-items: center;
    min-height: 108px;
    padding: 16px 18px;
    border: 1px solid rgba(43, 148, 255, 0.46);
    border-radius: 12px;
    background:
        radial-gradient(circle at 10% 18%, rgba(61, 219, 255, 0.22), transparent 28%),
        linear-gradient(135deg, rgba(8, 33, 70, 0.96), rgba(3, 15, 33, 0.94));
    box-shadow: inset 0 1px 0 rgba(124, 201, 255, 0.22), 0 0 28px rgba(31, 141, 255, 0.12);
}

.executive-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(61, 219, 255, 0.62);
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(61, 219, 255, 0.12);
    box-shadow: 0 0 28px rgba(61, 219, 255, 0.28), inset 0 0 18px rgba(61, 219, 255, 0.12);
    font-size: 1.35rem;
}

.factor-executive.down .executive-icon,
.factor-executive.down .executive-badge strong {
    color: var(--green);
}

.factor-executive.up .executive-icon,
.factor-executive.up .executive-badge strong {
    color: var(--danger);
}

.executive-copy {
    display: grid;
    gap: 6px;
}

.executive-copy strong {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 900;
}

.executive-badge {
    display: grid;
    gap: 4px;
    justify-items: start;
}

.executive-badge span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.executive-badge strong {
    color: var(--cyan);
    font-size: 1.1rem;
    font-weight: 900;
}

body.modal-open main,
body.modal-open .radar-button {
    filter: blur(8px) saturate(0.82) brightness(0.66);
    transition: filter 180ms ease;
}

.factor-modal {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.factor-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.factor-modal-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(61, 219, 255, 0.2), transparent 22%),
        rgba(1, 6, 17, 0.66);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
}

.factor-modal-card {
    position: relative;
    overflow: hidden;
    display: grid;
    width: min(880px, 100%);
    max-height: min(760px, calc(100vh - 42px));
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(61, 219, 255, 0.34);
    border-radius: 14px;
    background:
        radial-gradient(circle at 12% 0%, rgba(61, 219, 255, 0.2), transparent 28%),
        linear-gradient(145deg, rgba(9, 30, 63, 0.88), rgba(3, 12, 29, 0.92));
    color: var(--text);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 42px rgba(61, 219, 255, 0.12);
    backdrop-filter: blur(26px) saturate(160%);
    -webkit-backdrop-filter: blur(26px) saturate(160%);
    transform: translateY(14px) scale(0.98);
    transition: transform 180ms ease;
}

.factor-modal.open .factor-modal-card {
    transform: translateY(0) scale(1);
}

.factor-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(239, 246, 255, 0.9);
}

.factor-modal-header {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding-right: 42px;
}

.factor-modal-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 999px;
    background:
        radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.42), transparent 24%),
        rgba(122, 140, 255, 0.18);
    color: #c9d3ff;
    box-shadow: 0 0 26px rgba(122, 140, 255, 0.24);
}

.factor-modal.up .factor-modal-icon,
.factor-modal.up .factor-modal-pressure {
    color: #ffb8c4;
}

.factor-modal.down .factor-modal-icon,
.factor-modal.down .factor-modal-pressure {
    color: #8effc4;
}

.factor-modal-source {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.factor-modal h3 {
    margin: 2px 0 0;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.08;
}

.factor-modal-pressure {
    align-self: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(122, 140, 255, 0.16);
    color: #cfd7ff;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.factor-modal.up .factor-modal-pressure {
    background: rgba(255, 78, 112, 0.18);
}

.factor-modal.down .factor-modal-pressure {
    background: rgba(47, 240, 147, 0.16);
}

.factor-modal-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.factor-modal-stats > div {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.factor-modal-stats span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.factor-modal-stats strong {
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
}

.factor-modal-chart {
    height: clamp(240px, 36vh, 360px);
    min-height: 0;
}

.factor-modal-chart canvas {
    width: 100% !important;
    height: 100% !important;
}

.factor-modal-copy {
    margin: 0;
    color: rgba(205, 219, 245, 0.86);
    font-size: 0.88rem;
    line-height: 1.5;
}

.model-status-button {
    border: 1px solid rgba(96, 168, 255, 0.28);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.model-status-button:hover,
.model-status-button:focus {
    border-color: rgba(61, 219, 255, 0.56);
    box-shadow: 0 0 28px rgba(61, 219, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.methodology-modal-card {
    width: min(960px, 100%);
    gap: 16px;
}

.methodology-modal-icon {
    background:
        radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.48), transparent 24%),
        linear-gradient(145deg, rgba(61, 219, 255, 0.26), rgba(126, 230, 184, 0.18));
    color: #8effc4;
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.methodology-grid > div {
    min-height: 118px;
    padding: 12px;
    border-radius: 10px;
    background:
        radial-gradient(circle at 16% 12%, rgba(61, 219, 255, 0.14), transparent 32%),
        rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.methodology-grid span,
.methodology-body h4 {
    color: var(--cyan);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.methodology-grid p {
    margin: 6px 0 0;
    color: rgba(229, 239, 255, 0.88);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.42;
}

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

.methodology-body section {
    padding: 13px;
    border-radius: 10px;
    background: rgba(3, 12, 29, 0.46);
}

.methodology-body h4 {
    margin: 0 0 8px;
}

.methodology-body ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.methodology-body li {
    position: relative;
    padding-left: 15px;
    color: rgba(205, 219, 245, 0.88);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.45;
}

.methodology-body li::before {
    position: absolute;
    top: 0.6em;
    left: 0;
    width: 6px;
    height: 6px;
    content: "";
    border-radius: 999px;
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(61, 219, 255, 0.42);
}

.methodology-summary {
    padding-top: 2px;
}

.newspaper-shell {
    position: relative;
    z-index: 12;
    overflow: visible;
    padding: 16px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.065)),
        rgba(255, 255, 255, 0.09);
}

.newspaper-title {
    align-items: flex-start;
    margin-bottom: 12px;
}

.newspaper-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.news-tabs {
    position: relative;
    display: inline-flex;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background:
        radial-gradient(circle at 24% 16%, rgba(255, 255, 255, 0.28), transparent 26%),
        rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 24px rgba(0, 0, 0, 0.2);
}

.news-tab {
    position: relative;
    overflow: hidden;
    min-height: 32px;
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
}

.news-tab.active {
    background: linear-gradient(145deg, rgba(80, 215, 255, 0.28), rgba(244, 199, 106, 0.16));
    color: var(--text);
}

.newspaper-section-pill,
.newspaper-page-pill {
    min-height: 34px;
    font-size: 0.76rem;
}

.newspaper-spread {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(1360px, calc(100% - 78px));
    min-height: clamp(540px, 48vw, 680px);
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    overflow: visible;
    background:
        linear-gradient(90deg, transparent 0 calc(50% - 2px), rgba(0, 0, 0, 0.32) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)),
        linear-gradient(145deg, #e7e8e6, #cfd4d7);
    color: #18202d;
    box-shadow:
        0 22px 30px rgba(0, 0, 0, 0.28),
        0 48px 90px rgba(0, 0, 0, 0.24),
        inset 0 0 60px rgba(0, 0, 0, 0.12);
    perspective: 1800px;
    transform-style: preserve-3d;
    isolation: isolate;
}

.newspaper-spread::before {
    position: absolute;
    inset: 0 calc(50% - 11px);
    z-index: 3;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.3), rgba(255, 255, 255, 0.2) 46%, rgba(0, 0, 0, 0.42) 55%, rgba(255, 255, 255, 0.18)),
        radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.35), transparent 70%);
    filter: blur(1px);
    opacity: 0.72;
}

.newspaper-spread::after {
    position: absolute;
    right: 2%;
    bottom: -24px;
    left: 2%;
    z-index: -1;
    height: 34px;
    pointer-events: none;
    content: "";
    background: radial-gradient(ellipse at 50% 0, rgba(0, 0, 0, 0.42), transparent 68%);
    filter: blur(8px);
}

.newspaper-page {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: clamp(13px, 1.25vw, 20px);
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.66), transparent 28%),
        linear-gradient(135deg, rgba(232, 234, 231, 0.96), rgba(204, 210, 214, 0.96)),
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 7px),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.018) 0 1px, transparent 1px 11px);
    backface-visibility: hidden;
    transform-style: preserve-3d;
    overflow: hidden;
    min-width: 0;
    height: clamp(540px, 48vw, 680px);
    max-height: none;
    border-radius: 0;
    cursor: pointer;
}

.newspaper-page::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 18% 82%, rgba(0, 0, 0, 0.08)),
        radial-gradient(circle at 50% 30%, transparent 0 55%, rgba(0, 0, 0, 0.05) 100%);
    mix-blend-mode: multiply;
}

.newspaper-page::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    border: 0 solid transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.58);
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px calc(100% - 1px), rgba(255, 255, 255, 0.5) calc(100% - 1px)),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.04) 0 1px, transparent 1px 5px);
    opacity: 0.42;
}

.newspaper-page > * {
    position: relative;
    z-index: 1;
}

.left-page {
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    transform-origin: right center;
    box-shadow:
        inset -36px 0 48px rgba(0, 0, 0, 0.18),
        inset 0 -16px 28px rgba(0, 0, 0, 0.08);
}

.right-page {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    transform-origin: left center;
    box-shadow:
        inset 36px 0 48px rgba(0, 0, 0, 0.18),
        inset 0 -16px 28px rgba(0, 0, 0, 0.08);
}

.newspaper-spread.turn-next .right-page {
    z-index: 5;
    animation: none;
}

.newspaper-spread.turn-prev .left-page {
    z-index: 5;
    animation: none;
}

.newspaper-spread.turn-next .right-page::before,
.newspaper-spread.turn-prev .left-page::before {
    animation: foldShadow 1520ms ease both;
}

.newspaper-spread.turn-next .right-page .paper-curl {
    animation: none;
}

.newspaper-spread.turn-prev .left-page .paper-curl {
    animation: none;
}

.newspaper-spread.turn-next::before,
.newspaper-spread.turn-prev::before {
    animation: spinePulse 1520ms ease both;
}

.turning-sheet {
    position: absolute;
    top: 0;
    z-index: 10;
    width: 50%;
    height: 100%;
    pointer-events: none;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.28));
    will-change: transform, clip-path, filter;
}

.turning-next {
    left: 50%;
    transform-origin: left center;
    animation: sheetTurnNext 1520ms cubic-bezier(0.18, 0.84, 0.16, 1) both;
}

.turning-prev {
    left: 0;
    transform-origin: right center;
    animation: sheetTurnPrev 1520ms cubic-bezier(0.18, 0.84, 0.16, 1) both;
}

.turn-sheet-face {
    position: absolute;
    inset: 0;
    height: 100%;
    max-height: none;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 0;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    will-change: opacity, transform;
}

.turn-sheet-front {
    transform: rotateY(0deg) translateZ(1.2px);
    animation: frontFaceVisibility 1520ms linear both;
}

.turn-sheet-back {
    background:
        radial-gradient(circle at 22% 14%, rgba(255, 255, 255, 0.72), transparent 32%),
        linear-gradient(135deg, rgba(244, 245, 241, 0.98), rgba(209, 214, 216, 0.98)),
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.028) 0 1px, transparent 1px 7px),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.018) 0 1px, transparent 1px 11px);
    box-shadow:
        inset 28px 0 46px rgba(0, 0, 0, 0.12),
        inset -18px 0 38px rgba(255, 255, 255, 0.18);
    opacity: 0;
    transform: rotateY(180deg) translateZ(1.2px);
    animation: backFaceVisibility 1520ms linear both;
}

.turn-sheet-lines {
    position: absolute;
    inset: 11% 10% 12%;
    opacity: 0.18;
    background:
        repeating-linear-gradient(0deg, transparent 0 17px, rgba(24, 32, 45, 0.42) 18px 20px),
        linear-gradient(90deg, transparent 0 calc(50% - 1px), rgba(24, 32, 45, 0.34) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
}

.turning-sheet::before {
    position: absolute;
    inset: 0;
    z-index: 7;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(92deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.08) 28%, rgba(0, 0, 0, 0.22) 49%, rgba(255, 255, 255, 0.28) 56%, rgba(0, 0, 0, 0.18)),
        radial-gradient(ellipse at 78% 78%, rgba(0, 0, 0, 0.28), transparent 42%);
    mix-blend-mode: multiply;
    opacity: 0;
}

.turning-next::before {
    animation: sheetFoldNext 1520ms ease both;
}

.turning-prev::before {
    animation: sheetFoldPrev 1520ms ease both;
}

.turn-sheet-cast-shadow {
    position: absolute;
    inset: 9% 2% 6%;
    z-index: -1;
    pointer-events: none;
    border-radius: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.48), transparent 70%);
    filter: blur(16px);
    opacity: 0;
}

.turning-next .turn-sheet-cast-shadow {
    animation: sheetCastShadowNext 1520ms ease both;
}

.turning-prev .turn-sheet-cast-shadow {
    animation: sheetCastShadowPrev 1520ms ease both;
}

.turn-sheet-curl {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 12;
    width: clamp(126px, 14vw, 210px);
    height: clamp(126px, 14vw, 210px);
    pointer-events: none;
    background: transparent;
    clip-path: none;
    filter: drop-shadow(-34px -28px 30px rgba(0, 0, 0, 0.28));
    opacity: 0;
    transform-origin: 100% 100%;
    transform-style: preserve-3d;
    will-change: transform, opacity, filter;
}

.turn-sheet-curl::before,
.turn-sheet-curl::after,
.paper-curl::before,
.paper-curl::after {
    position: absolute;
    content: "";
    pointer-events: none;
    transform-origin: 100% 100%;
}

.turn-sheet-curl::before,
.paper-curl::before {
    inset: 0;
    border-radius: 100% 0 0 0 / 88% 0 0 0;
    background:
        radial-gradient(ellipse at 38% 72%, rgba(255, 255, 255, 0.94) 0 20%, rgba(221, 226, 228, 0.96) 42%, rgba(151, 158, 163, 0.72) 43%, transparent 48%),
        radial-gradient(ellipse at 84% 15%, rgba(255, 255, 255, 0.96), rgba(231, 234, 236, 0.78) 38%, transparent 66%),
        linear-gradient(138deg, transparent 0 42%, rgba(255, 255, 255, 0.98) 43%, rgba(226, 231, 232, 0.98) 61%, rgba(177, 185, 190, 0.94) 74%, rgba(247, 248, 245, 0.99) 100%);
    clip-path: polygon(100% 0, 96% 6%, 92% 13%, 88% 22%, 84% 34%, 83% 45%, 86% 58%, 91% 73%, 96% 88%, 100% 100%, 0 100%, 18% 91%, 32% 80%, 45% 68%, 58% 54%, 71% 39%, 84% 22%);
    box-shadow:
        inset -14px -10px 20px rgba(255, 255, 255, 0.72),
        inset 17px 18px 26px rgba(95, 104, 112, 0.32),
        -18px -16px 28px rgba(0, 0, 0, 0.18);
}

.turn-sheet-curl::after,
.paper-curl::after {
    right: 9%;
    bottom: 8%;
    width: 75%;
    height: 75%;
    border-radius: 100% 0 0 0 / 90% 0 0 0;
    background:
        linear-gradient(136deg, rgba(255, 255, 255, 0.04), rgba(42, 48, 54, 0.58) 38%, rgba(255, 255, 255, 0.7) 52%, rgba(68, 75, 82, 0.36) 70%, transparent),
        radial-gradient(ellipse at 68% 70%, rgba(0, 0, 0, 0.36), transparent 58%);
    clip-path: polygon(100% 8%, 94% 17%, 88% 29%, 83% 45%, 83% 60%, 90% 80%, 100% 100%, 8% 100%, 25% 88%, 40% 73%, 54% 58%, 67% 42%, 82% 24%);
    filter: blur(0.4px);
    opacity: 0.88;
    transform: translate3d(-9%, -9%, 4px) rotateZ(-1.5deg);
}

.turning-next .turn-sheet-curl {
    animation: sheetCurlNext 1520ms cubic-bezier(0.18, 0.84, 0.16, 1) both;
}

.turning-prev .turn-sheet-curl {
    right: auto;
    left: 0;
    clip-path: none;
    filter: drop-shadow(34px -28px 30px rgba(0, 0, 0, 0.28));
    transform-origin: 0 100%;
    animation: sheetCurlPrev 1520ms cubic-bezier(0.18, 0.84, 0.16, 1) both;
}

.turning-prev .turn-sheet-curl::before,
.turning-prev .turn-sheet-curl::after {
    transform-origin: 0 100%;
    transform: scaleX(-1);
}

.turning-prev .turn-sheet-curl::after {
    transform: scaleX(-1) translate3d(-9%, -9%, 4px) rotateZ(1.5deg);
}

.turning-sheet .paper-curl {
    display: none;
}

.paper-masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(24, 32, 45, 0.22);
    color: #2a3445;
    font-family: "Arial Narrow", "Franklin Gothic Medium", Arial, sans-serif;
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.paper-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 240ms ease;
}

.paper-copy {
    column-count: 2;
    column-gap: clamp(18px, 2vw, 28px);
    column-rule: 1px solid rgba(24, 32, 45, 0.14);
}

.paper-body:hover,
.paper-body.is-scrolling {
    scrollbar-color: rgba(190, 22, 35, 0.32) transparent;
}

.paper-body::-webkit-scrollbar {
    width: 6px;
}

.paper-body::-webkit-scrollbar-track {
    background: transparent;
}

.paper-body::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: transparent;
    background-clip: padding-box;
}

.paper-body:hover::-webkit-scrollbar-thumb,
.paper-body.is-scrolling::-webkit-scrollbar-thumb {
    background: rgba(190, 22, 35, 0.32);
}

.paper-photo-frame {
    position: relative;
    display: block;
    width: min(68%, 440px);
    margin: 0 auto 9px;
    break-inside: avoid;
    column-span: all;
}

.paper-photo-frame::after {
    position: absolute;
    right: 9%;
    bottom: -11px;
    left: 9%;
    height: 14px;
    content: "";
    background: radial-gradient(ellipse at 50% 0, rgba(24, 32, 45, 0.32), transparent 70%);
    filter: blur(7px);
}

.paper-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7.7;
    object-fit: cover;
    border-radius: 0;
    filter: saturate(0.92) contrast(1.02);
    background: #cad2dc;
    box-shadow: 0 8px 18px rgba(24, 32, 45, 0.15);
}

.paper-photo-frame figcaption {
    margin-top: 5px;
    color: rgba(45, 55, 72, 0.78);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
}

.news-topic {
    width: fit-content;
    padding: 4px 8px;
    border: 1px solid rgba(18, 92, 130, 0.22);
    border-radius: 999px;
    background: rgba(80, 215, 255, 0.13);
    color: #0a607b;
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.paper-title {
    margin: 0;
    color: #111827;
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: clamp(0.92rem, 1.05vw, 1.26rem);
    font-weight: 900;
    line-height: 1.02;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.paper-summary,
.paper-analysis {
    margin: 0;
    color: #2d3748;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.72rem;
    line-height: 1.37;
    text-align: justify;
    text-wrap: pretty;
    white-space: pre-line;
}

.paper-summary {
    display: inline;
}

.paper-analysis {
    display: inline;
}

.newspaper-page h4 {
    margin: 7px 0 3px;
    color: #0b607b;
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
    break-after: avoid;
}

.paper-link {
    margin-top: auto;
    color: #075985;
    font-size: 0.86rem;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.paper-link:hover {
    color: #0f766e;
}

.paper-curl {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 4;
    width: clamp(84px, 9vw, 128px);
    height: clamp(84px, 9vw, 128px);
    pointer-events: none;
    background: transparent;
    clip-path: none;
    filter: drop-shadow(-16px -14px 18px rgba(0, 0, 0, 0.2));
    opacity: 0.82;
    transform: translate(58%, 58%) rotate(0deg);
    transform-origin: 100% 100%;
    transition: transform 240ms cubic-bezier(0.22, 0.8, 0.22, 1), opacity 220ms ease, filter 220ms ease;
}

.left-page .paper-curl {
    right: auto;
    left: 0;
    clip-path: none;
    filter: drop-shadow(16px -14px 18px rgba(0, 0, 0, 0.2));
    transform: translate(-58%, 58%) rotate(0deg);
    transform-origin: 0 100%;
}

.left-page .paper-curl::before,
.left-page .paper-curl::after {
    transform-origin: 0 100%;
    transform: scaleX(-1);
}

.left-page .paper-curl::after {
    transform: scaleX(-1) translate3d(-9%, -9%, 4px) rotateZ(1.5deg);
}

.right-page:hover .paper-curl {
    opacity: 1;
    filter: drop-shadow(-24px -20px 24px rgba(0, 0, 0, 0.24));
    transform: translate(14%, 14%) rotate(-2deg) scale(1.03);
}

.left-page:hover .paper-curl {
    opacity: 1;
    filter: drop-shadow(24px -20px 24px rgba(0, 0, 0, 0.24));
    transform: translate(-14%, 14%) rotate(2deg) scale(1.03);
}

.blank-page {
    align-items: center;
    justify-content: center;
}

.blank-paper {
    color: rgba(24, 32, 45, 0.42);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
    font-weight: 900;
}

.newspaper-arrow {
    position: absolute;
    top: calc(50% + 28px);
    z-index: 15;
    display: grid;
    width: 42px;
    height: 86px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background:
        radial-gradient(circle at 28% 14%, rgba(255, 255, 255, 0.42), transparent 24%),
        linear-gradient(150deg, rgba(80, 215, 255, 0.22), rgba(154, 107, 255, 0.22)),
        rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 18px 34px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    transition: transform 180ms ease, opacity 180ms ease, border-color 180ms ease;
}

.newspaper-arrow:hover,
.newspaper-arrow:focus {
    border-color: rgba(80, 215, 255, 0.72);
    transform: translateY(-50%) scale(1.04);
}

.newspaper-arrow:disabled {
    opacity: 0.25;
    pointer-events: none;
}

.newspaper-arrow-prev {
    left: 2px;
    transform: translateY(-50%);
}

.newspaper-arrow-next {
    right: 2px;
    transform: translateY(-50%);
}

.news-loading {
    grid-column: 1 / -1;
    padding: 28px;
    color: #2d3748;
    font-weight: 900;
}

.radar-button {
    position: fixed;
    top: 22px;
    right: 22px;
    bottom: auto;
    z-index: 90;
    display: grid;
    width: 112px;
    height: 112px;
    place-items: center;
    border-radius: 999px;
    color: var(--text);
    overflow: visible;
    border-color: rgba(61, 219, 255, 0.46);
    background:
        radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.22), transparent 23%),
        radial-gradient(circle at 50% 50%, rgba(61, 219, 255, 0.2), transparent 55%),
        linear-gradient(145deg, rgba(12, 54, 95, 0.48), rgba(4, 12, 30, 0.22));
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.35),
        0 0 34px rgba(61, 219, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 0 28px rgba(61, 219, 255, 0.1);
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    animation: radarGlass 4.8s ease-in-out infinite;
}

.radar-button:hover,
.radar-button:focus {
    transform: translateY(-2px) scale(1.03);
    border-color: rgba(61, 219, 255, 0.72);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.38),
        0 0 44px rgba(61, 219, 255, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 0 34px rgba(47, 240, 147, 0.12);
}

.radar-core {
    z-index: 3;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 999px;
    background:
        radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.65), transparent 22%),
        linear-gradient(145deg, var(--cyan), var(--purple));
    color: white;
    box-shadow: 0 0 38px rgba(80, 215, 255, 0.56), inset 0 0 18px rgba(255, 255, 255, 0.16);
    animation: radarCoreFloat 2.8s ease-in-out infinite;
}

.radar-ring {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(80, 215, 255, 0.4);
    border-radius: 999px;
    box-shadow: inset 0 0 24px rgba(61, 219, 255, 0.12);
    animation: radarPulse 2.1s ease-out infinite;
}

.radar-sweep {
    position: absolute;
    inset: 11px;
    z-index: 2;
    border-radius: 999px;
    background:
        conic-gradient(from 0deg, transparent 0 68%, rgba(61, 219, 255, 0.6) 75%, rgba(47, 240, 147, 0.32) 82%, transparent 92% 100%);
    mask: radial-gradient(circle, transparent 0 32%, #000 33% 58%, transparent 59%);
    -webkit-mask: radial-gradient(circle, transparent 0 32%, #000 33% 58%, transparent 59%);
    filter: drop-shadow(0 0 12px rgba(61, 219, 255, 0.56));
    animation: radarSweep 2.65s linear infinite;
}

.radar-button::before {
    position: absolute;
    inset: 8px;
    content: "";
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 42%),
        radial-gradient(circle at 50% 50%, transparent 0 54%, rgba(61, 219, 255, 0.14) 55% 58%, transparent 59%);
    pointer-events: none;
}

.radar-button::after {
    position: absolute;
    inset: -9px;
    content: "";
    border-radius: inherit;
    border: 1px solid rgba(61, 219, 255, 0.18);
    box-shadow: 0 0 28px rgba(61, 219, 255, 0.16);
    animation: radarOuterPulse 2.9s ease-in-out infinite;
    pointer-events: none;
}

.radar-label {
    position: absolute;
    right: 2px;
    bottom: -18px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.28), transparent 28%),
        rgba(6, 8, 21, 0.62);
    color: rgba(230, 240, 255, 0.9);
    font-size: 0.68rem;
    font-weight: 800;
    word-spacing: 2px;
    white-space: nowrap;
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.radar-button.syncing .radar-core {
    animation: syncPulse 850ms ease-in-out infinite;
}

.radar-button.error {
    border-color: rgba(255, 125, 147, 0.7);
}

@keyframes radarPulse {
    from {
        opacity: 0.85;
        transform: scale(0.72);
    }
    to {
        opacity: 0;
        transform: scale(1.22);
    }
}

@keyframes radarGlass {
    0%, 100% {
        filter: saturate(1) brightness(1);
    }
    50% {
        filter: saturate(1.18) brightness(1.08);
    }
}

@keyframes radarCoreFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -2px, 0) scale(1.04);
    }
}

@keyframes radarOuterPulse {
    0%, 100% {
        opacity: 0.38;
        transform: scale(0.96);
    }
    50% {
        opacity: 0.86;
        transform: scale(1.04);
    }
}

@keyframes modelIconFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(0, -2px, 0) rotate(3deg);
    }
}

@keyframes factorIconPulse {
    0%, 100% {
        filter: brightness(1);
        transform: scale(1);
    }
    50% {
        filter: brightness(1.14);
        transform: scale(1.05);
    }
}

@keyframes barShimmer {
    0%, 46% {
        transform: translateX(-120%);
    }
    82%, 100% {
        transform: translateX(130%);
    }
}

@keyframes loadingRadarSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loadingScanSweep {
    0% {
        left: -24%;
    }
    58%, 100% {
        left: 116%;
    }
}

@keyframes hintArrowBounce {
    0%, 100% {
        transform: translateY(-2px);
    }
    50% {
        transform: translateY(5px);
    }
}

@keyframes ambientDrift {
    from {
        transform: translate3d(-1.6%, calc(var(--parallax-y) * -0.026px), 0) rotate(-1deg) scale(1.02);
    }
    to {
        transform: translate3d(1.6%, calc(var(--parallax-y) * -0.026px), 0) rotate(1deg) scale(1.05);
    }
}

@keyframes ambientSlide {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 220px 140px, 0 0;
    }
}

@keyframes radarSweep {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes syncPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.9);
    }
}

@keyframes frontFaceVisibility {
    0%, 31% {
        opacity: 1;
    }
    40%, 100% {
        opacity: 0;
    }
}

@keyframes backFaceVisibility {
    0%, 39% {
        opacity: 0;
    }
    48%, 100% {
        opacity: 1;
    }
}

@keyframes auroraFlow {
    0% {
        opacity: 0.28;
        transform: translate3d(-2.5%, calc(var(--parallax-y) * -0.075px), 0) scale(1.02);
    }
    50% {
        opacity: 0.42;
        transform: translate3d(2.8%, calc(var(--parallax-y) * -0.075px - 12px), 0) scale(1.08);
    }
    100% {
        opacity: 0.34;
        transform: translate3d(5.2%, calc(var(--parallax-y) * -0.075px + 8px), 0) scale(1.04);
    }
}

@keyframes ribbonDrift {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 240px -120px, 180px 0;
    }
}

@keyframes scanlineFlow {
    from {
        background-position: 0 0, -120px 0;
    }
    to {
        background-position: 0 56px, 180px 0;
    }
}

@keyframes gridBreathe {
    0%, 100% {
        opacity: 0.24;
        filter: brightness(1);
    }
    50% {
        opacity: 0.34;
        filter: brightness(1.16);
    }
}

@keyframes barFloat {
    from {
        opacity: 0.42;
        clip-path: polygon(0 34%, 100% 18%, 100% 72%, 0 88%);
    }
    to {
        opacity: 0.58;
        clip-path: polygon(0 28%, 100% 23%, 100% 76%, 0 82%);
    }
}

@keyframes sheetTurnNext {
    0% {
        transform: rotateY(0deg) translateZ(0) skewY(0deg);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.22));
    }
    8% {
        transform: rotateY(-7deg) translateZ(12px) skewY(-0.08deg);
        clip-path: polygon(0 0, 100% 0, 100% 94%, 93% 100%, 0 100%);
    }
    18% {
        transform: rotateY(-24deg) translateZ(36px) skewY(-0.35deg);
        clip-path: polygon(0 0, 100% 0.5%, 100% 84%, 84% 100%, 0 100%);
        filter: drop-shadow(-16px 15px 26px rgba(0, 0, 0, 0.28));
    }
    34% {
        transform: rotateY(-62deg) translateZ(74px) skewY(-0.95deg);
        clip-path: polygon(0 0, 97% 2%, 100% 76%, 70% 100%, 0 100%);
        filter: drop-shadow(-36px 22px 40px rgba(0, 0, 0, 0.36));
    }
    50% {
        transform: rotateY(-96deg) translateZ(92px) skewY(-1.55deg);
        clip-path: polygon(0 0, 94% 3%, 100% 82%, 68% 100%, 0 100%);
        filter: drop-shadow(-54px 25px 52px rgba(0, 0, 0, 0.42));
    }
    66% {
        transform: rotateY(-128deg) translateZ(70px) skewY(-1deg);
        clip-path: polygon(0 0, 96% 2%, 100% 90%, 79% 100%, 0 100%);
        filter: drop-shadow(-58px 24px 48px rgba(0, 0, 0, 0.36));
    }
    83% {
        transform: rotateY(-160deg) translateZ(30px) skewY(-0.28deg);
        clip-path: polygon(0 0, 99% 0.5%, 100% 98%, 92% 100%, 0 100%);
    }
    100% {
        transform: rotateY(-180deg) translateZ(0) skewY(0deg);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        filter: drop-shadow(-50px 22px 46px rgba(0, 0, 0, 0.28));
    }
}

@keyframes sheetTurnPrev {
    0% {
        transform: rotateY(0deg) translateZ(0) skewY(0deg);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.22));
    }
    8% {
        transform: rotateY(7deg) translateZ(12px) skewY(0.08deg);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 7% 100%, 0 94%);
    }
    18% {
        transform: rotateY(24deg) translateZ(36px) skewY(0.35deg);
        clip-path: polygon(0 0.5%, 100% 0, 100% 100%, 16% 100%, 0 84%);
        filter: drop-shadow(16px 15px 26px rgba(0, 0, 0, 0.28));
    }
    34% {
        transform: rotateY(62deg) translateZ(74px) skewY(0.95deg);
        clip-path: polygon(3% 2%, 100% 0, 100% 100%, 30% 100%, 0 76%);
        filter: drop-shadow(36px 22px 40px rgba(0, 0, 0, 0.36));
    }
    50% {
        transform: rotateY(96deg) translateZ(92px) skewY(1.55deg);
        clip-path: polygon(6% 3%, 100% 0, 100% 100%, 32% 100%, 0 82%);
        filter: drop-shadow(54px 25px 52px rgba(0, 0, 0, 0.42));
    }
    66% {
        transform: rotateY(128deg) translateZ(70px) skewY(1deg);
        clip-path: polygon(4% 2%, 100% 0, 100% 100%, 21% 100%, 0 90%);
        filter: drop-shadow(58px 24px 48px rgba(0, 0, 0, 0.36));
    }
    83% {
        transform: rotateY(160deg) translateZ(30px) skewY(0.28deg);
        clip-path: polygon(1% 0.5%, 100% 0, 100% 100%, 8% 100%, 0 98%);
    }
    100% {
        transform: rotateY(180deg) translateZ(0) skewY(0deg);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        filter: drop-shadow(50px 22px 46px rgba(0, 0, 0, 0.28));
    }
}

@keyframes sheetFoldNext {
    0% {
        opacity: 0;
        transform: translateX(22%) scaleX(0.54);
    }
    18% {
        opacity: 0.74;
        transform: translateX(10%) scaleX(0.82);
    }
    48% {
        opacity: 0.98;
        transform: translateX(-12%) scaleX(1.22);
    }
    74% {
        opacity: 0.72;
        transform: translateX(-32%) scaleX(0.88);
    }
    100% {
        opacity: 0;
        transform: translateX(-44%) scaleX(0.55);
    }
}

@keyframes sheetFoldPrev {
    0% {
        opacity: 0;
        transform: translateX(-22%) scaleX(0.54);
    }
    18% {
        opacity: 0.74;
        transform: translateX(-10%) scaleX(0.82);
    }
    48% {
        opacity: 0.98;
        transform: translateX(12%) scaleX(1.22);
    }
    74% {
        opacity: 0.72;
        transform: translateX(32%) scaleX(0.88);
    }
    100% {
        opacity: 0;
        transform: translateX(44%) scaleX(0.55);
    }
}

@keyframes sheetCastShadowNext {
    0% {
        opacity: 0;
        transform: translateX(0) scale(0.64, 0.82);
    }
    34% {
        opacity: 0.48;
        transform: translateX(-24%) scale(0.84, 0.92);
    }
    58% {
        opacity: 0.64;
        transform: translateX(-58%) scale(1.2, 1);
    }
    100% {
        opacity: 0;
        transform: translateX(-94%) scale(0.78, 0.76);
    }
}

@keyframes sheetCastShadowPrev {
    0% {
        opacity: 0;
        transform: translateX(0) scale(0.64, 0.82);
    }
    34% {
        opacity: 0.48;
        transform: translateX(24%) scale(0.84, 0.92);
    }
    58% {
        opacity: 0.64;
        transform: translateX(58%) scale(1.2, 1);
    }
    100% {
        opacity: 0;
        transform: translateX(94%) scale(0.78, 0.76);
    }
}

@keyframes sheetCurlNext {
    0% {
        opacity: 0;
        filter: drop-shadow(-10px -8px 12px rgba(0, 0, 0, 0.1));
        transform: translate3d(76%, 76%, 0) rotateZ(0deg) rotateX(0deg) scale(0.48);
    }
    8% {
        opacity: 0.82;
        filter: drop-shadow(-18px -14px 18px rgba(0, 0, 0, 0.2));
        transform: translate3d(34%, 34%, 12px) rotateZ(-3deg) rotateX(7deg) scale(0.82);
    }
    18% {
        opacity: 1;
        filter: drop-shadow(-30px -24px 28px rgba(0, 0, 0, 0.27));
        transform: translate3d(8%, 8%, 22px) rotateZ(-8deg) rotateX(15deg) scale(1.08);
    }
    36% {
        opacity: 1;
        filter: drop-shadow(-48px -34px 38px rgba(0, 0, 0, 0.34));
        transform: translate3d(-18%, -12%, 34px) rotateZ(-19deg) rotateX(22deg) scale(1.22);
    }
    58% {
        opacity: 0.92;
        filter: drop-shadow(-46px -28px 34px rgba(0, 0, 0, 0.28));
        transform: translate3d(-44%, -8%, 24px) rotateZ(-34deg) rotateX(14deg) scale(1.04);
    }
    78% {
        opacity: 0.62;
        filter: drop-shadow(-28px -18px 26px rgba(0, 0, 0, 0.22));
        transform: translate3d(-70%, 10%, 12px) rotateZ(-49deg) rotateX(6deg) scale(0.74);
    }
    100% {
        opacity: 0;
        filter: drop-shadow(-12px -8px 18px rgba(0, 0, 0, 0.12));
        transform: translate3d(-96%, 32%, 0) rotateZ(-58deg) rotateX(0deg) scale(0.44);
    }
}

@keyframes sheetCurlPrev {
    0% {
        opacity: 0;
        filter: drop-shadow(10px -8px 12px rgba(0, 0, 0, 0.1));
        transform: translate3d(-76%, 76%, 0) rotateZ(0deg) rotateX(0deg) scale(0.48);
    }
    8% {
        opacity: 0.82;
        filter: drop-shadow(18px -14px 18px rgba(0, 0, 0, 0.2));
        transform: translate3d(-34%, 34%, 12px) rotateZ(3deg) rotateX(7deg) scale(0.82);
    }
    18% {
        opacity: 1;
        filter: drop-shadow(30px -24px 28px rgba(0, 0, 0, 0.27));
        transform: translate3d(-8%, 8%, 22px) rotateZ(8deg) rotateX(15deg) scale(1.08);
    }
    36% {
        opacity: 1;
        filter: drop-shadow(48px -34px 38px rgba(0, 0, 0, 0.34));
        transform: translate3d(18%, -12%, 34px) rotateZ(19deg) rotateX(22deg) scale(1.22);
    }
    58% {
        opacity: 0.92;
        filter: drop-shadow(46px -28px 34px rgba(0, 0, 0, 0.28));
        transform: translate3d(44%, -8%, 24px) rotateZ(34deg) rotateX(14deg) scale(1.04);
    }
    78% {
        opacity: 0.62;
        filter: drop-shadow(28px -18px 26px rgba(0, 0, 0, 0.22));
        transform: translate3d(70%, 10%, 12px) rotateZ(49deg) rotateX(6deg) scale(0.74);
    }
    100% {
        opacity: 0;
        filter: drop-shadow(12px -8px 18px rgba(0, 0, 0, 0.12));
        transform: translate3d(96%, 32%, 0) rotateZ(58deg) rotateX(0deg) scale(0.44);
    }
}

@keyframes spinePulse {
    0%, 100% {
        opacity: 0.72;
        filter: blur(1px);
    }
    46% {
        opacity: 1;
        filter: blur(1.8px);
    }
}

@keyframes pageTurnNext {
    0% {
        transform: rotateY(0deg) translateZ(0) skewY(0deg);
        filter: brightness(1);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    16% {
        transform: rotateY(-18deg) translateZ(18px) skewY(-0.4deg);
        clip-path: polygon(0 0, 98% 0, 100% 91%, 90% 100%, 0 100%);
        filter: brightness(1.02);
    }
    38% {
        transform: rotateY(-64deg) translateZ(38px) skewY(-1deg);
        filter: brightness(0.92);
        clip-path: polygon(0 0, 94% 2%, 100% 82%, 80% 100%, 0 100%);
        box-shadow: -48px 18px 42px rgba(0, 0, 0, 0.3);
    }
    62% {
        transform: rotateY(-112deg) translateZ(34px) skewY(-1.1deg);
        filter: brightness(0.86);
        clip-path: polygon(0 0, 92% 4%, 100% 92%, 86% 100%, 0 100%);
        box-shadow: -62px 22px 52px rgba(0, 0, 0, 0.34);
    }
    84% {
        transform: rotateY(-154deg) translateZ(16px) skewY(-0.45deg);
        filter: brightness(0.82);
        clip-path: polygon(0 0, 98% 1%, 100% 98%, 0 100%);
    }
    100% {
        transform: rotateY(-178deg) translateZ(1px) skewY(0deg);
        filter: brightness(0.82);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        box-shadow: -60px 18px 55px rgba(0, 0, 0, 0.34);
    }
}

@keyframes pageTurnPrev {
    0% {
        transform: rotateY(0deg) translateZ(0) skewY(0deg);
        filter: brightness(1);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    16% {
        transform: rotateY(18deg) translateZ(18px) skewY(0.4deg);
        clip-path: polygon(2% 0, 100% 0, 100% 100%, 10% 100%, 0 91%);
        filter: brightness(1.02);
    }
    38% {
        transform: rotateY(64deg) translateZ(38px) skewY(1deg);
        filter: brightness(0.92);
        clip-path: polygon(6% 2%, 100% 0, 100% 100%, 20% 100%, 0 82%);
        box-shadow: 48px 18px 42px rgba(0, 0, 0, 0.3);
    }
    62% {
        transform: rotateY(112deg) translateZ(34px) skewY(1.1deg);
        filter: brightness(0.86);
        clip-path: polygon(8% 4%, 100% 0, 100% 100%, 14% 100%, 0 92%);
        box-shadow: 62px 22px 52px rgba(0, 0, 0, 0.34);
    }
    84% {
        transform: rotateY(154deg) translateZ(16px) skewY(0.45deg);
        filter: brightness(0.82);
        clip-path: polygon(2% 1%, 100% 0, 100% 100%, 0 98%);
    }
    100% {
        transform: rotateY(178deg) translateZ(1px) skewY(0deg);
        filter: brightness(0.82);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        box-shadow: 60px 18px 55px rgba(0, 0, 0, 0.34);
    }
}

@keyframes curlNext {
    0% {
        opacity: 0.82;
        transform: translate(58%, 58%) rotate(0deg) scale(0.8);
        filter: drop-shadow(-14px -14px 18px rgba(0, 0, 0, 0.24));
    }
    18% {
        opacity: 1;
        transform: translate(10%, 10%) rotate(-5deg) scale(1.05);
        filter: drop-shadow(-28px -24px 24px rgba(0, 0, 0, 0.34));
    }
    42% {
        opacity: 1;
        transform: translate(-10%, -8%) rotate(-18deg) scale(1.22);
        filter: drop-shadow(-44px -30px 32px rgba(0, 0, 0, 0.38));
    }
    70% {
        opacity: 0.72;
        transform: translate(-28%, -4%) rotate(-34deg) scale(0.92);
        filter: drop-shadow(-34px -20px 28px rgba(0, 0, 0, 0.28));
    }
    100% {
        opacity: 0;
        transform: translate(-60%, 18%) rotate(-44deg) scale(0.52);
        filter: drop-shadow(-18px -14px 20px rgba(0, 0, 0, 0.18));
    }
}

@keyframes curlPrev {
    0% {
        opacity: 0.82;
        transform: translate(-58%, 58%) rotate(0deg) scale(0.8);
        filter: drop-shadow(14px -14px 18px rgba(0, 0, 0, 0.24));
    }
    18% {
        opacity: 1;
        transform: translate(-10%, 10%) rotate(5deg) scale(1.05);
        filter: drop-shadow(28px -24px 24px rgba(0, 0, 0, 0.34));
    }
    42% {
        opacity: 1;
        transform: translate(10%, -8%) rotate(18deg) scale(1.22);
        filter: drop-shadow(44px -30px 32px rgba(0, 0, 0, 0.38));
    }
    70% {
        opacity: 0.72;
        transform: translate(28%, -4%) rotate(34deg) scale(0.92);
        filter: drop-shadow(34px -20px 28px rgba(0, 0, 0, 0.28));
    }
    100% {
        opacity: 0;
        transform: translate(60%, 18%) rotate(44deg) scale(0.52);
        filter: drop-shadow(18px -14px 20px rgba(0, 0, 0, 0.18));
    }
}

@keyframes foldShadow {
    0% {
        background:
            linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 18% 82%, rgba(0, 0, 0, 0.08)),
            radial-gradient(circle at 50% 30%, transparent 0 55%, rgba(0, 0, 0, 0.05) 100%);
    }
    50% {
        background:
            linear-gradient(95deg, rgba(255, 255, 255, 0.58), rgba(0, 0, 0, 0.18) 46%, rgba(255, 255, 255, 0.12) 52%, rgba(0, 0, 0, 0.24)),
            radial-gradient(circle at 50% 30%, transparent 0 44%, rgba(0, 0, 0, 0.24) 100%);
    }
    100% {
        background:
            linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 18% 82%, rgba(0, 0, 0, 0.08)),
            radial-gradient(circle at 50% 30%, transparent 0 55%, rgba(0, 0, 0, 0.05) 100%);
    }
}

@media (max-width: 1180px) {
    #kpiGrid:not(.kpi-rail) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .model-summary-wide {
        grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
        grid-template-areas:
            "title metrics"
            "copy metrics"
            "terminal terminal";
    }
}

@media (max-width: 992px) {
    .header-shell,
    .panel-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-actions {
        justify-content: flex-start;
        padding-right: 0;
    }

    .chart-actions,
    .factor-panel-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .exposure-form-wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .newspaper-spread {
        perspective: 1400px;
    }

    .chart-command-grid {
        grid-template-columns: 1fr;
    }

    #kpiGrid.kpi-rail {
        grid-template-columns: repeat(4, minmax(110px, 1fr));
        width: 100%;
    }

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

    .methodology-grid,
    .methodology-body {
        grid-template-columns: 1fr;
    }

    .model-summary-wide {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "copy"
            "metrics"
            "terminal";
    }

    .model-summary-wide .model-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .factor-item,
    .factor-executive {
        grid-template-columns: 1fr;
    }

    .factor-main {
        grid-template-columns: 1fr;
    }

    .factor-insight {
        grid-template-columns: 1fr;
    }

    .factor-icon,
    .executive-icon {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    .radar-button {
        top: 14px;
        right: 14px;
        bottom: auto;
        width: 82px;
        height: 82px;
    }

    .radar-core {
        width: 38px;
        height: 38px;
    }

    .radar-label {
        right: -4px;
        bottom: -15px;
        font-size: 0.58rem;
    }

    .chart-box {
        height: 360px;
        min-height: 360px;
    }

    .exposure-form-wide {
        grid-template-columns: 1fr;
    }

    .model-metrics,
    .factor-numbers {
        grid-template-columns: 1fr;
    }

    .model-summary-wide .model-metrics {
        grid-template-columns: 1fr;
    }

    .factor-modal {
        padding: 14px;
    }

    .factor-modal-header,
    .factor-modal-stats {
        grid-template-columns: 1fr;
    }

    .methodology-grid > div {
        min-height: 0;
    }

    .factor-modal-header {
        padding-right: 42px;
    }

    .factor-numbers > div {
        padding: 0;
        border-right: 0;
    }

    .newspaper-actions {
        align-items: stretch;
        flex-direction: column;
    }

    #kpiGrid:not(.kpi-rail) {
        grid-template-columns: 1fr;
    }

    #kpiGrid.kpi-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .newspaper-spread {
        min-height: 560px;
        width: calc(100% - 38px);
    }

    .newspaper-page {
        height: 620px;
    }

    .paper-body {
        column-count: 1;
    }
}
