/* Production market and account surfaces; retains the established brand system. */
a.primary-button,a.secondary-button,a.quiet-button,a.text-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;line-height:1.5}
.demo-notice{justify-content:space-between;align-items:center}.demo-notice .data-status-label{min-width:0;font-size:12px;line-height:1.6;color:var(--muted)}.demo-notice .session-link{flex-shrink:0;margin-left:auto;font-size:13px;gap:6px;min-height:44px}.session-link .icon{width:16px;height:16px}
.sidebar-bottom .account-mini{min-width:0}.account-mini>div{min-width:0}.account-mini strong{overflow:hidden;text-overflow:ellipsis;max-width:136px;white-space:nowrap}.account-mini .avatar .icon{width:20px;height:20px}.sidebar-bottom .quiet-button{width:100%;justify-content:flex-start}
.topbar>.account-button span{white-space:nowrap}.app-footer{flex-wrap:wrap;gap:7px 16px}.app-footer .text-button{font-size:12px;padding:0;min-height:34px}
.ticker-section{margin:0 0 14px;min-width:0}.ticker-section .tradingview-widget-container{background:transparent}.ticker-section .widget-fallback{margin-top:0}.ticker-section .widget-status{font-size:12px}
.tv-widget{width:100%;min-width:0;margin:12px 0 0;position:relative}.tv-widget iframe{max-width:100%;border:0}.tradingview-widget-container{width:100%;min-width:0}.tradingview-widget-container__widget{width:100%;height:calc(100% - 32px)}.tradingview-widget-copyright{height:32px;padding:5px 4px;font-size:12px;line-height:22px;color:var(--muted);overflow-wrap:anywhere}.tradingview-widget-copyright a{color:var(--accent-text);text-decoration:none}.widget-status{padding:9px 12px;font-size:13px;color:var(--muted);background:var(--panel-soft);border:1px solid var(--line);border-radius:8px;margin-top:7px}.widget-status[hidden]{display:none}.widget-fallback{display:flex;gap:15px;justify-content:flex-end;align-items:center;min-height:32px;font-size:12px;line-height:1.5}.widget-fallback .text-button{font-size:12px;min-height:32px;padding:3px 0}.widget-fallback a{color:var(--muted);text-decoration:none}.widget-error .widget-status{color:var(--accent-text)}
.home-quicklinks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0 20px}.home-quicklinks button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:64px;padding:13px 10px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);font-size:14px;font-weight:500;box-shadow:var(--card-shadow)}.home-quicklinks .icon{width:21px;height:21px;color:var(--accent-text)}.home-quicklinks button:hover{background:var(--hover)}
.live-home-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px;align-items:start}.live-home-grid>.panel{min-width:0}.panel .panel-header>h2{min-width:0;line-height:1.5}.panel-header .text-button{flex-shrink:0;white-space:nowrap;font-size:13px}
.source-note{display:flex;align-items:flex-start;gap:8px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--panel-soft);color:var(--muted);font-size:12px;line-height:1.75;margin:12px 0 18px}.source-note>.icon{width:16px;height:16px;flex-shrink:0;margin-top:3px}.source-note>span{flex:1;min-width:0}.source-note .text-button{font-size:12px;padding:0;min-height:24px;white-space:nowrap;flex-shrink:0}.live-market-panel .source-note{margin:10px 0 0}
.market-mode-tabs,.news-tabs{display:flex;max-width:100%;gap:5px;overflow-x:auto;scrollbar-width:thin;white-space:nowrap;margin:0 0 16px;padding:5px;border:1px solid var(--line);border-radius:11px;background:var(--panel-soft)}.market-mode-tabs button,.news-tabs button{flex:1 0 auto;min-height:44px;padding:10px 16px;font-size:14px;border-radius:8px}.market-mode-tabs button.active,.news-tabs button.active{background:var(--panel);color:var(--accent-text);box-shadow:var(--card-shadow)}
.company-catalog{margin-top:20px}.company-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 25px}.company-row{display:flex;align-items:center;gap:11px;min-width:0;padding:14px 0;border-bottom:1px solid var(--line)}.company-row:last-child{border-bottom:0}.company-row>.icon-button{flex:0 0 36px;min-width:36px;width:36px;color:var(--subtle)}.company-row>.icon-button[aria-pressed=true]{color:var(--accent-text)}.company-row>.icon-button[aria-pressed=true] .icon{fill:var(--accent-soft)}.company-row-main{display:flex;align-items:center;gap:10px;flex:1;min-width:0;background:transparent;color:var(--text);text-align:left;padding:0}.company-row-main .stock-copy{min-width:0}.company-row-main strong{font-size:14px;font-weight:600;display:block}.company-row-main .stock-copy>span{display:block;font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.company-row-main small{display:block;font-size:12px;color:var(--subtle);line-height:1.6}.company-row>.text-button{padding:5px 0;font-size:13px;flex-shrink:0}
.chart-panel+.panel{margin-top:20px}.chart-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.symbol-picker{display:flex;align-items:center;gap:12px;min-width:0;font-size:13px;color:var(--muted)}.symbol-picker select{min-height:44px;min-width:0;max-width:100%;font-size:16px;padding:10px 32px 10px 12px;color:var(--text);background:var(--panel-soft);border:1px solid var(--line);border-radius:9px}.chart-heading>.secondary-button{min-height:44px;white-space:nowrap;font-size:13px}.news-feed-panel .symbol-picker{margin:16px 0}
.official-panel .meta{line-height:1.7;font-size:12px}.official-news{margin-top:10px}.official-news-item{display:block;text-decoration:none;color:var(--text);padding:17px 0;border-bottom:1px solid var(--line)}.official-news-item:hover h3{color:var(--accent-text)}.official-news-item h3{font-size:15px;line-height:1.65;font-weight:500;margin:5px 0 8px;overflow-wrap:anywhere}.news-kicker{font-size:12px;line-height:1.5;color:var(--accent-text)}.official-news-item time{display:block;font-size:12px;line-height:1.6;color:var(--subtle)}.news-source-footer{display:flex;flex-wrap:wrap;align-items:center;gap:8px 15px;margin:15px 0 0;font-size:12px;color:var(--muted)}.news-source-footer small{display:block;flex-basis:100%;font-size:12px;line-height:1.6}.news-source-footer a{color:var(--accent-text);text-decoration:none}.news-warning,.news-loading{padding:20px 0;color:var(--muted);font-size:14px;line-height:1.8}.news-warning{color:var(--accent-text)}
.editorial-hero{position:relative;isolation:isolate;min-height:215px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#08182b;margin-bottom:21px;display:flex;align-items:center}.editorial-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:78% 50%;z-index:-2;filter:brightness(1.18)}.editorial-hero::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(5,18,33,.9),rgba(5,18,33,.66) 45%,rgba(5,18,33,.08) 85%,rgba(5,18,33,0))}.editorial-hero>div{padding:30px;max-width:65%}.editorial-hero h2{font-size:25px;color:#f4f7fc;line-height:1.45;margin:0 0 12px}.editorial-hero p{font-size:14px;line-height:1.8;color:#c7d5e5;margin:0}.editorial-hero .eyebrow{color:#e2c892;font-size:12px;margin-bottom:10px}.news-feed-panel+.official-panel{margin-top:20px}.editorial-grid .topic-card{min-height:245px}.editorial-grid .topic-art{object-position:right center}
.account-invitation{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:24px}.account-invitation>div{min-width:0;max-width:70%}.account-invitation .eyebrow{font-size:12px;color:var(--accent-text);margin-bottom:10px}.account-invitation h2{font-size:21px;margin:0 0 8px}.account-invitation p{font-size:14px;color:var(--muted);line-height:1.8;margin:0}.account-invitation>.primary-button{flex-shrink:0;white-space:nowrap;font-size:13px}
.account-profile{display:flex;align-items:center;flex-wrap:wrap;gap:18px;padding:26px}.profile-avatar{width:62px;height:62px;display:grid;place-items:center;border:1px solid var(--line);border-radius:18px;background:var(--panel-soft);flex-shrink:0;color:var(--accent-text)}.profile-avatar .icon{width:32px;height:32px}.account-profile>div{flex:1 1 220px;min-width:0}.account-profile h2{font-size:22px;line-height:1.5;overflow-wrap:anywhere;margin:0 0 7px}.account-profile p{font-size:14px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere;margin:0}.account-profile .eyebrow{font-size:12px;color:var(--accent-text);margin-bottom:8px}.account-profile>.primary-button{font-size:14px}.account-stats{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}.account-stats>button{display:grid;grid-template-columns:24px 1fr;grid-template-rows:1fr 1fr;gap:4px 14px;text-align:left;color:var(--text);padding:20px}.account-stats .icon{grid-row:1/3;align-self:center;color:var(--accent-text)}.account-stats strong{font-size:26px;line-height:1.3}.account-stats span{font-size:13px;color:var(--muted)}.empty-account-records,.privacy-summary{margin-top:20px}.empty-account-records .empty{padding:25px 15px}.privacy-summary h2{font-size:17px}.privacy-summary p{font-size:14px;line-height:1.85;color:var(--muted)}.privacy-summary>.text-button{font-size:13px}.connection-message{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 17px;border:1px solid var(--accent-line);border-radius:10px;font-size:13px;line-height:1.7;margin-top:15px;color:var(--accent-text)}
.login-illustration{width:62px;height:62px;border:1px solid var(--accent-line);border-radius:18px;background:var(--accent-soft);display:grid;place-items:center;color:var(--accent-text);margin:8px 0 20px}.login-illustration .icon{width:34px;height:34px}.article-sources{padding:17px 0;border-top:1px solid var(--line);display:grid;gap:8px;font-size:13px}.article-sources a{color:var(--accent-text);line-height:1.6}.article-body>a{font-size:13px;color:var(--accent-text)}.settings-row>a{flex-shrink:0;font-size:13px}.empty .primary-button{margin-top:8px}.empty p{line-height:1.8}
html[data-layout=mobile] .live-home-grid{grid-template-columns:1fr;gap:16px}
html[data-layout=mobile] .home-quicklinks{gap:8px;margin:12px 0 17px}
html[data-layout=mobile] .home-quicklinks button{flex-direction:column;gap:8px;min-height:78px;font-size:12px;padding:10px 3px}
html[data-layout=mobile] .company-list{grid-template-columns:1fr;gap:0}
html[data-layout=mobile] .company-row{gap:8px;padding:13px 0}
html[data-layout=mobile] .company-row>.icon-button{width:32px;min-width:32px;flex-basis:32px}
html[data-layout=mobile] .market-mode-tabs,html[data-layout=mobile] .news-tabs{gap:2px;padding:4px}
html[data-layout=mobile] .market-mode-tabs button,html[data-layout=mobile] .news-tabs button{font-size:12px;padding:9px 10px}
html[data-layout=mobile] .source-note{flex-wrap:wrap;padding:11px 12px}.source-note .text-button{margin-left:auto}
html[data-layout=mobile] .source-note>span{flex-basis:calc(100% - 26px)}
html[data-layout=mobile] .chart-heading{gap:10px}
html[data-layout=mobile] .symbol-picker{flex-direction:column;align-items:stretch;gap:7px;flex:1;max-width:100%}
html[data-layout=mobile] .symbol-picker select{width:100%}
html[data-layout=mobile] .editorial-hero{min-height:220px}
html[data-layout=mobile] .editorial-hero>div{padding:20px;max-width:90%}
html[data-layout=mobile] .editorial-hero h2{font-size:21px}
html[data-layout=mobile] .editorial-hero p{font-size:13px}
html[data-layout=mobile] .editorial-grid{grid-template-columns:1fr;gap:14px}
html[data-layout=mobile] .editorial-grid .topic-card{min-height:220px}
html[data-layout=mobile] .account-invitation{flex-direction:column;align-items:stretch;gap:16px;padding:21px}
html[data-layout=mobile] .account-invitation>div{max-width:100%}
html[data-layout=mobile] .account-invitation h2{font-size:19px}
html[data-layout=mobile] .account-profile{padding:21px;gap:14px}
html[data-layout=mobile] .account-profile>div{flex-basis:170px}
html[data-layout=mobile] .account-profile h2{font-size:20px}
html[data-layout=mobile] .account-profile>.primary-button{width:100%}
html[data-layout=mobile] .account-stats{gap:12px}
html[data-layout=mobile] .account-stats>button{padding:17px 14px;gap:3px 9px}
html[data-layout=mobile] .official-news-item h3{font-size:14px}
@media(max-width:760px){
.live-home-grid{grid-template-columns:1fr;gap:16px}.home-quicklinks{gap:8px;margin:12px 0 17px}.home-quicklinks button{flex-direction:column;gap:8px;min-height:78px;font-size:12px;padding:10px 3px}.company-list{grid-template-columns:1fr;gap:0}.company-row{gap:8px;padding:13px 0}.company-row>.icon-button{width:32px;min-width:32px;flex-basis:32px}.market-mode-tabs,.news-tabs{gap:2px;padding:4px}.market-mode-tabs button,.news-tabs button{font-size:12px;padding:9px 10px}.source-note{flex-wrap:wrap;padding:11px 12px}.source-note>span{flex-basis:calc(100% - 26px)}.chart-heading{gap:10px}.symbol-picker{flex-direction:column;align-items:stretch;gap:7px;flex:1;max-width:100%}.symbol-picker select{width:100%}.editorial-hero{min-height:220px}.editorial-hero>div{padding:20px;max-width:90%}.editorial-hero h2{font-size:21px}.editorial-hero p{font-size:13px}.editorial-grid{grid-template-columns:1fr;gap:14px}.editorial-grid .topic-card{min-height:220px}.account-invitation{flex-direction:column;align-items:stretch;gap:16px;padding:21px}.account-invitation>div{max-width:100%}.account-invitation h2{font-size:19px}.account-profile{padding:21px;gap:14px}.account-profile>div{flex-basis:170px}.account-profile h2{font-size:20px}.account-profile>.primary-button{width:100%}.account-stats{gap:12px}.account-stats>button{padding:17px 14px;gap:3px 9px}.official-news-item h3{font-size:14px}
}
@media(min-width:761px) and (max-width:1100px){.live-home-grid{grid-template-columns:1fr}.company-list{grid-template-columns:1fr}}

/* Keep newsroom copy readable on phones without dimming the complete artwork. */
html[data-layout=mobile] .editorial-hero::after{background:linear-gradient(90deg,rgba(5,18,33,.9) 0%,rgba(5,18,33,.7) 48%,rgba(5,18,33,.2) 82%,rgba(5,18,33,.02) 100%)}
@media(max-width:760px){
  .editorial-hero::after{background:linear-gradient(90deg,rgba(5,18,33,.9) 0%,rgba(5,18,33,.7) 48%,rgba(5,18,33,.2) 82%,rgba(5,18,33,.02) 100%)}
}
