/* Shared EVA component contract. Page styles own layout; this file owns surfaces and states. */
body.eva:not(.light){--eva-surface:#21162c;--eva-surface-hover:#382347;--eva-table-surface:#17111f;--eva-stroke:#61417a;--eva-edge:#9368bd;--eva-ink:#eee3f7;--eva-label:#c5b7d2;--eva-selected:#b6f34c;--eva-selected-ink:#17111f;--eva-control-height:40px}
html body.eva:not(.light) :is(.macro-tag-card,.macro-indicator-item,.screening-stat-card,.uscorp-stat-card,.crypto-stat-card,.hkfunds-stat-card,.cn-thermo-card,.kr-metric-cell,.chain-card,.chain-cb-card,.chain-tech-card,.kyp-dim-card,.hktemplate-card,.sc,.cc,.pred-card,.pred-chart-box,.pred-controls,.stat-card,.mi-stat-card,.dc-stat,.lh-stat,.ia-stat,.ia-review-card,.inst-card,.sc-card,.bt-card,.ss-card,.kr-kpi,.fafa-metric,.mi-chart-box,.chart-card,.kr-panel,.compare-charts .cb-wrap,.market-overview-charts .chart-box){background:var(--eva-surface);border:1px solid var(--eva-stroke);border-top:3px solid var(--eva-edge);border-radius:0;box-shadow:none}
html body.eva:not(.light) :is(.section-title,.mi-section-header h2,.hy-section-header,.kr-chart-section h2,.ia-section-title,.fm-section-title,.macro-group-title,.inst-section h2,.section h2,.gl-h2,.bt-h3){background:var(--eva-surface-hover);border-left:4px solid var(--eva-selected);border-bottom:1px solid var(--eva-edge);border-top:0;color:var(--eva-ink);padding:11px 14px;line-height:1.5}
html body.eva:not(.light) :is(.section-title,.mi-section-header h2,.hy-section-header,.kr-chart-section h2,.ia-section-title,.fm-section-title,.macro-group-title,.inst-section h2,.section h2,.gl-h2,.bt-h3)::after{content:none}
html body.eva:not(.light) :is(.dc-tab,.lh-tab,.rank-tab,.ia-tab-btn,.hy-ccy-btn,.fin-ccy-btn,.kr-btn,.kr-micro-tab,.macro-cat-tab,.md-sub-tab,.blog-tags .tag-btn,.notes-tags .tag-pill,.cn-view-subtab,.hkfund-detail-tab,.hkfunds-quick-chip,.chain-chart-toggle){min-height:var(--eva-control-height);box-sizing:border-box;padding:8px 14px;line-height:1.4;border:1px solid var(--eva-stroke);border-radius:0;background:var(--eva-surface);color:var(--eva-label);box-shadow:none;transform:none;transition:background .15s,border-color .15s,color .15s}
html body.eva:not(.light) :is(.dc-tab,.lh-tab,.rank-tab,.ia-tab-btn,.hy-ccy-btn,.fin-ccy-btn,.kr-btn,.kr-micro-tab,.macro-cat-tab,.md-sub-tab,.blog-tags .tag-btn,.notes-tags .tag-pill,.cn-view-subtab,.hkfund-detail-tab,.hkfunds-quick-chip,.chain-chart-toggle):hover{background:var(--eva-surface-hover);border-color:var(--eva-selected);color:var(--eva-ink);box-shadow:none;transform:none}
html body.eva:not(.light) :is(.dc-tab,.lh-tab,.rank-tab,.ia-tab-btn,.hy-ccy-btn,.fin-ccy-btn,.kr-btn,.kr-micro-tab,.macro-cat-tab,.md-sub-tab,.blog-tags .tag-btn,.notes-tags .tag-pill,.cn-view-subtab,.hkfund-detail-tab,.hkfunds-quick-chip,.chain-chart-toggle):is(.active,.is-active,.on,[aria-selected=true],[aria-pressed=true]){background:var(--eva-selected);color:var(--eva-selected-ink);border-color:var(--eva-selected);font-weight:700;box-shadow:none}
html body.eva:not(.light) :is(.pagination button,.dc-page-btn,.fn-page-btn,.page-btn,.sc-btn-reset,.copy-btn,.try-btn,.hktemplate-btn,.hktemplate-editor-back,.uscorp-back-btn,.edu-toggle,.tiers-toggle){min-height:var(--eva-control-height);border-radius:0;border:1px solid var(--eva-stroke);background:var(--eva-surface);color:var(--eva-label);box-shadow:none}
html body.eva:not(.light) :is(.pagination button,.dc-page-btn,.fn-page-btn,.page-btn,.sc-btn-reset,.copy-btn,.try-btn,.hktemplate-btn,.hktemplate-editor-back,.uscorp-back-btn,.edu-toggle,.tiers-toggle):hover{background:var(--eva-surface-hover);border-color:var(--eva-selected);color:var(--eva-ink);transform:none}
html body.eva:not(.light) :is(button,input,select,.dc-page-btn,.fn-page-btn,.page-btn):is(:disabled,.disabled,.is-disabled,[aria-disabled=true]){background:#19151f;border-color:#3b2e47;color:#93859f;opacity:1;box-shadow:none;transform:none;cursor:not-allowed}
html body.eva:not(.light) :is(input[type=text],input[type=search],input[type=number],input[type=email],input[type=password],textarea,select){min-height:var(--eva-control-height);box-sizing:border-box;border-radius:0;border-color:var(--eva-stroke);background:var(--eva-field);color:var(--eva-ink)}
html body.eva:not(.light) :is(.pred-table,.tier-table,.mi-table,.dc-table,.lh-table,.ranking-table,.inst-table,.compare-table,.ia-table,.ia-lookup-table,.hy-arb-table,.kr-tab,.sc-table,.bt-table,.risk-table,.cn-data-table,.uscorp-table,.uslist-table,.crypto-table,.hkfunds-table,.hkcomplex-legal-table,.info-table,.svc-table,.cs-table,.dir-table,.inst-info-table,.fafa-idx table,.fafa-dist table,.financial-table){background:var(--eva-table-surface);border:1px solid var(--eva-stroke)}
html body.eva:not(.light) :is(.pred-table,.tier-table,.mi-table,.dc-table,.lh-table,.ranking-table,.inst-table,.compare-table,.ia-table,.ia-lookup-table,.hy-arb-table,.kr-tab,.sc-table,.bt-table,.risk-table,.cn-data-table,.uscorp-table,.uslist-table,.crypto-table,.hkfunds-table,.hkcomplex-legal-table,.info-table,.svc-table,.cs-table,.dir-table,.inst-info-table,.fafa-idx table,.fafa-dist table,.financial-table) th{background:#2b1c37;color:#d5bde8;border-color:var(--eva-stroke);padding:10px 12px;line-height:1.5}
html body.eva:not(.light) :is(.pred-table,.tier-table,.mi-table,.dc-table,.lh-table,.ranking-table,.inst-table,.compare-table,.ia-table,.ia-lookup-table,.hy-arb-table,.kr-tab,.sc-table,.bt-table,.risk-table,.cn-data-table,.uscorp-table,.uslist-table,.crypto-table,.hkfunds-table,.hkcomplex-legal-table,.info-table,.svc-table,.cs-table,.dir-table,.inst-info-table,.fafa-idx table,.fafa-dist table,.financial-table) td{border-bottom:1px solid #35273f;padding:10px 12px;line-height:1.65}
html body.eva:not(.light) :is(.pred-table,.tier-table,.mi-table,.dc-table,.lh-table,.ranking-table,.inst-table,.compare-table,.ia-table,.ia-lookup-table,.hy-arb-table,.kr-tab,.sc-table,.bt-table,.risk-table,.cn-data-table,.uscorp-table,.uslist-table,.crypto-table,.hkfunds-table,.hkcomplex-legal-table,.info-table,.svc-table,.cs-table,.dir-table,.inst-info-table,.fafa-idx table,.fafa-dist table,.financial-table) tbody tr:hover td, html body.eva:not(.light) :is(.pred-table,.tier-table,.mi-table,.dc-table,.lh-table,.ranking-table,.inst-table,.compare-table,.ia-table,.ia-lookup-table,.hy-arb-table,.kr-tab,.sc-table,.bt-table,.risk-table,.cn-data-table,.uscorp-table,.uslist-table,.crypto-table,.hkfunds-table,.hkcomplex-legal-table,.info-table,.svc-table,.cs-table,.dir-table,.inst-info-table,.fafa-idx table,.fafa-dist table,.financial-table) tbody tr:focus-within td{background:#2c1d39}
html body.eva:not(.light) :is(.kr-details,.ia-rules details,.margin-box){background:var(--eva-surface);border:1px solid var(--eva-stroke);border-radius:0}
html body.eva:not(.light) :is(.kr-details,.ia-rules details,.margin-box)>summary{min-height:44px;box-sizing:border-box;padding:12px 14px;color:var(--eva-label)}
html body.eva:not(.light) :is(.kr-details,.ia-rules details,.margin-box)[open]>summary{color:var(--eva-selected);border-bottom:1px solid var(--eva-stroke)}
html body.eva:not(.light) :is(.fafa-metric .label,.bt-card .l,.stat-card .lbl,.mi-stat-label,.mi-stat-sub,.dc-stat .l,.lh-stat .l,.sc-card .l){color:var(--eva-label);font-size:12px;line-height:1.6}
html body.eva:not(.light) :is(.fafa-metric .value,.bt-card .n){color:var(--eva-ink);font-variant-numeric:tabular-nums}
html body.eva:not(.light) .fafa-badge{border-radius:0;padding:4px 8px;font-weight:600}
html body.eva:not(.light) .fafa-badge.active{background:#25301b;color:var(--eva-selected);border:1px solid #739c38}
html body.eva:not(.light) .fafa-badge.allotted{background:#382347;color:#d5bde8;border:1px solid var(--eva-edge)}
html body.eva:not(.light) .fafa-badge.expired{background:#44384f;color:#e7d7f4;border:1px solid var(--eva-stroke)}
html body.eva:not(.light) .bt-grid{gap:10px}
html body.eva:not(.light) .bt-card{min-width:0;flex-basis:180px}
html body.eva:not(.light) .pred-summary{gap:10px;background:transparent;border:0}
html body.eva:not(.light) :is(.pred-summary .pred-card,.bt-card,.sc-card,.fafa-metric,.stat-card,.mi-stat-card,.dc-stat,.lh-stat,.ia-stat,.inst-card,.kr-kpi,.ss-card){padding:16px 18px}
@media(max-width:768px){body.eva:not(.light){--eva-control-height:44px}}

/* Dynamic data-center content uses the same component families after loading. */
html body.eva:not(.light) :is(.screening-stat-card,.uscorp-stat-card,.crypto-stat-card,.hkfunds-stat-card) :is(.stat-label,.label){color:var(--eva-label)}
html body.eva:not(.light) :is(.macro-detail-chart,.uscorp-chart,.chain-chart-container){background:var(--eva-surface);border:1px solid var(--eva-stroke);border-top:3px solid var(--eva-edge);border-radius:0}
html body.eva:not(.light) :is(.uscorp-table-wrapper,.uslist-table-wrapper,.crypto-table-wrapper,.hkfunds-table-wrapper){border-radius:0;border-color:var(--eva-stroke);scrollbar-color:var(--eva-edge) var(--eva-table-surface)}
html body.eva:not(.light) :is(.cn-flow-positive,.cn-sentiment-score.bull){color:var(--eva-up)}
html body.eva:not(.light) :is(.cn-flow-negative,.cn-sentiment-score.bear){color:var(--eva-down)}
html body.eva:not(.light) .cn-sentiment-gauge{background:linear-gradient(to right,var(--eva-down),#93859f,var(--eva-up))}
html body.eva:not(.light) :is(.uscorp-detail-modal,.hkfund-detail-panel){background:var(--eva-surface);border:1px solid var(--eva-edge);border-top:3px solid var(--eva-edge);border-radius:0;color:var(--eva-ink)}
html body.eva:not(.light) :is(.uscorp-detail-close,.hkfund-detail-close){min-width:44px;min-height:44px;color:var(--eva-label);border:1px solid var(--eva-stroke);background:var(--eva-surface-hover);border-radius:0}
html body.eva:not(.light) :is(.macro-tag-card,.macro-indicator-item,.hktemplate-card):hover{border-color:var(--eva-selected);background:var(--eva-surface-hover);box-shadow:none}
@media(max-width:768px){html body.eva:not(.light) .cn-data-table{display:block;max-width:100%;overflow-x:auto}html body.eva:not(.light) .cn-data-table th{white-space:nowrap}}
html body.eva:not(.light) .screening-search-box input{min-width:0;width:0;border-radius:0;border:1px solid var(--eva-stroke);background:var(--eva-field);color:var(--eva-ink)}
html body.eva:not(.light) :is(.screening-search-box button,.ia-lookup-btn,.uscorp-detail-link){min-height:var(--eva-control-height);border:1px solid var(--eva-selected);border-radius:0;background:var(--eva-selected);color:var(--eva-selected-ink);font-weight:700;padding:10px 16px}
html body.eva:not(.light) :is(.screening-search-box button,.ia-lookup-btn,.uscorp-detail-link):disabled{background:#19151f;border-color:#3b2e47;color:#93859f;opacity:1;cursor:not-allowed}
html body.eva:not(.light) .uscorp-charts{grid-template-columns:repeat(2,minmax(0,1fr))}
html body.eva:not(.light) :is(.uscorp-chart,.chain-chart-container){min-width:0;max-width:100%;box-sizing:border-box}
html body.eva:not(.light) :is(.hkfund-detail-panel,.uscorp-detail-modal){box-sizing:border-box;max-width:100vw}
@media(max-width:1024px){html body.eva:not(.light) .uscorp-charts{grid-template-columns:minmax(0,1fr)}}
html body.eva:not(.light) :is(.macro-intro,.crypto-intro,.macro-usage-hint,.note-callout){background:var(--eva-surface);border:1px solid var(--eva-stroke);border-left:3px solid var(--eva-edge);border-radius:0;padding:12px 16px;color:var(--eva-label);line-height:1.8}
html body.eva:not(.light) :is(.screening-stat-card,.uscorp-stat-card,.crypto-stat-card,.hkfunds-stat-card){min-width:0;flex:1 1 180px;box-sizing:border-box;overflow-wrap:anywhere}
html body.eva:not(.light) .screening-stat-card span{display:inline-block;max-width:100%}

html body.eva:not(.light) .uscorp-detail-link{display:inline-flex;align-items:center;box-sizing:border-box}
html body.eva:not(.light) .uscorp-detail-desc{background:var(--eva-surface-hover);color:var(--eva-label);border-radius:0}

html body.eva:not(.light) .macro-search{flex-wrap:wrap}
html body.eva:not(.light) .macro-search input{flex:1 1 100%;width:100%}
html body.eva:not(.light) .macro-search .macro-usage-hint{flex:1 1 100%;box-sizing:border-box;margin:0}

/* Cibo armor system: expressive shell / working controls / quiet instruments. */
body.eva:not(.light){--eva-armor-face:#7950b8;--eva-armor-light:#b08ce1;--eva-armor-shadow:#3d245f;--eva-joint:#0c0b10;--eva-marker:#f0a35b}

/* The masthead is a large cel-shaded armor plane, not another content card. */
html body.eva:not(.light) .hdr{background:linear-gradient(116deg,#7950b8 0 45%,#583483 45% 62%,#271d36 62% 64%,#100d17 64%);border-top:6px solid #b08ce1;box-shadow:inset 0 5px #3d245f}
html body.eva:not(.light) .hdr h1{color:#fff;font-weight:900;text-shadow:1px 2px #3d245f;letter-spacing:-.015em}
html body.eva:not(.light) .hdr .sub,html body.eva:not(.light) .hdr h1 .desc{color:#f0e3ff}
html body.eva:not(.light) .hdr-inner::before{color:#baa0d5}
html body.eva:not(.light) .hdr::after{height:8px;background:linear-gradient(90deg,#b08ce1 0 18%,#7950b8 18% 57%,#0c0b10 57% 59%,#b6f34c 59% 79%,#0c0b10 79% 81%,#f0a35b 81% 85%,#3d245f 85%);box-shadow:0 4px #0c0b10}
html body.eva:not(.light) .hdr-actions{background:#100d17d9;padding:8px 12px;border-left:3px solid #b08ce1}

/* Major headings are joined plates: numbered identity, thick shoulder, open reading space. */
html body.eva:not(.light) :is(.section-title,.mi-section-header h2,.hy-section-header,.kr-chart-section h2,.ia-section-title,.fm-section-title,.macro-group-title,.inst-section h2,.section h2,.gl-h2,.bt-h3){position:relative;padding:13px 42px 13px 18px;border:0;border-left:6px solid #b08ce1;border-bottom:3px solid #7950b8;background:linear-gradient(116deg,#583483 0 72%,#3d245f 72% 77%,#17111f 77%);box-shadow:inset 0 2px #b08ce155;color:#fff;font-weight:750;letter-spacing:.025em}
html body.eva:not(.light) :is(.section-title,.mi-section-header h2,.hy-section-header,.kr-chart-section h2,.ia-section-title,.fm-section-title,.macro-group-title,.inst-section h2,.section h2,.gl-h2,.bt-h3)::after{content:'';position:absolute;right:12px;top:50%;width:18px;height:10px;transform:translateY(-50%) skew(-25deg);background:#f0a35b;box-shadow:-6px 0 #17111f;pointer-events:none}

/* Telemetry: dark recess and a structural violet shoulder. Large values have room to breathe. */
html body.eva:not(.light) :is(.fafa-metrics .fafa-metric,.pred-card,.stat-card,.mi-stat-card,.dc-stat,.lh-stat,.ia-stat,.inst-card,.sc-card,.bt-card,.ss-card,.kr-kpi,.sc,.screening-stat-card,.uscorp-stat-card,.crypto-stat-card,.hkfunds-stat-card,.macro-tag-card,.kr-metric-cell){background-color:#141019;background-image:linear-gradient(135deg,#b08ce1 0 10px,transparent 10px),linear-gradient(135deg,transparent calc(100% - 18px),#583483 calc(100% - 18px));background-repeat:no-repeat;background-size:100% 100%;border:1px solid #7950b8;border-top:7px solid #7950b8;border-bottom:3px solid #3d245f;box-shadow:inset 0 3px #0c0b10,inset 4px 0 #3d245f;padding:20px 20px 22px;text-align:left}
html body.eva:not(.light) :is(.pred-card .n,.stat-card .val,.mi-stat-value,.dc-stat .n,.lh-stat .n,.ia-stat .n,.sc-card .n,.bt-card .n,.ss-num,.kr-kpi-v,.fafa-metric .value,.macro-tag-card .tag-count){font-family:var(--font-mono);font-size:clamp(25px,2.4vw,36px);line-height:1.25;letter-spacing:-.06em;font-weight:750;text-shadow:none}
html body.eva:not(.light) :is(.stat-card .lbl,.mi-stat-label,.dc-stat .l,.lh-stat .l,.sc-card .l,.fafa-metric .label,.macro-tag-card .tag-name){color:#d2bedf;line-height:1.6;letter-spacing:.04em}

/* Working areas are purple armor. Charts retain black glass rather than sharing the statistic-card face. */
html body.eva:not(.light) :is(.pred-controls.pred-controls,.sc-control,.ia-lookup){background:linear-gradient(116deg,#3d245f 0 76%,#2a1b3c 76%);border:2px solid #7950b8;border-top:8px solid #b08ce1;box-shadow:inset 5px 0 #7950b8,inset 0 3px #0c0b10}
html body.eva:not(.light) :is(.pred-control label,.sc-control label){color:#f0e3ff}
html body.eva:not(.light) :is(.cc,.pred-chart-box,.mi-chart-box,.chart-card,.kr-panel,.compare-charts .cb-wrap,.market-overview-charts .chart-box,.macro-detail-chart,.uscorp-chart,.chain-chart-container){background:#100d15;border:1px solid #7950b8;border-top:5px solid #583483;box-shadow:inset 0 3px #0c0b10,inset 3px 0 #271b35}

/* A live IPO is an active panel, visually distinct from the archive. */
html body.eva:not(.light) #prelistGrid .recent-card{background:linear-gradient(115deg,#3d245f 0 62%,#21162c 62%);border:2px solid #7950b8;border-top:8px solid #b08ce1;box-shadow:inset 6px 0 #b6f34c;padding-left:26px}
html body.eva:not(.light) #prelistGrid .rc-name{font-size:24px;color:#fff}
html body.eva:not(.light) #recentGrid .recent-card{background:#141019;border-top:4px solid #583483;box-shadow:none}

/* Chosen controls expose a bright insert and a hard lower shadow; idle controls remain recessed. */
html body.eva:not(.light) :is(.dc-tab,.lh-tab,.rank-tab,.ia-tab-btn,.hy-ccy-btn,.fin-ccy-btn,.kr-btn,.kr-micro-tab,.macro-cat-tab,.md-sub-tab,.blog-tags .tag-btn,.notes-tags .tag-pill,.cn-view-subtab,.hkfund-detail-tab,.hkfunds-quick-chip,.chain-chart-toggle){border-color:#7950b8;box-shadow:inset 0 -3px #0c0b10;background-image:linear-gradient(135deg,#7950b855 0 5px,transparent 5px)}
html body.eva:not(.light) :is(.dc-tab,.lh-tab,.rank-tab,.ia-tab-btn,.hy-ccy-btn,.fin-ccy-btn,.kr-btn,.kr-micro-tab,.macro-cat-tab,.md-sub-tab,.blog-tags .tag-btn,.notes-tags .tag-pill,.cn-view-subtab,.hkfund-detail-tab,.hkfunds-quick-chip,.chain-chart-toggle):is(.active,.is-active,.on,[aria-selected=true],[aria-pressed=true]){background-color:#b6f34c;background-image:linear-gradient(135deg,transparent calc(100% - 9px),#17111f calc(100% - 9px));color:#17111f;border-color:#b6f34c;box-shadow:inset 0 -4px #638a21,inset 0 2px #e5ffab}
html body.eva:not(.light) :is(.macro-tag-card,.macro-indicator-item,.hktemplate-card,.recent-card,.fm-card,.mi-hub-card,.blog-card,.note-card):hover{border-color:#b6f34c;box-shadow:inset 4px 0 #b6f34c}
@media(min-width:1024px){html body.eva:not(.light) .hdr h1{font-size:42px}html body.eva:not(.light) .hdr-inner{min-height:214px}}
@media(max-width:768px){html body.eva:not(.light) .hdr{background:linear-gradient(116deg,#7950b8 0 48%,#583483 48% 70%,#100d17 70%)}html body.eva:not(.light) .hdr-actions{padding:6px 8px}html body.eva:not(.light) :is(.pred-card,.stat-card,.mi-stat-card,.dc-stat,.lh-stat,.ia-stat,.inst-card,.sc-card,.bt-card,.ss-card,.kr-kpi,.fafa-metric,.macro-tag-card){padding:16px 16px 20px}html body.eva:not(.light) #prelistGrid .rc-name{font-size:21px}}
html body.eva:not(.light) .hdr-inner>a:has(>.logo){display:inline-block;background:#100d17;padding:6px 10px;border-left:3px solid #b08ce1}
html body.eva:not(.light) .hdr-inner>a:has(>.logo) .logo{margin:0;vertical-align:middle}

/* Dispatches and reading surfaces: armor at the edges, uninterrupted text inside. */
html body.eva:not(.light) :is(.blog-card,.note-card,.endpoint-card,.gl-dl>div){background:#141019;border:1px solid #7950b8;border-top:6px solid #7950b8;border-radius:0;box-shadow:inset 0 3px #0c0b10}
html body.eva:not(.light) :is(.blog-card,.note-card):is(:hover,:focus-visible){background:#21162c;border-color:#b6f34c;box-shadow:inset 4px 0 #b6f34c;transform:none}
html body.eva:not(.light) .blog-card-img{border-bottom:3px solid #583483;border-radius:0}
html body.eva:not(.light) .note-card-footer{background:#21162c;border-top:3px solid #583483;padding:12px}
html body.eva:not(.light) :is(.fn-article-head,.blog-post-header){padding:20px 24px;background:linear-gradient(116deg,#3d245f 0 78%,#21162c 78%);border:1px solid #7950b8;border-top:7px solid #b08ce1;box-shadow:inset 4px 0 #7950b8}
html body.eva:not(.light) :is(.fn-article-title,.blog-post-header h2){color:#fff;line-height:1.55;overflow-wrap:anywhere}
html body.eva:not(.light) :is(.blog-post-content h2,.api-docs-content h2,.fin-statement-title,.fm-content .fin-statement-title){padding:13px 42px 13px 18px;border:0;border-left:6px solid #b08ce1;border-bottom:3px solid #7950b8;background:linear-gradient(116deg,#583483 0 72%,#3d245f 72% 77%,#17111f 77%);color:#fff;line-height:1.6}
html body.eva:not(.light) :is(.blog-post-content blockquote,.gl-dl>div){border-left:4px solid #7950b8;color:#dfd3e9;background:#17111f}
html body.eva:not(.light) .gl-dl dt{color:#b6f34c;font-family:var(--font-mono);letter-spacing:.06em}
html body.eva:not(.light) .fn-timeline{padding-left:12px;border-left:2px solid #583483}
html body.eva:not(.light) .fn-item{position:relative;margin-bottom:12px;padding:18px;background:#141019;border:1px solid #61417a;border-top:4px solid #583483;box-shadow:inset 3px 0 #271b35}
html body.eva:not(.light) .fn-item::before{content:'';position:absolute;left:-18px;top:20px;width:8px;height:8px;background:#b08ce1;border:1px solid #0c0b10;box-shadow:0 0 0 3px #0c0b10;pointer-events:none}
html body.eva:not(.light) .fn-item:is(:hover,:focus-within){border-color:#9368bd;background:#21162c;box-shadow:inset 3px 0 #b6f34c}
html body.eva:not(.light) .fn-item:is(:hover,:focus-within)::before{background:#b6f34c}
html body.eva:not(.light) .fn-item .fn-date{color:#c5b7d2;font-variant-numeric:tabular-nums}
html body.eva:not(.light) .fn-badge{background:#3d245f;color:#eee3f7;border:1px solid #9368bd;border-radius:0;box-shadow:inset 0 -2px #271b35;padding:5px 8px}
html body.eva:not(.light) .fn-badge:is(.ipo_launch,.listing,.resumption){background:#b6f34c;color:#17111f;border-color:#b6f34c;box-shadow:inset 0 -2px #638a21}
html body.eva:not(.light) .fn-badge:is(.suspension,.listing_hearing){background:#3b291e;color:#ffc28a;border-color:#b27b46}
html body.eva:not(.light) .fn-rows{background:#100d15;border:1px solid #61417a;border-left:4px solid #7950b8;border-radius:0;padding:12px 16px}
html body.eva:not(.light) .fn-row{padding:8px 0;border-bottom:1px solid #35273f;gap:16px}
html body.eva:not(.light) .fn-row:last-child{border-bottom:0}
html body.eva:not(.light) .fn-row-value{overflow-wrap:anywhere;color:#eee3f7}
html body.eva:not(.light) :is(.fn-more,.fn-back,.blog-back,.gl-term-list li a,.gl-related li a,.fn-article-related a){display:inline-flex;align-items:center;box-sizing:border-box;min-height:40px;padding:7px 12px;border:1px solid #61417a;background:#21162c;color:#d5bde8;text-decoration:none}
html body.eva:not(.light) :is(.fn-more,.fn-back,.blog-back,.gl-term-list li a,.gl-related li a,.fn-article-related a):is(:hover,:focus-visible){border-color:#b6f34c;color:#b6f34c;background:#382347}

/* API reference: the header operates the panel; examples read as recessed terminals. */
html body.eva:not(.light) .endpoint-header{background:linear-gradient(116deg,#3d245f 0 82%,#21162c 82%);border-bottom:1px solid #7950b8;min-height:52px;box-sizing:border-box}
html body.eva:not(.light) .endpoint-header:is(:hover,:focus-visible){background:#583483;box-shadow:inset 4px 0 #b6f34c}
html body.eva:not(.light) .endpoint-card.collapsed .endpoint-header{background:#21162c;border-bottom:0}
html body.eva:not(.light) .endpoint-card .method-badge{background:#b6f34c;color:#17111f;border:1px solid #b6f34c;border-radius:0}
html body.eva:not(.light) :is(.endpoint-card code.block,.blog-post-content pre){background:#0c0b10;border:1px solid #61417a;border-left:4px solid #583483;border-radius:0;color:#dfd3e9}
html body.eva:not(.light) .params-table th{background:#2b1c37;color:#d5bde8;border-color:#61417a}
html body.eva:not(.light) .params-table td{border-color:#35273f;color:#eee3f7}
html body.eva:not(.light) .params-table tbody tr:hover{background:#2c1d39}
@media(max-width:768px){html body.eva:not(.light) :is(.fn-article-head,.blog-post-header){padding:16px}html body.eva:not(.light) .fn-item{padding:14px}html body.eva:not(.light) .fn-item>.fn-date{flex-direction:row;gap:8px}html body.eva:not(.light) .fn-item>.fn-badge{justify-self:start}html body.eva:not(.light) :is(.fn-more,.fn-back,.blog-back,.gl-term-list li a,.gl-related li a,.fn-article-related a){min-height:44px}}
/* Long mobile titles must not run under the retained panda mark. */
@media(max-width:768px){html body.eva:not(.light) .hdr h1{box-sizing:border-box;max-width:100%;padding-right:112px}html body.eva:not(.light) .hdr .sub{max-width:calc(100% - 112px)}}

/* Market directories and institution dossiers share shell, console and instrument roles. */
html body.eva:not(.light) .inst-header{background:linear-gradient(116deg,#3d245f 0 76%,#21162c 76%);border:1px solid #7950b8;border-top:7px solid #b08ce1;box-shadow:inset 4px 0 #7950b8;padding:24px}
html body.eva:not(.light) :is(.inst-logo,.inst-logo-placeholder){border-radius:0;border:1px solid #9368bd;border-bottom:4px solid #583483;background:#100d15}
html body.eva:not(.light) .inst-header .badge{border-radius:0;line-height:1.6}
html body.eva:not(.light) .inst-title h1{color:#fff;line-height:1.45}
html body.eva:not(.light) .inst-title .en{color:#d2bedf}
html body.eva:not(.light) .inst-card .val{font-family:var(--font-mono);font-size:clamp(25px,2.4vw,36px);line-height:1.25;letter-spacing:-.04em}
html body.eva:not(.light) :is(.chart-grid .chart-box,.section .chart-box,.inst-card:has(.cb),.inst-section>.cb){background:#100d15;border:1px solid #7950b8;border-top:5px solid #583483;border-radius:0;box-shadow:inset 0 3px #0c0b10,inset 3px 0 #271b35}
html body.eva:not(.light) :is(.chart-grid .chart-box h3,.market-overview-charts .chart-box h3,.inst-card:has(.cb)>h3,.chart-card .chart-title){padding:8px 12px 10px;border-left:3px solid #b08ce1;border-bottom:1px solid #583483;color:#eee3f7;background:linear-gradient(116deg,#271b35 0 78%,#100d15 78%);line-height:1.6}
html body.eva:not(.light) :is(.table-controls,.inst-wrap .search-input){border:1px solid #7950b8;border-left:5px solid #b08ce1;background:#21162c;box-sizing:border-box}
html body.eva:not(.light) .table-controls{padding:14px;gap:12px;box-shadow:inset 0 3px #3d245f}
html body.eva:not(.light) .table-controls :is(.table-search,.sort-select){min-width:0;max-width:100%;background:#100d15;border-color:#7950b8}
html body.eva:not(.light) .table-controls .table-search{flex:1 1 200px}
html body.eva:not(.light) .table-controls:focus-within{border-left-color:#b6f34c}
html body.eva:not(.light) .inst-table-wrap{background:#100d15;border:1px solid #7950b8;border-top:5px solid #583483;scrollbar-color:#9368bd #17111f}
html body.eva:not(.light) .inst-info-table td:first-child{background:#2b1c37;color:#d5bde8}
html body.eva:not(.light) .fm-card{background:linear-gradient(135deg,#b08ce1 0 8px,transparent 8px),linear-gradient(135deg,transparent calc(100% - 16px),#583483 calc(100% - 16px)),#141019;border:1px solid #7950b8;border-top:6px solid #7950b8;border-radius:0;padding:18px 20px;gap:10px;box-shadow:inset 0 3px #0c0b10}
html body.eva:not(.light) .fm-card-name{color:#eee3f7;font-size:16px;line-height:1.6}
html body.eva:not(.light) .fm-card-code{font-family:var(--font-mono);color:#b6f34c;letter-spacing:.08em}
html body.eva:not(.light) .fm-card-meta{color:#c5b7d2;border-top:1px solid #35273f;padding-top:8px}
html body.eva:not(.light) .fm-card:is(:hover,:focus-visible){background-color:#21162c;border-color:#b6f34c;box-shadow:inset 4px 0 #b6f34c}
html body.eva:not(.light) :is(.dc-conclusion,.fin-source-note){border:1px solid #61417a;border-left:4px solid #7950b8;background:#17111f;color:#c5b7d2;padding:14px 18px;border-radius:0;line-height:1.8}
@media(max-width:768px){html body.eva:not(.light) .inst-header{padding:18px;text-align:left;align-items:flex-start}html body.eva:not(.light) .table-controls .sort-select{flex:1 1 160px}html body.eva:not(.light) .fm-card{padding:16px 18px}}

html body.eva:not(.light) .pagination button.active{background:#b6f34c;color:#17111f;border-color:#b6f34c;box-shadow:inset 0 -3px #638a21;font-weight:700}

@media(max-width:768px){html body.eva:not(.light) .fm-content .financial-table{min-width:640px}html body.eva:not(.light) .fm-content .financial-table .fin-item-col{position:sticky;left:0;min-width:112px;max-width:160px;z-index:1;background:#2b1c37;box-shadow:2px 0 #61417a;white-space:normal}html body.eva:not(.light) .fm-content .financial-table .num{min-width:96px;white-space:nowrap}html body.eva:not(.light) .fm-content .fin-statement{scrollbar-color:#9368bd #17111f}}
@media(max-width:768px){html body.eva:not(.light) .fm-content .fin-statement-title{position:sticky;left:0;box-sizing:border-box;width:100%;z-index:2}}

/* Allotment results and holder portraits: overview, chapters, instruments and evidence. */
html body.eva:not(.light) :is(.sb,.g){gap:12px;background:transparent}
html body.eva:not(.light) .sb{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));padding-top:16px;padding-bottom:20px}
html body.eva:not(.light) .sb .sc{margin:0;min-width:0}
html body.eva:not(.light) .sb .sc .n{font-family:var(--font-mono);font-size:clamp(24px,2.3vw,34px);font-weight:750;line-height:1.25;letter-spacing:-.04em;text-shadow:none;overflow-wrap:anywhere;color:#eee3f7}
html body.eva:not(.light) .sb .sc:first-child .n{color:#b6f34c}
html body.eva:not(.light) .sb .sc .l{font-size:12px;letter-spacing:.02em;line-height:1.65;color:#c5b7d2;margin-top:10px}
html body.eva:not(.light) .sc::before,html body.eva:not(.light) .sc .l::before,html body.eva:not(.light) .cc::before,html body.eva:not(.light) .cc::after,html body.eva:not(.light) .cc h3::before,html body.eva:not(.light) .cc h3::after{content:none}
html body.eva:not(.light) :is(.ov-hdr,.sec-label){box-sizing:border-box;margin:20px auto 14px;width:calc(100% - 80px);max-width:1320px;padding:14px 18px;border-left:6px solid #b08ce1;border-bottom:3px solid #7950b8;background:linear-gradient(116deg,#583483 0 72%,#3d245f 72% 77%,#17111f 77%);color:#eee3f7;font-size:13px;line-height:1.7;letter-spacing:.06em}
html body.eva:not(.light) .sep{height:12px;font-size:0;background:transparent}
html body.eva:not(.light) .g .cc>h3{padding:10px 14px;margin-bottom:14px;border-left:3px solid #b08ce1;border-bottom:1px solid #583483;background:linear-gradient(116deg,#271b35 0 78%,#100d15 78%);font-size:15px;line-height:1.6;letter-spacing:.02em;color:#eee3f7}
html body.eva:not(.light) .g .cc>.note{background:#17111f;border:0;border-left:3px solid #583483;color:#c5b7d2;padding:12px 14px;font-size:12px;line-height:1.85}
html body.eva:not(.light) #fee-ratio-box{background:linear-gradient(116deg,#3d245f 0 76%,#21162c 76%);border-top:7px solid #b08ce1}
html body.eva:not(.light) #fee-val{font-family:var(--font-mono);color:#b6f34c;font-size:40px;line-height:1.5}
html body.eva:not(.light) :is(.realloc-callout,.anomaly-note){background:#30231c;border:1px solid #996c44;border-left:4px solid #f0a35b;color:#ffd4ac}
html body.eva:not(.light) :is(.toggle-btn,.tiers-toggle){min-height:44px;border:1px solid #9368bd;border-left:4px solid #b08ce1;background:#3d245f;color:#eee3f7;padding:10px 16px;box-sizing:border-box;line-height:1.5}
html body.eva:not(.light) :is(.toggle-btn,.tiers-toggle):is(:hover,:focus-visible){border-color:#b6f34c;background:#583483;color:#fff}
html body.eva:not(.light) :is(.intl-table,.tc table){background:#17111f;border:1px solid #61417a;font-variant-numeric:tabular-nums}
html body.eva:not(.light) :is(.intl-table,.tc table) th{background:#2b1c37;color:#d5bde8;padding:10px 12px;border-bottom:1px solid #7950b8;letter-spacing:.02em}
html body.eva:not(.light) :is(.intl-table,.tc table) td{color:#eee3f7;padding:10px 12px;border-bottom:1px solid #35273f;line-height:1.65}
html body.eva:not(.light) :is(.intl-table,.tc table) tbody tr:is(:hover,:focus-within){background:#2c1d39}
html body.eva:not(.light) .tier-table tbody tr.tier-low{background:#232c1c}
html body.eva:not(.light) .tier-table tbody tr.tier-high{background:#30203f}
html body.eva:not(.light) .tc{background:#100d15;border:1px solid #7950b8;border-top:5px solid #583483}
html body.eva:not(.light) .cc .tc{margin:12px 0 0;padding:12px;border:0;background:#21162c}
html body.eva:not(.light) .cc .tc::before{content:none}
html body.eva:not(.light) .eva-analysis-jump{position:sticky;top:0;z-index:15;display:flex;align-items:center;gap:16px;box-sizing:border-box;width:calc(100% - 80px);max-width:1320px;margin:18px auto;padding:10px 16px;border:1px solid #7950b8;border-left:5px solid #b6f34c;background:#17111ff5;box-shadow:0 4px #0c0b10}
html body.eva:not(.light) .eva-analysis-jump label{color:#c5b7d2;font-size:12px;white-space:nowrap}
html body.eva:not(.light) .eva-analysis-jump select{flex:1;min-width:0;padding:8px 12px}
html body.eva:not(.light) :is(.ov-hdr,.sec-label){scroll-margin-top:86px}
@media(max-width:768px){html body.eva:not(.light) .sb{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}html body.eva:not(.light) .sb .sc{padding:16px 14px}html body.eva:not(.light) .sb .sc .n{font-size:25px}html body.eva:not(.light) :is(.ov-hdr,.sec-label,.eva-analysis-jump){width:calc(100% - 32px)}html body.eva:not(.light) .eva-analysis-jump{padding:8px 10px;gap:10px}html body.eva:not(.light) .g .cc>h3{font-size:14px}html body.eva:not(.light) .intl-table-wrap{overflow-x:auto}html body.eva:not(.light) .intl-table{min-width:620px}html body.eva:not(.light) #T{overflow-x:auto}html body.eva:not(.light) #T table{min-width:540px;table-layout:auto}}

/* The result overview separates subscription scale from the A/B allocation outcome. */
html body.eva:not(.light):has(#tierToggleBtn) #S{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
html body.eva:not(.light):has(#tierToggleBtn) #S .sc{padding:22px 24px;display:flex;flex-direction:column-reverse;justify-content:space-between;gap:12px}
html body.eva:not(.light):has(#tierToggleBtn) #S .sc .l{margin:0;font-size:13px;letter-spacing:.04em}
html body.eva:not(.light):has(#tierToggleBtn) #S .sc .n{font-size:clamp(26px,2.8vw,38px);color:#eee3f7;white-space:normal}
html body.eva:not(.light):has(#tierToggleBtn) #S:has(>.sc:nth-child(6):last-child) .sc:nth-last-child(-n+2){grid-column:span 2;background:#16131c;border-top:2px solid #583483;border-left:6px solid #c6f34a;box-shadow:inset 0 -5px #27331a}
html body.eva:not(.light):has(#tierToggleBtn) #S:has(>.sc:nth-child(6):last-child) .sc:last-child{border-left-color:#aa70f0;box-shadow:inset 0 -5px #382447}
html body.eva:not(.light):has(#tierToggleBtn) #S:has(>.sc:nth-child(6):last-child) .sc:nth-last-child(2) .n{color:#c6f34a;font-size:44px}
html body.eva:not(.light):has(#tierToggleBtn) #S:has(>.sc:nth-child(6):last-child) .sc:last-child .n{color:#aa70f0;font-size:44px}
html body.eva:not(.light) #intlMetrics{gap:12px;grid-template-columns:repeat(4,minmax(0,1fr))}
html body.eva:not(.light) #intlMetrics .sc{border-top-color:#55d6d0;background:#111b20;box-shadow:inset 0 3px #0c0b10}
html body.eva:not(.light) #intlMetrics .sc .n{color:#e5e8f0}
html body.eva:not(.light) .intl-table-wrap{box-sizing:border-box;padding:0;margin:0 auto 24px;width:calc(100% - 80px);max-width:1320px;overflow-x:auto;border:1px solid #7950b8;border-top:5px solid #7950b8;background:#100d15;scrollbar-color:#aa70f0 #17111f}
html body.eva:not(.light) .intl-table{margin:0;border:0;min-width:720px;table-layout:auto}
html body.eva:not(.light) .intl-table th{padding:16px 20px;background:#30223e;color:#dfd3e9;font-size:12px;white-space:nowrap;border-bottom:2px solid #7950b8}
html body.eva:not(.light) .intl-table td{padding:18px 20px;background:#151119;border-bottom:1px solid #44334f;vertical-align:middle;font-size:14px;line-height:1.7}
html body.eva:not(.light) .intl-table tr:nth-child(even) td{background-color:#1c1624}
html body.eva:not(.light) .intl-table :is(th,td):first-child{position:sticky;left:0;z-index:1;min-width:220px;max-width:360px;white-space:normal;box-shadow:2px 0 #583483;font-weight:600}
html body.eva:not(.light) .intl-table .num{text-align:right;font-family:var(--font-mono);font-variant-numeric:tabular-nums;white-space:nowrap}
html body.eva:not(.light) .intl-table tbody tr:is(:hover,:focus-within) td{background-color:#2b2036}
html body.eva:not(.light) .intl-table .eva-percent{position:relative;min-width:128px;padding-bottom:25px;color:#e5e8f0}
html body.eva:not(.light) .intl-table .eva-percent::after{content:'';position:absolute;left:20px;right:20px;bottom:12px;height:4px;background:linear-gradient(to right,#c6f34a var(--eva-share),#44334f var(--eva-share));pointer-events:none}
html body.eva:not(.light) .intl-table td.eva-empty{color:#94869e}
html body.eva:not(.light) .tier-table tbody tr.tier-low td:first-child{border-left:4px solid #c6f34a}
html body.eva:not(.light) .tier-table tbody tr.tier-high td:first-child{border-left:4px solid #aa70f0}
@media(max-width:768px){html body.eva:not(.light):has(#tierToggleBtn) #S,html body.eva:not(.light) #intlMetrics{grid-template-columns:repeat(2,minmax(0,1fr))}html body.eva:not(.light):has(#tierToggleBtn) #S .sc{padding:16px 14px}html body.eva:not(.light):has(#tierToggleBtn) #S:has(>.sc:nth-child(6):last-child) .sc:nth-last-child(-n+2){grid-column:span 1}html body.eva:not(.light):has(#tierToggleBtn) #S .sc .n{font-size:26px}html body.eva:not(.light) .intl-table-wrap{width:calc(100% - 32px)}html body.eva:not(.light) .intl-table :is(th,td):first-child{min-width:132px;max-width:168px}html body.eva:not(.light) .intl-table :is(th,td){padding-left:14px;padding-right:14px}}
html body.eva:not(.light) .eva-ab-key{display:flex;gap:24px;padding:2px 14px 12px;color:#dce0e8;font:600 12px/1.6 var(--font-cn)}
html body.eva:not(.light) .eva-ab-key span{display:inline-flex;align-items:center;gap:8px}
html body.eva:not(.light) .eva-ab-key span::before{content:'';width:18px;height:8px;background:#c6f34a}
html body.eva:not(.light) .eva-ab-key .pool-b::before{background:#aa70f0}
/* Small screens show each placement as a labelled record instead of a clipped wide row. */
@media(max-width:600px){
html body.eva:not(.light) .intl-table{width:100%;min-width:0;table-layout:auto}
html body.eva:not(.light) .intl-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html body.eva:not(.light) .intl-table tbody{display:block}
html body.eva:not(.light) .intl-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:4px solid #583483}
html body.eva:not(.light) .intl-table td{display:block;box-sizing:border-box;min-width:0!important;max-width:none!important;white-space:normal;overflow-wrap:anywhere;padding:14px;text-align:left;border-bottom:1px solid #44334f}
html body.eva:not(.light) .intl-table td:first-child{position:static;grid-column:1/-1;width:auto;box-shadow:none;background:#30223e}
html body.eva:not(.light) .intl-table td::before{content:attr(data-eva-label);display:block;color:#b9adc5;font:400 11px/1.6 var(--font-cn);margin-bottom:6px}
html body.eva:not(.light) .intl-table .eva-percent{padding-bottom:26px}
html body.eva:not(.light) .intl-table .eva-percent::after{left:14px;right:14px;bottom:10px}
}

/* One masthead grid: identity and actions share a rail; title gets its own row. */
html body.eva:not(.light) .hdr{display:grid;grid-template-columns:minmax(0,1fr) 148px;column-gap:28px;row-gap:12px;padding:20px max(40px,calc((100% - 1320px)/2)) 24px;background:linear-gradient(116deg,#674292 0 60%,#492965 60% 76%,#2b1b3c 76%);border-top:4px solid #ba96e3;box-shadow:none;position:relative}
html body.eva:not(.light) .hdr-inner{display:contents;min-height:0;padding:0;overflow:visible}
html body.eva:not(.light) .hdr-inner>a:has(>.logo){grid-row:1;grid-column:1;justify-self:start;align-self:center;display:flex;align-items:center;height:44px;box-sizing:border-box;padding:0 12px;background:transparent;border:0}
html body.eva:not(.light) .hdr-inner::before{grid-row:1;grid-column:1;position:static;align-self:center;justify-self:start;margin-left:104px;writing-mode:horizontal-tb;color:#dac8ec;font-size:10px;letter-spacing:.12em}
html body.eva:not(.light) .hdr-actions{grid-row:1;grid-column:1/-1;position:relative;top:auto;right:auto;left:auto;justify-self:end;align-self:center;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px;margin:0 0 0 205px;padding:0;min-height:44px;max-width:calc(100% - 205px);background:none;border:0;z-index:5}
html body.eva:not(.light) .hdr-actions :is(button,.theme-btn,.hdr-lang-btn){min-height:36px;box-sizing:border-box;padding:8px 12px;line-height:1.2;font-size:11px}
html body.eva:not(.light) .hdr h1{grid-row:2;grid-column:1;display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 12px;margin:22px 0 0;padding:0;max-width:100%;min-width:0;font-size:36px;line-height:1.3;letter-spacing:0;text-shadow:none;color:#fff}
html body.eva:not(.light) .hdr h1 .cn{letter-spacing:0;margin:0}
html body.eva:not(.light) .hdr h1 .desc{flex-basis:100%;font:500 15px/1.6 var(--font-cn);letter-spacing:.08em;color:#ecdcfa}
html body.eva:not(.light) .hdr .sub{grid-row:3;grid-column:1;max-width:100%;margin:0;padding:0;font-size:12px;line-height:1.8;color:#d8c5e9;letter-spacing:.03em}
html body.eva:not(.light) .hdr-inner::after{grid-row:2/4;grid-column:2;position:static;align-self:center;justify-self:center;width:120px;height:100px;margin:16px 0 0;background-size:contain}
html body.eva:not(.light) .hdr-inner .stock-logo-wrap{grid-row:2/4;grid-column:2;position:static;align-self:center;justify-self:center;margin:16px 0 0;float:none}
html body.eva:not(.light) .hdr-inner .stock-logo{width:100px;height:100px;opacity:.8}
html body.eva:not(.light) .hdr::after{height:4px;box-shadow:none;background:linear-gradient(90deg,#7950b8 0 72%,#b6f34c 72% 86%,#17111f 86% 88%,#b08ce1 88%)}
html body.eva:not(.light) .hdr-lang-dropdown{top:calc(100% + 8px);right:0;z-index:20}
@media(max-width:768px){
html body.eva:not(.light) .hdr{grid-template-columns:minmax(0,1fr) 64px;gap:12px 16px;padding:16px 20px 22px;background:linear-gradient(116deg,#674292 0 60%,#492965 60% 82%,#2b1b3c 82%)}
html body.eva:not(.light) .hdr-inner::before{display:none}
html body.eva:not(.light) .hdr-actions{grid-row:2;grid-column:1/-1;justify-self:stretch;justify-content:flex-start;max-width:100%;margin:0;gap:6px;min-height:44px}
html body.eva:not(.light) .hdr-actions :is(button,.theme-btn,.hdr-lang-btn){min-height:40px;padding:8px 9px;font-size:10px}
html body.eva:not(.light) .hdr h1{grid-row:3;grid-column:1/-1;margin:14px 0 0;padding:0;max-width:100%;font-size:27px}
html body.eva:not(.light) .hdr .sub{grid-row:4;grid-column:1/-1;max-width:100%;font-size:11px}
html body.eva:not(.light) .hdr h1 .desc{font-size:14px;letter-spacing:.04em}
html body.eva:not(.light) .hdr-inner::after,html body.eva:not(.light) .hdr-inner .stock-logo-wrap{grid-row:1;grid-column:2;margin:0;align-self:center;justify-self:end}
html body.eva:not(.light) .hdr-inner::after{width:58px;height:44px}
html body.eva:not(.light) .hdr-inner .stock-logo{width:48px;height:44px}
}

html body.eva:not(.light) .hdr-actions :is(.theme-btn,.hdr-lang-btn,[id="authLoginBtn"]){background:rgba(43,27,60,.18);border:1px solid #ad89ca;color:#f4ebff}
html body.eva:not(.light) .hdr-actions .theme-btn.on{background:#b6f34c;border-color:#b6f34c;color:#17111f}
html body.eva:not(.light) .hdr-inner>a:has(>.logo){padding:0}

html body.eva:not(.light) .hdr-inner>a:has(>.logo) .logo-dark{filter:brightness(0) invert(1)}
html body.eva:not(.light) .hdr-actions :is(.theme-btn,.hdr-lang-btn,[id="authLoginBtn"]):hover{background:#8057aa;border-color:#eee1fa;color:#fff}
html body.eva:not(.light) .hdr-actions .theme-btn.on:hover{background:#d4ff78;color:#17111f}
html body.eva:not(.light) .hdr h1{padding-left:18px;border-left:4px solid #c6f34a}
html body.eva:not(.light) .hdr .sub{padding-left:22px}
html body.eva:not(.light) .hdr::after{background:linear-gradient(90deg,#ba96e3 0 60%,#7950b8 60% 76%,#c6f34a 76% 86%,#7950b8 86%)}

/* Compact mobile masthead: brand and all actions share one rail. */
@media(max-width:768px){
html body.eva:not(.light) .hdr{grid-template-columns:44px minmax(0,1fr);gap:8px 10px;padding:10px 16px 14px}
html body.eva:not(.light) .hdr-inner>a:has(>.logo){grid-row:1;grid-column:1;height:40px}
html body.eva:not(.light) .hdr-inner>a:has(>.logo) .logo-dark{width:44px;height:24px;object-fit:cover;object-position:right}
html body.eva:not(.light) .hdr-actions{grid-row:1;grid-column:2;justify-self:end;justify-content:flex-end;flex-wrap:nowrap;min-width:0;max-width:100%;min-height:40px;gap:4px;margin:0}
html body.eva:not(.light) .hdr-actions :is(button,.theme-btn,.hdr-lang-btn){min-height:40px;padding:8px 6px;font-size:10px;letter-spacing:0;white-space:nowrap;flex-shrink:0}
html body.eva:not(.light) .hdr h1{grid-row:2;grid-column:1/-1;margin:6px 0 0;padding-left:12px;font-size:25px;gap:4px 10px;line-height:1.25}
html body.eva:not(.light) .hdr h1 .desc{font-size:13px;line-height:1.5;letter-spacing:0}
html body.eva:not(.light) .hdr .sub{grid-row:3;grid-column:1/-1;padding-left:16px;font-size:10px;line-height:1.5}
html body.eva:not(.light) .hdr-inner::after,html body.eva:not(.light) .hdr-inner .stock-logo-wrap{display:none}
html body.eva:not(.light) .hdr-user-indicator{max-width:60px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(max-width:360px){html body.eva:not(.light) .hdr{column-gap:8px;padding-left:12px;padding-right:12px}html body.eva:not(.light) .hdr-actions{gap:3px}html body.eva:not(.light) .hdr-actions :is(button,.theme-btn,.hdr-lang-btn){font-size:9px;padding:8px 4px}}
@media(max-width:768px){
html body.eva:not(.light) .hdr{row-gap:8px;padding-top:8px;padding-bottom:12px}
html body.eva:not(.light) .hdr h1{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px;font-size:22px;line-height:1.35;padding-left:10px}
html body.eva:not(.light) .hdr h1 .desc{display:inline;font-size:12px;margin-left:8px;line-height:inherit;letter-spacing:0}
html body.eva:not(.light) .hdr h1 .cn{white-space:nowrap}
html body.eva:not(.light) .hdr .sub{display:none}
}
@media(max-width:768px){
html body.eva:not(.light) .hdr{row-gap:5px;padding-top:8px;padding-bottom:10px}
html body.eva:not(.light) .hdr h1{margin-top:2px;font-size:clamp(16px,5vw,22px);line-height:1.3}
html body.eva:not(.light) .hdr h1 .desc{font:inherit;color:inherit;margin-left:6px;letter-spacing:inherit}
html body.eva:not(.light) .hdr .sub{display:block;padding-left:14px;font-size:10px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
@media(max-width:768px){
html body.eva:not(.light) .hdr h1,html body.eva:not(.light) .hdr h1 .cn,html body.eva:not(.light) .hdr .sub{white-space:normal;overflow:visible;text-overflow:clip}
}
/* Keep the stock identity in the compact mobile header as a background watermark. */
@media(max-width:768px){
html body.eva:not(.light) .hdr{isolation:isolate}
html body.eva:not(.light) .hdr-inner .stock-logo-wrap{display:block;position:absolute;right:12px;bottom:7px;margin:0;width:88px;height:72px;z-index:-1;pointer-events:none}
html body.eva:not(.light) .hdr-inner .stock-logo{display:block;width:88px;height:72px;object-fit:contain;opacity:.22}
html body.eva:not(.light) .hdr-inner:not(:has(.stock-logo-wrap))::after{display:block;position:absolute;right:12px;bottom:7px;margin:0;width:88px;height:72px;opacity:.16;z-index:-1;pointer-events:none}
}

/* Compact controls share the mobile identity row without inflating the masthead. */
@media(max-width:768px){
html body.eva:not(.light) .hdr-inner>a:has(>.logo){height:30px}
html body.eva:not(.light) .hdr-actions{min-height:30px}
html body.eva:not(.light) .hdr-actions :is(button,.theme-btn,.hdr-lang-btn){height:30px;min-height:30px;padding:4px 6px;line-height:20px;box-sizing:border-box}
}
@media(max-width:360px){html body.eva:not(.light) .hdr-actions :is(button,.theme-btn,.hdr-lang-btn){padding:4px}}
/* Prediction summary: two compact columns on phones, with complete labels. */
@media(max-width:768px){
html body.eva:not(.light) .pred-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:12px 0}
html body.eva:not(.light) .pred-summary .pred-card{min-width:0;padding:10px 12px;box-sizing:border-box;border-top-width:3px;border-bottom-width:2px}
html body.eva:not(.light) .pred-summary .pred-card .n{font-size:23px;line-height:1.2;letter-spacing:-.03em}
html body.eva:not(.light) .pred-summary .pred-card .l{margin-top:4px;font-size:12px;line-height:1.4;white-space:normal;overflow:visible;text-overflow:clip}
}
/* Group dividers stay readable while comparison data scrolls horizontally. */
@media(max-width:768px){
html body.eva:not(.light) #actualVsPredTable .pred-group-label{position:sticky;left:8px;display:inline-block;padding:0 4px;background:var(--eva-table-surface);z-index:1}
}
/* Aggregate accuracy belongs below the scroll viewport, not among data columns. */
@media(max-width:768px){
html body.eva:not(.light) #avpSummaryRow{display:none}
html body.eva:not(.light) #avpFixedSummary{display:block;padding:8px 10px;border:1px solid var(--eva-stroke);border-top:0;background:var(--eva-table-surface);color:var(--c-sub);font-size:.78rem;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
}
/* Desktop EVA masthead uses the same compact identity/title/subtitle rhythm. */
@media(min-width:769px){
html body.eva:not(.light) .hdr{grid-template-columns:minmax(0,1fr);row-gap:5px;padding-top:10px;padding-bottom:12px;isolation:isolate}
html body.eva:not(.light) .hdr-inner>a:has(>.logo){height:30px}
html body.eva:not(.light) .hdr-actions{grid-column:1;min-height:30px;flex-wrap:nowrap}
html body.eva:not(.light) .hdr-actions :is(button,.theme-btn,.hdr-lang-btn){height:30px;min-height:30px;padding:4px 10px;line-height:20px;box-sizing:border-box}
html body.eva:not(.light) .hdr h1{display:block;grid-column:1;margin-top:2px;padding-left:10px;font-size:28px;line-height:1.3;white-space:normal;overflow:visible;text-overflow:clip}
html body.eva:not(.light) .hdr h1 .desc{display:inline;font:inherit;color:inherit;margin-left:8px;letter-spacing:inherit}
html body.eva:not(.light) .hdr .sub{grid-column:1;padding-left:14px;font-size:12px;line-height:1.4;white-space:normal;overflow:visible;text-overflow:clip}
html body.eva:not(.light) .hdr-inner .stock-logo-wrap,html body.eva:not(.light) .hdr-inner:not(:has(.stock-logo-wrap))::after{display:block;position:absolute;right:max(40px,calc((100% - 1320px)/2));bottom:7px;width:100px;height:78px;margin:0;z-index:-1;pointer-events:none}
html body.eva:not(.light) .hdr-inner .stock-logo{display:block;width:100px;height:78px;object-fit:contain;opacity:.22}
html body.eva:not(.light) .hdr-inner:not(:has(.stock-logo-wrap))::after{opacity:.16}
}
/* Match the standard theme's control metrics instead of imposing a fixed height. */
html body.eva:not(.light) .hdr-actions :is(button,.theme-btn,.hdr-lang-btn){height:auto;min-height:0;padding:4px 12px;font-size:11px;line-height:1.4}
html body.eva:not(.light) .hdr-actions{min-height:0}
html body.eva:not(.light) .hdr-inner>a:has(>.logo){height:26px}
@media(max-width:768px){
html body.eva:not(.light) .hdr-actions :is(button,.theme-btn,.hdr-lang-btn){padding:3px 10px;font-size:9px;line-height:1.4}
html body.eva:not(.light) .hdr-inner>a:has(>.logo){height:24px}
}
