/* GlobalSignal v3.22 SAFE — obvious selected-state feedback.
   Presentation only. Loaded last so every mutually-exclusive tab/chip shows a clear amber selection. */
:root{
  --gs-selected-fill:#FFD34D;
  --gs-selected-ink:#07111F;
  --gs-selected-border:#FFE58A;
  --gs-selected-glow:rgba(255,211,77,.24);
}
body.light{
  --gs-selected-fill:#F2C94C;
  --gs-selected-ink:#122033;
  --gs-selected-border:#D6A900;
  --gs-selected-glow:rgba(190,138,0,.18);
}

/* One unmistakable selected language across primary choice controls. */
.gs-context-chips button.gs-chip-active,
.gs-context-chips button[aria-pressed="true"],
.intel-tabs button.active,
.aviation-tabs button.active,
.webcam-tabs button.active,
.anomaly-tabs button.active,
.brief-window-buttons button.active,
.preset-buttons button.active,
.quick-start-actions button.active,
[data-quick-start].active,
.gs-mission-strip-actions button.active,
.gs-mission-choice.active{
  color:var(--gs-selected-ink)!important;
  background:var(--gs-selected-fill)!important;
  border-color:var(--gs-selected-border)!important;
  box-shadow:0 0 0 1px color-mix(in srgb,var(--gs-selected-fill) 42%,transparent),0 6px 18px var(--gs-selected-glow)!important;
  font-weight:850!important;
  opacity:1!important;
}

/* Icons/text inside selected profile/quick-start controls must stay readable too. */
.gs-mission-strip-actions button.active span,
.gs-mission-choice.active .gs-mission-icon,
.gs-mission-choice.active b,
[data-quick-start].active .quick-start-icon{
  color:var(--gs-selected-ink)!important;
}

/* Context chips are the app-level secondary navigation. */
.gs-context-chips button{
  transition:background-color .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease,transform .14s ease;
}
.gs-context-chips button.gs-chip-active{transform:translateY(-1px)}
.gs-context-chips button.gs-chip-primary:not(.gs-chip-active){
  color:var(--text)!important;
  background:var(--gs-app-surface-2)!important;
  border-color:var(--gs-app-border)!important;
  box-shadow:none!important;
}

/* Existing blue active rules should not overwrite the amber selected fill. */
.news-priority .intel-tabs button.active,
.brief-window-buttons button.active{
  color:var(--gs-selected-ink)!important;
  background:var(--gs-selected-fill)!important;
  border-color:var(--gs-selected-border)!important;
}

/* Keyboard focus remains visible even on an already selected yellow control. */
.gs-context-chips button.gs-chip-active:focus-visible,
.intel-tabs button.active:focus-visible,
.brief-window-buttons button.active:focus-visible,
.preset-buttons button.active:focus-visible,
[data-quick-start].active:focus-visible{
  outline:3px solid var(--gs-blue)!important;
  outline-offset:2px;
}

@media(max-width:700px){
  .gs-context-chips button.gs-chip-active,
  .intel-tabs button.active,
  .brief-window-buttons button.active{
    box-shadow:0 0 0 1px color-mix(in srgb,var(--gs-selected-fill) 44%,transparent),0 5px 15px var(--gs-selected-glow)!important;
  }
}
