:root {
    --bg-0: #d4e3fb;
    --bg-1: #e2ecff;
    --bg-2: #eef4ff;
    --ink-strong: #13233b;
    --ink-body: #35506d;
    --ink-soft: #6f87a2;
    --glass: rgba(255, 255, 255, 0.62);
    --glass-strong: rgba(255, 255, 255, 0.76);
    --surface: rgba(255, 255, 255, 0.92);
    --surface-soft: rgba(248, 251, 255, 0.95);
    --line: rgba(132, 167, 220, 0.16);
    --shadow-lg: 0 20px 56px rgba(45, 78, 122, 0.08);
    --shadow-md: 0 10px 30px rgba(48, 79, 121, 0.08);
    --accent-a: #6d86ec;
    --accent-b: #8d9bf1;
    --accent-c: #d7d9fb;
    --accent-violet: #cdbbe9;
    --accent-violet-strong: #af98d8;
    --chart-1: #92A5D1;
    --chart-2: #C5DFF4;
    --chart-3: #AEB2D1;
    --chart-4: #D9B9D4;
    --chart-5: #7C9895;
    --chart-6: #C9DCC4;
    --chart-7: #DAA87C;
    --chart-8: #F4EEAC;
    --success: #0b6e4f;
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink-strong);
    background:
        radial-gradient(circle at 10% 10%, rgba(156, 193, 250, 0.34), transparent 24%),
        radial-gradient(circle at 88% 10%, rgba(182, 210, 255, 0.24), transparent 18%),
        radial-gradient(circle at 76% 76%, rgba(168, 191, 241, 0.18), transparent 20%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 52%, var(--bg-0) 100%);
}

.report-print-root {
    display: none;
}

body.app-loading {
    overflow: hidden;
}

#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 20% 18%, rgba(165, 197, 247, 0.46), transparent 22%),
        radial-gradient(circle at 78% 20%, rgba(205, 187, 233, 0.3), transparent 22%),
        linear-gradient(180deg, #e8f1ff 0%, #d5e4fb 100%);
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

body.app-ready #loading-screen {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    width: min(420px, calc(100vw - 48px));
    text-align: center;
}

.loader-orbital {
    position: relative;
    width: 114px;
    height: 114px;
    margin: 0 auto 24px;
}

.orbital-core {
    position: absolute;
    inset: 22px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    color: #ffffff;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.04em;
    background: linear-gradient(145deg, var(--accent-a), var(--accent-b));
    box-shadow: 0 16px 34px rgba(111, 139, 237, 0.28);
}

.orbital-ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 1px solid rgba(125, 153, 218, 0.35);
}

.orbital-ring-a {
    animation: orbital-spin 8s linear infinite;
}

.orbital-ring-b {
    inset: 10px;
    border-color: rgba(175, 152, 216, 0.44);
    animation: orbital-spin-reverse 5.2s linear infinite;
}

.orbital-ring-a::before,
.orbital-ring-b::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #c5dff4, #d9b9d4);
    box-shadow: 0 0 12px rgba(168, 187, 237, 0.55);
}

.loader-title {
    margin: 0 0 14px;
    color: #1d3355;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.loader-text {
    height: 22px;
    margin-bottom: 16px;
    color: #6883a6;
    font-size: 13px;
    letter-spacing: 0.03em;
}

.loader-bar-bg {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(124, 152, 149, 0.18);
}

.loader-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-a), var(--accent-violet-strong), #92A5D1);
    box-shadow: 0 0 18px rgba(141, 155, 241, 0.24);
    transition: width 0.22s ease;
}

@keyframes orbital-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbital-spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.ambient {
    position: fixed;
    inset: auto;
    pointer-events: none;
    filter: blur(56px);
    opacity: 0.42;
    z-index: 0;
}

.ambient-a {
    top: 8%;
    left: -4%;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    background: rgba(160, 199, 255, 0.24);
}

.ambient-b {
    top: 14%;
    right: 2%;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: rgba(196, 229, 255, 0.22);
}

.ambient-c {
    bottom: 2%;
    right: 18%;
    width: 360px;
    height: 240px;
    border-radius: 999px;
    background: rgba(167, 198, 255, 0.18);
}

.layout-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
    max-width: 1540px;
    margin: 0 auto;
    padding: 24px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

body.app-loading .layout-shell {
    opacity: 0;
    transform: translateY(14px);
}

.sidebar-glass,
.top-glassbar {
    border: 1px solid rgba(255, 255, 255, 0.48);
    background: linear-gradient(180deg, var(--glass-strong) 0%, var(--glass) 100%);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    box-shadow: var(--shadow-md);
}

.sidebar-glass {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: calc(100vh - 48px);
    padding: 22px;
    border-radius: 34px;
    box-shadow: 0 16px 40px rgba(42, 66, 100, 0.1);
}

.brand-lockup {
    display: block;
    padding-left: 12px;
}

.brand-lockup > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-lockup .eyebrow {
    margin-left: 4px;
}

.brand-lockup h1 {
    margin: 6px 0 0;
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: -0.04em;
    white-space: normal;
}

.eyebrow {
    margin: 0;
    color: var(--ink-soft);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav-cluster {
    display: grid;
    gap: 10px;
}

.nav-pill {
    padding: 14px 16px;
    border: 1px solid rgba(202, 215, 246, 0.68);
    border-radius: 16px;
    text-align: left;
    color: var(--ink-body);
    background: rgba(255, 255, 255, 0.48);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.nav-pill:nth-child(1) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(233, 239, 255, 0.8));
}

.nav-pill:nth-child(2) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(237, 241, 255, 0.86));
}

.nav-pill:nth-child(3) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(241, 236, 252, 0.88));
}

.nav-pill:nth-child(4) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(244, 238, 252, 0.9));
}

.nav-pill:hover,
.nav-pill.active {
    transform: translateY(-1px);
    border-color: rgba(175, 152, 216, 0.46);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(236, 232, 250, 0.9));
    box-shadow: 0 10px 24px rgba(159, 142, 204, 0.12);
}

.nav-pill.active {
    color: #304b71;
    border-color: rgba(160, 141, 208, 0.58);
    box-shadow: 0 12px 28px rgba(148, 133, 198, 0.16);
}

.nav-pill:nth-child(1).active {
    background: linear-gradient(135deg, rgba(244, 248, 255, 0.96), rgba(220, 232, 255, 0.98));
}

.nav-pill:nth-child(2).active {
    background: linear-gradient(135deg, rgba(245, 247, 255, 0.96), rgba(228, 233, 255, 0.98));
}

.nav-pill:nth-child(3).active {
    background: linear-gradient(135deg, rgba(248, 245, 255, 0.96), rgba(233, 226, 252, 0.98));
}

.nav-pill:nth-child(4).active {
    background: linear-gradient(135deg, rgba(251, 246, 255, 0.96), rgba(238, 229, 252, 0.98));
}

.sidebar-glass-card {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.sidebar-glass-card h2 {
    margin: 8px 0 10px;
    font-size: 20px;
}

.sidebar-glass-card.compact {
    margin-top: auto;
}

.mini-stat-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--ink-body);
    border-bottom: 1px solid rgba(132, 167, 220, 0.12);
}

.mini-stat-row:last-child {
    border-bottom: 0;
}

.main-shell {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.view-section {
    display: none;
}

.view-section.active {
    display: block;
}

.single-view-grid {
    grid-template-columns: 1fr;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--ink-body);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.52);
}

.status-chip.subtle {
    color: var(--ink-soft);
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #36d39a, #0b6e4f);
    box-shadow: 0 0 0 5px rgba(54, 211, 154, 0.12);
}

.top-control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.52);
    color: var(--ink-soft);
    font-size: 13px;
}

.top-control.grow {
    width: 100%;
    justify-content: space-between;
    border-radius: 18px;
    padding: 10px 12px 10px 14px;
}

.sidebar-control-stack {
    display: grid;
    gap: 12px;
}

.sidebar-control-card,
.sidebar-select-card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--ink-body);
}

.sidebar-control-card strong {
    font-size: 15px;
    font-weight: 700;
}

.sidebar-control-card.subtle-card {
    color: var(--ink-soft);
}

.sidebar-select-card {
    justify-content: space-between;
}

.sidebar-select-card span {
    color: var(--ink-soft);
    font-size: 13px;
}

.sidebar-select-card select {
    width: auto;
    min-width: 110px;
    padding: 8px 12px;
    border-radius: 999px;
    background: white;
}

.sidebar-refresh {
    width: 100%;
    justify-content: center;
}

.sidebar-export {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #3f4f76;
    border: 1px solid rgba(186, 170, 225, 0.46);
    background: linear-gradient(135deg, rgba(247, 245, 255, 0.92), rgba(232, 237, 255, 0.94));
    box-shadow: 0 10px 26px rgba(159, 142, 204, 0.12);
}

.sidebar-export:hover {
    background: linear-gradient(135deg, rgba(239, 233, 255, 0.96), rgba(226, 233, 255, 0.98));
}

.sidebar-export-icon {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    background: linear-gradient(135deg, var(--accent-violet-strong), var(--accent-a));
}

select,
input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(125, 164, 224, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink-strong);
    outline: none;
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.top-control select {
    width: auto;
    min-width: 110px;
    padding: 8px 12px;
    border-radius: 999px;
    background: white;
}

button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.primary-button,
.secondary-button,
.ghost-button {
    padding: 12px 18px;
    border-radius: 999px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
    color: white;
    background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    box-shadow: 0 16px 34px rgba(79, 140, 255, 0.26);
}

.secondary-button {
    color: white;
    background: linear-gradient(135deg, #213753, #3d5a79);
}

.ghost-button {
    color: var(--ink-body);
    background: rgba(255, 255, 255, 0.64);
}

.compact-button {
    padding: 9px 14px;
    font-size: 13px;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
    transform: translateY(-1px);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.glass-card {
    padding: 24px;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
    border: 1px solid rgba(220, 232, 249, 0.92);
    box-shadow: 0 10px 24px rgba(46, 70, 103, 0.06);
}

.hero-story {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-self: start;
    height: fit-content;
    box-shadow: 0 14px 36px rgba(38, 62, 96, 0.07);
}

.hero-story h2 {
    max-width: 720px;
    margin: 10px 0 0;
    font-size: clamp(28px, 3.1vw, 40px);
    line-height: 1.08;
    letter-spacing: -0.045em;
    font-weight: 720;
    text-wrap: balance;
}

.hero-headline span {
    display: block;
}

.hero-headline span:last-child {
    margin-top: 8px;
    color: #2a4162;
    font-size: 0.82em;
    letter-spacing: -0.04em;
}

.support-copy {
    margin: 0;
    max-width: 640px;
    color: var(--ink-body);
    line-height: 1.72;
    font-size: 15px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.hero-visual-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 14px;
    align-items: start;
    margin-bottom: 0;
}

.hero-visual-panel {
    padding: 18px;
    border-radius: 24px;
    background: rgba(247, 250, 255, 0.94);
    border: 1px solid rgba(226, 236, 249, 0.96);
    align-self: start;
}

.hero-storyline-panel {
    padding: 18px;
    border-radius: 24px;
    background: rgba(247, 250, 255, 0.94);
    border: 1px solid rgba(226, 236, 249, 0.96);
}

.compact-head {
    margin-bottom: 12px;
}

.compact-head h4 {
    margin: 8px 0 0;
    font-size: 18px;
}

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

.signal-tile {
    display: flex;
    flex-direction: column;
    min-height: 148px;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,255,0.96));
    border: 1px solid rgba(227, 237, 248, 0.96);
}

.signal-tile .signal-name {
    color: var(--ink-soft);
    font-size: 12px;
}

.signal-tile .signal-number {
    display: block;
    margin-top: 12px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.signal-meter {
    height: 8px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(150, 184, 227, 0.12);
}

.signal-meter-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--signal-start, var(--chart-1)), var(--signal-end, var(--chart-2)));
}

.signal-caption {
    margin-top: 10px;
    color: var(--ink-body);
    font-size: 13px;
}

.focus-list,
.storyline-grid {
    display: grid;
    gap: 12px;
}

.focus-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
}

.focus-item,
.storyline-item {
    padding: 15px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(227, 237, 248, 0.96);
}

.focus-item {
    min-height: 138px;
}

.focus-item strong,
.storyline-item strong {
    display: block;
    font-size: 15px;
    line-height: 1.4;
}

.focus-item p,
.storyline-item p {
    margin: 8px 0 0;
    color: var(--ink-body);
    font-size: 13px;
    line-height: 1.6;
}

.focus-item strong {
    font-size: 14px;
}

.focus-item p {
    font-size: 12.5px;
    line-height: 1.55;
}

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

.hero-storyline-panel .storyline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-trend-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
    padding: 18px;
    border-radius: 24px;
    background: rgba(245, 249, 255, 0.9);
    border: 1px solid rgba(224, 234, 248, 0.95);
}

.hero-side-trend {
    padding: 0;
    background: transparent;
    border: 0;
}

.hero-trend-copy {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.hero-trend-shell h3 {
    margin: 8px 0 0;
    font-size: 24px;
}

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

.hero-side-trend .comparison-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.comparison-chip {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 126px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(227, 237, 250, 0.96);
}

.hero-side-trend .comparison-chip {
    min-height: 108px;
    padding: 12px 14px;
}

.comparison-chip .label {
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.45;
}

.comparison-chip strong {
    display: block;
    margin-top: 8px;
    font-size: 18px;
    line-height: 1.15;
}

.hero-side-trend .comparison-chip strong {
    font-size: 16px;
}

.comparison-chip span {
    display: block;
    margin-top: 6px;
    color: var(--ink-body);
    font-size: 12px;
    line-height: 1.5;
}

.hero-side-trend .comparison-chip span {
    font-size: 11px;
}

.hero-side-buffer {
    min-height: 28px;
    margin-top: 10px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.82), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(226, 236, 249, 0.92);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 0;
}

.metric-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 134px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(228, 238, 248, 0.96);
}

.metric-card .metric-label {
    color: var(--ink-soft);
    font-size: 13px;
}

.metric-card .metric-value {
    margin-top: 12px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.metric-card .metric-delta {
    margin-top: 8px;
    color: var(--ink-body);
    font-size: 12px;
    line-height: 1.5;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.panel-head h3 {
    margin: 8px 0 0;
    font-size: 24px;
}

.data-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--accent-a);
    font-size: 12px;
    background: rgba(244, 248, 255, 0.9);
    border: 1px solid rgba(211, 228, 249, 0.92);
}

.signal-stack {
    display: grid;
    gap: 12px;
}

.signal-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: start;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(247,250,255,0.96);
    border: 1px solid rgba(229, 238, 249, 0.96);
}

.hero-highlight {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-self: start;
    height: fit-content;
    background: linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(247, 250, 255, 0.96));
}

.hero-highlight .signal-row {
    padding: 14px 16px;
}

.hero-highlight .signal-meta strong {
    font-size: 14px;
}

.hero-highlight .signal-value strong {
    font-size: 18px;
    letter-spacing: -0.02em;
}

.signal-meta strong {
    display: block;
    font-size: 15px;
}

.signal-meta span {
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.signal-value {
    text-align: right;
}

.signal-value strong {
    display: block;
    font-size: 20px;
}

.signal-value span {
    color: var(--ink-soft);
    font-size: 11px;
}

.subtle-divider {
    height: 1px;
    margin: 18px 0;
    background: linear-gradient(90deg, rgba(132, 167, 220, 0), rgba(132, 167, 220, 0.26), rgba(132, 167, 220, 0));
}

.hero-quick-facts {
    display: grid;
    gap: 12px;
}

.quick-fact {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--ink-body);
    font-size: 14px;
}

.quick-fact strong {
    color: var(--ink-strong);
}

.content-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
}

.wide-card {
    grid-column: 1 / -1;
}

.insight-summary-band,
.model-summary-band,
.review-summary-band {
    margin-bottom: 18px;
}

.insight-summary-card,
.model-summary-card,
.review-summary-card {
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(246, 250, 255, 0.96), rgba(255, 255, 255, 0.94));
    border: 1px solid rgba(221, 234, 250, 0.96);
}

.insight-summary-card strong,
.model-summary-card strong,
.review-summary-card strong {
    display: block;
    font-size: 18px;
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.insight-summary-card p,
.model-summary-card p,
.review-summary-card p {
    margin: 8px 0 0;
    color: var(--ink-body);
    line-height: 1.65;
    font-size: 14px;
}

.executive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.executive-grid > div {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.top-games-grid,
.topic-grid,
.regional-grid,
.model-grid {
    display: grid;
    gap: 12px;
}

.top-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(148px, 1fr);
}

.top-game-card,
.topic-card,
.regional-card,
.model-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(227, 237, 248, 0.96);
}

.topic-card {
    min-height: 104px;
}

.top-game-card .rank-tag {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--accent-a);
    font-size: 12px;
    background: rgba(236, 244, 255, 0.88);
}

.top-game-card,
.topic-card,
.regional-card {
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.top-game-card:hover,
.topic-card:hover,
.regional-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(63, 92, 131, 0.08);
}

.top-game-card.is-active,
.topic-card.is-active,
.regional-card.is-active {
    border-color: rgba(112, 160, 238, 0.62);
    box-shadow: 0 14px 28px rgba(70, 106, 160, 0.1);
}

.top-game-card strong,
.topic-card strong,
.regional-card strong,
.model-card strong {
    display: block;
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.35;
}

.top-game-card p,
.topic-card p,
.regional-card p,
.model-card p {
    margin: 8px 0 0;
    color: var(--ink-body);
    font-size: 13px;
    line-height: 1.6;
}

.topic-card p {
    font-size: 12px;
    line-height: 1.5;
}

.top-game-card p:last-of-type,
.topic-card p:last-of-type {
    margin-top: auto;
    padding-top: 8px;
}

.topic-score,
.regional-meta,
.model-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.topic-score span,
.regional-meta span,
.model-meta span {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--ink-body);
    font-size: 12px;
    background: rgba(247, 250, 255, 0.98);
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.visual-block h4,
.section-split h4,
.glass-card h4 {
    margin: 0 0 14px;
    font-size: 16px;
}

.bar-list {
    display: grid;
    gap: 12px;
}

.bar-item {
    display: grid;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.18s ease;
}

.bar-item:hover {
    transform: translateY(-1px);
}

.bar-item-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: var(--ink-body);
}

.bar-track {
    position: relative;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(151, 182, 227, 0.12);
}

.bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--bar-start, var(--chart-1)), var(--bar-end, var(--chart-2)));
}

.bar-item.is-active .bar-track {
    background: rgba(146, 165, 209, 0.24);
}

.bar-item.is-active .bar-fill {
    background: linear-gradient(135deg, var(--bar-active-start, var(--chart-7)), var(--bar-active-end, var(--chart-4)));
}

.compact-bars .bar-track {
    height: 12px;
}

.trend-track {
    display: flex;
    align-items: end;
    gap: 8px;
    min-height: 188px;
    padding: 12px 0 6px;
}

.trend-bar {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: end;
    gap: 8px;
    align-items: center;
}

.trend-bar-fill {
    width: 100%;
    min-height: 12px;
    border-radius: 16px 16px 6px 6px;
    background: linear-gradient(180deg, var(--chart-3), var(--chart-1));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.54);
}

.trend-bar span {
    color: var(--ink-soft);
    font-size: 12px;
}

.trend-bar strong {
    color: var(--ink-strong);
    font-size: 13px;
    font-weight: 700;
}

.section-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.feature-hero-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(245, 249, 255, 0.94), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(223, 235, 249, 0.96);
}

.feature-hero-copy h4 {
    margin-bottom: 8px;
}

.feature-hero-stat {
    display: grid;
    gap: 8px;
}

.feature-hero-label {
    color: var(--ink-soft);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feature-hero-stat strong {
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.feature-hero-stat p,
.feature-hero-note {
    margin: 0;
    color: var(--ink-body);
    font-size: 14px;
    line-height: 1.65;
}

.pill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--ink-body);
    background: rgba(248,251,255,0.96);
    border: 1px solid rgba(222, 234, 248, 0.96);
}

.feature-pill strong {
    color: var(--accent-a);
}

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

.competitor-card {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(227, 237, 248, 0.96);
}

.competitor-card strong {
    display: block;
    font-size: 15px;
    margin-bottom: 8px;
}

.competitor-card p {
    margin: 4px 0;
    color: var(--ink-body);
    font-size: 13px;
}

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

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

.search-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.context-band {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.context-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.context-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--ink-body);
    background: rgba(247,250,255,0.96);
    border: 1px solid rgba(228, 238, 249, 0.96);
}

.checkbox-chip {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    color: var(--ink-body);
    background: rgba(247,250,255,0.96);
    border: 1px solid rgba(228, 238, 249, 0.96);
}

.table-shell {
    overflow: auto;
}

.compact-table-shell {
    max-height: 260px;
    border-radius: 18px;
    border: 1px solid rgba(227, 237, 248, 0.96);
    background: rgba(255, 255, 255, 0.92);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(132, 167, 220, 0.12);
    font-size: 14px;
}

th {
    color: var(--ink-soft);
    font-weight: 700;
}

.filter-row {
    margin-bottom: 16px;
}

.review-stream {
    display: grid;
    gap: 12px;
}

.review-card {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(227, 237, 248, 0.96);
}

.review-badge-row {
    display: flex;
    margin-bottom: 10px;
}

.review-reason-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    color: #29507e;
    background: rgba(235, 244, 255, 0.92);
    border: 1px solid rgba(210, 227, 248, 0.96);
}

.review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--ink-soft);
    font-size: 12px;
}

.review-text {
    margin: 0;
    color: var(--ink-body);
    line-height: 1.7;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-intro-copy {
    margin-bottom: 18px;
}

.empty-state {
    padding: 18px;
    border-radius: 18px;
    color: var(--ink-soft);
    background: rgba(247,250,255,0.96);
    border: 1px solid rgba(228, 238, 249, 0.96);
}

@media (max-width: 1240px) {
    .layout-shell {
        grid-template-columns: 1fr;
    }

    .sidebar-glass {
        position: relative;
        top: 0;
        height: auto;
    }

    .hero-grid,
    .content-grid,
    .insight-grid,
    .section-split,
    .hero-visual-grid {
        grid-template-columns: 1fr;
    }

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

    .executive-grid,
    .regional-grid,
    .model-grid,
    .top-games-grid,
    .storyline-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .layout-shell {
        padding: 14px;
    }

    .hero-story h2 {
        font-size: 30px;
        max-width: 100%;
    }

    .hero-headline span:last-child {
        margin-top: 6px;
        font-size: 0.86em;
    }

    .hero-metrics,
    .competitor-grid,
    .search-grid,
    .comparison-ribbon,
    .signal-canvas {
        grid-template-columns: 1fr;
    }

    .context-band {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-trend-shell {
        grid-template-columns: 1fr;
    }
}
