
/* Bio2Twin Web App /apps/ — one unified member header row.
   Keep existing nav/auth JS; hide the duplicate injected member-navigation strip only on this route. */
body:has(> .app-shell) > .b2t-member-nav{display:none!important}
body:has(> .app-shell) > .app-shell > header.topbar{
  top:0!important;
  left:0;right:0;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  align-items:center;
  gap:clamp(10px,1.5vw,22px);
  padding:0 clamp(10px,1.4vw,22px);
  height:var(--top);
  min-width:0;
  box-sizing:border-box;
}
body:has(> .app-shell) .app-shell > .topbar .top-center{display:none!important}
body:has(> .app-shell) .app-shell > .topbar .brand{min-width:0;max-width:100%;white-space:nowrap}
body:has(> .app-shell) .app-shell > .topbar .app-space-tabs{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-width:0;
  flex:0 1 auto;
  gap:5px;
  white-space:nowrap;
}
body:has(> .app-shell) .app-shell > .topbar .app-space-tabs a{
  display:inline-flex;
  min-height:38px;
  align-items:center;
  justify-content:center;
  padding:0 clamp(7px,0.7vw,12px);
  border:1px solid transparent;
  border-radius:9px;
  color:var(--bt-body,#c1beb8);
  font-size:13px;
  font-weight:400;
  text-decoration:none;
  white-space:nowrap;
  transition:background .15s ease,color .15s ease;
}
body:has(> .app-shell) .app-shell > .topbar .app-space-tabs a:hover,
body:has(> .app-shell) .app-shell > .topbar .app-space-tabs a:focus-visible{
  background:var(--bt-surface-raised,#202428);
  color:var(--bt-ink,#eeeae4);
}
body:has(> .app-shell) .app-shell > .topbar .top-actions{
  justify-self:end;
  min-width:0;
  gap:8px;
  white-space:nowrap;
}
body:has(> .app-shell) .app-shell > .topbar .top-actions a[href="/personal-model/"]{display:none!important}
body:has(> .app-shell) .rail{top:var(--top)!important}
body:has(> .app-shell) .workspace{padding-top:calc(var(--top) + 34px)!important}
@media(max-width:1100px){
  body:has(> .app-shell) .app-shell > .topbar .top-actions .status-pill{display:none!important}
  body:has(> .app-shell) .app-shell > .topbar .brand span{font-size:13px}
}
@media(max-width:900px){
  body:has(> .app-shell) .app-shell > .topbar .top-actions .plan-upgrade{display:none!important}
}
@media(max-width:760px){
  body:has(> .app-shell) .app-shell > header.topbar{grid-template-columns:auto minmax(0,1fr) auto!important;gap:7px;padding:0 10px}
  body:has(> .app-shell) .app-shell > .topbar .brand span{display:none}
  body:has(> .app-shell) .app-shell > .topbar .app-space-tabs{gap:0}
  body:has(> .app-shell) .app-shell > .topbar .app-space-tabs a{padding:0 7px;min-height:38px;font-size:12px}
  body:has(> .app-shell) .app-shell > .topbar .top-actions #architectureBtn{display:none!important}
  body:has(> .app-shell) .app-shell > .topbar .top-actions{gap:0}
  body:has(> .app-shell) .app-shell > .topbar .top-actions #topAuth{padding:8px 10px;font-size:11px;white-space:nowrap}
  body:has(> .app-shell) .workspace{padding-top:calc(var(--top) + 22px)!important}
}
@media(max-width:375px){
  body:has(> .app-shell) .app-shell > header.topbar{gap:4px;padding:0 7px}
  body:has(> .app-shell) .app-shell > .topbar .app-space-tabs a{padding:0 5px;font-size:11px}
  body:has(> .app-shell) .app-shell > .topbar .top-actions #topAuth{padding:7px 8px;font-size:11px}
  body:has(> .app-shell) .app-shell > .topbar .brand img{width:24px;height:24px}
}
@media(prefers-reduced-motion:reduce){
  body:has(> .app-shell) .app-shell > .topbar .app-space-tabs a{transition:none}
}
