:host, world20-global-menu {
  --w2g-accent: #88e7ec;
  --w2g-ink: #eef7fc;
  --w2g-muted: #b9cbd9;
  display: block;
  line-height: 1.35;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--w2g-ink);
  color-scheme: dark;
}
:host([hidden]), world20-global-menu[hidden], .w2g-results [hidden], .w2g-fallback-backdrop[hidden] { display: none !important; }
:host(:not([data-inline])), world20-global-menu:not([data-inline]) {
  position: fixed;
  z-index: 1200;
  left: max(.75rem, env(safe-area-inset-left));
  bottom: max(calc(.75rem + env(safe-area-inset-bottom)), var(--w2g-avoid-bottom, 0px), var(--w2g-bottom, 0px));
}
:host([data-top-right]), world20-global-menu[data-top-right] {
  left: auto;
  bottom: auto;
  top: max(calc(.75rem + env(safe-area-inset-top)), var(--w2g-top, 0px));
  right: max(.75rem, env(safe-area-inset-right));
}
:host { isolation: isolate; }
.w2g-launch, .w2g-panel, .w2g-panel *, .w2g-dialog { box-sizing: border-box; }
.w2g-launch, .w2g-panel button {
  appearance: none;
  font: inherit;
  cursor: pointer;
  color: inherit;
}
.w2g-launch, .w2g-close {
  width: 46px;
  height: 46px;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
}
.w2g-launch {
  background: #122838;
  color: var(--w2g-accent);
  border: 1px solid #86d9df;
  box-shadow: 0 3px 12px #02091155;
}
.w2g-globe {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
}
.w2g-meridian {
  transform-box: fill-box;
  transform-origin: center;
  animation: w2g-spin 3.6s linear;
}
@keyframes w2g-spin {
  0%, 50%, 100% { transform: scaleX(1); }
  25%, 75% { transform: scaleX(.06); }
}
.w2g-dialog:not([open]):not([popover]) { display: none; }
.w2g-dialog:is([open], :popover-open) {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(43rem, calc(100% - 1.5rem));
  max-width: none;
  max-height: min(38rem, calc(100vh - 1.5rem));
  max-height: min(38rem, calc(100dvh - max(1.5rem, env(safe-area-inset-top) + env(safe-area-inset-bottom))));
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 1.1rem;
  border: 1px solid #a7d7e74d;
  background: #142532ed;
  color: var(--w2g-ink);
  box-shadow: 0 18px 68px #0008;
  backdrop-filter: blur(18px) saturate(115%);
  animation: w2g-reveal 160ms ease-out both;
}
@keyframes w2g-reveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.w2g-dialog::backdrop, .w2g-fallback-backdrop { background: #050d17a6; }
.w2g-fallback-backdrop { position: fixed; inset: 0; z-index: 1201; }
.w2g-fallback { z-index: 1202; }
.w2g-panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(min(7rem, 20vh), 1fr) auto;
  max-height: min(37.8rem, calc(100vh - 1.7rem));
  max-height: min(37.8rem, calc(100dvh - max(1.7rem, env(safe-area-inset-top) + env(safe-area-inset-bottom))));
}
.w2g-header, .w2g-search-area, .w2g-filters, .w2g-directory, .w2g-actions {
  padding-inline: clamp(.8rem, 3vw, 1.55rem);
}
.w2g-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding-block: .75rem .35rem;
}
.w2g-header h2 { color: var(--w2g-ink); font-size: clamp(1.65rem, 5vw, 2.35rem); font-weight: 650; letter-spacing: -.065em; line-height: 1.1; margin: 0; }
.w2g-header h2 strong { color: var(--w2g-accent); font-weight: inherit; }
.w2g-close { border: 1px solid #93b6c34a; background: #ffffff0c; }
.w2g-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.w2g-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.w2g-search-area { padding-block: .4rem .3rem; }
.w2g-search-area input {
  appearance: none;
  font: inherit;
  font-size: 16px;
  color: var(--w2g-ink);
  width: 100%;
  min-height: 44px;
  padding: .55rem .8rem;
  border: 1px solid #7595aa;
  border-radius: .45rem;
  background: #091723d9;
}
.w2g-search-area input::placeholder { color: #bbccd8; }
.w2g-filters {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  padding-block: .25rem .45rem;
}
.w2g-filters button {
  min-height: 44px;
  padding-inline: .65rem;
  font-size: .83rem;
  border: 1px solid #88a8bc68;
  border-radius: .4rem;
  background: #162b3b;
}
.w2g-filters button[aria-pressed="true"] {
  border-color: var(--w2g-accent);
  background: #244554;
  color: var(--w2g-accent);
}
.w2g-directory {
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
  scrollbar-color: #7698ab #1a3143;
  border-top: 1px solid #a7d7e72e;
  margin-top: .15rem;
}
.w2g-count { margin: .55rem 0 .15rem; font-size: .81rem; color: var(--w2g-muted); }
.w2g-results { padding: 0; margin: 0; list-style: none; }
.w2g-results li + li { border-top: 1px solid #9abacf28; }
.w2g-results a, .w2g-actions a { color: var(--w2g-ink); text-decoration: none; }
.w2g-results a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: .7rem;
  row-gap: .1rem;
  min-height: 44px;
  padding-block: .65rem;
  align-content: center;
}
.w2g-results a strong { font-size: .98rem; font-weight: 650; }
.w2g-results a span { color: var(--w2g-muted); font-size: .87rem; }
.w2g-results a:hover strong, .w2g-actions a:hover { color: var(--w2g-accent); text-decoration: underline; }
.w2g-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0 .9rem;
  border-top: 1px solid #9abacf40;
  padding-block: .25rem;
}
.w2g-actions a { display: inline-flex; align-items: center; min-height: 44px; font-size: .87rem; }
.w2g-actions .w2g-sign-in { margin-left: auto; font-weight: 650; color: var(--w2g-accent); }
.w2g-launch:focus-visible, .w2g-panel :focus-visible { outline: 2px solid var(--w2g-accent); outline-offset: 2px; }
.w2g-directory:focus-visible, .w2g-results a:focus-visible { outline-offset: -3px; }
@media (max-height: 430px) {
  .w2g-panel { display: block; max-height: none; }
  .w2g-directory { max-height: min(16rem, 46dvh); }
}
@media (prefers-reduced-motion: reduce) {
  .w2g-dialog:is([open], :popover-open), .w2g-meridian { animation: none; }
}

.w2g-dialog[popover], .w2g-static-trigger { display: none; }
.w2g-static-fallback { text-decoration: none; }
@supports selector(:popover-open) {
  .w2g-static-trigger { display: grid; }
  .w2g-static-fallback { display: none; }
  .w2g-static-dialog:popover-open { display: block; }
}
.w2g-static-dialog .w2g-panel { grid-template-rows: auto minmax(min(7rem, 20vh), 1fr) auto; }
.w2g-static-dialog h3 { color: var(--w2g-muted); font-size: .9rem; margin: 1.1rem 0 .15rem; }
