/* ORBIT 9.19: quiet depth for the light globe workspace. */
body[data-theme="light"]{--text:#203e50;--muted:#486576;--line:#5c819c40;background:radial-gradient(ellipse at 65% 20%,#cddfe9a6,transparent 64%),linear-gradient(135deg,#edf3f8,#e2edf5 65%,#d5e5ee)!important}
body[data-theme="light"] .center{background:radial-gradient(ellipse at 52% 52%,#d4e9f1 0%,#e7f0f7 48%,#edf3f8 78%,#dbe8f1 100%);border-color:#7b9eb447}
body[data-theme="light"].earth-mode .center{background:radial-gradient(ellipse at 52% 50%,#cee5ef 0%,#e2edf6 46%,#edf3f8 78%,#d6e5ef 100%)}
body[data-theme="light"] .globeWrap .earthStage{background:radial-gradient(ellipse at center,#81bed33b 0%,#b0d3e52b 38%,transparent 71%)}
body[data-theme="light"] .globe{box-shadow:0 15px 45px #38698620,0 0 75px #68b5d03b}
body[data-theme="light"]:not(.earth-mode) .globeWrap .earthStage>.globe{width:min(84%,510px);height:auto;aspect-ratio:1/1}
body[data-theme="light"] .hero p,body[data-theme="light"] .hero .eyebrow{color:#496779}
body[data-theme="light"] .earthDockNotes{color:#3d5d70!important;opacity:1}
body[data-theme="light"] .earthDockNotes small{font-size:10px;line-height:1.5}
body[data-theme="light"] .earthDockNotes button{color:#24576c;border-color:#83a4b7;background:#edf5fa}
body[data-theme="light"] .mainQualityToggle,body[data-theme="light"].earth-mode .earthPanelToggle{background:#edf5fae8!important;color:#294e63!important;border-color:#8daabd!important;box-shadow:0 3px 12px #264b610a!important}
body[data-theme="light"] .mainQualityToggle:hover,body[data-theme="light"].earth-mode .earthPanelToggle:hover{background:#dbeaf3!important;border-color:#4e829e!important}
body[data-theme="light"] .mainQualityToggle:focus-visible,body[data-theme="light"].earth-mode .earthPanelToggle:focus-visible{outline:2px solid #246e8d;outline-offset:3px}
body[data-theme="light"] .ticker{border-color:#8aa9bc66!important;box-shadow:0 3px 14px #315c710d}
@media(max-width:600px){body[data-theme="light"]:not(.earth-mode) .globeWrap .earthStage>.globe{width:min(84%,400px)}}

/* Phone layout: bound flex items, keep long navigation in its own scroller. */
@media(max-width:720px){
 html{width:100%;min-width:0;overflow-x:hidden;overflow-x:clip}
 body{width:100%;min-width:0;margin:0;overflow-x:hidden;overflow-x:clip}
 body:not(.earth-mode){display:flex;flex-direction:column}
 body:not(.earth-mode)>.top{order:0}
 body:not(.earth-mode)>.layout{order:2}
 body:not(.earth-mode)>.homeOverview{order:1;width:100%;scroll-margin-top:16px}
 body:not(.earth-mode)>.siteFooter{order:3;width:100%}
 body:not(.earth-mode)>.supportFooter{order:4;width:100%}
 body:not(.earth-mode) .layout{position:relative;inset:auto;display:flex;flex-direction:column;align-items:stretch;width:calc(100% - 24px);max-width:calc(100% - 24px);min-width:0;margin:12px;box-sizing:border-box}
 .layout>.left{display:contents}
 .layout>.left>*{order:3;min-width:0;max-width:100%;box-sizing:border-box}
 .layout>.left>.navpanel{order:0;display:flex;flex-direction:row;flex-wrap:nowrap;width:100%;max-width:100%;min-width:0;min-height:0;height:auto;box-sizing:border-box;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;gap:4px;padding:6px}
 .layout>.left>.navpanel .navitem{flex:0 0 auto;white-space:nowrap;min-height:44px;margin:0;box-sizing:border-box}
 .layout>.left>.homeNews{order:2}
 body:not(.earth-mode) .layout>.center{order:1;width:100%;max-width:100%;min-width:0;box-sizing:border-box;height:auto;min-height:0;flex-shrink:1}
 .layout>.right{order:4;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
 .layout>.newsReadingPage{order:1;min-width:0;max-width:100%;box-sizing:border-box}
 body:not(.earth-mode) .center>.hero{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
 body:not(.earth-mode) .earthHeadingRow{width:100%;min-width:0;gap:8px;flex-wrap:wrap}
 body:not(.earth-mode) .earthHeadingRow h1{font-size:clamp(24px,6.7vw,32px);overflow-wrap:anywhere;flex:1 1 190px;min-width:0}
 body:not(.earth-mode) .hero p{white-space:normal;overflow-wrap:anywhere}
 body:not(.earth-mode) .globeWrap{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
 body:not(.earth-mode) .globeWrap .earthStage{width:100%;min-width:0;max-width:100%;box-sizing:border-box;display:flex;justify-content:center}
 body:not(.earth-mode) .globeWrap .earthStage>.globe{width:min(86vw,100%,420px);height:auto;min-width:0;max-width:100%;aspect-ratio:1}
 body:not(.earth-mode) .globeControls{width:100%;min-width:0;max-width:100%;box-sizing:border-box;flex-wrap:wrap}
 body:not(.earth-mode) .earthActionDock{max-width:100%;box-sizing:border-box;flex-wrap:wrap}
 body:not(.earth-mode) .earthNavRow{flex-wrap:wrap;min-width:0;justify-content:center}
 body:not(.earth-mode) .center>.ticker{min-width:0;max-width:96%;box-sizing:border-box}
 .top{width:calc(100% - 24px);max-width:calc(100% - 24px);min-width:0;box-sizing:border-box;margin:12px}
 .topright{min-width:0;max-width:100%;flex-wrap:wrap}
 .homeOverview,.siteFooter,.supportFooter{min-width:0;max-width:100%;box-sizing:border-box}
}

/* Resolve tablet row spans rather than stretching unrelated sidebar cards. */
@media(min-width:721px) and (width < 1000px){
 body:not(.earth-mode) .layout{grid-template-columns:175px minmax(0,1fr);align-items:start;row-gap:18px}
 body:not(.earth-mode):not(.news-page) .layout>.left{grid-column:1;grid-row:1 / span 2;min-width:0}
 body:not(.earth-mode):not(.news-page) .layout>.center{grid-column:2;grid-row:1;min-width:0;min-height:0}
 body:not(.earth-mode):not(.news-page) .layout>.right{grid-column:2;grid-row:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;align-content:start;gap:16px;overflow:visible;min-width:0}
 body:not(.earth-mode) .right>.rightcard{grid-column:auto;grid-row:auto;align-self:start;width:100%;min-width:0;max-width:100%;min-height:0;height:auto;box-sizing:border-box;margin:0;flex:initial}
 body:not(.earth-mode) .right>.homeAdRail{grid-column:1/-1;grid-row:auto;align-self:start}
 .homeAdRail .readingAdRail{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px}
}

/* 9.61: one home layout for laptop windows, independent of old 1100/1150/1250 rules.
   Phone flow and the immersive Earth/news workspaces keep their own layouts. */
@media(min-width:1000px){
 body:not(.earth-mode):not(.news-page) .layout{display:grid;--home-rail-width:clamp(220px,18vw,272px);grid-template-columns:var(--home-rail-width) minmax(0,1fr) var(--home-rail-width);gap:18px;align-items:start;min-height:0;padding:0 20px;box-sizing:border-box}
 body:not(.earth-mode):not(.news-page) .layout>.left{grid-column:1;grid-row:1;min-width:0}
 body:not(.earth-mode):not(.news-page) .layout>.center{grid-column:2;grid-row:1;min-width:0}
 body:not(.earth-mode):not(.news-page) .layout>.right{grid-column:3;grid-row:1;display:flex;flex-direction:column;gap:16px;min-width:0;overflow:visible}
 body:not(.earth-mode):not(.news-page) .right>.rightcard{grid-column:auto;grid-row:auto;width:100%;max-width:none;flex:initial;box-sizing:border-box}
}
@media(min-width:1400px){
 body:not(.earth-mode):not(.news-page) .layout{grid-template-columns:var(--home-rail-width) minmax(0,1fr) var(--home-rail-width);gap:22px;padding:0 24px}
}
@media(min-width:721px){
 body:not(.earth-mode):not(.news-page) .layout>.center{height:auto;min-height:0;align-content:start;gap:12px}
 /* Reserve the transformed globe's extra radius at the maximum 1.15 scale. */
 body:not(.earth-mode):not(.news-page) .globeWrap .earthStage{padding:72px 0 60px}
 body:not(.earth-mode):not(.news-page) .earthDockNotes{flex-direction:row;justify-content:center;flex-wrap:wrap;gap:6px 12px;padding:4px 0}
 body:not(.earth-mode):not(.news-page) .earthDockNotes .quickGlobePause,
 body:not(.earth-mode):not(.news-page) .earthDockNotes .globeExplain{margin:0}
 body:not(.earth-mode):not(.news-page) .earthDockNotes .mapInfo{flex-basis:100%}
}
/* Large cards retain a dark surface under a mouse pointer. */
@media(min-width:721px) and (hover:hover){
 body[data-theme=premium]{--actionHoverBg:#174454;--actionHoverText:#edf8ff;--actionHoverBorder:#69aebc}
}
.overviewFocusedActions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
@media(max-width:720px){
 body:not(.earth-mode) .layout>.right{display:flex;flex-direction:column;gap:16px;overflow:visible}
 body:not(.earth-mode) .right>.rightcard{grid-column:auto;grid-row:auto;align-self:stretch;flex:initial;width:100%;max-width:100%;height:auto;min-height:0;margin:0;box-sizing:border-box}
 .right>.homeAdRail{width:100%;min-width:0}
 .homeAdRail .readingAdRail{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .homeAdRail .readingAdSlot{height:150px}
 .overviewHeader .overviewActions{width:100%;gap:8px}
 .overviewHeader .overviewActions button{flex:1 1 130px;min-height:44px}
 .overviewFocusedActions{flex-direction:column}
}

/* 9.56: content-sized personal cards and readable, touch-friendly watch rows. */
body:not(.earth-mode) .layout>.right{align-items:start;align-content:start}
body:not(.earth-mode) .right>.rightcard{height:auto;min-height:0;align-self:start;margin:0;padding:20px;box-sizing:border-box}
.homeWatchCard .sectionhead{margin:4px 0 12px;gap:12px}
.homeWatchCard .sectionhead b{font-size:calc(15px * var(--textScale,1));line-height:1.4}
.homeWatchCard .sectionhead>span{display:grid;place-items:center;min-width:24px;height:24px;border-radius:8px;background:#5da7b323;font-size:12px;color:var(--text);letter-spacing:0}
.homeWatchCard .stocksShortcut{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:10px 12px;margin:0 0 18px;border:1px solid #67b5bd70;background:#4b9daa1a;border-radius:11px;font-size:calc(12px * var(--textScale,1));font-weight:600;color:var(--text);box-sizing:border-box}
.homeWatchActions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
.homeWatchActions .homeWatchAdd{background:#168595;color:#fff;border-color:#168595;min-height:44px;padding:10px 13px;font-weight:600;font-size:12px}
.homeWatchChartToggle{display:flex;align-items:center;gap:7px;min-height:44px;font-size:11px;color:var(--muted);cursor:pointer}
.homeWatchChartToggle input{width:16px;height:16px;accent-color:#168595;margin:0}
.homeWatchCard .comfortFavorites{gap:0;margin:12px 0 0}
.homeWatchRow{display:flex;gap:6px;align-items:center;border-bottom:1px solid var(--line);min-width:0}
.homeWatchCard .comfortFavorite{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 10px;border:0;border-radius:10px;padding:12px 4px;min-width:0;flex:1}
.homeWatchIdentity{display:block;min-width:0}.homeWatchIdentity b{font-size:12px;line-height:1.4;overflow-wrap:anywhere}.homeWatchIdentity small{display:block;margin-top:3px}
.homeWatchPrice{text-align:right;font-variant-numeric:tabular-nums;min-width:0}.homeWatchPrice b{font-size:12px;white-space:nowrap}.homeWatchPrice small{display:block;margin-top:4px}.homeWatchPrice .up{color:#43c99c}.homeWatchPrice .down{color:#fa9ca8}
.homeWatchSource{grid-column:1/-1;text-align:left;line-height:1.5;overflow-wrap:anywhere}
.homeWatchSpark{grid-column:1/-1;display:flex;align-items:center;min-height:30px;color:var(--cyan)}.homeWatchSpark{flex-wrap:wrap;gap:6px 10px}.homeWatchHistoryDate{font-size:10px;line-height:1.5}.homeWatchSpark svg{display:block;width:90px;height:30px;overflow:visible}.homeWatchSpark svg polyline{stroke-linecap:round;stroke-linejoin:round}.homeWatchNoHistory{font-style:italic}
.homeWatchRemove{align-self:start;flex:none;margin-top:8px;width:40px;min-height:44px;border:1px solid transparent;background:transparent;color:#dfbd70;border-radius:10px;font-size:20px;cursor:pointer}
.homeWatchRemove:hover{border-color:var(--line);background:#b0a36c15}
.homeWatchEmpty{font-size:12px;line-height:1.7;margin:2px 0 12px}.homeWatchChoices{display:flex;flex-wrap:wrap;gap:8px}.homeWatchChoices button{min-height:44px;font-size:11px}
.homeWatchAll{border:0;background:transparent;color:var(--cyan);text-align:left;padding:12px 0 0;min-height:44px;cursor:pointer;font-size:12px;justify-self:start}
.homeWatchStatus{margin:8px 0 0;font-size:11px;line-height:1.5;color:var(--muted)}.homeWatchStatus:empty{display:none}
.homeWatchCard button:focus-visible,.homeWatchCard input:focus-visible,.homeAssistantActions button:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}
body .rightcard.ai .miroPanelHeader button{min-height:48px;padding:6px 10px}.rightcard.ai .miroHeaderPortrait{width:32px;height:38px}.rightcard.ai .assistantHeaderPortrait{width:32px;height:38px}
body .rightcard.ai .robot.miro{width:112px;margin:4px auto 6px}.rightcard.ai h3{margin:8px 0;font-size:calc(20px * var(--textScale,1))}
.rightcard.ai #aiText{margin:12px 0;font-size:calc(12px * var(--textScale,1));line-height:1.65;min-height:0}
.rightcard.ai .homeAssistantActions{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:8px;margin:12px 0}
.rightcard.ai .homeAssistantActions button{min-height:44px;margin:0;padding:9px 10px;font-size:11px;line-height:1.4;color:var(--text)}
.rightcard.ai .homeAssistantDemo{margin:8px 0 12px;font-size:11px;line-height:1.5;color:var(--muted)}
body[data-theme=light] .homeWatchPrice .up{color:#08724e}body[data-theme=light] .homeWatchPrice .down{color:#a73d51}
body[data-theme=light] .homeWatchCard small,body[data-theme=light] .rightcard.ai .sub,body[data-theme=light] .homeAssistantDemo{color:#48616d}
body[data-theme=light] .homeWatchCard .stocksShortcut{background:#e5f2f1;color:#205663;border-color:#87b5b7}
body[data-theme=light] .homeWatchAll{color:#126779}body[data-theme=light] .homeWatchRemove{color:#85651d}body[data-theme=light] .homeWatchSpark{color:#168397}
.homeAdRail[hidden],.homeNewsAd[hidden],.readingAdRail[hidden]{display:none!important}
.readingColumns:has(>.readingAdRail[hidden]){grid-template-columns:minmax(0,1fr)!important}
@media(max-width:720px){body:not(.earth-mode) .right>.rightcard{padding:18px;align-self:stretch}.homeWatchCard .comfortFavorite{gap:7px 10px}.homeWatchCard .sectionhead b{font-size:15px}.homeWatchActions{gap:6px 12px}}

/* 9.57: selection stays visible after hover/focus leaves the period button. */
.graph .chartTools :is(.rangebtn,.typebtn)[aria-pressed="true"]{background:#215768;color:#fff;border-color:#69d4dc;box-shadow:inset 0 0 0 1px #69d4dc;font-weight:700}
body[data-theme="light"] .graph .chartTools :is(.rangebtn,.typebtn)[aria-pressed="true"]{background:#c9e8e6;color:#174e58;border-color:#237f8c;box-shadow:inset 0 0 0 1px #237f8c;font-weight:700}
.marketCandleInfo{min-height:76px;box-sizing:border-box;padding:12px;margin:10px 0;border:1px solid var(--line);border-radius:10px;background:var(--panel2);color:var(--text);font-size:12px;line-height:1.6;font-variant-numeric:tabular-nums}
.marketCandleInfo>strong{display:block;font-size:11px;font-weight:600;margin-bottom:6px}.marketCandleValues{display:flex;gap:6px 16px;flex-wrap:wrap}.marketCandleValues>span{white-space:nowrap}
#chartArea svg .candleHit{stroke:none!important;stroke-width:0!important;cursor:pointer}
#chartArea svg .candleSelected>rect:not(.candleHit){stroke:var(--text);stroke-width:2}
#chartArea svg:focus-visible{outline:2px solid var(--cyan);outline-offset:3px;border-radius:5px}
@media(max-width:720px){.marketCandleValues{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px}.marketCandleValues>span{white-space:normal}.graph .chartTools :is(.rangebtn,.typebtn){min-height:44px}}

/* 9.58: compact section tools and persistent selected tabs. */
#modalContent :is(button.rangebtn,button.typebtn,.insTabs button)[aria-pressed="true"],#modalContent .pdTabs button[aria-selected="true"]{background:#215768;color:#fff;border-color:#69d4dc;box-shadow:inset 0 0 0 1px #69d4dc;font-weight:600}
body[data-theme="light"] #modalContent :is(button.rangebtn,button.typebtn,.insTabs button)[aria-pressed="true"],body[data-theme="light"] #modalContent .pdTabs button[aria-selected="true"]{background:#c9e8e6;color:#174e58;border-color:#237f8c;box-shadow:inset 0 0 0 1px #237f8c;font-weight:600}
.portfolioWorkspace #modalContent>h2{margin-bottom:14px}.portfolioWorkspace .portfolioToolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:10px 0}
.pdMoreActions{border:1px solid var(--line);border-radius:10px;min-width:90px;max-width:100%;padding:0;background:var(--panel2)}
.pdMoreActions>summary{min-height:40px;box-sizing:border-box;padding:10px 14px;cursor:pointer;font-size:12px;color:var(--text)}
.pdMoreContent{display:flex;flex-wrap:wrap;gap:8px;padding:0 12px 12px}.pdMoreContent button{margin:0!important}
.portfolioWorkspace .pdEditor{margin:14px 0;border:1px solid var(--line);border-radius:12px;background:var(--panel2)}
.portfolioWorkspace .pdEditor>summary{padding:12px 14px;min-height:44px;box-sizing:border-box;cursor:pointer;font-size:13px;font-weight:600}
.portfolioWorkspace .pdEditor .portfolioForm{margin:0;padding:14px;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}
.portfolioWorkspace .pdOverview{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.portfolioWorkspace .pdCard{min-width:0;padding:18px}.portfolioWorkspace .pdCard h3{font-size:16px;line-height:1.4}
.portfolioWorkspace .pdWelcome{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px;background:linear-gradient(135deg,#4b9daa15,transparent)}
.portfolioWorkspace .pdWelcome h3{font-size:22px;margin:0}.pdWelcome p{font-size:13px;line-height:1.7;margin:0}.pdWelcome .eyebrow{font-size:9px}
.portfolioWorkspace #pdFirstPosition{background:#168595;color:#fff;border-color:#168595;min-height:44px;margin:0}
.pdExplanation{margin-top:12px}.pdExplanation>summary{font-size:12px;cursor:pointer;min-height:36px;display:list-item;padding:8px 0;color:var(--text)}
.portfolioWorkspace .pdCard .sub{font-size:12px;line-height:1.65}.portfolioWorkspace .pdTabs{margin:18px 0 12px;gap:8px;flex-wrap:wrap}.portfolioWorkspace .pdTabs button{min-height:44px;padding:10px 14px}
.insFilterPanel,.insDataDetails{border:1px solid var(--line);border-radius:12px;margin:12px 0;padding:0 14px;background:var(--panel2)}
.insFilterPanel>summary,.insDataDetails>summary{min-height:44px;box-sizing:border-box;padding:12px 0;cursor:pointer;font-size:12px;font-weight:600;color:var(--text)}
.insFilterPanel>.insTools{margin:4px 0 14px}.insDataDetails>.insNote{margin:0 0 12px;padding:0;border:0;background:transparent}
.insWelcome{padding:22px;border:1px solid var(--line);border-radius:14px;background:#4b9daa12;margin:16px 0}.insWelcome h3{margin:0 0 10px;font-size:19px;line-height:1.4}.insWelcome .refreshData{min-height:44px;background:#168595;color:#fff;border-color:#168595}
#insidersRoot .insTabs{gap:8px;flex-wrap:wrap}#insidersRoot .insTabs button{min-height:40px}#insidersRoot .insNote,#insidersRoot .sub{line-height:1.65}
body[data-theme="light"] .portfolioWorkspace :is(.sub,.pdIntro,.pdCard p),body[data-theme="light"] #insidersRoot :is(.sub,.insNote){color:#48616d}
@media(max-width:720px){.portfolioWorkspace .pdOverview{grid-template-columns:minmax(0,1fr)}.portfolioWorkspace .portfolioStats{grid-template-columns:repeat(2,minmax(0,1fr))}.pdMoreActions{flex:1 1 100%}.pdMoreContent{flex-direction:column;align-items:stretch}.pdMoreContent button{min-height:44px}.portfolioWorkspace .pdWelcome{padding:20px}.portfolioWorkspace .pdTabs{display:flex;flex-wrap:wrap}.portfolioWorkspace .pdTabs button{flex:1 1 auto}#insidersRoot .insTabs button{min-height:44px}.insFilterPanel>.insTools{display:grid;grid-template-columns:minmax(0,1fr)}.insFilterPanel .insTools label{min-width:0}}

/* 9.59: remove backdrop layers on scrolling content (Mac compositor stability).
   Earth canvas/animation, navigation and content structure are preserved. */
body:not(.earth-mode) :is(.navpanel,.rightcard,.bottomcard,.homeNews,.selected,.overviewCard,.siteFooter,.center){backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body:not([data-theme="light"]) :is(.rightcard,.homeNews,.overviewCard){background:#102638}
body:not([data-theme="light"]) .center>.bottom .selected{background:#102638}
body:not(.earth-mode) .layout>.right{align-content:start;align-items:start;gap:16px;overflow:visible}
body:not(.earth-mode) .right>.rightcard{min-width:0;height:auto;min-height:0;overflow-wrap:anywhere}
.homeWatchCard .homeWatchRow{min-height:72px}.homeWatchCard .comfortFavorite{line-height:1.5}.homeWatchCard .homeWatchPrice{align-self:start}.homeWatchCard .stocksShortcut{line-height:1.5}
#currencyRows[hidden]{display:none!important}
.currency-comfort-open .ccResultBox:has(.conversionResult[data-valid="false"]){min-height:66px;padding:12px 18px;box-sizing:border-box}
.currency-comfort-open .ccResultBox .conversionResult[data-valid="false"]{font-size:18px}
body[data-theme="light"] .ccSearchBar .currencyQuick button[aria-pressed="true"]{background:#c9e8e6;color:#174e58;border-color:#237f8c;box-shadow:inset 0 0 0 1px #237f8c;font-weight:600}

/* 9.60: a country watermark, never a stretched flag across prices and charts. */
#selected.flagSurface:before{inset:18px 18px auto auto;width:120px;height:80px;background-size:contain;background-position:center;background-repeat:no-repeat;opacity:.035;z-index:0}
body[data-theme="premium"] #selected.flagSurface:before{opacity:.055}
body[data-theme="light"] #selected.flagSurface:before{opacity:.035}
/* 9.62: the small laptop watermark needs enough contrast to identify its country. */
@media(min-width:721px){
 #selected.flagSurface:before{opacity:.18}
 body[data-theme="premium"] #selected.flagSurface:before{opacity:.24}
 body[data-theme="light"] #selected.flagSurface:before{opacity:.16}
}
#selected.flagSurface>div,#selected.flagSurface>.marketSource{position:relative;z-index:1}
#selected .countryBadge{font-size:12px;line-height:1.5;margin:3px 0 8px;color:var(--muted)}
#selected .summaryQuote>h3{margin-bottom:4px}
/* Earlier workspace rules removed the horizontal separation between quotes. */
.ticker .tickerInstrument{padding:7px 16px!important;flex:none;box-sizing:border-box;gap:9px;white-space:nowrap}
@media(max-width:720px){
 body:not(.earth-mode) .top{display:flex;flex-direction:column;align-items:stretch;height:auto;gap:12px}
 body:not(.earth-mode) .top .brand{align-self:flex-start}
 .top .topright{display:grid;grid-template-columns:minmax(74px,1fr) minmax(0,1.6fr) 44px;align-items:center;gap:8px;width:100%;max-width:100%}
 .topright #globalSearchButton{grid-column:1;grid-row:1;min-width:0;min-height:44px;padding:8px;font-size:12px}
 .topright #overviewToggle{grid-column:2;grid-row:1;min-width:0;min-height:44px;padding:8px;font-size:12px;white-space:normal;line-height:1.35}
 .topright #menu{grid-column:3;grid-row:1;width:44px;min-height:44px;padding:8px}
 .topright #language{grid-column:1;grid-row:2;width:100%;max-width:100%;min-width:0;min-height:44px;font-size:14px;padding:8px}
 .topright .themeSwitch{grid-column:2;grid-row:2;justify-self:start;margin:0}
 .topright #sound{grid-column:3;grid-row:2;min-height:44px;width:44px;padding:6px;font-size:0}
 .topright #sound:before{content:'🔇';font-size:19px;color:var(--text)}
 .topright #sound[aria-pressed="true"]:before{content:'🔊'}
 .topright>.pill{display:none}
 .ticker .tickerViewport{overflow:hidden;min-width:0;mask-image:none!important;-webkit-mask-image:none!important}
 .tickerViewport::-webkit-scrollbar{display:none}
 .ticker .tickerInstrument{min-height:44px;padding:7px 14px!important}
 .ticker .comfortTickerPause{width:44px;min-height:44px;font-size:16px}
 .center>.ticker{padding-right:44px!important;position:relative;left:auto;right:auto;bottom:auto;overflow:hidden}
 #selected.flagSurface:before{width:90px;height:60px;top:14px;right:14px}
 #selected .summaryQuote strong{font-size:clamp(23px,6.5vw,30px)}
 #selected .summaryPlot svg text{font-size:12px}
 .overviewCard .resultButton{display:grid;grid-template-columns:minmax(100px,.9fr) minmax(0,1.1fr);gap:12px;align-items:start}
 .overviewCard .resultButton>span{min-width:0;overflow-wrap:anywhere}.overviewCard .resultButton small{font-size:11px;line-height:1.55}
}

/* 9.74: one toolbar layout for all normal-view widths. */
body:not(.earth-mode) .globeWrap>.earthActionDock{
 display:grid;grid-template-columns:auto 44px 44px auto auto auto;align-items:center;
 justify-content:center;gap:6px;width:fit-content;max-width:100%;align-self:center;
 padding:6px;margin:0 auto;border:1px solid var(--line);border-radius:15px;
 background:var(--panel);box-sizing:border-box;
}
body:not(.earth-mode) .earthActionDock .earthNavRow{display:contents}
body:not(.earth-mode) .globeWrap .earthActionDock button{
 min-height:44px;margin:0;padding:8px 10px;border-radius:10px;font-size:11px;
 white-space:nowrap;box-sizing:border-box;
}
body:not(.earth-mode) .earthActionDock #earthMode{margin:0}
body:not(.earth-mode) .earthActionDock .mainQualityHost{position:relative;z-index:12;min-width:0;margin:0}
body:not(.earth-mode) .globeWrap .earthActionDock .mainQualityToggle{width:100%;display:flex;justify-content:center;align-items:center;gap:6px;font:inherit;font-size:11px}
body:not(.earth-mode) .earthActionDock .mainQualityPopup{z-index:30;text-align:left}
body:not(.earth-mode) .earthDockNotes{
 width:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;
 flex-wrap:wrap;gap:8px 12px;padding:8px 0;margin:0;box-sizing:border-box;
}
body:not(.earth-mode) .earthDockNotes .mapInfo{flex-basis:100%;width:100%;text-align:center}
body:not(.earth-mode) .earthDockNotes .globeExplain{margin:0}
/* Use two rows while side rails leave limited space for the toolbar. */
@media(max-width:1280px){
 body:not(.earth-mode) .globeWrap>.earthActionDock{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:min(100%,440px);gap:8px}
 body:not(.earth-mode) .globeWrap>.earthActionDock .earthNavRow{display:grid!important;grid-template-columns:minmax(0,1fr) 44px 44px minmax(0,1fr);grid-column:1/-1;grid-row:1;width:100%;margin:0;gap:6px}
 body:not(.earth-mode) .globeWrap>.earthActionDock .mainQualityHost{grid-column:1;grid-row:2;width:100%;margin:0}
 body:not(.earth-mode) .globeWrap>.earthActionDock #earthMode{grid-column:2;grid-row:2;width:100%;margin:0!important}
 body:not(.earth-mode) .globeWrap>.earthActionDock .mainQualityToggle{width:100%;height:44px}
 body:not(.earth-mode) .globeWrap>.earthActionDock #spin,
 body:not(.earth-mode) .globeWrap>.earthActionDock #home{min-width:0;padding:6px;font-size:10px;white-space:normal;line-height:1.3}
 body:not(.earth-mode) .earthActionDock .mainQualityPopup{right:auto;left:0}
}
/* Both rails share width, spacing, corner radius and inner padding. */
@media(min-width:1000px){
 body:not(.earth-mode):not(.news-page):not(.portfolio-page) .layout>.left,
 body:not(.earth-mode):not(.news-page):not(.portfolio-page) .layout>.right{display:flex;flex-direction:column;align-items:stretch;gap:16px;min-width:0}
 body:not(.earth-mode):not(.news-page):not(.portfolio-page) .layout>.left>.navpanel,
 body:not(.earth-mode):not(.news-page):not(.portfolio-page) .layout>.left>.homeNews,
 body:not(.earth-mode):not(.news-page):not(.portfolio-page) .layout>.right>.rightcard{
  width:100%;max-width:none;box-sizing:border-box;margin:0;padding:16px;border-radius:16px;
 }
}
@media(max-width:720px){
 .layout>.left>.homeNews{padding:16px;border-radius:16px;margin:0}
 body:not(.earth-mode) .right>.rightcard{padding:16px;border-radius:16px}
 .center>.ticker{height:44px!important;min-height:44px!important}
}
/* A visible pause control is the only pointer/touch pause trigger. */
.ticker .comfortTickerPause{display:block!important;width:44px;min-height:44px;z-index:3}
.center>.ticker{padding-right:44px!important;min-height:44px!important}
.ticker .tickertrack{animation-play-state:running}
.ticker[data-ticker-motion=on] .tickertrack{animation:comfortScroll 75s linear infinite!important;will-change:transform}
.ticker[data-ticker-motion=on] .tickerLoop[aria-hidden=true]{display:flex!important}
.ticker[data-ticker-motion=on] .tickerViewport{overflow:hidden}
.ticker.ticker-paused .tickertrack,
.ticker[data-ticker-motion=on].ticker-paused .tickertrack{animation-play-state:paused!important}
.ticker.ticker-paused .tickerViewport{overflow-x:auto!important;overflow-y:hidden;mask-image:none;-webkit-mask-image:none;-webkit-overflow-scrolling:touch}

.ticker:has(.tickerInstrument:focus-visible) .tickertrack{animation-play-state:paused!important}
