/* Shared Robostock identity; the image keeps its original transparent alpha. */
#brandQuickAccess { flex: 0 0 auto; }
.brand-navigation { display:inline-flex; align-items:center; flex:0 0 auto; gap:3px; }
#brandNavigationToggle { display:inline-grid; place-items:center; width:30px; min-height:36px; padding:0; border:1px solid transparent; border-radius:6px; background:none; color:var(--muted,#92a6ba); font:16px/1 system-ui,sans-serif; cursor:pointer; }
#brandNavigationToggle:hover, #brandNavigationToggle[aria-expanded="true"] { color:var(--green,#23dca0); border-color:var(--line,var(--border,#263848)); }
#brandNavigationToggle:focus-visible { outline:2px solid #23dca0; outline-offset:1px; }
@media (pointer:coarse) {
  #brandNavigationToggle { width:38px; min-height:44px; }
  #brandQuickAccess { min-height:44px; }
}
html.app-fullscreen .brand-navigation, html.chart-pane .brand-navigation { display:none; }
#brandQuickAccess { cursor: pointer; text-decoration: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#brandQuickAccess:focus-visible { outline: 2px solid #23dca0; outline-offset: 4px; border-radius: 6px; }
#brandQuickMenu { position: fixed; z-index: 10000; display: grid; box-sizing: border-box; width: 270px; min-width: 0; max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); overflow-y: auto; padding: 6px; margin: 0; border: 1px solid #2b3948; border-radius: 9px; background: #0c1118; color: #e8eef6; box-shadow: 0 16px 40px #0006; font: 13px/1.4 system-ui, sans-serif; text-align: left; }
#brandQuickMenu[hidden] { display: none !important; }
#brandQuickMenu > a[hidden] { display:none !important; }
#brandQuickMenu > #brandQuickInstall { border-top:1px solid #2b3948; margin-top:4px; color:#23dca0; }
#brandQuickMenu > span { padding: 8px 10px; color: #93a5b8; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
#brandQuickMenu > a { display: flex; align-items: center; box-sizing: border-box; min-height: 38px; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: inherit; text-decoration: none; font: inherit; font-weight: 650; white-space: normal; }
#brandQuickMenu > a:hover, #brandQuickMenu > a:focus-visible { background: #192634; color: #23dca0; outline: none; }
#brandQuickMenu > [aria-current="page"] { background: #192634; color: #23dca0; }
#brandQuickMenu > #brandQuickHome { color: #45edb5; }
#brandQuickMenu > #brandQuickHome:hover, #brandQuickMenu > #brandQuickHome:focus-visible { background: #192634; color: #45edb5; }
#brandQuickMenu > #brandQuickHome:focus-visible { outline: 2px solid #23dca0; outline-offset: 1px; }
.robostock-page-brand { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font: 700 15px/1.3 system-ui, sans-serif; }
.robostock-legal-header { margin-bottom: 24px; }
.robostock-overview-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (pointer: coarse) { #brandQuickMenu > a { min-height: 44px; } }
.brand .rbs-brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 58px;
  height: 30px;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  vertical-align: middle;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
.site-header .brand { display: inline-flex; align-items: center; gap: 8px; }
/* Shared header sizing; chart controls keep their existing layout. */
html body header.rs-chart-identity:has(#brandQuickAccess) {
  box-sizing: border-box; display:flex; align-items:center; flex-wrap:nowrap;
  width:100%; max-width:none; height:58px; min-height:58px;
  margin:0; padding:0 18px; gap:14px; border-radius:0;
  border:0; border-bottom:1px solid var(--line,var(--border,#263848));
}
html body header.rs-chart-identity .rs-chart-brand {
  display:inline-flex; align-items:center; flex:0 0 auto; min-width:118px;
  gap:10px; margin:0; padding:0; border:0; white-space:nowrap;
  font:700 15.2px/normal Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:.304px; text-decoration:none;
}
html body header.rs-chart-identity .rs-chart-brand > .rbs-brand-mark {
  display:block; width:58px; height:30px; flex:0 0 auto;
}
html body header.rs-chart-identity .rs-chart-brand-name {
  display:inline; font:inherit; letter-spacing:inherit; color:inherit;
  border:0; border-radius:0; padding:0; margin:0; background:transparent;
}
html body.rs-chart-overview-page { padding:0 20px 20px; }
body.rs-chart-overview-page header.rs-chart-identity:has(#brandQuickAccess) {
  margin:0 -20px 20px; width:calc(100% + 40px); flex-direction:row;
}
header.rs-chart-identity .robostock-overview-brand { flex:1 1 auto; flex-wrap:nowrap; min-width:0; }
header.rs-chart-identity .robostock-overview-brand > div { min-width:0; overflow:hidden; }
header.rs-chart-identity .robostock-overview-brand h1 { margin:0; font-size:16px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body.rs-chart-legal-page { max-width:none; margin:0; padding:0; }
.rs-chart-legal-content { box-sizing:border-box; max-width:800px; margin:40px auto; padding:0 20px; }
@media(max-width:680px) {
  html body header.rs-chart-identity:has(#brandQuickAccess) { height:52px; min-height:52px; padding-inline:10px; }
  html body header.rs-chart-identity .rs-chart-brand { min-width:0; gap:0; }
  html body header.rs-chart-identity .rs-chart-brand > .rbs-brand-mark { width:46px; height:26px; }
  html body header.rs-chart-identity .rs-chart-brand-name { display:none; }
}
@media (max-width: 680px) {
  .brand .rbs-brand-mark { width: 46px; height: 26px; }
  #brandQuickAccess { font-size: 0; gap: 0; }
  #brandQuickAccess > strong, #brandQuickAccess > span, #brandQuickAccess > div { display: none; }
}
/* Stacked identity, isolated from page-specific .brand span decoration. */
html body #brandQuickAccess.rs-chart-brand {display:inline-flex;align-items:center;gap:10px;min-width:0;color:var(--text,#e9f1f9);}
html body #brandQuickAccess > .rs-brand-copy {display:flex;flex-direction:column;gap:4px;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:none;line-height:1.1;}
html body #brandQuickAccess .rs-chart-brand-name {display:block;margin:0;padding:0;border:0;border-radius:0;background:none;color:inherit;font:750 21px/1.1 Inter,system-ui,sans-serif;letter-spacing:-.5px;}
html body #brandQuickAccess .rs-brand-page {display:block;margin:0;padding:0;border:0;border-radius:0;background:none;color:var(--muted,#92a6ba);font:500 8px/1.3 Inter,system-ui,sans-serif;letter-spacing:1.4px;text-transform:uppercase;white-space:nowrap;}
@media(max-width:680px){
 html body #brandQuickAccess.rs-chart-brand{gap:0;}
 html body #brandQuickAccess > .rs-brand-copy{display:none;}
}
