/* no8geo language switcher */
.no8geo-langbar { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(12, 32, 48, .62); backdrop-filter: blur(8px); }
.no8geo-langbar--fixed { position: fixed; top: 14px; right: 14px; z-index: 2147483001; }
body.splash-open .no8geo-langbar { display: none; }
.no8geo-langbar button { border: 0; border-radius: 999px; padding: 6px 13px; cursor: pointer;
  font: inherit; font-size: .82rem; color: #cfe4f1; background: transparent; }
.no8geo-langbar button:hover { color: #fff; }
.no8geo-langbar button.is-active { background: #2b91b8; color: #fff; }
@media (max-width: 520px) { .no8geo-langbar--fixed { top: 8px; right: 8px; } }

.no8geo-langbar button { width:auto; min-width:0; margin:0; line-height:1.25; }

.no8geo-langbar { flex:0 0 auto; align-items:center; white-space:nowrap; }
.no8geo-language-host, .no8geo-language-header { flex-wrap:wrap; min-inline-size:0; }
.no8geo-language-host > .no8geo-langbar button { padding:5px 9px; font:600 13px/1.25 system-ui,sans-serif; }

.no8geo-home-tools {
  position:sticky; top:0; z-index:80; box-sizing:border-box;
  background:var(--surface-1);
  display:flex; align-items:center; flex-wrap:wrap; gap:8px;
  max-inline-size:1240px; margin-inline:auto;
  padding:max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 4px max(16px,env(safe-area-inset-left));
}
.no8geo-home-tools > :is(.home-account-entry,.time-pill,.theme-choice),
.no8geo-guide-tools > #theme { position:static; inset:auto; margin:0; }
.no8geo-home-tools > .no8geo-langbar { margin-inline-start:auto; }
.no8geo-home-tools ~ #mainContent { padding-top:clamp(12px,3vh,36px); }
.no8geo-guide-tools {
  position:fixed; z-index:2147483001;
  top:max(12px,env(safe-area-inset-top)); right:max(12px,env(safe-area-inset-right));
  display:flex; align-items:center; gap:8px;
}
@media (max-width:600px) {
  .no8geo-home-tools {
    display:grid; grid-template-columns:auto minmax(0,1fr); gap:6px 10px;
    padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right));
  }
  .no8geo-home-tools > .no8geo-langbar { margin-inline-start:0; justify-self:start; }
  .no8geo-home-tools > :is(.theme-choice,.time-pill) { justify-self:end; }
  .no8geo-langbar button { padding-inline:8px; }
}
