.panel-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.panel-card h2 {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.annunciator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  background: #0a0c0e;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid #000;
}

.annunciator {
  position: relative;
  padding: 22px 8px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  text-transform: uppercase;
  user-select: none;
  border: 2px solid #111;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.02em;
}

.annunciator:hover {
  filter: brightness(1.12);
}

.annunciator:active {
  filter: brightness(0.92);
  box-shadow: inset 0 3px 12px rgba(0, 0, 0, 0.7);
}

.yellow {
  background: radial-gradient(circle at 35% 30%, #e8c040 0%, #9a7510 100%);
  color: rgba(0, 0, 0, 0.85);
  border-color: #6b5209;
}

.blue {
  background: radial-gradient(circle at 35% 30%, #4a9eff 0%, #1a4580 100%);
  color: rgba(0, 0, 0, 0.85);
  border-color: #123060;
}

.red {
  background: radial-gradient(circle at 35% 30%, #ef4444 0%, #7a1515 100%);
  color: rgba(0, 0, 0, 0.85);
  border-color: #4a0a0a;
  animation: alarmPulse 2.5s infinite ease-in-out;
}

.green {
  background: radial-gradient(circle at 35% 30%, #34c76a 0%, #186838 100%);
  color: rgba(0, 0, 0, 0.85);
  border-color: #0e4020;
}

.blank {
  background: #000;
  border-color: #111;
}

@keyframes alarmPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.88; }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 28px 32px;
  border-radius: var(--radius);
  width: 640px;
  max-width: 94%;
  text-align: left;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--alarm);
}

.modal h1 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.alarm-colour {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-weight: 600;
}

.modal p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text);
  font-family: var(--font-mono);
}

.close-btn {
  margin-top: 20px;
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  font-size: 0.82rem;
  font-family: inherit;
  transition: border-color 0.15s;
}

.close-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-bright);
}
