body {
  font-family: "Inter", system-ui, sans-serif;
}

.panel {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(30, 41, 59, 0.8);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.4);
}

.panel-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 12px;
}

.btn {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, #3b82f6, #6366f1);
  color: white;
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
  border: 1px solid rgba(71, 85, 105, 0.6);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.9);
  color: white;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(51, 65, 85, 0.8);
  background: rgba(15, 23, 42, 0.8);
  padding: 8px 12px;
  color: #e2e8f0;
}

.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
  background: rgba(2, 6, 23, 0.8);
  position: sticky;
  top: 0;
  z-index: 20;
}

.status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.9);
  font-size: 0.7rem;
  color: #e2e8f0;
}

.status-pill-group {
  display: flex;
  gap: 8px;
}

.status-lights {
  display: flex;
  gap: 20px;
}

.status-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(71, 85, 105, 0.6);
}

.status-light.on {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.6);
  color: #6ee7b7;
}

.link {
  color: #93c5fd;
  text-decoration: underline;
}

.chat-log,
.command-stack {
  height: 220px;
  overflow-y: auto;
  padding: 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(30, 41, 59, 0.8);
}

.chat-log p {
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.command-card {
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.command-card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #94a3b8;
}

.command-card .title {
  font-size: 0.9rem;
  font-weight: 600;
}

.bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid rgba(30, 41, 59, 0.8);
  background: rgba(2, 6, 23, 0.85);
  z-index: 30;
}

.dock-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dock-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.banner {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  z-index: 40;
}

.banner.hidden,
.overlay.hidden {
  display: none;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.8);
  z-index: 35;
}

.anim-pulse {
  animation: pulse 0.6s ease-in-out 2;
}

.anim-shake {
  animation: shake 0.4s ease-in-out 1;
}

.anim-flash {
  animation: flash 0.4s ease-in-out 1;
}

.anim-glitch {
  animation: glitch 1s linear 1;
}

.anim-lockdown {
  animation: lockdown 0.8s ease-in-out 1;
}

.anim-countdown {
  animation: countdown 1.2s ease-in-out 1;
}

.anim-slidein {
  animation: slidein 0.4s ease-out 1;
}

.anim-breathe {
  animation: breathe 3s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 rgba(59, 130, 246, 0.0);
  }
  50% {
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.7);
  }
  100% {
    box-shadow: 0 0 0 rgba(59, 130, 246, 0.0);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

@keyframes flash {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

@keyframes glitch {
  0% {
    text-shadow: none;
  }
  20% {
    text-shadow: 2px 0 #f472b6, -2px 0 #38bdf8;
  }
  40% {
    text-shadow: -1px -1px #f472b6, 1px 1px #38bdf8;
  }
  60% {
    text-shadow: 2px 1px #f472b6, -2px -1px #38bdf8;
  }
  100% {
    text-shadow: none;
  }
}

@keyframes lockdown {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes countdown {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes slidein {
  0% {
    transform: translateY(10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}
