html[lang="ko"] [data-locale="en"],html[lang="en"] [data-locale="ko"]{display:none!important}
/* Approved A layout: presentation only; original controls and calculations remain. */
:root{--focus-header:72px}
.topbar{--reading-size:18px;--reading-scale:1.125;height:72px!important;min-height:72px;display:grid!important;grid-template-columns:minmax(90px,150px) minmax(250px,1fr) auto;gap:12px!important;padding:0 18px!important;flex-wrap:nowrap!important;align-items:center}
.topbar h1{font-size:20px!important;line-height:1.3;overflow:hidden;text-overflow:ellipsis;min-width:0}.topbar>.mobile-menu{display:none}.topbar .global-search{width:100%;max-width:none!important;height:46px;margin:0!important;min-width:0}.global-search kbd{display:none}.topbar .global-search>select{flex:0 0 148px;width:148px;min-width:148px;max-width:148px;font-size:14px!important;padding-inline:6px}.topbar .global-search input{font-size:15px!important;padding-inline:8px}.topbar .search-icon{margin-left:9px;font-size:21px!important}
.topbar-account-actions{display:flex!important;gap:6px!important;flex-wrap:nowrap!important;align-items:center;margin:0!important;min-width:0}.topbar-account-actions>.profile,.topbar-account-actions .layout-header-switch{display:none!important}.topbar-account-actions .home-display-shortcut,.topbar-account-actions .layout-mode-toggle{display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:0;min-width:44px;width:44px;height:44px;padding:0!important;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text)}.home-display-shortcut-mark{font-size:13px!important}.home-display-shortcut-label,[data-layout-mode-label]{font-size:11px!important;line-height:1.2!important}.topbar-account-actions .material-symbols-rounded{font-size:21px!important}.topbar .theme-toggle{width:44px!important;min-width:44px;height:44px!important;padding:0!important;display:flex;justify-content:center;align-items:center}.topbar .theme-toggle-label,.topbar .theme-toggle-track{display:none!important}.topbar-lang{width:88px;min-width:88px;height:44px;display:flex}.topbar-lang button{width:44px;min-width:44px;padding:0!important;font-size:13px!important;height:42px}.topbar-account{width:116px;min-width:116px;justify-content:flex-end;gap:4px}.topbar-account a{padding:0 8px!important;font-size:14px!important;min-height:44px}.topbar .notification-anchor{flex:none}.topbar .notification-bell{width:44px;height:44px}.notification-panel{max-width:calc(100vw - 24px)}
html[data-toolbar-compact=true] .topbar{height:112px!important;min-height:112px;grid-template-columns:minmax(120px,180px) minmax(0,1fr);grid-template-rows:48px 48px;gap:0 12px!important;padding-block:6px!important;--focus-header:112px}html[data-toolbar-compact=true] .topbar h1{grid-column:1;grid-row:1}html[data-toolbar-compact=true] .topbar .global-search{grid-column:2;grid-row:1}html[data-toolbar-compact=true] .topbar-account-actions{grid-column:1/-1;grid-row:2;justify-self:end}
html[data-app-layout=mobile] .topbar,html[data-layout-viewport=narrow] .topbar{height:112px!important;min-height:112px;width:100%!important;max-width:100vw;left:0;grid-template-columns:36px minmax(0,1fr);grid-template-rows:44px 48px;padding:6px 12px!important;gap:4px 8px!important;z-index:35;--focus-header:112px}html[data-app-layout=mobile] .topbar>.mobile-menu,html[data-layout-viewport=narrow] .topbar>.mobile-menu{grid-row:1;grid-column:1;display:grid!important;place-items:center;min-width:36px;min-height:40px;padding:0}html[data-app-layout=mobile] .topbar h1,html[data-layout-viewport=narrow] .topbar h1{grid-row:1;grid-column:2;font-size:21px!important;display:block!important}html[data-app-layout=mobile] .topbar .global-search,html[data-layout-viewport=narrow] .topbar .global-search{display:none!important}html[data-app-layout=mobile] .topbar-account-actions,html[data-layout-viewport=narrow] .topbar-account-actions{grid-row:2;grid-column:1/-1;justify-self:start;gap:5px!important;width:100%;max-width:100%;overflow:visible}html[data-app-layout=mobile] .topbar-account,html[data-layout-viewport=narrow] .topbar-account{width:62px;min-width:62px;justify-content:flex-start}html[data-app-layout=mobile] .topbar-account .topbar-signup,html[data-layout-viewport=narrow] .topbar-account .topbar-signup{display:none!important}html[data-app-layout=mobile] .topbar-mypage span:not(.material-symbols-rounded),html[data-layout-viewport=narrow] .topbar-mypage span:not(.material-symbols-rounded){display:none}html[data-layout-viewport=narrow] .page-shell>.topbar{position:sticky;margin-left:calc(-1 * var(--focus-sidebar-offset,0px));width:100vw!important}html[data-layout-viewport=narrow][data-app-layout=pc]{--focus-sidebar-offset:240px}html[data-layout-viewport=narrow][data-app-layout=pc] .page-shell{position:relative}html[data-layout-viewport=narrow][data-app-layout=pc] .sidebar{top:112px!important}
main{min-width:0}.page-shell{min-width:0}#featureView{min-width:0;overflow-wrap:anywhere}#featureView>*,.portfolio-toolbar>*,.mypage-actions>*{min-width:0}#featureView .feature-header{gap:12px;flex-wrap:wrap;margin-bottom:12px}#featureView .feature-header h2{margin:0 0 4px}.header-actions{gap:8px!important;flex-wrap:wrap!important}.header-actions button{min-height:42px;padding:9px 12px!important}
/* Market overview stays above search, without five full-height cards. */
.home-markets{margin:0 0 12px;min-width:0}.home-market-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.home-market-strip>.market-grid{display:contents!important}.home-market-strip .market-card{min-width:0;padding:12px!important;min-height:164px;margin:0!important;box-shadow:none}.home-market-strip .market-card-top{align-items:start;gap:3px;margin:0 0 5px}.home-market-strip .market-card-top h2{font-size:max(17px,calc(var(--reading-size)*.9))!important;margin:0}.home-market-strip .eyebrow{font-size:max(12px,calc(var(--reading-size)*.65))!important}.home-market-strip .data-badge{font-size:11px!important;padding:3px 4px;max-width:94px;white-space:normal}.home-market-strip .market-main{display:block!important;margin:2px 0!important}.home-market-strip .market-main>strong{display:block;font-size:max(25px,calc(var(--reading-size)*1.25))!important;line-height:1.3}.home-market-strip .market-main>span{display:block;font-size:max(12px,calc(var(--reading-size)*.7))!important;min-height:18px}.home-market-strip .global-market-meta,.home-market-strip .global-market-basis{font-size:max(11px,calc(var(--reading-size)*.65))!important;line-height:1.4;margin:4px 0 0!important}.home-market-strip .global-market-meta{gap:4px!important}.home-market-strip .global-market-card>.text-button{padding:4px 0;font-size:12px!important;min-height:24px}.home-markets:not([data-expanded=true]) :is(.chart-row,.tags,.global-market-card>.sparkline){display:none!important}#expandMarketCards{margin-left:auto;font-size:14px}.home-markets[data-expanded=true] .home-market-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.home-markets[data-expanded=true] .market-card{min-height:240px}.home-start{padding:18px!important;margin:0 0 14px!important}.home-start-head p{margin:5px 0 12px!important}.home-start-paths{margin-top:12px;gap:10px!important}.home-start-path{padding:10px 12px!important}.home-start-path span{font-size:max(13px,calc(var(--reading-size)*.8))!important}.home-advanced{margin:12px 0;border:1px solid var(--border);border-radius:12px;padding:12px;background:var(--surface)}.home-advanced>summary{cursor:pointer;font-size:16px}.home-advanced>.workspace-grid{margin-top:12px}.status-strip{min-height:42px;height:auto!important;padding-block:8px}.global-market-grid:empty{min-height:164px}
/* Conditions and results are separate navigable views; DOM/jobs remain mounted. */
.focus-page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.focus-page-head h2{font-size:max(22px,calc(var(--reading-size) + 3px));line-height:1.35;margin:0}.focus-page-head p{font-size:max(13px,calc(var(--reading-size)*.8));color:var(--secondary);margin:3px 0 0}.focus-page-head nav{display:flex;gap:6px;flex-wrap:wrap}.focus-page-head nav button{min-height:42px;padding:8px 12px;font:inherit;white-space:normal}.focus-page-head [aria-current=true]{color:var(--blue);border-color:var(--blue)}#featureView[data-focus-kind]>.feature-header{display:none!important}#featureView[data-focus-kind] .pattern-easy-workspace{display:block!important}#featureView[data-focus-kind]>.mobile-work-tabs{display:none!important}#featureView[data-focus-kind=pattern][data-focus-view=search] :is(.results-card,.pattern-search-live){display:none!important}#featureView[data-focus-kind=pattern][data-focus-view=results] :is(.pattern-reference,.pattern-search-controls,.pattern-mode-switch,.pattern-period-controls,.ml-pattern-summary,.pattern-live-context,.pattern-show-setup,.pattern-workspace-tabs){display:none!important}#featureView[data-focus-kind=pattern][data-focus-view=results] .results-card{display:block!important;margin:0!important;padding:12px!important}#featureView[data-focus-kind=pattern] .results-card>.section-heading{margin-bottom:8px}.pattern-workbench .workbench-head{flex-wrap:wrap;gap:6px}.pattern-workbench .workbench-head h3{margin-right:auto}.pattern-workbench .pattern-candidate-row .pattern-candidate-name{min-width:0;overflow-wrap:anywhere}.pattern-workbench .pattern-candidate-row .pattern-candidate-score{flex-shrink:0}
#featureView[data-focus-kind=backtest][data-focus-view=results] :is(.btv-reference,.btv-settings,.bt-detail-controls,.btv-heading,.ml-backtest-summary,.ml-backtest-progress-note){display:none!important}#featureView[data-focus-kind=backtest][data-focus-view=search] :is(#btOutput,#btLoading){display:none!important}#featureView[data-focus-kind=backtest][data-focus-view=results] #btOutput{display:grid;grid-template-columns:minmax(230px,290px) minmax(0,1fr);gap:12px;align-items:start}#btOutput>.btv-run-info{grid-column:1/-1;padding:8px 12px;margin:0;font-size:14px}#btOutput>.btv-run-info p{display:inline;margin:0 8px 0 0;font-size:13px}#btOutput>.btv-summary{grid-column:1;margin:0;padding:12px}#btOutput>.btv-main{grid-column:2;grid-row:2/5;margin:0;padding:12px}#btOutput>:not(.btv-run-info):not(.btv-summary):not(.btv-main){grid-column:1/-1}#btOutput .btv-summary-top{display:block}.btv-summary-top h3{margin:0;font-size:max(18px,var(--reading-size))}.btv-summary-top p{margin:3px 0;font-size:13px}.btv-summary-controls{gap:8px!important;margin-top:8px}.btv-summary-controls>div>span{font-size:12px!important}.btv-summary-controls button{min-height:34px!important;padding:6px 8px!important;font-size:14px!important}#btOutput .btv-summary-metrics{grid-template-columns:1fr 1fr;margin:8px 0!important}#btOutput .btv-summary-metrics>div{padding:8px!important}#btOutput .btv-summary-metrics strong{font-size:max(23px,calc(var(--reading-size)*1.2))!important}#btOutput .btv-summary-metrics span,#btOutput .btv-summary-metrics small{font-size:max(12px,calc(var(--reading-size)*.7))!important;line-height:1.4}#btOutput #btSummaryBasis{font-size:12px;line-height:1.5;margin:6px 0}.btv-summary-insight{font-size:max(14px,calc(var(--reading-size)*.85));padding:8px!important}.btv-summary-note{font-size:12px!important;line-height:1.5;margin:6px 0!important}#btEasy{margin:8px 0;font-size:14px}#btEasy summary,.btv-case-extra summary{cursor:pointer;min-height:32px;padding:5px 0;color:var(--secondary)}.btv-case-extra{font-size:14px;line-height:1.5;border-top:1px solid var(--border);margin-top:8px}.btv-case-extra>label{display:block;margin:8px 0}.btv-main .section-heading{margin-bottom:8px}.btv-main .section-heading h3{font-size:max(18px,var(--reading-size));line-height:1.4}.btv-main .btv-result-toolbar{margin:6px 0;gap:8px}.btv-main .btv-plain-result{padding:8px!important;margin:8px 0!important;display:block}.btv-main #btResultSubject{font-size:14px}.btv-main #btResultValue{font-size:max(25px,calc(var(--reading-size)*1.25))!important;display:inline-block;margin-left:8px}.btv-main #btFutureChart svg{max-height:300px}.btv-chart-caption{font-size:12px!important;line-height:1.4!important}.btv-readout{font-size:12px!important;margin:4px 0}.btv-case-extra :is(p,span){font-size:inherit!important}
/* Compact prices above the unchanged analysis chart; briefing remains beside it. */
.analysis-toolbar{padding:10px 12px!important;gap:8px!important}.analysis-toolbar .indicator-toggles{gap:4px!important}.analysis-toolbar .indicator-toggles label{padding:7px!important;font-size:14px!important}.analysis-layout{grid-template-columns:minmax(0,1fr) minmax(260px,320px)!important;gap:12px!important}.analysis-price-comparison{display:grid!important;grid-template-columns:1.2fr 1fr;gap:8px!important;padding:10px!important}.analysis-price-comparison>div{padding:8px!important;min-width:0}.analysis-price-comparison h4{font-size:14px!important;margin:0 0 5px!important}.analysis-selected-prices dl{display:flex!important;gap:12px;flex-wrap:wrap;margin:0!important}.analysis-selected-prices dl div{display:block!important}.analysis-selected-prices dt{font-size:12px!important}.analysis-selected-prices dd{font-size:max(16px,var(--reading-size))!important;margin:0!important}.analysis-price-comparison small{font-size:12px!important;line-height:1.45;margin:3px 0 0!important}.analysis-latest-price strong{font-size:max(20px,calc(var(--reading-size)*1.15))!important}.cached-result-banner{padding:8px 12px!important;gap:8px!important;margin-bottom:10px!important}.cached-result-banner p{font-size:12px!important;margin:2px 0 0!important}.cached-result-banner strong{font-size:14px!important}.cached-result-banner button{min-height:36px;padding:7px 10px;font-size:14px}.insight-panel{padding:12px!important}.insight-panel>.section-kicker,.insight-panel>h3,.insight-panel>.latest-basis{display:none}.insight-panel .reading-proposal{margin:0}.reading-heading h3{font-size:max(20px,calc(var(--reading-size)*1.1))!important;line-height:1.45}.reading-summary{padding:10px!important}.reading-current{padding:10px!important}.reading-sections h4{margin-bottom:5px!important}.reading-metrics{gap:6px!important}.technical-chart{min-width:0}.selection-footer{padding:8px 12px!important}.chart-card{min-width:0}
/* Text may grow; controls and containers must wrap instead of widening the document. */
.my-account,.my-summary,.my-summary>div,.saved-grid,.saved-card,.mypage-actions,.portfolio-heading,.portfolio-toolbar,.portfolio-filters{min-width:0}.my-account{flex-wrap:wrap}.my-account>div{min-width:0;overflow-wrap:anywhere}.portfolio-heading,.portfolio-toolbar,.portfolio-filters,.portfolio-actions,.mypage-actions{flex-wrap:wrap!important}.portfolio-toolbar :is(input,select),#holdingFilter{min-width:0!important;max-width:100%;width:100%;flex:1 1 180px}.portfolio-summary{min-width:0;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr))!important}.portfolio-summary>*,.my-summary>*{min-width:0;overflow-wrap:anywhere}.history-actions{flex-wrap:wrap}.history-actions button{min-height:42px}#clearRecent{background:var(--surface);color:var(--negative);border:1px solid var(--border);font-size:14px;padding:8px 12px;min-height:40px}.recent-summary-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin-bottom:12px!important}.recent-summary-grid>article{padding:10px!important;gap:7px!important;min-height:0!important}.recent-summary-grid>article>.material-symbols-rounded{display:none}.recent-summary-grid strong{font-size:max(23px,var(--reading-size))!important}.recent-summary-grid span{font-size:max(12px,calc(var(--reading-size)*.7))!important}.history-toolbar{flex-wrap:wrap;gap:8px}.history-toolbar .saved-tabs{flex-wrap:wrap}.site-footer{overflow-wrap:anywhere}
html[data-app-layout=mobile] .home-market-strip{display:flex;overflow:auto;overscroll-behavior-x:contain;gap:8px;padding-bottom:4px}html[data-app-layout=mobile] .home-market-strip .market-card{flex:0 0 180px;min-height:164px}html[data-app-layout=mobile] .home-markets[data-expanded=true] .home-market-strip{display:grid;grid-template-columns:1fr}html[data-app-layout=mobile] .home-markets[data-expanded=true] .market-card{width:100%}html[data-app-layout=mobile] .home-start-paths{grid-template-columns:1fr}html[data-app-layout=mobile] .home-start-path span{display:none}html[data-app-layout=mobile] .home-start{padding:14px!important}html[data-app-layout=mobile] .status-strip .market-times{display:none}html[data-app-layout=mobile] #mobileHomeWorkTabs{display:none!important}html[data-app-layout=mobile] .home-market-strip .market-card-top h2{font-size:18px!important}html[data-app-layout=mobile] .focus-page-head{align-items:flex-start;gap:8px}html[data-app-layout=mobile] .focus-page-head h2{font-size:max(21px,var(--reading-size))}html[data-app-layout=mobile] .focus-page-head p{font-size:max(12px,calc(var(--reading-size)*.7))}html[data-app-layout=mobile] .focus-page-head nav{justify-content:flex-end;max-width:160px}html[data-app-layout=mobile] .focus-page-head nav button{font-size:max(13px,calc(var(--reading-size)*.75));padding:8px;min-height:40px}html[data-app-layout=mobile] .analysis-layout{display:block!important}html[data-app-layout=mobile] .analysis-price-comparison{grid-template-columns:1fr 1fr}html[data-app-layout=mobile] .analysis-price-comparison>div{padding:5px!important}html[data-app-layout=mobile] .cached-result-banner{flex-direction:row;align-items:center}html[data-app-layout=mobile] .cached-result-banner p{display:none}html[data-app-layout=mobile] .cached-result-banner strong{font-size:12px!important}html[data-app-layout=mobile] .cached-result-banner button{font-size:12px!important}html[data-app-layout=mobile] .my-summary{grid-template-columns:1fr!important}html[data-app-layout=mobile] .my-account{gap:10px}html[data-app-layout=mobile] .my-account :is(span,strong){overflow-wrap:anywhere;white-space:normal}html[data-app-layout=mobile] .portfolio-heading h2{overflow-wrap:anywhere}html[data-app-layout=mobile] .history-table,html[data-app-layout=mobile] .history-table tbody{display:block;width:100%!important;min-width:0!important}html[data-app-layout=mobile] .history-table thead{display:none}html[data-app-layout=mobile] .history-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;padding:12px;border-bottom:1px solid var(--border)}html[data-app-layout=mobile] .history-table td{display:block;min-width:0;white-space:normal!important;border:0!important;padding:0!important;overflow-wrap:anywhere}html[data-app-layout=mobile] .history-table td:nth-child(2){grid-row:1;grid-column:1/-1}html[data-app-layout=mobile] .history-table td:nth-child(1){grid-row:2;grid-column:1}html[data-app-layout=mobile] .history-table td:nth-child(4){grid-row:2;grid-column:2}html[data-app-layout=mobile] .history-table td:nth-child(3){grid-row:3;grid-column:1}html[data-app-layout=mobile] .history-table td:nth-child(5){grid-row:3;grid-column:2}html[data-app-layout=mobile] .history-table td:nth-child(6){grid-row:4;grid-column:1/-1}.history-table [data-open-recent]{color:var(--blue);font-weight:700}html[data-app-layout=mobile] .history-actions{display:flex;align-items:center;gap:8px;margin-top:4px}html[data-app-layout=mobile] .history-actions [data-open-recent]{flex:1 1 100%;justify-content:center;border:1px solid var(--blue);border-radius:8px;padding:9px}html[data-app-layout=mobile] .history-actions [data-rerun-recent]{font-size:14px}html[data-app-layout=mobile] .history-actions [data-delete-recent]{margin-left:auto;min-width:44px}html[data-app-layout=mobile] .recent-summary-grid article{display:block}html[data-app-layout=mobile] .recent-summary-grid article span{display:block}html[data-app-layout=mobile] #featureView[data-focus-kind=backtest][data-focus-view=results] #btOutput{display:block}html[data-app-layout=mobile] #btOutput>.btv-summary,html[data-app-layout=mobile] #btOutput>.btv-main{margin:10px 0}html[data-app-layout=mobile] .btv-summary-controls{display:flex;flex-wrap:wrap}.btv-result-toolbar label{min-width:0;max-width:100%}.btv-result-toolbar select{max-width:100%}html[data-app-layout=mobile] .btv-main #btFutureChart svg{max-height:250px}html[data-app-layout=mobile] .btv-main .section-heading h3{font-size:max(18px,var(--reading-size))}html[data-app-layout=mobile] .trade-page .detail{margin-top:8px}html[data-app-layout=mobile] .trade-page #notice{padding:10px}html[data-app-layout=mobile] .bottom-nav{--reading-size:18px;--reading-scale:1.125}html[data-app-layout=mobile] .bottom-nav :is(a,button){font-size:16px!important;min-width:0}html[data-app-layout=mobile] .bottom-nav .material-symbols-rounded{font-size:23px!important}

#featureView[data-focus-kind] .workbench-launch{display:none!important}#featureView[data-focus-kind=pattern][data-focus-view=search] .focus-pattern-summary{display:none}#featureView[data-focus-kind=pattern] .pattern-workbench:not(.pattern-workbench-focus){grid-template-columns:220px minmax(0,1fr);height:clamp(340px,calc(100dvh - 340px),620px);min-height:0;margin:0}.focus-pattern-summary{border:1px solid var(--border);background:var(--blue-50);border-radius:10px;padding:10px 12px;margin-bottom:10px}.focus-pattern-summary .easy-result-heading{gap:12px}.focus-pattern-summary h3{font-size:max(19px,var(--reading-size))!important;margin:0}.focus-pattern-summary .easy-result-heading strong{font-size:max(23px,calc(var(--reading-size)*1.15))!important}.focus-pattern-summary>p{margin:4px 0;font-size:max(14px,calc(var(--reading-size)*.85));line-height:1.5}.focus-pattern-summary>small{font-size:12px}.focus-pattern-summary .easy-result-heading small{font-size:12px}.focus-pattern-summary .easy-result-heading>div:first-child>small{display:none}.pattern-workbench .workbench-detail-scroll{min-height:0}.pattern-workbench .workbench-head button{min-height:38px;padding:7px 9px;font-size:14px!important}html[data-app-layout=mobile] #featureView[data-focus-kind=pattern] .pattern-workbench:not(.pattern-workbench-focus){display:block;height:auto}.focus-pattern-summary+ .pattern-workbench .pattern-candidate-list{min-width:0}html[data-app-layout=mobile] .focus-pattern-summary{padding:8px 10px}html[data-app-layout=mobile] .focus-pattern-summary>small{display:none}html[data-app-layout=mobile] .focus-pattern-summary>p{font-size:14px}html[data-app-layout=mobile] .focus-pattern-summary .easy-result-heading{align-items:center}html[data-app-layout=mobile] .pattern-workbench:not(.pattern-workbench-focus) .workbench-detail-scroll{height:auto;max-height:none}html[data-app-layout=mobile] .pattern-workbench:not(.pattern-workbench-focus) .pattern-candidate-bar{position:static}html[data-app-layout=mobile] .pattern-workbench:not(.pattern-workbench-focus) .workbench-head h3{font-size:16px!important}html[data-app-layout=mobile] .pattern-workbench:not(.pattern-workbench-focus) .workbench-head [data-workbench-list]{display:none}.pattern-workbench:not(.pattern-workbench-focus) .pv-flow-svg{max-height:320px}.pattern-workbench:not(.pattern-workbench-focus) .pv-card svg{max-height:260px}

html[data-layout-viewport=narrow][data-app-layout=pc] .page-shell>.topbar{position:fixed!important;left:0!important;top:0!important;margin:0!important;width:100vw!important}html[data-layout-viewport=narrow][data-app-layout=pc] .page-shell{padding-top:112px}

.home-markets,.home-advanced{grid-column:1/-1!important;width:100%;min-width:0}.home-market-strip{width:100%}.home-market-strip .market-card-top>div{min-width:0}.home-market-strip .market-card-top h2{overflow-wrap:normal;word-break:keep-all}.home-start-field{display:flex!important;flex-wrap:nowrap!important;align-items:center;min-width:0}.home-start-field select{flex:0 0 150px!important;width:150px!important;min-width:150px!important;max-width:150px!important;font-size:14px!important;padding:0 5px!important;min-height:46px}.home-start-field input{min-width:0!important;width:0!important;flex:1 1 0!important;font-size:max(16px,var(--reading-size))!important}.home-start-field>.material-symbols-rounded{flex:none;font-size:22px!important}.home-start-head p{font-size:max(14px,calc(var(--reading-size)*.85))!important}html[data-app-layout=mobile] .topbar-account-actions,html[data-layout-viewport=narrow] .topbar-account-actions{gap:3px!important}html[data-app-layout=mobile] .topbar-account,html[data-layout-viewport=narrow] .topbar-account{width:54px;min-width:54px}html[data-app-layout=mobile] .topbar-account a,html[data-layout-viewport=narrow] .topbar-account a{padding:0 6px!important}html[data-app-layout=mobile] .home-start-field{padding:0 7px!important;gap:4px!important}html[data-app-layout=mobile] .home-start-field .home-start-divider{display:none}html[data-app-layout=mobile] .home-start-paths{display:flex;gap:8px!important;flex-wrap:wrap}html[data-app-layout=mobile] .home-start-path{flex:1 1 130px;min-height:44px;padding:8px!important}html[data-app-layout=mobile] .home-start-path small{font-size:12px!important}html[data-app-layout=mobile] .home-start-path strong{font-size:max(13px,calc(var(--reading-size)*.8))!important}.home-start-status:empty{display:none}

#featureView[data-focus-kind=backtest] .btv>.feature-header{display:none!important}#featureView[data-focus-kind=pattern][data-focus-view=results] .results-card>.section-heading{display:none}.focus-run-details{font-size:13px;margin-bottom:8px;color:var(--secondary)}.focus-run-details>summary{cursor:pointer;min-height:32px;padding:5px 2px}.focus-run-details .pattern-run-status{margin:6px 0;padding:10px}.focus-run-details .easy-card{margin:6px 0;padding:10px}.focus-pattern-summary>small{display:none}.focus-pattern-summary .easy-result-heading{margin:0!important}.focus-pattern-summary>p{margin:3px 0 0!important}.analysis-indicator-options{position:relative}.analysis-indicator-options>summary{list-style:none;cursor:pointer;border:1px solid var(--border);border-radius:8px;background:var(--surface);padding:10px 12px;font-size:15px!important;min-height:42px;display:flex;align-items:center}.analysis-indicator-options>summary::-webkit-details-marker{display:none}.analysis-indicator-options>.indicator-toggles{display:none}.analysis-indicator-options[open]>.indicator-toggles{display:flex!important;position:absolute;top:calc(100% + 6px);right:0;width:min(370px,calc(100vw - 32px));padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:var(--shadow);z-index:40;flex-wrap:wrap}.analysis-toolbar .toolbar-group button{font-size:16px!important;padding:9px 12px!important;min-height:42px}.analysis-toolbar #downloadChart{margin-left:auto;font-size:15px!important;min-height:42px}.analysis-toolbar{min-height:64px;align-items:center!important}html[data-app-layout=mobile] .analysis-toolbar{gap:6px!important}html[data-app-layout=mobile] .analysis-toolbar #downloadChart{font-size:14px!important}html[data-app-layout=mobile] .analysis-toolbar .toolbar-group button{padding:8px!important;font-size:14px!important}.pattern-workbench:not(.pattern-workbench-focus) .pattern-candidate-detail{min-width:0}.pattern-workbench:not(.pattern-workbench-focus) .pattern-candidate-scroll{min-height:0;overflow:auto}

.material-symbols-rounded{display:inline-block;width:1em;flex-shrink:0;white-space:nowrap;overflow:hidden;vertical-align:middle}.home-market-strip .market-card,html[data-app-layout=mobile] .home-market-strip .market-card{min-height:calc(196px * var(--reading-scale,1.125) / 1.125)}

#featureView[data-focus-view=results] .focus-page-head [aria-current=true],#featureView[data-focus-view=search] .focus-page-head [aria-current=true],#featureView[data-focus-view=search] [data-focus-expand]{display:none}#featureView[data-focus-kind=pattern] .pattern-workbench:not(.pattern-workbench-focus)>.workbench-head{display:none!important}#featureView[data-focus-kind=pattern] .pattern-workbench:not(.pattern-workbench-focus){display:grid!important;grid-template-columns:220px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;height:clamp(350px,calc(100dvh - 330px),640px)!important;gap:10px!important}#featureView[data-focus-kind=pattern] .pattern-workbench:not(.pattern-workbench-focus)>.pattern-candidate-list{grid-column:1;grid-row:1}#featureView[data-focus-kind=pattern] .pattern-workbench:not(.pattern-workbench-focus)>.pattern-candidate-detail{grid-column:2;grid-row:1;min-height:0;display:flex;flex-direction:column}#featureView[data-focus-kind=pattern] .pattern-workbench:not(.pattern-workbench-focus) .workbench-detail-scroll{padding:8px!important}.pattern-workbench:not(.pattern-workbench-focus) .pattern-candidate-bar{padding:8px!important;margin:0!important;gap:6px!important}.pattern-workbench:not(.pattern-workbench-focus) .pattern-candidate-bar>label{font-size:0!important}.pattern-workbench:not(.pattern-workbench-focus) #patternCandidate{font-size:16px!important;height:42px;min-height:42px;padding:7px 10px}.pattern-workbench:not(.pattern-workbench-focus) .pattern-candidate-bar .secondary-button{min-height:40px;padding:7px 9px}.focus-pattern-summary .easy-result-heading{display:flex!important;align-items:center!important;justify-content:space-between;gap:10px!important;text-align:left!important}.focus-pattern-summary .easy-result-heading>div{display:block!important;margin:0!important;min-width:0}.focus-pattern-summary .easy-result-heading>div:last-child{text-align:right!important;flex:none}.focus-pattern-summary .easy-result-heading strong{display:block;margin:0!important}.focus-pattern-summary .easy-result-heading>div:last-child small{font-size:11px!important}.focus-pattern-summary>p{font-size:14px!important;line-height:1.45!important}.focus-pattern-summary{padding:8px 10px!important}.focus-page-head p{margin:1px 0 0!important}.focus-page-head{margin-bottom:10px}.pattern-workbench .workbench-info{padding:6px 0!important;margin:6px 0!important}.cached-result-banner{padding:6px 10px!important}.cached-result-banner strong{font-size:12px!important}.cached-result-banner p{display:none}.cached-result-banner button{font-size:12px!important;padding:5px 8px;min-height:30px}html[data-app-layout=mobile] #featureView[data-focus-kind=pattern] .pattern-workbench:not(.pattern-workbench-focus){display:block!important;height:auto!important}html[data-app-layout=mobile] .focus-pattern-summary .easy-result-heading h3{font-size:17px!important}html[data-app-layout=mobile] .focus-pattern-summary .easy-result-heading strong{font-size:21px!important}html[data-app-layout=mobile] .focus-pattern-summary>p{font-size:13px!important}html[data-app-layout=mobile] .focus-run-details{font-size:12px;margin-bottom:5px}html[data-app-layout=mobile] #featureView[data-focus-kind=pattern] .results-card{padding:8px!important}html[data-app-layout=mobile] .pattern-workbench:not(.pattern-workbench-focus) .pattern-candidate-bar{padding:6px!important}html[data-app-layout=mobile] .pattern-workbench:not(.pattern-workbench-focus) .workbench-detail-scroll{padding:6px!important}

.cached-run-details>summary{cursor:pointer;list-style:none}.cached-run-details>summary::-webkit-details-marker{display:none}.cached-run-details[open] p{display:block!important}.pattern-workbench:not(.pattern-workbench-focus) .pv-data-notice{padding:5px 8px!important;font-size:12px!important;line-height:1.4!important;margin:0 0 6px!important}.pattern-workbench:not(.pattern-workbench-focus) .pv-toolbar{padding:5px 0!important;margin:0 0 6px!important;gap:6px!important}.pattern-workbench:not(.pattern-workbench-focus) .pv-head{padding:8px!important}.pattern-workbench:not(.pattern-workbench-focus) .pv-data-details{padding:2px 8px!important;font-size:12px!important}.pattern-workbench:not(.pattern-workbench-focus) .pv-data-details summary{min-height:24px;padding:3px 0}.pattern-workbench:not(.pattern-workbench-focus) .pv-legend{padding:3px 8px!important;font-size:11px!important}.pattern-workbench:not(.pattern-workbench-focus) .pv-flow-legend{padding:5px!important;margin:0!important;gap:6px!important}.pattern-workbench:not(.pattern-workbench-focus) .pv-flow-legend button{padding:5px!important;min-height:44px!important}.pattern-workbench:not(.pattern-workbench-focus) .pv-flow-focus-help{font-size:12px!important;margin:4px 0}.pattern-workbench:not(.pattern-workbench-focus) .pv-flow-overview{padding:6px!important}.pattern-workbench:not(.pattern-workbench-focus) .pv-flow-overview svg{max-height:260px}.pattern-workbench:not(.pattern-workbench-focus) .pv-flow-overview>p{font-size:12px!important;line-height:1.45!important;margin:4px 0}.pattern-workbench .pattern-candidate-detail{min-width:0!important}.pattern-workbench .pattern-candidate-list{min-width:0!important}

.topbar h1{white-space:nowrap!important}.focus-pattern-summary .easy-result-heading{flex-direction:row!important;flex-wrap:nowrap!important}.focus-pattern-summary .easy-result-heading>div:first-child{flex:1!important;width:auto!important;text-align:left!important}.focus-pattern-summary .easy-result-heading>div:last-child{width:auto!important;text-align:right!important}.focus-pattern-summary .easy-result-heading h3{text-align:left!important}.focus-page-head nav{align-items:flex-start}.btv-summary-options{font-size:14px;color:var(--secondary);border-top:1px solid var(--border);margin-top:8px}.btv-summary-options>summary{cursor:pointer;min-height:34px;padding:6px 0}.btv-summary-options :is(p,.btv-run-info){font-size:14px;margin:8px 0}.btv-summary-options #btSummaryMedian{padding:8px;border:1px solid var(--border);border-radius:8px}.btv-summary-options #btSummaryMedian>div{display:flex;gap:12px;flex-wrap:wrap}.btv-summary-options #btSummaryMedian strong{font-size:22px}.btv-summary-options #btSummaryMedian small{font-size:13px}.btv-summary-options #btSummaryNotes p{font-size:13px}.btv-summary-options .btv-summary-controls{display:flex!important;flex-wrap:wrap}.btv-summary-options .btv-run-info p{display:block!important}#btOutput>.btv-main{grid-row:1/5!important}#btOutput .btv-summary-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}#btOutput .btv-summary-metrics strong{font-size:max(20px,calc(var(--reading-size)*1.1))!important;white-space:nowrap}#btOutput .btv-summary-metrics small{display:none!important}#btSummaryBasis{margin:6px 0!important}#btOutput .btv-summary-top{margin-bottom:4px!important}#btOutput .btv-summary-insight{font-size:max(13px,calc(var(--reading-size)*.8))!important;line-height:1.5;padding:7px!important}.focus-page-head [data-focus-expand]{white-space:nowrap}html[data-app-layout=mobile] .focus-page-head nav{max-width:none;flex-wrap:nowrap;gap:5px}html[data-app-layout=mobile] .focus-page-head nav button{font-size:12px!important;padding:7px!important}html[data-app-layout=mobile] .focus-page-head h2{font-size:max(19px,var(--reading-size))}html[data-app-layout=mobile] .focus-page-head>div{min-width:0}.focus-page-head p{overflow-wrap:anywhere}html[data-app-layout=mobile] .focus-page-head p{font-size:12px!important}html[data-app-layout=mobile] .btv-summary-metrics span{font-size:12px!important}html[data-app-layout=mobile] #btOutput .btv-summary-metrics>div{padding:6px!important}html[data-app-layout=mobile] .btv-summary{padding:10px!important}html[data-app-layout=mobile] .btv-main{padding:10px!important}html[data-app-layout=mobile] .btv-main .btv-result-toolbar{margin:5px 0}.btv-main .btv-result-toolbar label{font-size:13px}.btv-main .btv-result-toolbar select{min-height:40px;font-size:14px}.btv-main .btv-plain-result #btResultSubject{font-size:13px}html[data-reading-size="32"] #btOutput .btv-summary-metrics,html[data-reading-size="26"] #btOutput .btv-summary-metrics{grid-template-columns:1fr!important}

.cached-result-banner{background:var(--surface)!important;color:var(--text)!important}

.trade-country-panel{margin-top:12px;padding:14px}.trade-country-panel:empty{display:none}html[data-app-layout=mobile] .trade-page #relatedStocks{margin:0}html[data-app-layout=mobile] .trade-page #detail{padding:12px}html[data-app-layout=mobile] .trade-page #relatedStocks .stock-heading{margin-top:0}

.focus-page-head [data-focus-expand]{width:42px!important;min-width:42px!important;height:42px;padding:8px!important}.focus-page-head [data-focus-expand] .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.focus-page-head [data-focus-expand] .material-symbols-rounded{font-size:22px}.cached-result-banner .cached-run-details{width:100%}.cached-result-banner>div{width:100%}.cached-run-details>summary{min-height:22px;display:flex;align-items:center}.cached-result-banner .cached-run-details button{margin-top:6px}.cached-result-banner{min-height:34px}.cached-result-banner p{font-size:12px!important}html[data-app-layout=mobile] .cached-result-banner{margin-bottom:8px!important}.pattern-workbench .pv-flow-legend small{display:none!important}.pattern-workbench .pv-flow-periods{font-size:12px;margin:6px 0}.pattern-workbench .pv-flow-periods summary{cursor:pointer;min-height:28px;padding:4px 0}.pattern-workbench .pv-flow-periods p{font-size:12px!important;margin:4px 0}.pattern-workbench .pv-flow-legend button{min-height:36px!important}.pattern-workbench .pv-flow-legend strong{font-size:13px!important}.pattern-workbench #patternComparison .pv-flow-overview svg,.pattern-workbench #patternComparison .pv-card svg{max-height:none!important}.btv-main #btFutureChart svg{max-height:none!important}html[data-app-layout=mobile] .focus-page-head nav button:first-child{min-width:96px}.btv-main>.section-heading{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.btv-main .btv-plain-result>div:first-child{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}.btv-main #btResultValue{margin:0!important}.btv-main .btv-plain-result{padding:7px!important}.btv-summary-options #btEasy{margin-top:8px}.btv-summary-options #btFullInterpretation{font-size:14px}html[data-app-layout=mobile] .focus-page-head h2{font-size:19px!important}html[data-app-layout=mobile] .focus-page-head nav button:first-child{white-space:nowrap}html[data-app-layout=mobile] .focus-page-head p{line-height:1.35}.focus-pattern-summary .easy-result-heading h3 small{font-size:11px!important;display:block;color:var(--secondary)}

/* One shared search scope control, always before the query. */
[data-stock-market]{min-height:44px;min-width:0;max-width:100%;text-overflow:ellipsis}
.financial-search form>div{display:flex;flex-wrap:wrap;gap:8px}.financial-search [data-stock-market]{flex:0 1 210px}.financial-search input{flex:1 1 150px;min-width:0}
html[data-app-layout=mobile] .financial-search [data-stock-market]{flex:1 1 100%}
.btv-add>label{min-width:0}.btv-add select{max-width:100%}

html[data-app-layout=mobile] .focus-pattern-summary{padding:9px!important;margin:6px 0!important}
html[data-app-layout=mobile] .focus-pattern-summary .easy-result-heading h3{font-size:max(16px,calc(var(--reading-size)*.9))!important;line-height:1.25!important;margin:0!important}
html[data-app-layout=mobile] .focus-pattern-summary .easy-result-heading h3 small{display:inline;font-size:11px!important}
html[data-app-layout=mobile] .pattern-workbench:not(.pattern-workbench-focus) .pv-flow-legend button{min-width:0!important}
html[data-app-layout=mobile] .pattern-workbench:not(.pattern-workbench-focus) .pv-flow-legend strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px!important}

html[data-app-layout=mobile] .focus-pattern-summary .easy-result-heading>div>small{display:none!important}
html[data-app-layout=mobile] .pattern-workbench:not(.pattern-workbench-focus) .pv-flow-legend button{height:44px!important;padding:4px!important}
html[data-app-layout=mobile] .pattern-workbench:not(.pattern-workbench-focus) .pv-flow-legend{padding:0!important}

/* A pages own their setup visibility; legacy mobile sheets must not conceal them. */
html[data-app-layout=mobile] #featureView[data-focus-kind=pattern][data-focus-view=search] .pattern-search-controls:not(.ml-sheet-target),
html[data-app-layout=mobile] #featureView[data-focus-kind=backtest][data-focus-view=search] .btv-settings:not(.ml-sheet-target){display:block!important}
html[data-app-layout=mobile] #featureView[data-focus-kind] :is(.ml-pattern-summary,.ml-backtest-summary,.ml-backtest-progress-note){display:none!important}
