.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.radar-shell-header {
  position: relative;
  overflow: hidden;
}

.radar-shell-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.025) 35%, rgba(232,184,75,0.14) 50%, rgba(255,255,255,0.025) 65%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  animation: radar-shell-sweep 5.2s ease-in-out infinite;
}

.radar-shell-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.radar-shell-nav .radar-shell-right {
  gap: 8px;
  flex-wrap: nowrap;
}

.radar-shell-nav .radar-shell-brand-picker,
.radar-shell-nav .radar-shell-sales-rep-picker {
  background: rgba(255,255,255,0.035);
  border-color: rgba(201,149,42,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.radar-shell-nav .radar-shell-select {
  min-width: 138px;
  padding: 7px 11px;
  background: rgba(10,10,10,0.92);
}

.radar-shell-nav .radar-shell-sales-rep-picker .radar-shell-select {
  min-width: 156px;
}

.radar-shell-button.radar-shell-refresh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 11px 6px 9px;
  border-radius: 18px;
  border-color: rgba(201,149,42,0.26);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)),
    rgba(16,16,16,0.96);
  color: var(--text, #f0ebe0);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    0 8px 20px rgba(0,0,0,0.18);
}

.radar-shell-button.radar-shell-refresh:hover:not(:disabled) {
  border-color: rgba(232,184,75,0.42);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)),
    rgba(20,20,20,0.98);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.055),
    0 10px 24px rgba(0,0,0,0.22),
    0 0 0 1px rgba(232,184,75,0.08);
}

.radar-shell-refresh-pulse {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green, #2fe87a);
  box-shadow: 0 0 0 0 rgba(47,232,122,0.55);
  animation: radar-shell-pulse 2.2s ease-in-out infinite;
  flex: 0 0 auto;
}

.radar-shell-refresh[data-tone="warn"] .radar-shell-refresh-pulse {
  background: var(--amber, #f0b429);
  box-shadow: 0 0 0 0 rgba(240,180,41,0.48);
}

.radar-shell-refresh[data-tone="error"] .radar-shell-refresh-pulse {
  background: var(--red, #e05050);
  box-shadow: 0 0 0 0 rgba(224,80,80,0.48);
}

.radar-shell-refresh-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
  line-height: 1.1;
}

.radar-shell-refresh-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f2c95d;
}

.radar-shell-refresh-meta {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  line-height: 1.15;
  color: var(--text-muted, #a89a82);
  white-space: nowrap;
}

.radar-shell-refresh-meta strong {
  color: var(--text, #f0ebe0);
  font-weight: 600;
}

.radar-shell-bar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 18px;
  padding: 12px 16px;
  border: 1px solid rgba(201,149,42,0.18);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background:
    linear-gradient(180deg, rgba(201,149,42,0.08), rgba(255,255,255,0.02) 45%, rgba(10,10,10,0.94)),
    rgba(10,10,10,0.96);
  box-shadow: 0 18px 34px rgba(0,0,0,0.22);
  backdrop-filter: blur(10px);
  animation: radar-shell-rise 540ms cubic-bezier(.2,.9,.2,1) both;
}

.radar-shell-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.03) 36%, rgba(232,184,75,0.18) 50%, rgba(255,255,255,0.03) 64%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  animation: radar-shell-sweep 4.4s ease-in-out infinite;
  border-radius: inherit;
}

.radar-shell-left {
  display: grid;
  gap: 6px;
  min-width: min(100%, 420px);
}

.radar-shell-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim, #6b5e4d);
}

.radar-shell-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radar-shell-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-muted, #a89a82);
}

.radar-shell-chip strong {
  color: var(--text, #f0ebe0);
}

.radar-shell-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.radar-shell-brand-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.radar-shell-sales-rep-picker .radar-shell-select {
  min-width: 190px;
}

.radar-shell-select-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim, #6b5e4d);
}

.radar-shell-select {
  min-width: 160px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(12,12,12,0.96);
  color: var(--text, #f0ebe0);
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}

.radar-shell-select:disabled {
  opacity: 0.6;
  cursor: wait;
}

.radar-shell-status {
  font-size: 11px;
  color: var(--text-muted, #a89a82);
}

.radar-shell-status.ready {
  color: var(--green, #2fe87a);
}

.radar-shell-status.warn {
  color: var(--amber, #f0b429);
}

.radar-shell-status.error {
  color: var(--red, #e05050);
}

.radar-shell-button {
  border: 1px solid #423621;
  border-radius: 999px;
  background: linear-gradient(180deg, #d6a63a, #b7821d);
  color: #101010;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Barlow', sans-serif;
  cursor: pointer;
  padding: 10px 16px;
}

.radar-shell-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.radar-shell-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(720px 320px at 50% 10%, rgba(201,149,42,0.14), transparent 64%),
    rgba(7, 7, 7, 0.86);
  backdrop-filter: blur(10px);
}

.radar-shell-overlay.hidden {
  display: none;
}

.radar-shell-overlay-card {
  position: relative;
  width: min(520px, 100%);
  padding: 26px 24px;
  border: 1px solid rgba(201,149,42,0.22);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), transparent 72%), rgba(12,12,12,0.98);
  box-shadow: 0 28px 80px rgba(0,0,0,0.48);
  overflow: hidden;
  text-align: center;
  isolation: isolate;
  animation: radar-shell-rise 420ms cubic-bezier(.2,.9,.2,1) both;
}

.radar-shell-overlay-card::before {
  content: '';
  position: absolute;
  inset: -10% -30%;
  background: conic-gradient(from 180deg at 50% 50%, transparent 0deg, rgba(232,184,75,0.16) 70deg, transparent 130deg, transparent 360deg);
  opacity: 0.55;
  filter: blur(18px);
  animation: radar-shell-rotate 12s linear infinite;
  pointer-events: none;
}

.radar-shell-overlay-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(232,184,75,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,184,75,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.26;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 50% 35%, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.82) 32%, transparent 74%);
  mask-image: radial-gradient(circle at 50% 35%, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.82) 32%, transparent 74%);
}

.radar-shell-overlay-radar {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 300px;
  height: 300px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

.radar-shell-overlay-ring,
.radar-shell-overlay-scan {
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.radar-shell-overlay-ring {
  border: 1px solid rgba(232,184,75,0.12);
  background: radial-gradient(circle, rgba(232,184,75,0.06) 0%, rgba(232,184,75,0.02) 28%, transparent 68%);
  box-shadow: inset 0 0 24px rgba(232,184,75,0.04);
  animation: radar-shell-breathe 4.2s ease-in-out infinite;
}

.radar-shell-overlay-ring-a {
  width: 150px;
  height: 150px;
}

.radar-shell-overlay-ring-b {
  width: 218px;
  height: 218px;
  animation-delay: 420ms;
}

.radar-shell-overlay-ring-c {
  width: 286px;
  height: 286px;
  animation-delay: 820ms;
}

.radar-shell-overlay-scan {
  width: 286px;
  height: 286px;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 302deg, rgba(232,184,75,0.04) 318deg, rgba(255,226,148,0.84) 350deg, rgba(232,184,75,0.18) 360deg);
  filter: blur(1px);
  opacity: 0.92;
  mix-blend-mode: screen;
  animation: radar-shell-rotate 3.4s linear infinite;
  -webkit-mask-image: radial-gradient(circle, transparent 0%, transparent 28%, rgba(0,0,0,0.92) 44%, transparent 76%);
  mask-image: radial-gradient(circle, transparent 0%, transparent 28%, rgba(0,0,0,0.92) 44%, transparent 76%);
}

.radar-shell-overlay-mark {
  position: relative;
  z-index: 1;
  width: 188px;
  margin: 12px auto 10px;
  animation: radar-shell-float 5.8s ease-in-out infinite;
}

.radar-shell-overlay-mark img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 28px rgba(232,184,75,0.24));
}

.radar-shell-overlay-kicker {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--text-dim, #6b5e4d);
}

.radar-shell-overlay-title {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(21px, 2.7vw, 28px);
  line-height: 1.02;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text, #f0ebe0);
}

.radar-shell-overlay-copy {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted, #a89a82);
}

.radar-shell-progress {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03)),
    rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 0 30px rgba(232,184,75,0.05);
}

.radar-shell-progress::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(201,149,42,0.32), rgba(232,184,75,0.95), rgba(201,149,42,0.32));
  animation: radar-shell-progress 1.2s linear infinite;
}

.radar-shell-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.04) 36%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.04) 64%, transparent 100%);
  animation: radar-shell-sweep 1.9s linear infinite;
  opacity: 0.5;
}

.radar-shell-overlay-readout {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.radar-shell-overlay-readout span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232,184,75,0.18);
  background: rgba(255,255,255,0.03);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim, #6b5e4d);
  opacity: 0.55;
  animation: radar-shell-chip-pulse 1.8s ease-in-out infinite;
}

.radar-shell-overlay-readout span:nth-child(2) {
  animation-delay: 220ms;
}

.radar-shell-overlay-readout span:nth-child(3) {
  animation-delay: 440ms;
}

@keyframes radar-shell-progress {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(280%);
  }
}

@keyframes radar-shell-breathe {
  0%, 100% {
    opacity: 0.42;
    transform: translate(-50%, -50%) scale(0.985);
  }

  50% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.015);
  }
}

@keyframes radar-shell-chip-pulse {
  0%, 100% {
    opacity: 0.42;
    transform: translateY(0);
    border-color: rgba(232,184,75,0.14);
    color: var(--text-dim, #6b5e4d);
  }

  50% {
    opacity: 1;
    transform: translateY(-1px);
    border-color: rgba(232,184,75,0.34);
    color: var(--gold-light, #e8b84b);
  }
}

@keyframes radar-shell-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes radar-shell-sweep {
  0% {
    transform: translateX(-130%) skewX(-20deg);
    opacity: 0;
  }

  18%,
  72% {
    opacity: 1;
  }

  100% {
    transform: translateX(170%) skewX(-20deg);
    opacity: 0;
  }
}

@keyframes radar-shell-float {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -6px, 0);
  }
}

@keyframes radar-shell-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes radar-shell-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(47,232,122,0.36);
  }

  55% {
    transform: scale(1.06);
    box-shadow: 0 0 0 8px rgba(47,232,122,0);
  }
}

@media (max-width: 760px) {
  .radar-shell-nav .radar-shell-right {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .radar-shell-nav .radar-shell-brand-picker,
  .radar-shell-nav .radar-shell-sales-rep-picker {
    width: 100%;
    justify-content: space-between;
  }

  .radar-shell-nav .radar-shell-select {
    flex: 1 1 auto;
    min-width: 0;
  }

  .radar-shell-button.radar-shell-refresh {
    width: 100%;
    justify-content: flex-start;
  }

  .radar-shell-overlay-mark {
    width: 160px;
    margin-bottom: 8px;
  }

  .radar-shell-overlay-radar {
    top: 22px;
    width: 250px;
    height: 250px;
  }

  .radar-shell-overlay-ring-a {
    width: 124px;
    height: 124px;
  }

  .radar-shell-overlay-ring-b {
    width: 182px;
    height: 182px;
  }

  .radar-shell-overlay-ring-c,
  .radar-shell-overlay-scan {
    width: 240px;
    height: 240px;
  }

  .radar-shell-overlay-title {
    max-width: 300px;
    font-size: clamp(19px, 6vw, 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .radar-shell-header::after,
  .radar-shell-refresh-pulse,
  .radar-shell-bar,
  .radar-shell-bar::after,
  .radar-shell-overlay-card,
  .radar-shell-overlay-card::before,
  .radar-shell-overlay-card::after,
  .radar-shell-overlay-mark,
  .radar-shell-overlay-ring,
  .radar-shell-overlay-scan,
  .radar-shell-progress::before,
  .radar-shell-progress::after,
  .radar-shell-overlay-readout span {
    animation: none !important;
  }
}
