.halo-preview .general-menu {
  --menu-line: rgb(174 208 194 / 22%);
  --menu-accent: #b3d7c8;
  display: block;
  width: auto;
  z-index: 9;
}
.halo-preview .general-menu details,
.halo-preview .general-menu details[open] {
  width: auto;
  max-height: none;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.halo-preview .general-menu summary {
  justify-content: center;
  min-height: 44px;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid var(--menu-line);
  border-radius: 5px;
  background: rgb(15 25 25 / 85%);
  color: #dce9df;
  font-size: 11px;
  letter-spacing: .2px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.halo-preview .general-menu summary:hover,
.halo-preview .general-menu details[open] summary {
  border-color: rgb(174 208 194 / 46%);
  background: rgb(30 46 42 / 94%);
}
.halo-preview .general-menu-panel {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(352px, calc(100vw - 2 * var(--edge)));
  max-height: calc(100dvh - 184px - env(safe-area-inset-bottom));
  overflow: hidden;
  color: #e0e9df;
  border: 1px solid var(--menu-line);
  border-radius: 7px;
  background: rgb(14 23 24 / 96%);
  box-shadow: 0 18px 60px rgb(0 0 0 / 28%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.halo-preview .general-menu-header {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 3px;
  min-height: 72px;
  padding: 8px 9px 8px 18px;
  border-bottom: 1px solid var(--menu-line);
}
.halo-preview .general-menu-heading { flex: 1; min-width: 0; }
.halo-preview .menu-eyebrow { margin: 0 0 6px; color: #a8bdb1; font-size: 8px; line-height: 1.4; letter-spacing: 1.5px; text-transform: uppercase; }
.halo-preview #general-menu-title { margin: 0; color: #e4ece2; font: 500 17px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .1px; }
.halo-preview #general-menu-title:focus { outline: none; }
.halo-preview .general-menu .menu-icon-button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: #b8cec3; border-radius: 4px; }
.halo-preview .general-menu .menu-icon-button:hover { background: rgb(180 208 193 / 9%); color: #e2eddf; }
.halo-preview .general-menu-content { min-height: 0; padding: 18px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #526a60 transparent; }
.halo-preview .general-menu .settings-body { padding: 0; }
.halo-preview .menu-intro { margin: 0 0 17px; color: #aebfb4; font-size: 11px; line-height: 1.6; }
.halo-preview .menu-navigation { display: grid; gap: 9px; }
.halo-preview .general-menu .menu-nav-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 58px; padding: 13px 14px; border: 1px solid var(--menu-line); border-radius: 4px; color: #dce8db; background: rgb(107 144 128 / 5%); font: inherit; font-size: 12px; line-height: 1.45; text-align: left; }
.halo-preview .general-menu .menu-nav-button > span:last-child { color: var(--menu-accent); font-size: 19px; line-height: 1; }
.halo-preview .general-menu .menu-nav-button small { display: block; margin-top: 4px; color: #a6b7ad; font-size: 10px; font-weight: 400; }
.halo-preview .general-menu .menu-nav-button:hover { background: rgb(127 166 145 / 13%); border-color: rgb(174 208 194 / 45%); }
.halo-preview .general-menu .menu-resume { min-height: 48px; color: #e4f0e3; background: rgb(127 166 145 / 16%); }
.halo-preview #menu-account .account-hud { position: static; inset: auto; z-index: auto; display: grid; gap: 8px; width: 100%; max-width: none; margin-top: 12px; padding: 8px 0 0; border: 0; border-top: 1px solid var(--menu-line); border-radius: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.halo-preview #menu-account .account-hud[hidden] { display: none; }
.halo-preview #menu-account .account-identity { width: 100%; align-items: center; }
.halo-preview #menu-account .account-name { max-width: none; font-size: 11px; }
.halo-preview #menu-account .account-notice { max-width: none; font-size: 10px; }
.halo-preview #menu-account .account-logout { width: 100%; height: auto; min-height: 44px; padding: 11px 14px; display: flex; justify-content: flex-start; gap: 10px; border: 1px solid rgb(199 176 148 / 24%); color: #d4c4b0; font: inherit; font-size: 11px; text-align: left; }
.halo-preview #menu-account .account-logout::before { content: '↪'; font-size: 20px; line-height: 1; }
.halo-preview #menu-account .account-logout:hover:not(:disabled) { background: rgb(190 164 134 / 9%); border-color: rgb(199 176 148 / 42%); }
.halo-preview .menu-section-label { margin: 0 0 10px; color: #bfcdbb; font-size: 10px; }
.halo-preview .admin-vitals { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--ui-glass-divider, var(--menu-line)); }
.halo-preview .general-menu .admin-vitals-action { gap: 10px; min-height: 56px; }
.halo-preview .general-menu .admin-vitals-action > svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--menu-accent); }
.halo-preview .general-menu .admin-vitals-action > span:first-of-type { flex: 1; }
.halo-preview .general-menu .admin-vitals-action:disabled { cursor: default; opacity: .48; }
.halo-preview .general-menu .admin-vitals-action[aria-busy="true"] { opacity: .8; border-color: rgb(174 208 194 / 55%); }
.halo-preview .general-menu #admin-vitals-feedback { margin: 10px 0 0; color: #c5dcc8; line-height: 1.5; }
.halo-preview .general-menu #admin-vitals-feedback[data-tone="error"] { color: #e3b5a0; }
.halo-preview .general-menu .weather-modes { margin-bottom: 18px; gap: 8px; }
.halo-preview .general-menu .weather-button { min-height: 64px; flex-direction: column; gap: 7px; white-space: normal; background: rgb(95 119 102 / 6%); border: 1px solid var(--menu-line); color: #c4d2c4; }
.halo-preview .general-menu .weather-button[aria-pressed="true"] { background: rgb(105 140 118 / 20%); border-color: rgb(169 209 185 / 60%); color: #dbecda; }
.halo-preview .general-menu .weather-button:hover { background: rgb(117 150 127 / 22%); }
.halo-preview .general-menu .weather-button svg { color: currentColor; }
.halo-preview .menu-teleport { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--menu-line); }
.halo-preview .general-menu .field select { min-height: 44px; color: #dce7da; background-color: #1c2c29; border-color: var(--menu-line); }
.halo-preview .general-menu .field option { color: #dce7da; background-color: #1c2c29; }
.halo-preview .general-menu .field label,
.halo-preview .general-menu .vision-field label { color: #bfcec1; font-size: 11px; }
.halo-preview .general-menu .vision-settings { margin: 24px 0 20px; border-color: var(--menu-line); }
.halo-preview .general-menu .vision-settings legend { color: var(--menu-accent); font-size: 11px; }
.halo-preview .general-menu .vision-field input { min-height: 44px; margin: 0; accent-color: #b1d0b9; }
.halo-preview .general-menu .reset-button { min-height: 44px; color: #d8e5d4; background: rgb(139 177 155 / 6%); border-color: var(--menu-line); }
.halo-preview .general-menu .reset-button:hover { background: rgb(139 177 155 / 15%); }
.halo-preview .general-menu .settings-note { color: #a4b3a9; }
.halo-preview .general-menu .demo-link { display: flex; align-items: center; min-height: 44px; color: #bdcfb8; }
.halo-preview .general-menu :is(button,summary,select,input,a):focus-visible { outline: 2px solid #bedfc6; outline-offset: 3px; }
.halo-preview .general-menu [hidden] { display: none !important; }

/* These body-level overlays sit outside the world's isolated stacking context. */
.halo-preview:has(#general-menu[open]) .combat3d-launch,
.halo-preview:has(#general-menu[open]) .combat3d-launch-error,
.halo-preview:has(#general-menu[open]) .last-transmission-reopen,
.halo-preview:has(#general-menu[open]) #account-ui .account-hud {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 720px) {
  .halo-preview .general-menu { top: 87px; width: auto; }
  .halo-preview .general-menu-panel { max-height: calc(100dvh - 162px - env(safe-area-inset-bottom)); }
}
@media (max-height: 560px) {
  .halo-preview .general-menu { top: 74px; }
  .halo-preview .general-menu-panel { max-height: calc(100dvh - 143px - env(safe-area-inset-bottom)); }
  .halo-preview .general-menu-header { min-height: 60px; }
}
