/* Scoped Astra-approved shell polish. Host routing and button behaviour stay untouched. */
.nexa-approved-shell {
  --nexa-ink: #0d0d0c;
  --nexa-cream: #f1f0f7;
  --nexa-paper: #fffdf8;
  --nexa-gold: #cec6f6;
  --nexa-dock-height: 86px;
  color: var(--nexa-ink);
  background: var(--nexa-cream);
  padding-bottom: calc(var(--nexa-dock-height) + 42px + env(safe-area-inset-bottom, 0px));
}

.nexa-approved-header {
  height: 64px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 13px;
  position: sticky;
  top: 0;
  z-index: 5;
  color: var(--nexa-cream);
  direction: ltr;
  background: linear-gradient(112deg, #20211f, #181917 64%, #20211e);
}

.nexa-approved-dock {
  position: fixed;
  z-index: 6;
  left: 50%;
  bottom: calc(9px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: calc(100% - 16px);
  max-width: 744px;
  min-height: var(--nexa-dock-height);
  display: grid;
  grid-template-columns: repeat(5, minmax(44px, 1fr));
  align-items: end;
  padding: 4px;
  box-sizing: border-box;
  direction: rtl;
  gap: 2px;
  color: var(--nexa-ink);
  background: rgba(250, 249, 253, .96);
  border: 1px solid #ccc9d6;
  border-radius: 24px;
  box-shadow: 0 3px 13px #3430441a;
  backdrop-filter: blur(14px);
}

.nexa-approved-dock .nexa-dock__item {
  position: relative;
  min-inline-size: 44px;
  min-block-size: 76px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 8px 0 7px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nexa-approved-dock .nexa-dock__item > .nexa-approved-icon {
  inline-size: 24px;
  block-size: 24px;
  flex: none;
}

.nexa-approved-dock .nexa-dock__item:focus-visible {
  outline: 2px solid var(--nexa-gold);
  outline-offset: 2px;
}

.nexa-approved-header .header-mark,
.nexa-approved-header [data-nexa-shell-mark] {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 34px;
  object-fit: contain;
}

.astra-topbar.nexa-approved-header .astra-brand {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 48px;
  height: 52px;
}

.astra-topbar.nexa-approved-header .astra-brand img {
  width: 34px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(194, 184, 241, .24));
}

.nexa-approved-dock > .nav-item,
.nexa-approved-dock > .world-tab {
  position: relative;
  min-inline-size: 44px;
  min-block-size: 76px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 8px 0 7px;
}

@media (prefers-reduced-motion: reduce) {
  .nexa-approved-dock, .nexa-approved-dock * { transition: none !important; animation: none !important; }
}
