.module-bar {
  position:sticky;
  z-index:30;
  top:max(10px,env(safe-area-inset-top));
  width:min(1240px,calc(100% - 36px));
  margin:max(14px,env(safe-area-inset-top)) auto 0;
  min-height:57px;
  padding:5px 12px 5px 6px;
  border-radius:999px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
}
.module-bar[hidden],.topbar[hidden] { display:none; }
.module-bar button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  min-height:44px;
  border:1px solid #e8efff41;
  background:linear-gradient(150deg,#f4f4ff29,#e5e7ff14 63%,#b0bde635);
  box-shadow:inset 0 1px #fff3;
  border-radius:999px;
  padding:7px 15px;
}
.module-title { text-align:center; min-width:0; font-size:.9rem; font-weight:600; }
.module-bar .brandmark { width:24px; height:24px; }
body:not([data-route="home"]) .page:not(.eclipse-home) { min-height:calc(100svh - 85px); }
.spatial-bubble,.spatial-bubble:hover,.spatial-bubble:focus-visible,.spatial-bubble.link-source {
  isolation:isolate;
  overflow:visible;
  border-color:transparent;
  background:transparent;
  box-shadow:none;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
.droplet-skin {
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  border:1px solid #e7f3ff6c;
  border-radius:38px 41px 39px 44px;
  background:radial-gradient(ellipse at 15% -45%,#e9f3ff72,transparent 70%),
    linear-gradient(146deg,#2f394dec,#17202deb 60%,#364b62e1);
  box-shadow:inset 0 1px 1px #e7f5ff80,inset 0 -2px 6px #95bded36,
    0 0 18px #79aaff20,0 12px 32px #0008;
  -webkit-backdrop-filter:blur(12px) saturate(135%);
  backdrop-filter:blur(12px) saturate(135%);
  transition:transform .38s cubic-bezier(.2,1.7,.4,1),border-radius .35s,box-shadow .24s;
}
.spatial-bubble:hover .droplet-skin,.spatial-bubble:focus-visible .droplet-skin {
  box-shadow:inset 0 1px 2px #f1f8ff93,0 0 24px #9ed4ff43,0 12px 32px #0008;
}
.spatial-bubble.link-source .droplet-skin {
  border-color:#e0f5ff;
  box-shadow:inset 0 0 18px #9cd9ff58,0 0 0 3px #bce7ff38,0 0 42px #78bdff65;
}
body:not(.no-motion) .spatial-bubble[data-droplet-drag] .droplet-skin {
  border-radius:48% 43% 52% 44%;
  transform:var(--droplet-stretch);
  transition:transform 95ms ease-out,border-radius .2s,box-shadow .24s;
}
body:not(.no-motion) .spatial-bubble[data-droplet-drag] .droplet-skin::after {
  content:""; position:absolute; inset:20% 14%; border-radius:50%;
  transform:translate(var(--droplet-trail-x),var(--droplet-trail-y));
  background:#c4e4ff22; filter:blur(13px); z-index:-1;
}
body:not(.no-motion) .spatial-bubble.bubble-born .droplet-skin {
  animation:birth-droplet .62s both cubic-bezier(.18,.76,.27,1);
}
body:not(.no-motion) .spatial-bubble.bubble-born > :not(.droplet-skin) {
  animation:birth-text .48s .15s both ease-out;
}
@keyframes birth-droplet {
  0% { transform:scale(0); opacity:0; border-radius:50%; }
  24% { transform:scale(.16,.2); opacity:1; border-radius:50%; }
  60% { transform:scale(1.07,.92); opacity:1; border-radius:48% 43% 52% 44%; }
  82% { transform:scale(.97,1.04); opacity:1; }
  100% { transform:none; opacity:1; }
}
@keyframes birth-text { from { opacity:0; } to { opacity:1; } }
@media(max-width:620px) {
  .module-bar { width:calc(100% - 24px); margin-top:max(9px,env(safe-area-inset-top)); }
}
