.dashboard-ui-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  white-space: nowrap;
}

.dashboard-ui-switcher > span {
  font-size: 0.72rem;
  opacity: 0.72;
}

.dashboard-ui-select {
  min-width: 104px;
  padding: 7px 28px 7px 10px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: inherit;
  color: inherit;
  font: inherit;
  font-size: 0.8rem;
}

.dashboard-ui-select:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .dashboard-ui-switcher {
    margin-left: 0;
  }
}

/* A7C162 Aurora Interface control presentation.
   The caption remains in the DOM; Aurora hides only its visual rendering. */
html[data-dashboard-ui="aurora"]
.dashboard-ui-switcher {
  flex: 0 0 auto;
  min-width: 0;
  gap: 0;
}

html[data-dashboard-ui="aurora"]
.dashboard-ui-switcher
> :not(.dashboard-ui-select) {
  display: none;
}

html[data-dashboard-ui="aurora"]
.dashboard-ui-select {
  width: 112px;
  min-width: 104px;
  min-height: 38px;
  padding: 7px 30px 7px 11px;
  border-radius: 12px;
  border-color: rgba(128, 220, 187, 0.22);
  background:
    linear-gradient(
      180deg,
      rgba(17, 42, 32, 0.82),
      rgba(7, 25, 18, 0.88)
    );
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.035),
    0 7px 18px rgba(0, 0, 0, 0.12);
}

html[data-dashboard-ui="aurora"]
.dashboard-ui-select:hover {
  border-color: rgba(88, 240, 189, 0.42);
  background:
    linear-gradient(
      180deg,
      rgba(20, 51, 38, 0.90),
      rgba(9, 31, 22, 0.92)
    );
}

@media (max-width: 900px) {
  html[data-dashboard-ui="aurora"]
  .dashboard-ui-switcher {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  html[data-dashboard-ui="aurora"]
  .dashboard-ui-switcher {
    margin-left: 0;
  }

  html[data-dashboard-ui="aurora"]
  .dashboard-ui-select {
    width: 100%;
  }
}
/* End A7C162 Aurora Interface control presentation */

/* A7C207 Aurora final recessed-light Interface */
html[data-dashboard-ui="aurora"]
.dashboard-ui-switcher {
  flex: 0 0 auto;
  align-items: center;
  margin-left: 0;
}

html[data-dashboard-ui="aurora"]
.dashboard-ui-switcher
> :not(.dashboard-ui-select) {
  display: none;
}

html[data-dashboard-ui="aurora"]
.dashboard-ui-select {
  width: 116px;
  min-width: 116px;

  min-height: 34px;
  height: 34px;

  padding:
    6px
    36px
    6px
    14px;

  border-radius: 999px;

  border:
    1px solid
    rgba(5, 33, 22, 0.72);

  background:
    radial-gradient(
      72% 54% at 50% 112%,
      rgba(93, 244, 176, 0.24) 0%,
      rgba(42, 170, 114, 0.14) 28%,
      rgba(12, 77, 49, 0.05) 50%,
      rgba(1, 13, 8, 0) 72%
    ),
    radial-gradient(
      35% 34% at 35% 92%,
      rgba(116, 255, 194, 0.10) 0%,
      rgba(16, 91, 58, 0.02) 62%,
      rgba(0, 0, 0, 0) 100%
    ),
    linear-gradient(
      180deg,
      rgba(2, 15, 10, 1) 0%,
      rgba(1, 10, 6, 1) 28%,
      rgba(0, 7, 4, 1) 58%,
      rgba(2, 17, 11, 1) 100%
    );

  color:
    rgba(232, 248, 241, 0.96);

  font-size: 11.5px;
  font-weight: 650;
  line-height: 1;

  text-shadow:
    0 1px 1px
    rgba(0, 0, 0, 0.82);

  box-shadow:
    0 0 0 1px
      rgba(0, 7, 4, 0.34),

    inset 0 4px 7px
      rgba(0, 0, 0, 0.88),

    inset 2px 0 4px
      rgba(0, 0, 0, 0.34),

    inset -2px 0 4px
      rgba(0, 0, 0, 0.28),

    inset 0 -1px 0
      rgba(129, 255, 199, 0.46),

    inset 0 -3px 7px
      rgba(35, 170, 110, 0.19);
}

html[data-dashboard-ui="aurora"]
.dashboard-ui-select:hover {
  border-color:
    rgba(9, 47, 32, 0.78);

  background:
    radial-gradient(
      74% 56% at 50% 112%,
      rgba(114, 255, 191, 0.32) 0%,
      rgba(50, 196, 129, 0.18) 28%,
      rgba(14, 87, 55, 0.06) 51%,
      rgba(1, 14, 9, 0) 73%
    ),
    radial-gradient(
      36% 34% at 35% 92%,
      rgba(137, 255, 207, 0.14) 0%,
      rgba(18, 103, 65, 0.03) 62%,
      rgba(0, 0, 0, 0) 100%
    ),
    linear-gradient(
      180deg,
      rgba(2, 17, 11, 1) 0%,
      rgba(1, 11, 7, 1) 28%,
      rgba(0, 8, 5, 1) 58%,
      rgba(3, 20, 13, 1) 100%
    );

  box-shadow:
    0 0 0 1px
      rgba(0, 8, 5, 0.36),

    inset 0 4px 7px
      rgba(0, 0, 0, 0.84),

    inset 2px 0 4px
      rgba(0, 0, 0, 0.31),

    inset -2px 0 4px
      rgba(0, 0, 0, 0.25),

    inset 0 -1px 0
      rgba(149, 255, 211, 0.56),

    inset 0 -3px 8px
      rgba(40, 195, 124, 0.24);
}

/* End A7C207 Aurora final recessed-light Interface */
/* M4.47A5 — ball-only Aurora palette selector */
html[data-dashboard-ui="aurora"]
.aurora-palette-switcher {
  position: relative;

  order: 55;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 30px;

  width: 30px;
  min-width: 30px;
  height: 34px;
}

html[data-dashboard-ui="aurora"]
.aurora-palette-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  min-width: 30px;
  height: 34px;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: transparent;

  color: inherit;

  box-shadow: none;

  cursor: pointer;
}

html[data-dashboard-ui="aurora"]
.aurora-palette-swatch {
  display: block;

  width: 14px;
  height: 14px;

  border:
    1px solid
    rgba(255, 255, 255, .76);

  border-radius: 50%;

  background:
    var(--accent);

  box-shadow:
    0 0 0 2px
      rgba(var(--aurora-accent-rgb), .10),
    0 0 11px
      rgba(var(--aurora-accent-rgb), .48);

  transition:
    transform .16s ease,
    box-shadow .16s ease;
}

html[data-dashboard-ui="aurora"]
.aurora-palette-trigger:hover
.aurora-palette-swatch {
  transform:
    scale(1.14);

  box-shadow:
    0 0 0 3px
      rgba(var(--aurora-accent-rgb), .12),
    0 0 15px
      rgba(var(--aurora-accent-rgb), .62);
}

html[data-dashboard-ui="aurora"]
.aurora-palette-trigger:focus-visible {
  outline:
    2px solid
    rgba(var(--aurora-accent-rgb), .52);

  outline-offset: 1px;
}

html[data-dashboard-ui="aurora"]
.aurora-palette-menu {
  position: absolute;

  top: calc(100% + 7px);
  right: 0;

  z-index: 1200;

  display: grid;
  gap: 2px;

  width: 174px;

  padding: 6px;

  border:
    1px solid
    rgba(var(--aurora-border-rgb), .22);

  border-radius: 13px;

  background:
    linear-gradient(
      180deg,
      var(--aurora-palette-raised),
      var(--aurora-palette-surface)
    );

  box-shadow:
    inset 0 1px
      rgba(255, 255, 255, .04),
    0 18px 45px
      rgba(0, 0, 0, .48),
    0 0 30px
      rgba(var(--aurora-accent-rgb), .07);
}

html[data-dashboard-ui="aurora"]
.aurora-palette-menu[hidden] {
  display: none;
}

html[data-dashboard-ui="aurora"]
.aurora-palette-option {
  display: flex;
  align-items: center;

  width: 100%;
  min-height: 34px;

  gap: 10px;

  padding:
    7px
    10px;

  border:
    1px solid
    transparent;

  border-radius: 9px;

  background: transparent;

  color:
    var(--text-soft);

  font: inherit;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1;

  text-align: left;

  cursor: pointer;
}

html[data-dashboard-ui="aurora"]
.aurora-palette-option:hover,
html[data-dashboard-ui="aurora"]
.aurora-palette-option:focus-visible {
  border-color:
    rgba(var(--aurora-border-rgb), .18);

  background:
    rgba(var(--aurora-accent-rgb), .07);

  color:
    var(--text);

  outline: none;
}

html[data-dashboard-ui="aurora"]
.aurora-palette-option.active {
  border-color:
    rgba(var(--aurora-accent-rgb), .27);

  background:
    rgba(var(--aurora-accent-rgb), .11);

  color:
    var(--text);
}

html[data-dashboard-ui="aurora"]
.aurora-palette-option-swatch {
  flex: 0 0 auto;

  width: 11px;
  height: 11px;

  border:
    1px solid
    rgba(255, 255, 255, .68);

  border-radius: 50%;

  box-shadow:
    0 0 8px
      rgba(255, 255, 255, .08);
}

html[data-dashboard-ui="aurora"]
.aurora-palette-option-name {
  min-width: 0;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html[data-dashboard-ui="aurora"]
  .aurora-palette-swatch {
    transition: none;
  }
}

/*
 * M4.47A7 — Palette menu stacking.
 *
 * backdrop-filter makes the Aurora topbar a stacking context.
 * Raise that parent context only while the transient palette
 * menu is open; the normal closed topbar keeps its old layering.
 */
html[data-dashboard-ui="aurora"]
.topbar.aurora-palette-menu-open {
  z-index: 1400;
}

/* End M4.47A5 ball-only Aurora palette selector */
