/* Neutral comparison chrome shared by both identities, outside the replaceable app. */
html[data-brand-comparison]{--brand-comparison-height:calc(48px + env(safe-area-inset-top,0px));--brand-app-height:calc(100dvh - var(--brand-comparison-height));--brand-comparison-font:Manrope,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;scroll-padding-top:calc(var(--brand-comparison-height) + 12px)}
html[data-brand-comparison] body{padding-top:var(--brand-comparison-height)}
#brand-comparison-root{position:fixed;inset:0 0 auto;z-index:90;box-sizing:border-box;height:var(--brand-comparison-height);display:flex;align-items:center;justify-content:center;gap:16px;padding:env(safe-area-inset-top,0px) max(12px,env(safe-area-inset-right,0px)) 0 max(12px,env(safe-area-inset-left,0px));border-bottom:1px solid #d5d5d0;background:#f6f6f2;color:#252722;font-family:var(--brand-comparison-font);letter-spacing:0;color-scheme:light;isolation:isolate}
#brand-comparison-root .brand-comparison-label{font-size:10px;font-weight:650;line-height:1;letter-spacing:.1em;text-transform:uppercase;color:#65675f}
#brand-comparison-root .brand-comparison-options{display:flex;gap:3px;align-items:center;padding:3px;border:1px solid #d9dad3;border-radius:9px;background:#e9eae4}
#brand-comparison-root button{appearance:none;display:flex;align-items:center;justify-content:center;gap:6px;min-width:94px;min-height:36px;margin:0;padding:5px 13px;border:1px solid transparent;border-radius:6px;background:transparent;color:#62645c;font:600 11px/1.2 var(--brand-comparison-font);letter-spacing:0;white-space:nowrap;cursor:pointer;box-shadow:none}
#brand-comparison-root button[aria-checked=true]{background:#fff;color:#22241f;border-color:#d7d8d1;box-shadow:0 1px 3px #20251a0a}
#brand-comparison-root button:hover:not(:disabled){color:#11130f;background:#f8f9f5}
#brand-comparison-root button:focus-visible{outline:2px solid #3157b7;outline-offset:2px}
#brand-comparison-root .brand-comparison-dot{width:6px;height:6px;flex:none;border-radius:50%;background:#9ab140}
#brand-comparison-root button:disabled{cursor:default;opacity:1}

/* Reserve real space: no application or trading control sits below the toolbar. */
html[data-brand-comparison] .app-shell{min-height:var(--brand-app-height)}
html[data-brand-comparison] .workspace-shell>.workspace-nav{top:var(--brand-comparison-height)}
html[data-brand-comparison] .workspace-shell>.topbar{top:var(--brand-comparison-height)}
html[data-brand-comparison] .workspace-shell .shell-body{min-height:calc(var(--brand-app-height) - 64px)}
html[data-brand-comparison] .workspace-shell.desktop-chat-shell .shell-body{height:calc(var(--brand-app-height) - 64px);min-height:0}
html[data-brand-comparison] .workspace-shell.trade-canvas .shell-body{min-height:var(--brand-app-height)}
html[data-brand-comparison] :is(.cg-public,.cg-public .cg-landing,.cg-public-state){min-height:var(--brand-app-height)}
html[data-brand-comparison] .vcs-chat-page{height:calc(var(--brand-app-height) - 84px)}
html[data-brand-comparison] .tn-workspace{min-height:calc(var(--brand-app-height) - 50px)}
html[data-brand-comparison] .farming-content>.vf-workspace{min-height:calc(var(--brand-app-height) - 45px)}
html[data-brand-comparison] .vf-ticket{top:calc(var(--brand-comparison-height) + 12px);max-height:calc(var(--brand-app-height) - 30px)}
html[data-brand-comparison] .cb-preview-column{top:calc(var(--brand-comparison-height) + 28px)}
html[data-brand-comparison] .cg-preview-pane{top:calc(var(--brand-comparison-height) + 24px)}
html[data-brand-comparison] .terminal-app.is-chart-expanded:before{top:var(--brand-comparison-height)}
html[data-brand-comparison] .terminal-app.is-chart-expanded .term-chart-panel{top:calc(var(--brand-comparison-height) + 24px)}
html[data-brand-comparison] .skip-link{top:calc(var(--brand-comparison-height) + 8px);transform:translateY(-160px)}
html[data-brand-comparison] .skip-link:focus{transform:translateY(0)}

@media(min-width:1050px) and (min-height:650px){
  html[data-brand-comparison] .workspace-shell.trade-canvas .shell-body,
  html[data-brand-comparison] .workspace-shell.trade-canvas .view-content{height:var(--brand-app-height);min-height:0}
}
@media(max-width:1049px),(max-height:649px){
  html[data-brand-comparison] .trade-immersive .trading-mode-bar{top:var(--brand-comparison-height)}
}
@media(max-width:700px){
  #brand-comparison-root{gap:12px}
  #brand-comparison-root button{min-width:92px}
  html[data-brand-comparison] .workspace-shell .shell-body{min-height:calc(var(--brand-app-height) - 152px)}
  html[data-brand-comparison] .workspace-shell.native-mobile-shell{height:var(--brand-app-height);min-height:0}
  html[data-brand-comparison] .workspace-shell.native-mobile-shell .shell-body{height:calc(var(--brand-app-height) - 152px - env(safe-area-inset-bottom,0px));min-height:0}
  html[data-brand-comparison] .workspace-shell.desktop-chat-shell .shell-body{height:calc(var(--brand-app-height) - 152px - env(safe-area-inset-bottom,0px));min-height:0}
  html[data-brand-comparison] .workspace-shell.nav-drawer-open>.wn-scrim{top:var(--brand-comparison-height)}
  html[data-brand-comparison] .vcs-chat-page{height:calc(var(--brand-app-height) - 145px)}
}
@media(prefers-reduced-motion:reduce){#brand-comparison-root *{transition:none}}
