/* Apply the original Argon device rules to actual viewport sizes. */
@media(max-width:979px){
html[data-layout="auto"] main,html[data-layout="auto"] main{max-width:750px;padding-top:22px}
html[data-layout="auto"] .masthead{padding:8px 20px;min-height:74px}
html[data-layout="auto"] .workspace,html[data-layout="auto"] .workspace{display:block}
html[data-layout="auto"] .workspace-tabs,html[data-layout="auto"] .workspace-tabs{display:flex;padding:4px;background:#e2eaf1;border:1px solid #d7e1ea;border-radius:9px;margin-bottom:20px;gap:4px;position:sticky;top:122px;z-index:20;box-shadow:0 2px 8px #e0e7ed88}
html[data-layout="auto"] .workspace-tabs button,html[data-layout="auto"] .workspace-tabs button{flex:1;border:0;background:transparent;font-size:13px;color:#6c8294}
html[data-layout="auto"] .workspace-tabs .active,html[data-layout="auto"] .workspace-tabs .active{background:white;color:var(--navy);font-weight:600;box-shadow:0 2px 4px #193e5812}
html[data-layout="auto"] .workspace[data-active="edit"] .preview-pane,html[data-layout="auto"] .workspace[data-active="edit"] .preview-pane{display:none}
html[data-layout="auto"] .workspace[data-active="preview"] .editor,html[data-layout="auto"] .workspace[data-active="preview"] .editor{display:none}
html[data-layout="auto"] .preview-pane,html[data-layout="auto"] .preview-pane{position:static;max-width:500px;margin:auto}
html[data-layout="auto"] .preview-header,html[data-layout="auto"] .preview-header{margin-top:24px}
html[data-layout="auto"] .phone-stage,html[data-layout="auto"] .phone-stage{max-width:414px;margin:auto}
html[data-layout="auto"] .count-area{max-width:300px}
html[data-layout="auto"] .actions{gap:7px}
html[data-layout="auto"] .button{padding:11px 14px}
html[data-layout="auto"] .primary{min-width:150px}
html[data-layout="auto"] .line-btn{min-width:118px}
html[data-layout="auto"] .override{font-size:12px}

}
@media(max-width:639px){
html[data-layout="auto"] .masthead{min-height:68px;padding:6px 10px;gap:8px}
html[data-layout="auto"] .burger-btn{width:34px;height:34px;min-height:34px;padding:7px}
html[data-layout="auto"] .brand-title{font-size:13px}
html[data-layout="auto"] .brand-title .brand-sep{margin-left:5px;padding-left:6px}
html[data-layout="auto"] .brand-caption{font-size:8px;letter-spacing:1px}
html[data-layout="auto"] .streaming-box{min-height:32px;padding:2px 5px;gap:4px}
html[data-layout="auto"] .stream-live-dot{width:5px;height:5px}
html[data-layout="auto"] .streaming-symbol{width:54px;min-height:24px;font-size:11px;padding:2px 4px}
html[data-layout="auto"] .streaming-quote-btn{gap:4px;padding:2px 4px;min-height:24px;max-width:132px}
html[data-layout="auto"] .streaming-price{font-size:12px}
html[data-layout="auto"] .streaming-pct{font-size:10px;padding:2px 4px}
html[data-layout="auto"] .streaming-delay-note{font-size:8.5px}
html[data-layout="auto"] main{padding:18px 12px calc(var(--bar-height) + 22px)}
html[data-layout="auto"] h1{font-size:20px}
html[data-layout="auto"] .page-heading{gap:10px;align-items:flex-start;margin-bottom:18px}
html[data-layout="auto"] .page-heading p{font-size:11px;line-height:1.6}
html[data-layout="auto"] .inline-local-note{font-size:10px;padding:2px 7px}
html[data-layout="auto"] .page-heading .button{font-size:11px;padding:8px 10px;min-height:38px}
html[data-layout="auto"] .section{padding:18px 14px}
html[data-layout="auto"] .section h2{font-size:15px}
html[data-layout="auto"] .two-fields,html[data-layout="auto"] .filter-dropdown-bar{grid-template-columns:1fr;gap:10px}
html[data-layout="auto"] .index-ribbon,html[data-layout="auto"] .heatmap-grid{grid-template-columns:repeat(2,1fr)}
html[data-layout="auto"] .two-fields .field{margin-bottom:16px}
html[data-layout="auto"] .bullet-row{grid-template-columns:17px minmax(0,1fr) 34px;gap:4px}
html[data-layout="auto"] .icon-button{min-width:34px}
html[data-layout="auto"] .author-card{padding:14px}
html[data-layout="auto"] .author-fields{grid-template-columns:1fr;gap:0}
html[data-layout="auto"] .author-fields .field{margin-bottom:14px}
html[data-layout="auto"] .author-fields .field:last-child{margin-bottom:0}
html[data-layout="auto"] .action-bar{padding:11px 15px calc(11px + env(safe-area-inset-bottom))}
html[data-layout="auto"] .action-inner{gap:9px;align-items:center;flex-wrap:wrap}
html[data-layout="auto"] .count-area{max-width:none;min-width:0;flex:1 0 100%}
html[data-layout="auto"] .actions{max-width:none;flex:1 0 100%;display:flex;flex-wrap:wrap;gap:8px}
html[data-layout="auto"] .actions .primary,html[data-layout="auto"] .actions .line-btn{flex:1;font-size:13px;min-width:0;min-height:44px;padding:10px 12px}
html[data-layout="auto"] .action-bar.over:not(.approved) .actions .override{flex:1 0 100%;white-space:normal;font-size:12px;min-height:42px}


html[data-layout="auto"] .ratio-sections,html[data-layout="auto"] .tech-tables{grid-template-columns:minmax(0,1fr)}
html[data-layout="auto"] .fund-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-layout="auto"] .fund-kpi strong{overflow-wrap:anywhere}
html[data-layout="auto"] .count-line{flex-wrap:wrap;white-space:normal}
}
.symbol-suggest-item{gap:12px}.symbol-suggest-meta{min-width:0;overflow-wrap:anywhere;text-align:right}

/* Transformed phone must not expand the document scroll area on narrow screens. */
.phone-space{overflow:clip;border-radius:36px}

/* R5: refinements for research work; original layout retained. */
:root { color-scheme:light; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button:focus-visible,a:focus-visible,summary:focus-visible { outline:3px solid #2980c8;outline-offset:3px; }
button:disabled { cursor:not-allowed; }
.data-empty { grid-column:1/-1;padding:30px 24px;border:1px dashed #c9d7e4;border-radius:16px;background:#f7fafc;color:#526779; }
.empty-eyebrow { font-size:10px;letter-spacing:.16em;font-weight:800;color:#667f94; }
.data-empty h3 { margin:9px 0 6px;color:#153b59;font-size:19px; }
.data-empty p { margin:0 0 18px;font-size:14px;line-height:1.7; }
.data-empty small { display:block;margin-top:14px;color:#6d7e8d; }
.data-empty .button { text-decoration:none; }
.fund-time { display:block;margin-top:5px;font-size:11px;font-weight:500;color:#64798b;line-height:1.5; }
.fund-kpi strong,.streaming-price,.index-tile-price,.heat-price,.ratio-row strong { font-variant-numeric:tabular-nums; }
.data-caption { margin:15px 0 0;color:#6b7d8b;font-size:12px;line-height:1.6; }
.earnings-table { width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums; }
.earnings-table th,.earnings-table td { padding:11px 8px;text-align:left;border-bottom:1px solid #e4ebf2; }
.earnings-table td:last-child,.earnings-table th:last-child { text-align:right; }
.earnings-table .negative { color:#b42338; }
.streaming-wrap[aria-busy="true"] .stream-live-dot { opacity:.4; }
.symbol-suggest-item:focus-visible { outline-offset:-3px;background:#edf5fc; }
.market-modal-body { overscroll-behavior:contain; }
@media(max-width:600px){
 .data-empty { padding:22px 17px; }
 .data-empty .subpage-pills { align-items:stretch; }
 .data-empty .button { text-align:center;justify-content:center; }
 .fund-hero { align-items:flex-start;gap:18px; }
 .fund-hero>div { min-width:0; }
 .fund-hero h2 { overflow-wrap:anywhere; }
 .subpage-pills { gap:8px; }
 .subpage-pill,.refresh-mini-btn { min-height:40px; }
 .fund-time { max-width:190px;margin-left:auto; }
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after { animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important; }
}

/* V3: reported-earnings history scrolls inside its card; approximate sector tiles reuse the index tile. */
.earnings-scroll{max-height:312px;overflow:auto;border:1px solid #e3eaf1;border-radius:8px;-webkit-overflow-scrolling:touch}
.earnings-scroll:focus-visible{outline:3px solid #2980c8;outline-offset:2px}
.earnings-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:13px}
.earnings-table th{position:sticky;top:0;background:#f3f7fb;color:#4f667a;font-weight:600;text-align:left;padding:8px 12px;border-bottom:1px solid #dbe5ee}
.earnings-table td{padding:7px 12px;border-bottom:1px solid #eef2f6;color:#18334e}
.earnings-table th:last-child,.earnings-table td:last-child{text-align:right}
.earnings-table td.negative{color:#c92a2a}
.index-tile .index-tile-note{font-size:11px;font-weight:500;line-height:1.35;opacity:.92;white-space:normal}
/* V3: the ranking table keeps all five columns inside the modal on phones. */
@media(max-width:639px){
.market-modal-body{padding:10px 8px}
.aspen-table{font-size:12px}
.aspen-table th{padding:8px 5px;font-size:10.5px}
.aspen-table td{padding:9px 5px}
.aspen-table td:first-child{font-size:13px}
.aspen-table td:first-child small{display:block;font-size:10px}
}

/* V3 round 2: page head = title + icon refresh on one row, then one quiet link bar instead of stacked boxes. */
.subpage-head{flex-wrap:nowrap;align-items:flex-start;margin-bottom:12px}
.subpage-head>div{min-width:0}
.refresh-icon-btn{flex:none;width:38px;height:38px;min-height:38px;padding:0;display:grid;place-items:center;border-radius:50%;border:1px solid #c5d6e6;background:#fff;color:#173d62;transition:background .15s,transform .15s}
.refresh-icon-btn:hover{background:#eaf3fb}
.refresh-icon-btn:active{transform:scale(.94)}
.refresh-icon-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.refresh-icon-btn:disabled svg{animation:refreshSpin .8s linear infinite}
@keyframes refreshSpin{to{transform:rotate(360deg)}}
.subpage-links{display:flex;align-items:center;margin:0 0 18px;padding:2px 4px;border-bottom:1px solid #d9e3ec;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.subpage-links::-webkit-scrollbar{display:none}
.subpage-links>*{flex:none;min-height:40px;padding:0 14px;border:0;border-radius:0;background:none;color:#1d5d94;font-size:13px;font-weight:600;line-height:40px;white-space:nowrap;text-decoration:none;position:relative}
.subpage-links>*:first-child{padding-left:2px}
.subpage-links>*+*::before{content:"";position:absolute;left:0;top:13px;bottom:13px;width:1px;background:#cfdbe6}
.subpage-links>*:hover{color:#0d3a63;text-decoration:underline;text-underline-offset:4px}
.subpage-links>.accent{color:#0a7a4b}
.subpage-links>[hidden]{display:none}
@media(max-width:639px){
.subpage-head p{display:none}
.subpage-head{align-items:center}
.subpage-links>*{padding:0 8px;font-size:12px}
.earnings-table th,.earnings-table td{padding:8px 8px;font-size:12.5px}
}
/* Quick-menu labels: one short word beside each icon, outside the clipped circles. */
.fluid-label{position:absolute;top:16px;right:calc(100% + 10px);height:26px;min-height:0;display:flex;align-items:center;padding:0 11px;border:0;border-radius:99px;background:#0e2a45;color:#e8f3fc;font-size:12px;font-weight:600;letter-spacing:.2px;line-height:1;white-space:nowrap;text-decoration:none;box-shadow:0 4px 12px #06132040;opacity:0;pointer-events:none;transition:transform 300ms cubic-bezier(0.4,0,0.2,1),opacity 220ms ease}
.fluid-dock[data-expanded="true"] .fluid-label{opacity:1;pointer-events:auto}
.fluid-label.active-page{background:#1b4f7c;color:#7ce0ff}
.fluid-label:hover{background:#1b4f7c;color:#fff}
@media(max-width:639px){.fluid-label{top:13px}}
/* Sortable ranking headers. */
.aspen-table th[data-sort]{cursor:pointer;user-select:none;white-space:nowrap}
.aspen-table th[data-sort]:hover,.aspen-table th.sorted{color:#e6f0fa}
.aspen-table .sort-mark{display:inline-block;width:1em;margin-left:3px;font-size:9px;color:#38a6ff}
.earnings-table th,.earnings-table td{text-align:right;white-space:nowrap}
.earnings-table th:first-child,.earnings-table td:first-child{text-align:left}
@media(prefers-reduced-motion:reduce){.refresh-icon-btn:disabled svg{animation:none}.fluid-label{transition:none}}
@media(max-width:359px){.subpage-links>*{padding:0 6px;font-size:11.5px}}

/* V3 round 3: liquidity option, performance strip, results chart/table switch. */
.rank-tools{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.rank-filter{display:inline-flex;align-items:center;gap:7px;min-height:30px;color:#274764;font-size:12.5px;font-weight:600;cursor:pointer;user-select:none}
.rank-filter input{width:15px;height:15px;margin:0;accent-color:#123454}
.perf-strip{display:flex;align-items:center;gap:14px;margin-bottom:18px;padding:12px 16px;border:1px solid #e1eaf2;border-radius:10px;background:#f8fbfd}
.fund-kpi-grid+.perf-strip{margin:0 0 16px}
.perf-title{flex:none;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#667f94;max-width:88px;line-height:1.35}
.perf-cells{flex:1;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.perf-cell{display:flex;flex-direction:column;align-items:center;gap:2px;padding:7px 4px;border-radius:8px;background:#eef2f6;font-variant-numeric:tabular-nums}
.perf-cell span{font-size:10.5px;font-weight:600;letter-spacing:.04em;color:#6b7f90}
.perf-cell strong{font-size:14px;color:#5a626a;white-space:nowrap}
.perf-cell.up{background:#e6f6ee}.perf-cell.up strong{color:#07884b}
.perf-cell.down{background:#fdecec}.perf-cell.down strong{color:#c92a2a}
.earn-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.earn-seg button{min-height:30px;padding:4px 11px}
.earn-box h3{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.earn-box h3 small{font-size:11px;font-weight:500;color:#7a8c9b}
.earn-chart{display:flex;gap:4px;overflow-x:auto;padding:10px 8px 8px;border:1px solid #e3eaf1;border-radius:8px;background:#fbfdfe;scrollbar-width:thin;-webkit-overflow-scrolling:touch;font-variant-numeric:tabular-nums}
.earn-chart:focus-visible{outline:3px solid #2980c8;outline-offset:2px}
.earn-col{flex:none;width:56px;display:flex;flex-direction:column;align-items:center}
.earn-plot{width:100%}
.earn-pos,.earn-neg{display:flex;flex-direction:column;align-items:center;overflow:visible}
.earn-pos{justify-content:flex-end;border-bottom:1px solid #b9c8d6}
.earn-bar{display:block;width:28px;background:#7fb0db;border-radius:4px 4px 0 0}
.earn-neg .earn-bar{background:#e89a9a;border-radius:0 0 4px 4px}
.earn-col.latest .earn-pos .earn-bar{background:#1b6fb5}
.earn-col.latest .earn-neg .earn-bar{background:#c92a2a}
.earn-val{font-size:10px;font-weight:600;line-height:15px;color:#3b556c;white-space:nowrap}
.earn-neg .earn-val{color:#b42338}
.earn-col.latest .earn-val{color:#123454;font-weight:700}
.earn-col.latest .earn-neg .earn-val{color:#9d1c2c}
.earn-label{width:100%;padding-top:6px;text-align:center;font-size:10.5px;font-weight:600;color:#5d7386;white-space:nowrap}
.earn-col.latest .earn-label{color:#123454}
@media(max-width:639px){
.perf-strip{flex-direction:column;align-items:stretch;gap:8px;padding:12px}
.perf-title{max-width:none}
.perf-cells{grid-template-columns:repeat(3,minmax(0,1fr))}
.earn-controls{width:100%;justify-content:space-between}
.earn-seg button{padding:4px 9px;font-size:11.5px}
.earnings-table th,.earnings-table td{padding:8px 6px;font-size:12px}
}
@media(max-width:979px){.earnings-table th,.earnings-table td{padding:8px 6px;font-size:12px}}

/* V3 round 4: in-page tabs. Utility links stay a quiet first row; the tabs carry the divider line and the moving indicator. */
.subpage-links:has(+ .page-tabs){border-bottom:0;margin-bottom:2px;padding-bottom:0}
.subpage-links:has(+ .page-tabs)>*{min-height:32px;line-height:32px;font-size:12px;font-weight:500;color:#5a7f9f}
.subpage-links:has(+ .page-tabs)>*+*::before{top:10px;bottom:10px}
.subpage-links:has(+ .page-tabs)>.accent{color:#0a7a4b;font-weight:600}
.page-tabs{position:relative;display:flex;gap:2px;margin:0 0 20px;border-bottom:1px solid #d5e0ea;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.page-tabs::-webkit-scrollbar{display:none}
.page-tabs[hidden]{display:none}
.page-tabs button{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:0;border-radius:9px 9px 0 0;background:none;color:#647b8e;font-size:14px;font-weight:600;letter-spacing:.1px;white-space:nowrap;transition:color .2s ease,background-color .2s ease,transform .12s ease}
.page-tabs button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;transition:transform .28s cubic-bezier(.34,1.56,.64,1)}
.page-tabs button:hover{background:#eef4f9;color:#123454}
.page-tabs button:active{transform:scale(.96)}
.page-tabs button[aria-selected="true"]{color:#123454}
.page-tabs button[aria-selected="true"] svg{transform:scale(1.12);color:#1b6fb5}
.tab-ink{position:absolute;left:0;bottom:0;height:3px;width:0;border-radius:3px 3px 0 0;background:#1b6fb5;pointer-events:none;transition:transform .32s cubic-bezier(.4,0,.2,1),width .32s cubic-bezier(.4,0,.2,1)}
.tab-panel[hidden]{display:none}
.tab-panel.entering{animation:tabPanelIn .3s cubic-bezier(.22,.8,.3,1) both}
@keyframes tabPanelIn{from{opacity:0;transform:translateX(var(--tab-shift,12px))}to{opacity:1;transform:none}}
.tab-panel>.market-card:last-child,.tab-panel>.index-ribbon:last-child{margin-bottom:20px}
@media(max-width:639px){
.page-tabs{margin-bottom:16px}
.page-tabs button{flex:1;justify-content:center;min-height:42px;padding:0 8px;font-size:13px;gap:6px}
.page-tabs button svg{width:15px;height:15px}
}
@media(prefers-reduced-motion:reduce){.tab-ink,.page-tabs button,.page-tabs button svg{transition:none}.tab-panel.entering{animation:none}}

/* V3 round 5: Top 10 as a table, and the Summary movers. */
.heatmap-grid.as-table{display:block}
.heatmap-grid.swap{animation:tabPanelIn .26s cubic-bezier(.22,.8,.3,1) both;--tab-shift:0px}
.rank-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:13.5px}
.rank-table th{padding:9px 10px;text-align:right;font-size:11.5px;font-weight:600;color:#5d7386;background:#f3f7fb;border-bottom:1px solid #dbe5ee;white-space:nowrap}
.rank-table td{padding:10px;text-align:right;border-bottom:1px solid #edf2f6;color:#18334e;white-space:nowrap}
.rank-table th:nth-child(-n+2),.rank-table td:nth-child(-n+2){text-align:left}
.rank-table td:first-child{width:30px;color:#8296a6;font-weight:600}
.rank-table td strong{font-size:14px}
.rank-table td small{margin-left:7px;font-size:10.5px;font-weight:500;color:#8296a6}
.rank-table tbody tr{cursor:pointer;transition:background-color .15s}
.rank-table tbody tr:hover,.rank-table tbody tr:focus-visible{background:#f3f8fc;outline:none}
.rank-table tr.up strong,.rank-table tr.up .dir{color:#07884b}
.rank-table tr.down strong,.rank-table tr.down .dir{color:#c92a2a}
.rank-table tr.flat .dir{color:#8a6a00}
.pct-chip{display:inline-block;min-width:62px;padding:3px 8px;border-radius:6px;font-weight:700;font-size:12.5px;text-align:right;background:#eef2f6;color:#5a626a}
.up .pct-chip{background:#12a150;color:#fff}
.down .pct-chip{background:#d93636;color:#fff}
.movers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0 20px}
.mover-box{background:#fff;border:1px solid #dde7f0;border-radius:12px;padding:14px 14px 8px;min-width:0}
.mover-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:6px}
.mover-head h3{margin:0;font-size:14px;color:#123454;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.mover-head h3 small{font-size:10.5px;font-weight:500;color:#7a8c9b}
.mover-more{border:0;background:none;min-height:0;padding:2px 0;color:#1d5d94;font-size:12px;font-weight:600;white-space:nowrap}
.mover-more:hover{text-decoration:underline;text-underline-offset:3px}
.mover-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto 52px;align-items:center;gap:8px;width:100%;min-height:40px;padding:6px 4px;border:0;border-top:1px solid #edf2f6;border-radius:0;background:none;text-align:left;font-variant-numeric:tabular-nums;color:#18334e;transition:background-color .15s}
.mover-row:hover{background:#f3f8fc}
.mover-row strong{font-size:13.5px;overflow:hidden;text-overflow:ellipsis}
.mover-row.up strong{color:#07884b}.mover-row.down strong{color:#c92a2a}
.mover-price{font-size:13px;font-weight:600}
.mover-val{font-size:11.5px;color:#7a8c9b;text-align:right}
@media(max-width:979px){.movers{grid-template-columns:1fr;gap:12px}}
@media(max-width:639px){
.rank-table{font-size:12.5px}
.rank-table th,.rank-table td{padding:9px 5px}
.rank-table th:nth-child(4),.rank-table td:nth-child(4){display:none}
.rank-table td small{display:block;margin:1px 0 0}
.pct-chip{min-width:56px;font-size:12px}
.rank-tools{width:100%;justify-content:space-between}
}
@media(prefers-reduced-motion:reduce){.heatmap-grid.swap{animation:none}}

/* V3 round 6: Technical Radar topic tabs pair a gauge with its table. */
.tech-pair{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:16px;align-items:start;margin-bottom:6px}
.tech-pair .gauge-card{height:100%}
#c-caption{margin:0 0 20px}
#tech-tables .data-caption{margin:10px 0 20px}
@media(max-width:767px){.tech-pair{grid-template-columns:minmax(0,1fr)}}

/* V3 round 7: timeframe switch sits on the links row, above the tabs. */
.subpage-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}
.subpage-row .subpage-links{flex:1;min-width:0;margin-bottom:0;border-bottom:0}
.subpage-row .subpage-links>*{min-height:32px;line-height:32px;font-size:12px;font-weight:500;color:#5a7f9f}
.subpage-row .subpage-links>*+*::before{top:10px;bottom:10px}
#tech-frame{flex:none}
#tech-frame button{min-width:40px;font-variant-numeric:tabular-nums}
#tech-frame button:disabled{opacity:.4;cursor:not-allowed}

/* V3 round 8: analyst consensus. */
.cons-box h3{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.cons-box h3 small{font-size:11px;font-weight:500;color:#7a8c9b}
.cons-verdict{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:4px 0 12px}
.cons-verdict strong{font-size:24px;line-height:1.1;color:#5a626a}
.cons-verdict.up strong{color:#07884b}.cons-verdict.down strong{color:#c92a2a}
.cons-verdict span{font-size:12.5px;font-weight:600;color:#4f667a}
.cons-verdict small{font-weight:400;color:#8296a6}
.cons-stack{display:flex;gap:2px;height:10px;border-radius:6px;overflow:hidden;margin-bottom:14px;background:#eef2f6}
.cons-stack i,.cons-bar i{display:block;height:100%}
.sb{background:#0b8f4d}.b{background:#5cc48a}.h{background:#c9d2da}.s{background:#f0958f}.ss{background:#d23b3b}
.cons-row{display:grid;grid-template-columns:86px minmax(0,1fr) 26px;align-items:center;gap:10px;min-height:26px;font-size:12.5px;color:#4f667a;font-variant-numeric:tabular-nums}
.cons-row strong{text-align:right;color:#18334e}
.cons-bar{height:8px;border-radius:5px;background:#eef2f6;overflow:hidden}
.cons-bar i{border-radius:5px;transition:width .5s cubic-bezier(.22,.8,.3,1)}
.cons-track{position:relative;height:14px;margin:26px 6px 6px;border-radius:7px;background:#eef2f6}
.cons-range{position:absolute;top:0;bottom:0;border-radius:7px;background:linear-gradient(90deg,#cfe3f5,#9cc6ea)}
.cons-track .pin{position:absolute;top:-6px;width:4px;height:26px;margin-left:-2px;border-radius:2px}
.pin.mean,.cons-cell i.mean{background:#1b6fb5}
.pin.median,.cons-cell i.median{background:#e08a00}
.cons-track .pin.last{top:-1px;width:16px;height:16px;margin-left:-8px;border-radius:50%;background:#123454;border:3px solid #fff;box-shadow:0 1px 4px #12345466}
.cons-cell i.last{background:#123454;border-radius:50%}
.cons-ends{display:flex;justify-content:space-between;margin:0 6px 14px;font-size:11px;color:#7a8c9b;font-variant-numeric:tabular-nums}
.cons-cells{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.cons-cell{display:flex;flex-direction:column;gap:2px;padding:8px 6px;border-radius:8px;background:#f5f8fb;font-variant-numeric:tabular-nums;min-width:0}
.cons-cell span{display:flex;align-items:center;gap:5px;font-size:10.5px;font-weight:600;color:#6b7f90}
.cons-cell i{display:inline-block;width:8px;height:8px;border-radius:2px}
.cons-cell strong{font-size:14px;color:#18334e}
.cons-cell em{font-style:normal;font-size:11.5px;font-weight:700}
.cons-cell em.up{color:#07884b}.cons-cell em.down{color:#c92a2a}
@media(max-width:639px){
.cons-cells{grid-template-columns:repeat(3,minmax(0,1fr))}
.page-tabs[data-tabs-for="b"] button{padding:0 6px;font-size:12.5px;gap:5px}
.page-tabs[data-tabs-for="b"] button svg{width:14px;height:14px}
}
@media(max-width:400px){.page-tabs[data-tabs-for="b"] button svg{display:none}}

/* V3 round 9: summary cards. One calm surface: hero, a divided stat grid, slim range meters — no boxes inside boxes. */
.fund-hero{align-items:flex-end;padding-bottom:16px;margin-bottom:16px}
.fund-id{min-width:0}
.fund-id h2{margin:0;font-size:20px;line-height:1.3;color:#123454}
.fund-sym-badge{background:#eaf1f8;color:#123454;border:1px solid #d3e0ec;font-size:11px;letter-spacing:.4px;padding:3px 10px;border-radius:99px;margin-bottom:8px}
.fund-quote{display:flex;flex-direction:column;align-items:flex-end;gap:4px;margin-left:auto;font-variant-numeric:tabular-nums}
.fund-price-big{font-size:34px;font-weight:800;line-height:1;color:#123454;letter-spacing:-.5px}
.fund-price-big small{margin-left:6px;font-size:13px;font-weight:600;letter-spacing:.5px;color:#7a8c9b}
.fund-change{display:flex;align-items:center;gap:8px}
.fund-chg{font-size:15px;font-weight:700;color:#5a626a}
.fund-quote.up .fund-chg{color:#07884b}.fund-quote.down .fund-chg{color:#c92a2a}
.fund-quote .pct-chip{min-width:0;font-size:13px;padding:3px 9px}
.fund-time{display:block;margin:0;font-size:11px;font-weight:500;color:#8296a6;letter-spacing:.2px}
.fund-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#e3ebf2;border:1px solid #e3ebf2;border-radius:12px;overflow:hidden;margin-bottom:18px}
html[data-layout="auto"] .fund-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.fund-kpi{background:#fff;border:0;border-radius:0;padding:13px 16px}
.fund-kpi span{font-size:11px;font-weight:600;letter-spacing:.2px;color:#6b7f90}
.fund-kpi strong{font-size:18px;color:#123454;margin-top:5px}
.range-meter-box{background:none;border:0;padding:0;gap:28px;margin-bottom:20px}
.range-track-wrap span{margin-bottom:9px;font-size:11px;letter-spacing:.6px;text-transform:uppercase;color:#6b7f90}
.range-bar{height:6px;overflow:visible;background:#e3ebf2}
.range-fill{position:relative;min-width:6px;background:linear-gradient(90deg,#9cc6ea,#1b6fb5)}
.range-fill::after{content:"";position:absolute;right:-7px;top:50%;width:14px;height:14px;border-radius:50%;background:#123454;border:3px solid #fff;box-shadow:0 1px 4px #12345459;transform:translateY(-50%)}
.range-ends{display:flex;justify-content:space-between;margin-top:8px;font-size:12.5px;font-weight:600;color:#35526b;font-variant-numeric:tabular-nums}
.index-hint{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding-top:16px;border-top:1px solid #e6edf3}
.index-hint p{margin:0;font-size:13px;color:#5a7184}
.index-hint .button{padding:9px 16px;min-width:0}
@media(max-width:639px){
.fund-hero{flex-direction:column;align-items:flex-start;gap:12px}
.fund-quote{align-items:flex-start;margin-left:0}
.fund-price-big{font-size:32px}
.fund-id h2{font-size:17px}
html[data-layout="auto"] .fund-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.fund-kpi{padding:11px 12px}
.fund-kpi strong{font-size:16px}
.range-meter-box{gap:20px}
}
@media(max-width:639px){.page-tabs[data-tabs-for="c"] button{padding:0 6px;font-size:12.5px;gap:5px}.page-tabs[data-tabs-for="c"] button svg{width:14px;height:14px}}

/* V3 round 10: the header quote is one box as tall as the page title block — quote row, hairline, status row. */
.streaming-wrap{gap:0;align-items:stretch;background:#080c11;border:1px solid #2a3e52;border-radius:10px;box-shadow:inset 0 1px 0 #ffffff12,0 4px 12px #040d174d}
.streaming-box{background:none;border:0;border-radius:0;box-shadow:none;min-height:30px;padding:4px 8px 3px 8px}
.streaming-delay-note{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0;padding:3px 10px 4px;border-top:1px solid #223344;color:#9fb6cc;font-size:9px;font-weight:600;letter-spacing:.6px;line-height:1.3;text-transform:uppercase;white-space:nowrap}
.streaming-delay-note .state{color:#c3d6e8}
.streaming-delay-note .state.on{color:#63e6a4}
.streaming-delay-note .state.off{color:#ffc857}
.streaming-wrap[data-feed-state="failed"] .streaming-delay-note .when{color:#ffb4a8}
@media(max-width:639px){
html[data-layout="auto"] .streaming-box{min-height:26px;padding:3px 5px 2px}
html[data-layout="auto"] .streaming-delay-note{font-size:8px;letter-spacing:.4px;gap:8px;padding:2px 7px 3px}
}
/* Chart pop-up and its corner button. */
.earn-box h3{align-items:center}
.earn-box h3 small{margin-left:auto}
.earn-expand{flex:none;width:28px;height:28px;min-height:28px;padding:0;display:grid;place-items:center;border:1px solid #d3e0ec;border-radius:7px;background:#fff;color:#4f667a;transition:background-color .15s,color .15s,transform .15s}
.earn-expand:hover{background:#eaf3fb;color:#123454}
.earn-expand:active{transform:scale(.92)}
.earn-expand svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.chart-modal{width:min(1180px,calc(100vw - 24px));max-width:none;max-height:calc(100vh - 24px);padding:0;border:1px solid #d5e0ea;border-radius:16px;background:#fff;color:#18334e;box-shadow:0 24px 80px #040c1666;overflow:hidden}
.chart-modal::backdrop{background:#091a2b8c;backdrop-filter:blur(3px)}
.chart-modal[open]{animation:modalPop .24s cubic-bezier(.34,1.56,.64,1)}
.chart-modal-head{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid #e3eaf1;flex-wrap:wrap}
.chart-modal-head h3{margin:0;font-size:16px;color:#123454;flex:1;min-width:0}
.chart-modal-close{width:34px;height:34px;min-height:34px;padding:0;border:1px solid #d3e0ec;border-radius:8px;background:#fff;color:#35526b;font-size:20px;line-height:1}
.chart-modal-close:hover{background:#eaf3fb}
#chart-modal-body{padding:18px}
.earn-chart.large{gap:8px;padding:16px 12px 12px}
.earn-chart.large .earn-col{width:76px}
.earn-chart.large .earn-bar{width:40px}
.earn-chart.large .earn-val{font-size:12px;line-height:19px}
.earn-chart.large .earn-label{font-size:12px;padding-top:8px}
/* Radar summary: gauge + rating table by timeframe. */
#gauge-grid{display:block;margin-bottom:6px}
.rating-score{display:block;margin-top:2px;font-size:11px;font-weight:500;color:#8296a6;font-variant-numeric:tabular-nums}
.tech-table tr[data-frame-row]{cursor:pointer;transition:background-color .15s}
.tech-table tr[data-frame-row]:hover{background:#f3f8fc}
.tech-table tr.current{background:#eef5fc}
.tech-table tr.current td:first-child{box-shadow:inset 3px 0 0 #1b6fb5}
@media(max-width:639px){
.chart-modal-head{padding:12px}
#chart-modal-body{padding:10px}
.earn-chart.large .earn-col{width:62px}
.earn-chart.large .earn-bar{width:32px}
.earn-chart.large .earn-val{font-size:10.5px}
}

/* Gauge needle: rests at its reading; when a gauge is opened it sweeps there from the left stop with a small settle. */
.gauge-needle{transform:rotate(var(--needle,0deg));transform-origin:0 0}
.gauge-needle.sweep{animation:needleSweep .85s cubic-bezier(.22,1.2,.36,1) both}
@keyframes needleSweep{from{transform:rotate(-78deg)}to{transform:rotate(var(--needle,0deg))}}
@media(prefers-reduced-motion:reduce){.gauge-needle.sweep{animation:none}}

/* Round 11: global asset tiles are links that share the index tile look. */
a.index-tile{text-decoration:none;cursor:pointer}
.chart-modal-head h3{flex:1 1 240px}
@media(max-width:639px){.chart-modal-head h3{flex-basis:calc(100% - 50px);font-size:14px}.chart-modal-head{position:relative}.chart-modal-close{position:absolute;top:10px;right:10px}#chart-modal-tools{width:100%}}
.tech-pair .market-card{min-width:0;overflow-x:auto}
@media(max-width:639px){
.tech-pair .market-card{padding:14px 12px}
.tech-pair .tech-table{font-size:12.5px}
.tech-pair .tech-table th{font-size:10px;letter-spacing:0;padding-left:5px;padding-right:5px;white-space:nowrap}
.tech-pair .tech-table td{padding-left:5px;padding-right:5px}
.frame-text{display:none}
}
/* Sliding panels must never create a sideways scrollbar while they animate. */
.market-page{overflow-x:clip}

/* Round 12 ------------------------------------------------------------ */
/* Market ribbon: four across, one asset group per row. */
.index-ribbon{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.ribbon-group{grid-column:1/-1;margin:8px 2px 0;font-size:11px;font-weight:700;letter-spacing:.9px;text-transform:uppercase;color:#6b7f90}
.ribbon-group:first-child{margin-top:0}
.index-tile{min-height:92px}
html[data-layout="auto"] .index-ribbon{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:639px){html[data-layout="auto"] .index-ribbon{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Ratio spec sheet: columns of label/value rows, no boxes. */
.spec-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:22px 34px}
.spec-group h3{margin:0 0 4px;padding-bottom:7px;border-bottom:2px solid #123454;font-size:11.5px;font-weight:700;letter-spacing:.7px;text-transform:uppercase;color:#123454}
.spec-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #edf2f6;font-size:13px;font-variant-numeric:tabular-nums}
.spec-row:last-child{border-bottom:0}
.spec-row span{color:#4f667a;min-width:0}
.spec-row small{margin-left:6px;font-size:10.5px;color:#93a4b3;white-space:nowrap}
.spec-row strong{color:#123454;font-weight:700;white-space:nowrap}
.spec-row strong.up{color:#07884b}.spec-row strong.down{color:#c92a2a}
.cons-box .spec-row{font-size:12.5px}
/* Statements card. */
.earn-metric select{min-height:36px;padding:5px 30px 5px 11px;border:1px solid #cfdbe6;border-radius:8px;background-color:#fff;color:#123454;font-size:12.5px;font-weight:600}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.earn-foot{display:flex;justify-content:flex-start;min-height:30px;margin-top:8px}
.earn-foot .earn-seg button{min-height:26px;padding:2px 9px;font-size:11px}
.earn-empty{margin:0;padding:28px 0;text-align:center}
.earn-wide .ratio-sections{grid-template-columns:minmax(0,1fr)}
.earn-wide .earnings-scroll{max-height:340px}
#chart-modal-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tech-stack{display:grid;gap:16px;min-width:0}
/* Summary: eight return cells, twelve stat cells. */
.perf-cells{grid-template-columns:repeat(8,minmax(0,1fr))}
.fund-kpi-grid,html[data-layout="auto"] .fund-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:979px){.fund-kpi-grid,html[data-layout="auto"] .fund-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:639px){
.perf-cells{grid-template-columns:repeat(4,minmax(0,1fr))}
html[data-layout="auto"] .fund-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.spec-grid{grid-template-columns:minmax(0,1fr);gap:18px}
.earn-metric{flex:1}.earn-metric select{width:100%}
}

/* Round 13 ------------------------------------------------------------ */
/* Studio heading: title + clear button on one line, one line of description under it. */
.page-heading,html[data-layout="auto"] .page-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px}
.page-heading>div{display:contents}
.page-heading h1{grid-column:1;grid-row:1;margin:0;min-width:0}
.page-heading p{grid-column:1/-1;grid-row:2;margin:0}
.page-heading .button{grid-column:2;grid-row:1}
/* Sticky bars sit directly under the masthead, whatever its height. */
html[data-layout="auto"] .workspace-tabs{top:calc(var(--head-height,74px) + 8px)}
.page-tabs{position:sticky;top:var(--head-height,74px);z-index:30;background:#f1f4f7;margin-top:-4px;padding-top:4px;box-shadow:0 6px 8px -8px #12345433}
/* Touch screens: a tapped tile must not stay lifted. */
@media(hover:none){.index-tile:hover,.heat-tile:hover{transform:none;filter:none;box-shadow:none}}
/* Statement controls share one height. */
.earn-metric select{min-height:44px;height:44px;border-color:var(--border);border-radius:8px;background-color:#fff}
.earn-controls .earn-seg{min-height:44px;align-items:center}
/* Chart / table box header: title and enlarge button on the first line, the short note under the title. */
.earn-box h3{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:1px 10px}
.earn-box h3 small{grid-column:1;grid-row:2;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.earn-box h3 .earn-expand{grid-column:2;grid-row:1/span 2}
/* Tables: the period column stays put while the figures scroll sideways. */
.earnings-table{background:#fff}
.earnings-table th:first-child,.earnings-table td:first-child{position:sticky;left:0;z-index:1;background:#fff;box-shadow:1px 0 0 #dbe5ee}
.earnings-table thead th{z-index:2}
.earnings-table thead th:first-child{z-index:3;background:#f3f7fb}
/* Latest-quarter lines under BS / CF. */
.earn-latest{margin-top:16px;padding-top:14px;border-top:1px solid #e6edf3}
.earn-latest h3{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 4px;font-size:13px;color:#123454}
.earn-latest h3 small{font-size:11px;font-weight:500;color:#7a8c9b}
.earn-latest-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:0 34px}
/* Explanations fold away behind one line. */
.info-note{margin-top:14px}
.info-note summary{display:inline-flex;align-items:center;gap:6px;min-height:28px;color:#5a7f9f;font-size:12px;font-weight:600;cursor:pointer;list-style:none}
.info-note summary::-webkit-details-marker{display:none}
.info-note summary::before{content:"?";display:grid;place-items:center;width:17px;height:17px;border:1px solid #9fb6cc;border-radius:50%;font-size:11px;line-height:1}
.info-note[open] summary{color:#123454}
.info-note .data-caption{margin:6px 0 0}
@media(max-width:639px){
html[data-layout="auto"] .page-heading{margin-bottom:14px}
html[data-layout="auto"] .page-heading p{font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-layout="auto"] .page-heading .button{min-height:34px;padding:6px 12px;font-size:12px}
.earn-controls{gap:8px}
.earn-controls .earn-metric{order:3;flex:1 0 100%}
}

/* Round 14: phone hero keeps change + time beside the price; draft bar is one line of text. */
#draft-return-sub:empty{display:none}
@media(max-width:639px){
.fund-quote{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:3px 12px;width:100%}
.fund-quote .fund-price-big{grid-column:1;grid-row:1/span 2}
.fund-quote .fund-change{grid-column:2;grid-row:1;justify-content:flex-end}
.fund-quote .fund-chg{font-size:15px}
.fund-quote .pct-chip{font-size:13px}
.fund-quote .fund-time{grid-column:2;grid-row:2;text-align:right}
}

/* iOS zooms the page when a focused field's font is under 16px. On touch screens these fields are a real 16px;
   the compact header field is scaled back down visually so the layout does not change and nothing zooms. */
@media (pointer:coarse){
html[data-layout="auto"] .streaming-symbol,.streaming-symbol{font-size:16px;width:84px;height:32px;min-height:32px;padding:2px 6px;transform:scale(.75);transform-origin:left center;margin:-4px -21px -4px 0}
.earn-metric select,.filter-dropdown-bar select,#preview-font,#author-join{font-size:16px}
}

/* Round 15: estimates as one table under the two consensus boxes. */
.cons-wide{margin-top:16px}
.est-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:4px 0 14px}
.est-chip{display:flex;flex-direction:column;gap:3px;padding:11px 14px;border:1px solid #d3e3f3;border-radius:10px;background:#f1f7fd;min-width:0}
.est-chip span{font-size:11.5px;font-weight:600;color:#4f667a}
.est-chip small{font-weight:500;color:#8296a6}
.est-chip strong{font-size:19px;line-height:1.2;color:#123454;font-variant-numeric:tabular-nums}
.est-scroll{max-height:none}
.est-table th small{display:block;font-size:10px;font-weight:500;color:#8296a6}
.est-table td:first-child{font-weight:600;color:#123454}
.est-table td:first-child small{display:block;font-size:10px;font-weight:500;color:#93a4b3;white-space:normal}
.est-table th.fc{background:#e6f0fa;color:#123454}
.est-table td.fc{background:#f4f9fe;font-weight:600}
.est-surprise{display:inline-block;min-width:54px;padding:2px 8px;border-radius:6px;background:#eef2f6;color:#5a626a;font-weight:700;font-size:12px;text-align:right}
.est-surprise.up{background:#e6f6ee;color:#07884b}
.est-surprise.down{background:#fdecec;color:#c92a2a}
@media(max-width:639px){
.est-strip{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.est-chip strong{font-size:17px}
}

/* Version 4 ------------------------------------------------------------ */
/* Bottom bar: a small tab folds the draft bar away on the data pages. */
.bar-toggle{position:absolute;top:-22px;left:50%;transform:translateX(-50%);width:58px;height:22px;min-height:0;padding:0;display:grid;place-items:center;border:1px solid var(--border);border-bottom:0;border-radius:10px 10px 0 0;background:#fff;color:#4f667a;box-shadow:0 -3px 8px #1234540f}
.bar-toggle[hidden]{display:none}
.bar-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s ease}
.action-bar.collapsed{padding-top:0!important;padding-bottom:env(safe-area-inset-bottom)!important;min-height:0;border-top-color:transparent}
.action-bar.collapsed .draft-return-inner,.action-bar.collapsed .action-inner{display:none}
.action-bar.collapsed .bar-toggle svg{transform:rotate(180deg)}
/* Install page. */
.install-status{margin:0 0 14px;padding:10px 14px;border:1px solid #9ce5be;border-radius:10px;background:#e7f9ef;color:#087443;font-size:13px;font-weight:600}
.install-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-bottom:16px}
.install-card{margin:0;transition:box-shadow .25s,border-color .25s}
.install-card.focus{border-color:#1b6fb5;box-shadow:0 0 0 3px #1b6fb533}
.install-card h2{margin:0 0 12px;font-size:16px;color:#123454;display:flex;align-items:baseline;gap:8px}
.install-card h2 small{font-size:11.5px;font-weight:500;color:#7a8c9b}
.install-card ol{margin:0;padding-left:20px;font-size:13.5px;line-height:1.9;color:#35526b}
.install-card .button{width:100%;margin-bottom:10px}
.install-card details summary{font-size:12.5px;font-weight:600;color:#5a7f9f;cursor:pointer;margin-bottom:6px}
/* What's new. */
.whatsnew{width:min(560px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto}
.whatsnew h2 small{margin-left:8px;font-size:12px;font-weight:600;color:#1b6fb5}
.whatsnew-list{list-style:none;margin:14px 0 18px;padding:0;display:grid;gap:6px;text-align:left}
.whatsnew-list li>button,.whatsnew-list li>div{display:grid;gap:2px;width:100%;min-height:0;padding:10px 12px;border:1px solid #e1eaf2;border-radius:10px;background:#f8fbfd;text-align:left;color:#18334e}
.whatsnew-list li>button{cursor:pointer;padding-right:34px;position:relative;transition:background-color .15s,border-color .15s}
.whatsnew-list li>button::after{content:"→";position:absolute;right:13px;top:50%;transform:translateY(-50%);color:#1b6fb5;font-weight:700}
.whatsnew-list li>button:hover{background:#eef5fc;border-color:#b9cfe3}
.whatsnew-list strong{font-size:14px;color:#123454}
.whatsnew-list span{font-size:12px;line-height:1.55;color:#5a7184}
.whatsnew-os{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.whatsnew-os button{min-height:32px;padding:4px 12px;border:1px solid #b9cfe3;border-radius:99px;background:#fff;color:#1d5d94;font-size:12px;font-weight:600}
.whatsnew-os button:hover{background:#eef5fc}
/* New-version notice. */
.update-banner{position:fixed;left:50%;top:calc(var(--head-height,74px) + 10px);transform:translateX(-50%);z-index:95;display:flex;align-items:center;gap:12px;padding:8px 8px 8px 16px;border-radius:99px;background:#123454;color:#fff;font-size:13px;font-weight:600;box-shadow:0 8px 24px #091e3459}
.update-banner[hidden]{display:none}
.update-banner button{min-height:30px;padding:4px 14px;border:0;border-radius:99px;background:#fff;color:#123454;font-size:12.5px;font-weight:700}

/* Main menu: each data page can unfold its sections. */
.drawer-row{display:flex;align-items:stretch;gap:4px}
.drawer-row .drawer-item{flex:1;min-width:0}
.drawer-more{flex:none;width:40px;min-height:0;padding:0;display:grid;place-items:center;border:1px solid transparent;border-radius:10px;background:none;color:#9ab8d4;transition:background-color .15s,color .15s}
.drawer-more:hover{background:#ffffff14;color:#fff}
.drawer-more svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s ease}
.drawer-group.open .drawer-more svg{transform:rotate(180deg)}
.drawer-sub{display:grid;grid-template-rows:0fr;transition:grid-template-rows .26s cubic-bezier(.4,0,.2,1)}
.drawer-group.open .drawer-sub{grid-template-rows:1fr}
.drawer-sub>div{overflow:hidden;display:flex;flex-wrap:wrap;gap:6px;padding:0 6px 0 58px}
.drawer-group.open .drawer-sub>div{padding-top:6px;padding-bottom:8px}
.drawer-sub-item{min-height:30px;padding:4px 12px;border:1px solid #2e4c6b;border-radius:99px;background:#ffffff0a;color:#cfe0f0;font-size:12px;font-weight:600;transition:background-color .15s,border-color .15s,color .15s}
.drawer-sub-item:hover{background:#ffffff1f;color:#fff}
.drawer-sub-item.active{background:#1b4f7c;border-color:#48b2d6;color:#7ce0ff}
@media(prefers-reduced-motion:reduce){.drawer-sub,.drawer-more svg{transition:none}}
.est-chip.up strong{color:#07884b}.est-chip.down strong{color:#c92a2a}
.est-chip strong em{font-style:normal;font-size:12.5px;font-weight:700;color:#5a626a;white-space:nowrap}.est-chip strong em.up{color:#07884b}.est-chip strong em.down{color:#c92a2a}

/* Forecast periods: hatched, dashed outline, clickable through to Consensus. */
.earn-col.forecast{cursor:pointer}
.earn-col.forecast .earn-bar{background:repeating-linear-gradient(45deg,#d7e6f5 0 5px,#eef5fc 5px 10px);box-shadow:inset 0 0 0 1.5px #1b6fb5}
.earn-col.forecast .earn-neg .earn-bar{background:repeating-linear-gradient(45deg,#f6d3d3 0 5px,#fdeeee 5px 10px);box-shadow:inset 0 0 0 1.5px #c92a2a}
.earn-col.forecast .earn-val,.earn-col.forecast .earn-label{color:#1b6fb5;font-weight:700}
.earn-col.forecast:hover .earn-bar{filter:brightness(.96)}
.earn-col.forecast:focus-visible{outline:2px solid #2980c8;outline-offset:2px;border-radius:6px}
.earnings-table tr.forecast{cursor:pointer}
.earnings-table tr.forecast td{background:#f1f7fd;color:#1b6fb5;font-weight:600}

/* Installed app on iPhone: the page runs under the status bar, so the header keeps its content below the notch
   and its navy background fills the status-bar area. In a normal browser tab the inset is 0 and nothing changes. */
.masthead,html[data-layout="auto"] .masthead{padding-top:calc(8px + env(safe-area-inset-top,0px));padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}
@media(max-width:639px){html[data-layout="auto"] .masthead{padding-top:calc(6px + env(safe-area-inset-top,0px));padding-left:max(10px,env(safe-area-inset-left,0px));padding-right:max(10px,env(safe-area-inset-right,0px))}}
@media(min-width:980px){.masthead,html[data-layout="auto"] .masthead{padding-left:max(24px,calc((100% - 1220px)/2));padding-right:max(24px,calc((100% - 1220px)/2))}}

/* Enlarged chart: the symbol is a small black quote-style box you can type into. */
#chart-modal-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.chart-sym{position:relative;display:inline-flex}
.chart-sym-input{width:96px;min-height:34px;padding:3px 10px;border:1px solid var(--border);border-radius:8px;background:#fff;color:#123454;font:inherit;font-size:16px;font-weight:700;letter-spacing:.3px;text-transform:uppercase}
.chart-sym-input:focus{outline:2px solid #2980c8;outline-offset:1px;border-color:#9fc0de}
/* Suggestions follow the light pop-up, not the dark header. */
.chart-sym .symbol-suggest{left:0;right:auto;background:#fff;border:1px solid var(--border);box-shadow:0 10px 28px #1234542e}
.chart-sym .symbol-suggest-head{color:#6b7f90}
.chart-sym .symbol-suggest-item{color:#18334e}
.chart-sym .symbol-suggest-item small,.chart-sym .symbol-suggest-meta{color:#6b7f90}
.chart-sym .symbol-suggest-item:hover,.chart-sym .symbol-suggest-item:focus{background:#eef4f9}
.chart-sym .symbol-suggest-sym{color:#123454}

/* Enlarged chart: the pop-up never grows past the screen; on a short (landscape) screen the header tightens. */
.chart-modal[open]{display:flex;flex-direction:column}
#chart-modal-body{min-height:0;overflow:auto}
@media(max-height:500px){
.chart-modal{max-height:calc(100vh - 12px)}
.chart-modal-head{padding:8px 14px;gap:8px}
#chart-modal-body{padding:8px 12px}
.earn-chart.large{padding:10px 10px 8px}
}
/* Installed app only: the top edge of the screen takes the header's navy, so the system's top fade does not wash it out.
   Browser tabs are unaffected. */
@media(display-mode:standalone){
html{background:#123454}
body{background:#f1f4f7;min-height:100vh}
}

/* ---- Stock Screening ---- */
.scr-variants{display:flex;gap:8px;overflow-x:auto;margin:0 0 14px;padding-bottom:2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.scr-variants::-webkit-scrollbar{display:none}
.scr-variants button{flex:none;min-height:36px;padding:6px 14px;border:1px solid #c5d6e6;border-radius:999px;background:#fff;color:#35526b;font-size:13px;font-weight:600;white-space:nowrap}
.scr-variants button:hover{background:#eef4f9}
.scr-variants button[aria-pressed="true"]{background:#123454;border-color:#123454;color:#fff}
.filter-dropdown-bar.scr-universe{grid-template-columns:repeat(3,minmax(0,1fr))}
.scr-card-head,.scr-result-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.scr-card-head h2{margin:0;font-size:15px;color:#123454}
.scr-card-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.scr-count{margin:0;font-size:14px;color:#35526b}
.scr-count strong{font-size:18px;color:#123454}
.scr-btn{min-height:36px;padding:6px 14px;border:1px solid #bfd0e0;border-radius:8px;background:#fff;color:#123454;font-size:13px;font-weight:600;white-space:nowrap}
.scr-btn:hover:not(:disabled){background:#eef4f9}
.scr-btn.primary{background:#0b63b6;border-color:#0b63b6;color:#fff}
.scr-btn.primary:hover:not(:disabled){background:#0a569f}
.scr-btn:disabled{opacity:.5;cursor:default}
.scr-chips{display:flex;flex-wrap:wrap;gap:8px}
.scr-chip{padding:6px 12px;border-radius:8px;background:#eaf2f9;color:#123454;font-size:13px;font-weight:600}
.scr-cond{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:8px;padding-bottom:8px;border-bottom:1px dashed #e1e9f0}
.scr-cond:last-child{margin-bottom:0;padding-bottom:0;border-bottom:0}
.scr-cond-field{flex:1 1 230px;min-width:0;min-height:40px;padding:6px 12px;border:1px solid #bfd0e0;border-radius:8px;background:#f4f8fb;color:#123454;font-size:14px;font-weight:600;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.scr-cond-field:hover{background:#e8f0f7}
.scr-cond select{flex:0 0 116px;width:116px;min-height:40px;font-size:14px;font-weight:600}
.scr-cond input{flex:1 1 90px;min-width:0;width:90px;min-height:40px;padding:6px 10px;font-size:14px;font-variant-numeric:tabular-nums}
.scr-cond-and{flex:none;font-size:13px;color:#6b7f90}
.scr-x{flex:none;width:34px;height:34px;min-height:34px;padding:0;border:1px solid #d3e0ec;border-radius:8px;background:#fff;color:#35526b;font-size:20px;line-height:1}
.scr-x:hover{background:#eef4f9}
.scr-empty{margin:0;color:#6b7f90;font-size:13px}
.scr-table-wrap{overflow:auto;max-height:min(70vh,760px);border:1px solid #dbe5ee;border-radius:10px;-webkit-overflow-scrolling:touch}
.scr-table{width:100%;border-collapse:separate;border-spacing:0;font-size:13.5px;font-variant-numeric:tabular-nums}
.scr-table th,.scr-table td{padding:9px 12px;text-align:right;white-space:nowrap;border-bottom:1px solid #e6edf3}
.scr-table thead th{position:sticky;top:0;z-index:2;background:#123454;color:#c9dcee;font-size:12px;font-weight:600;cursor:pointer;user-select:none}
.scr-table thead th:hover,.scr-table thead th.sorted{color:#fff}
.scr-table thead th:first-child,.scr-table tbody th{position:sticky;left:0;text-align:left}
.scr-table thead th:first-child{z-index:3}
.scr-table tbody th{z-index:1;background:#fff;font-weight:400;box-shadow:1px 0 0 #dbe5ee}
.scr-table tbody th strong{display:block;color:#123454;font-size:14px;line-height:1.25}
.scr-table tbody th small{color:#7890a5;font-size:10.5px}
.scr-table tbody tr{cursor:pointer}
.scr-table tbody tr:hover td,.scr-table tbody tr:hover th{background:#f1f6fb}
.scr-table td{color:#18334e;font-weight:500}
.scr-table td.scr-up{color:#0a7a4b}
.scr-table td.scr-down{color:#c0392b}
.scr-table td.scr-none{text-align:center;padding:26px 12px;color:#6b7f90;white-space:normal}
.scr-table .sort-mark{display:inline-block;width:1em;margin-left:3px;font-size:9px;color:#7fc4ff}
.scr-more{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:12px;flex-wrap:wrap}
.scr-loading{display:grid;gap:8px}
.scr-loading span{height:38px;border-radius:8px;background:linear-gradient(90deg,#edf2f7 25%,#f7fafc 50%,#edf2f7 75%);background-size:200% 100%;animation:scrShimmer 1.2s linear infinite}
@keyframes scrShimmer{to{background-position:-200% 0}}
@media(prefers-reduced-motion:reduce){.scr-loading span{animation:none}}
.scr-dialog{width:min(880px,calc(100vw - 24px));height:min(680px,calc(100vh - 24px));max-width:none;max-height:none;padding:0;border:1px solid #d5e0ea;border-radius:16px;background:#fff;color:#18334e;box-shadow:0 24px 80px #040c1666;overflow:hidden}
.scr-dialog[open]{display:flex;flex-direction:column}
.scr-dialog::backdrop{background:#091a2b8c;backdrop-filter:blur(3px)}
.scr-dlg-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 18px 10px}
.scr-dlg-head h3{margin:0;font-size:16px;color:#123454}
.scr-dlg-search{padding:0 18px 12px}
.scr-dlg-search input{width:100%;min-height:40px;padding:6px 12px;font-size:16px}
.scr-dlg-body{flex:1;min-height:0;display:grid;grid-template-columns:210px minmax(0,1fr);border-top:1px solid #e3ebf2}
.scr-dlg-cats{display:flex;flex-direction:column;gap:2px;overflow:auto;padding:10px;background:#f4f8fb;border-right:1px solid #e3ebf2}
.scr-dlg-cats button{flex:none;display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:38px;padding:6px 12px;border:0;border-radius:8px;background:none;color:#35526b;font-size:13.5px;font-weight:600;text-align:left;white-space:nowrap}
.scr-dlg-cats button:hover{background:#e8f0f7}
.scr-dlg-cats button[aria-pressed="true"]{background:#dcebf8;color:#123454}
.scr-dlg-cats button span{min-width:20px;padding:1px 6px;border-radius:999px;background:#123454;color:#fff;font-size:11px;text-align:center}
.scr-dlg-list{overflow:auto;padding:10px 14px;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:2px 12px;align-content:start}
.scr-opt{display:flex;align-items:center;gap:10px;min-height:40px;padding:6px 10px;border:0;border-radius:8px;background:none;color:#18334e;font-size:14px;font-weight:500;text-align:left;cursor:pointer}
.scr-opt:hover{background:#eef4f9}
.scr-opt input{flex:none;width:17px;height:17px;min-height:0;margin:0;padding:0;accent-color:#123454}
.scr-dlg-list .scr-empty{padding:14px 6px}
.scr-dlg-foot{border-top:1px solid #e3ebf2;padding:10px 14px;background:#fafcfe}
.scr-dlg-foot[hidden]{display:none}
.scr-picked{display:flex;gap:6px;overflow-x:auto;padding-bottom:8px}
.scr-picked-item{flex:none;display:inline-flex;align-items:center;gap:2px;padding:2px 4px;border:1px solid #c9d9e8;border-radius:8px;background:#fff;font-size:12.5px}
.scr-picked-item b{padding:0 4px;font-weight:600;color:#123454;white-space:nowrap}
.scr-picked-item button{width:28px;height:28px;min-height:28px;padding:0;border:0;border-radius:6px;background:none;color:#4d6a84;font-size:17px;line-height:1}
.scr-picked-item button:hover:not(:disabled){background:#e6eef5}
.scr-picked-item button:disabled{opacity:.3}
.scr-dlg-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;color:#6b7f90}
@media(max-width:820px){
.scr-cond select,.scr-cond input,.scr-saved select,.scr-saved input{font-size:16px}
.scr-cond select{flex-basis:128px;width:128px}
}
@media(max-width:700px){
.filter-dropdown-bar.scr-universe{grid-template-columns:1fr}
.scr-table{font-size:12.5px}
.scr-table th,.scr-table td{padding:8px 9px}
.scr-table tbody th strong{font-size:13px}
.scr-table-wrap{max-height:68vh}
.scr-cond-field{flex-basis:100%}
.scr-cond select{flex:0 0 124px;width:124px}
.scr-cond input{flex:1 1 46px;width:46px;padding:6px 8px}
.scr-result-head .scr-card-tools{display:contents}
.scr-result-head{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}
/* Two rows on a phone: result count + size tick, then three equal buttons. */
.scr-result-head .scr-btn{min-width:0!important;min-height:34px;padding:5px 4px;font-size:12.5px}
.scr-result-head .rank-filter{grid-column:2 / 4;justify-self:end;font-size:12px}
.scr-count{font-size:13px;white-space:nowrap}
.scr-count strong{font-size:16px}
.scr-long{display:none}
.scr-full .data-caption{display:none}
.scr-full .scr-result{padding-top:max(8px,env(safe-area-inset-top))}
.scr-dialog{width:calc(100vw - 12px);height:calc(100vh - 16px);height:calc(100dvh - 16px);border-radius:14px}
.scr-dlg-body{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}
.scr-dlg-cats{flex-direction:row;overflow-x:auto;padding:8px 10px;border-right:0;border-bottom:1px solid #e3ebf2;scrollbar-width:none}
.scr-dlg-cats::-webkit-scrollbar{display:none}
.scr-dlg-list{grid-template-columns:1fr;padding:8px 10px}
.scr-dlg-actions span{font-size:11px}
}
.scr-blank{padding:26px 12px;text-align:center;line-height:1.8;border:1px dashed #c9d9e8;border-radius:10px;background:#f8fbfd}
.scr-blank strong{color:#123454}
.scr-saved{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 14px}
.scr-saved select{flex:1 1 240px;min-width:0;min-height:40px;font-size:14px;font-weight:600}
.scr-saved input{flex:1 1 170px;min-width:0;min-height:40px;padding:6px 10px;font-size:14px}
.scr-saved .scr-btn{min-height:40px}
/* Screening table, full screen: fills the whole viewport on every device, including a phone turned sideways. */
.scr-full{position:fixed;inset:0;width:auto;height:auto;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#fff;overflow:hidden}
.scr-full[open]{display:flex}
.scr-full::backdrop{background:#fff}
.scr-full .scr-result{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;margin:0;border:0;border-radius:0;box-shadow:none;overflow:hidden;padding:max(12px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}
.scr-full .scr-table-wrap{flex:1;min-height:0;max-height:none}
.scr-full .scr-result-head{flex:none}
.scr-full .data-caption{flex:none;margin:6px 0 0}
.scr-full .scr-more{flex:none;margin-top:8px}
@media(max-height:520px){
.scr-full .data-caption{display:none}
.scr-full .scr-result-head{margin-bottom:6px}
.scr-full .scr-result{padding-top:max(6px,env(safe-area-inset-top));padding-bottom:max(6px,env(safe-area-inset-bottom))}
.scr-full .scr-count strong{font-size:15px}
.scr-full .scr-btn{min-height:32px;padding:4px 12px}
.scr-full .scr-table th,.scr-full .scr-table td{padding:6px 10px}
.scr-full .scr-more{margin-top:4px}
}

/* ---- Calendar (XD / dividend payment / earnings) ---- */
.cal-bar .xd,.cal-body .xd,.cal-dialog .xd{--c:#0b63b6;--bg:#e3effb}
.cal-bar .pay,.cal-body .pay,.cal-dialog .pay{--c:#0a7a4b;--bg:#e0f3ea}
.cal-bar .earn,.cal-body .earn,.cal-dialog .earn{--c:#a05a00;--bg:#fbeed8}
.cal-bar .result,.cal-body .result,.cal-dialog .result{--c:#6a4aa5;--bg:#eee8f8}
.market-card.cal-bar{padding:14px 16px}
.cal-top{display:flex;align-items:center;justify-content:space-between;gap:10px 14px;flex-wrap:wrap}
.cal-nav{display:flex;align-items:center;gap:8px;min-width:0}
.cal-arrow{width:36px;padding:0;font-size:20px;line-height:1}
.cal-label{min-width:190px;text-align:center;font-size:16px;color:#123454;white-space:nowrap}
.cal-seg{display:inline-flex;padding:3px;border-radius:9px;background:#e2eaf1;border:1px solid #d7e1ea}
.cal-seg button{min-height:30px;padding:4px 14px;border:0;border-radius:7px;background:none;color:#5b7286;font-size:13px;font-weight:600}
.cal-seg button[aria-pressed="true"]{background:#fff;color:#123454;box-shadow:0 1px 3px #12345426}
.cal-badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#0b63b6;color:#fff;font-size:11px}
.cal-types{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.cal-type{display:inline-flex;align-items:center;min-height:32px;padding:4px 11px;border:1px solid var(--c);border-radius:16px;background:var(--bg);color:var(--c);font-size:12.5px;font-weight:600;gap:7px}
.cal-type i{flex:none;width:9px;height:9px;border-radius:50%;background:var(--c)}
.cal-type b{font-weight:700;font-variant-numeric:tabular-nums}
.cal-type[aria-pressed="false"]{border-color:#cfdae4;background:#fff;color:#8497a8}
.cal-type[aria-pressed="false"] i{background:#c3cfda}
.cal-scope{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0 0;font-size:12.5px;color:#35526b}
.cal-body .data-caption{margin:12px 0 0}
.cal-hint{padding:26px 8px;text-align:center}
.cal-dows,.cal-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.cal-dows span{padding:6px 4px;text-align:center;font-size:12px;font-weight:600;color:#516779}
.cal-dows .off{color:#9aaab8}
.cal-grid{border:1px solid #dbe5ee;border-radius:10px;overflow:hidden;background:#fff}
.cal-dows{background:#f1f5f9;border-bottom:1px solid #dbe5ee}
.cal-cell{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:4px;min-width:0;min-height:108px;padding:6px;border:0;border-right:1px solid #e6edf3;border-bottom:1px solid #e6edf3;border-radius:0;background:#fff;color:#18334e;text-align:left;font-weight:500;white-space:normal;line-height:1.25}
.cal-row .cal-cell:last-child{border-right:0}
.cal-row:last-child .cal-cell{border-bottom:0}
.cal-cell.out{background:#f6f8fa}
button.cal-cell:hover{background:#f2f8fd}
.cal-num{align-self:flex-start;display:inline-grid;place-items:center;min-width:24px;height:24px;border-radius:12px;font-size:12.5px;font-weight:600;color:#35526b}
.cal-cell.today .cal-num{background:#0b63b6;color:#fff}
.cal-pills{display:grid;gap:3px;min-width:0}
.cal-pills i{display:block;padding:2px 6px;border-radius:5px;background:var(--bg);color:var(--c);font-style:normal;font-size:11.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cal-pills em{font-style:normal;font-size:11px;font-weight:600;color:#5b7286;padding-left:2px}
.cal-dots{display:none;flex-wrap:wrap;gap:3px}
.cal-dots i{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:var(--c);color:#fff;font-style:normal;font-size:10.5px;font-weight:700}
.cal-quarter{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start}
.cal-month.mini h3{margin:0 0 8px;font-size:14px;color:#123454}
.cal-month.mini .cal-cell{min-height:62px;padding:4px}
.cal-month.mini .cal-pills{display:none}
.cal-month.mini .cal-dots{display:flex}
.cal-week{display:grid;grid-template-columns:var(--cal-wk,repeat(5,minmax(0,1fr)));gap:8px;align-items:start}
.cal-week.wk7{--cal-wk:minmax(0,.55fr) repeat(5,minmax(0,1fr)) minmax(0,.55fr)}
.cal-month.wk5 .cal-dows,.cal-month.wk5 .cal-row{grid-template-columns:repeat(5,minmax(0,1fr))}
.cal-weekend{margin-left:auto;white-space:nowrap}
.cal-wday{min-width:0;border:1px solid #dbe5ee;border-radius:10px;background:#fff;overflow:hidden}
.cal-wday h3{display:flex;align-items:center;gap:6px;margin:0;padding:8px 10px;background:#f1f5f9;border-bottom:1px solid #dbe5ee;font-size:13px;font-weight:600;color:#123454;white-space:nowrap}
.cal-wday h3 span{color:#516779}
.cal-wday h3 b{margin-left:auto;min-width:20px;padding:1px 6px;border-radius:9px;background:#dbe7f2;font-size:11px;text-align:center}
.cal-wday.today{border-color:#0b63b6}
.cal-wday.today h3{background:#0b63b6;color:#fff}
.cal-wday.today h3 span{color:#d6e8f8}
.cal-wday.today h3 b{background:#ffffff33;color:#fff}
.cal-wlist{display:grid;gap:5px;padding:8px;max-height:560px;overflow:auto}
.cal-nil{margin:0;padding:10px 0;text-align:center;color:#a9b7c4}
.cal-ev{display:flex;flex-direction:column;align-items:flex-start;gap:1px;width:100%;min-width:0;min-height:0;padding:6px 9px;border:0;border-left:3px solid var(--c);border-radius:6px;background:var(--bg);color:#18334e;text-align:left;white-space:normal;line-height:1.3}
.cal-ev:hover{filter:brightness(.96)}
.cal-ev strong{font-size:13px;color:var(--c)}
.cal-ev span{font-size:11.5px;font-weight:500;color:#35526b;overflow-wrap:anywhere}
.cal-tag{display:inline-block;padding:2px 9px;border-radius:10px;background:var(--bg);color:var(--c);font-size:12px;font-weight:600;white-space:nowrap}
.scr-table.cal-table .cal-left{text-align:left}
.scr-table.cal-table tbody tr{cursor:pointer}
.scr-dialog.cal-dialog{width:min(540px,calc(100vw - 24px));height:auto;max-height:min(700px,calc(100vh - 24px));max-height:min(700px,calc(100dvh - 24px))}
.cal-dlg-body{flex:1;min-height:0;overflow:auto;padding:2px 18px 16px;-webkit-overflow-scrolling:touch}
.cal-day-group{display:grid;gap:5px;margin-bottom:14px}
.cal-day-group h4{display:flex;align-items:center;gap:8px;margin:0 0 2px;font-size:13px;color:#35526b}
.cal-day-group .cal-ev{flex-direction:row;align-items:baseline;gap:10px}
.cal-day-group .cal-ev strong{flex:none;min-width:64px}
.cal-day-group .cal-ev span{font-size:12.5px}
.cal-f-lead{margin:0 0 12px;font-size:12.5px;color:#516779;line-height:1.5}
.cal-f-mode{display:flex;align-items:flex-start;gap:10px;margin:0 0 8px;padding:10px 12px;border:1px solid #d3e0ec;border-radius:10px;background:#fff;cursor:pointer;white-space:normal}
.cal-f-mode.on{border-color:#0b63b6;background:#f2f8fd}
.cal-f-mode input{flex:none;width:18px;height:18px;min-height:0;margin:2px 0 0;padding:0;accent-color:#0b63b6}
.cal-f-mode span{display:grid;gap:2px}
.cal-f-mode strong{font-size:14px;color:#123454}
.cal-f-mode small{font-size:12px;font-weight:500;color:#6b7f90;line-height:1.4}
.cal-f-panel{display:grid;gap:12px;padding:4px 2px 14px 30px}
.cal-f-panel[hidden]{display:none}
.cal-f-panel .field{margin:0}
.cal-f-panel .field label{font-size:12px;color:#274764}
.cal-f-panel select,.cal-f-panel input[type="search"]{min-height:42px;font-size:14px;font-weight:600;border-color:#bfd0e0;color:#123454}
.cal-f-panel .rank-filter input{width:15px;min-height:0;padding:0}
.cal-suggest{display:grid;gap:4px}
.cal-suggest:empty{display:none}
.cal-suggest button{display:flex;align-items:center;width:100%;justify-content:flex-start;gap:10px;min-height:38px;padding:6px 10px;border:1px solid #dbe5ee;border-radius:8px;background:#fff;color:#18334e;font-size:13px;text-align:left;white-space:normal}
.cal-suggest button:hover{background:#eef4f9}
.cal-suggest button strong{flex:none;min-width:62px;color:#0b63b6}
.cal-suggest button span{font-weight:500;color:#516779;font-size:12px}
.cal-chosen{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.cal-chosen-item{display:inline-flex;align-items:center;gap:2px;padding:2px 2px 2px 10px;border-radius:8px;background:#eaf2f9;color:#123454;font-size:13px}
.cal-chosen-item button{min-height:26px;width:26px;padding:0;border:0;background:none;color:#5b7286;font-size:16px}
.cal-dialog .scr-dlg-actions .scr-btn.primary{min-width:96px!important}
.cal-jump{margin:0 0 12px;padding:10px 12px;border-radius:8px;background:#f1f5f9;text-align:center}
.cal-jump .mover-more{font-size:13px}
@media(max-width:1000px){
.cal-label{min-width:150px}
.cal-week{grid-template-columns:1fr}
.cal-wday.empty h3{border-bottom:0}
.cal-wday.empty .cal-wlist{display:none}
.cal-wlist{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));max-height:none}
.cal-quarter{grid-template-columns:1fr}
.cal-month.mini .cal-cell{min-height:54px}
}
@media(max-width:700px){
.market-card.cal-bar{padding:12px}
.cal-nav{flex:1 1 100%}
.cal-label{flex:1;min-width:0;font-size:15px}
.cal-type{padding:4px 9px;font-size:12px;gap:5px}
.cal-types{gap:6px}
.cal-cell{min-height:62px;padding:4px 3px;align-items:center}
.cal-num{align-self:center}
.cal-pills{display:none}
.cal-dots{display:flex;justify-content:center}
.cal-dots i{min-width:16px;height:16px;font-size:10px;padding:0 3px}
.scr-dialog.cal-dialog{width:calc(100vw - 12px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px)}
.cal-dlg-body{padding:2px 14px 14px}
.cal-f-panel{padding-left:6px}
.cal-f-panel select,.cal-f-panel input[type="search"]{font-size:16px}
}
@media(max-height:520px) and (orientation:landscape){
.cal-cell{min-height:46px}
.cal-month.mini .cal-cell{min-height:42px}
.cal-wlist{max-height:none}
}

/* Screening: rank column, find-in-table box, press-and-hold column move */
.scr-table.scr-ranked .scr-rank{position:sticky;left:0;width:34px;min-width:34px;max-width:34px;padding-left:2px;padding-right:2px;text-align:center;font-size:11px;font-weight:500;color:#7890a5;cursor:default}
.scr-table.scr-ranked tbody .scr-rank{z-index:1;background:#fff}
.scr-table.scr-ranked thead .scr-rank{z-index:3;color:#c9dcee}
.scr-table.scr-ranked thead th[data-sort="symbol"]{position:sticky;left:34px;z-index:3;text-align:left}
.scr-table.scr-ranked tbody th{left:34px}
.scr-table tbody tr.scr-hit td,.scr-table tbody tr.scr-hit th{background:#fff1bf}
.scr-table tbody tr.scr-hit .scr-rank{color:#123454;font-weight:700}
.scr-find{display:inline-flex;align-items:center;gap:8px;flex:1 1 190px;min-width:0;max-width:340px}
.scr-find input{flex:1;min-width:0;width:100%;min-height:34px;padding:5px 10px;border:1px solid #c9d9e8;border-radius:8px;background:#fff;color:#123454;font-size:13px}
.scr-find-note{flex:none;font-size:12px;font-weight:600;color:#0a7a4b;white-space:nowrap}
.scr-find-note.miss{color:#c0392b}
.scr-find-note:empty{display:none}
.scr-table thead th[data-col],.scr-picked-item{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.scr-picked-item{cursor:grab;padding-left:6px}
.scr-picked-item i{font-style:normal;color:#8fa5b8;font-size:13px;line-height:1}
.scr-drag-src{opacity:.35}
.scr-drag-ghost{position:fixed;z-index:9999;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 12px;border-radius:9px;background:#0b63b6;color:#fff;font-size:12.5px;font-weight:600;white-space:nowrap;box-shadow:0 12px 26px rgba(8,30,52,.38);pointer-events:none;transform-origin:center;animation:scr-lift .2s cubic-bezier(.2,.9,.3,1.3) forwards}
@keyframes scr-lift{from{transform:translateY(0) scale(1);opacity:.5}to{transform:translateY(-7px) scale(1.07);opacity:1}}
.scr-drag-mark{position:fixed;z-index:9998;width:3px;border-radius:2px;background:#ffb020;box-shadow:0 0 0 1px #fff;pointer-events:none;transition:left .09s ease-out}
html.scr-dragging,html.scr-dragging *{cursor:grabbing!important;-webkit-user-select:none!important;user-select:none!important}
@media (prefers-reduced-motion:reduce){.scr-drag-ghost{animation:none;transform:translateY(-7px) scale(1.07)}.scr-drag-mark{transition:none}}
@media (max-width:700px){
.scr-result-head .scr-find{grid-column:1 / -1;max-width:none}
.scr-find input{font-size:16px}
.scr-table.scr-ranked .scr-rank{width:28px;min-width:28px;max-width:28px;font-size:10px}
.scr-table.scr-ranked thead th[data-sort="symbol"],.scr-table.scr-ranked tbody th{left:28px}
}

/* Calendar: embedded economic calendar */
.cal-eco-frame{border:1px solid #dbe5ee;border-radius:10px;overflow:hidden;background:#fff}
.cal-eco-frame iframe{display:block;width:100%;height:min(72vh,820px);min-height:420px;border:0}
.cal-eco .data-caption a{color:#0b63b6;font-weight:600}
@media(max-height:520px){.cal-eco-frame iframe{height:78vh;min-height:260px}}
