:root {
  color-scheme: light;
  --bg: #0f172a;
  --panel: #111827;
  --muted: #94a3b8;
  --text: #e2e8f0;
  --accent: #22c55e;
  --danger: #ef4444;
  --card: #0b1220;
  --border: #1f2937;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(1200px 800px at 20% -10%, #1f2937 0%, #0b1020 40%, #070b14 100%);
  color: var(--text);
}

.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 6px 12px;
}

.topbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.timer-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1e293b;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.timer-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.timer {
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: #22c55e;
  min-width: 45px;
  text-align: center;
}

.timer.warning {
  color: #f59e0b;
}

.timer.danger {
  color: #ef4444;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.btn-timer {
  background: #374151;
  color: var(--text);
  border: 1px solid #4b5563;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-timer:hover {
  background: #4b5563;
}

.btn-timer.running {
  background: #dc2626;
  border-color: #ef4444;
}

.btn-timer-reset {
  background: #1f2937;
}

.file-actions {
  display: flex;
  gap: 6px;
}

.btn-file {
  background: #059669;
  color: white;
  border: 1px solid #10b981;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-file:hover:not(:disabled) {
  background: #047857;
}

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

.btn-file:last-child {
  background: #0369a1;
  border-color: #0ea5e9;
}

.btn-file:last-child:hover {
  background: #075985;
}

.topbar-center {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.task-selector {
  background: #1f2937;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  min-width: 140px;
}

.task-selector:hover {
  border-color: #334155;
}

.task-selector:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-task-desc {
  background: #7c3aed;
  color: white;
  border: 1px solid #8b5cf6;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-task-desc:hover:not(:disabled) {
  background: #6d28d9;
  border-color: #7c3aed;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exam-title {
  font-size: 1rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.brand-separator {
  color: #475569;
  font-weight: 300;
}

.student-info {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: normal;
  white-space: nowrap;
}

.btn-logout {
  background: #991b1b;
  color: #dc2626;
  border: 1px solid #dc2626;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
}

.btn-switch {
  background: transparent;
  color: #60a5fa;
  border: 1px solid #3b82f6;
  padding: 4px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.btn-switch:hover {
  background: #3b82f6;
  color: white;
}

/* Compact small buttons */
.btn-sm {
  background: #374151;
  color: var(--text);
  border: 1px solid #4b5563;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.btn-sm:hover:not(:disabled) {
  background: #4b5563;
}

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

.btn-save {
  background: #059669;
  border-color: #10b981;
}

.btn-save:hover:not(:disabled) {
  background: #047857;
}

.modal-logo {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.topbar-logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.9;
}

/* Tanuló modal */
.student-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.student-modal-overlay.hidden {
  display: none;
}

.student-modal {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 32px 40px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.student-modal h2 {
  margin: 0 0 8px 0;
  color: #f8fafc;
  font-size: 1.5rem;
}

.student-modal p {
  margin: 0 0 24px 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #f8fafc;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #3b82f6;
}

.form-group input::placeholder {
  color: #64748b;
}

/* Email input wrapper */
.email-input-wrapper {
  display: flex;
  align-items: center;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.email-input-wrapper:focus-within {
  border-color: #3b82f6;
}

.email-input-wrapper input {
  flex: 1;
  border: none;
  border-radius: 0;
  background: transparent;
}

.email-input-wrapper input:focus {
  border-color: transparent;
}

.email-domain {
  padding: 12px 14px;
  background: #1e293b;
  color: #94a3b8;
  font-size: 0.95rem;
  border-left: 1px solid #334155;
  white-space: nowrap;
}

/* Class selector wrapper */
.class-selector-wrapper {
  display: flex;
  gap: 12px;
}

.class-select {
  flex: 1;
  padding: 12px 14px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #f8fafc;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.class-select:focus {
  outline: none;
  border-color: #3b82f6;
}

.class-select option {
  background: #1e293b;
  color: #f8fafc;
}

.btn-start-exam {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
}

.btn-start-exam:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
}

.btn-start-exam:active {
  transform: translateY(0);
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.layout {
  display: grid;
  grid-template-columns: 35% 1fr;
  gap: 8px;
  padding: 8px;
  height: calc(100vh - 55px - 22px);
  overflow: hidden;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 4px;
}

.panel h2 {
  margin: 0;
  font-size: 1rem;
}

.actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

/* Editor Tabs */
.editor-tabs {
  display: flex;
  gap: 2px;
}

.editor-tab {
  background: #1f2937;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s;
  border-bottom: none;
}

.editor-tab:hover {
  background: #374151;
  color: var(--text);
}

.editor-tab.active {
  background: var(--card);
  color: var(--accent);
  border-color: var(--accent);
  border-bottom: 1px solid var(--card);
  position: relative;
  z-index: 1;
}

/* Elválasztó a fülsoron */
.tab-sep {
  color: #4b5563;
  font-size: 0.9rem;
  margin: 0 4px;
  user-select: none;
  display: flex;
  align-items: center;
}

/* Segédlet fülek - kék színűek */
.editor-tab.ref-tab {
  background: #1e3a5f;
  color: #93c5fd;
  border-color: #2563eb;
}

.editor-tab.ref-tab:hover {
  background: #1e40af;
  color: #bfdbfe;
}

.editor-tab.ref-tab.active {
  background: #1e40af;
  color: #60a5fa;
  border-color: #3b82f6;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
}

.external-pane iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

.editor-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: 0 8px 8px 8px;
  background: var(--card);
  margin-top: -1px;
  overflow: hidden;
}

.editor-pane {
  display: none;
  flex: 1;
  min-height: 0;
}

.editor-pane.active {
  display: flex;
  flex-direction: column;
}

button {
  background: #1f2937;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
}

button:hover {
  border-color: #334155;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button.is-active {
  border-color: #22c55e;
  color: #bbf7d0;
}

.field {
  display: grid;
  gap: 6px;
}

.field.collapsible {
  gap: 0;
}

.field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.field-header span {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-collapse {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7rem;
  transition: all 0.2s;
}

.btn-collapse:hover {
  background: var(--border);
  color: var(--text);
}

.btn-collapse.collapsed {
  transform: rotate(-90deg);
}

.editor-wrapper {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 300px;
}

.editor-wrapper.collapsed {
  max-height: 0;
  opacity: 0;
}

.field span {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.editor {
  width: 100%;
  flex: 1;
  min-height: 0;
  background: var(--card);
  border: none;
  border-radius: 0;
  overflow: hidden;
}

.editor:focus-within {
  border-color: #334155;
}

.monaco-editor,
.monaco-editor * {
  text-transform: none !important;
}

.monaco-editor .depth-line-1 {
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.12), rgba(244, 63, 94, 0));
}

.monaco-editor .depth-line-2 {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0));
}

.monaco-editor .depth-line-3 {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0));
}

.monaco-editor .depth-line-4 {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.12), rgba(249, 115, 22, 0));
}

.monaco-editor .depth-line-5 {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.12), rgba(168, 85, 247, 0));
}

.monaco-editor .tok-tag {
  color: #4fc1ff !important;
  font-weight: 700;
}

.monaco-editor .tok-attr-name {
  color: #ffd580 !important;
}

.monaco-editor .tok-attr-value {
  color: #a8e6a3 !important;
}

.status {
  color: var(--muted);
  font-size: 0.7rem;
}

.preview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-preview-tab {
  background: #0ea5e9;
  color: white;
  border: 1px solid #38bdf8;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-preview-tab:hover:not(:disabled) {
  background: #0284c7;
}

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

iframe {
  width: 100%;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.tasks {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  flex-shrink: 0;
  max-height: 120px;
  overflow: hidden;
}

.tasks.collapsed .tasks-content {
  display: none;
}

.tasks.collapsed {
  max-height: none;
}

.tasks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.tasks-content {
  margin-top: 4px;
  max-height: 85px;
  overflow-y: auto;
}

.btn-toggle-tasks {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 0 4px;
  font-size: 0.65rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-toggle-tasks:hover {
  color: var(--text);
}

.tasks.collapsed .btn-toggle-tasks {
  transform: rotate(-90deg);
}

.tasks h3 {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
}

.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.task {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
}

.task .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  flex-shrink: 0;
}

.task.done .dot {
  background: var(--accent);
}

.footer {
  padding: 4px 12px;
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer kbd {
  background: #374151;
  border: 1px solid #4b5563;
  border-radius: 3px;
  padding: 1px 4px;
  font-family: monospace;
  font-size: 0.65rem;
  color: #e2e8f0;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-content {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 90%;
  max-width: 900px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

.task-desc-frame {
  flex: 1;
  border: none;
  background: #fff;
  border-radius: 0 0 16px 16px;
}

/* Progress bar */
.progress-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  padding: 4px 0;
}

.progress-bar-bg {
  flex: 1;
  height: 6px;
  background: #1f2937;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 6px;
  transition: width 0.3s ease, background 0.3s ease;
}

.progress-text {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
}


@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .topbar-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .topbar-center {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

.desc-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.desc-frame {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  min-height: 0;
}

.score-box {
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}

.score-display {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 8px;
  justify-content: center;
}

#score-current {
  font-size: 2rem;
  font-weight: 700;
  color: #22c55e;
  line-height: 1;
}

.score-sep {
  font-size: 1.2rem;
  color: #94a3b8;
}

#score-total {
  font-size: 1.2rem;
  color: #94a3b8;
}

.score-label {
  font-size: 0.85rem;
  color: #64748b;
  margin-left: 4px;
}

.editor-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.btn-preview {
  background: #0369a1;
  border-color: #0ea5e9;
  color: #e0f2fe;
}

.btn-preview:hover:not(:disabled) {
  background: #075985;
}

/* ── Referencia / Validátor drawer ── */
.ref-drawer {
  position: fixed;
  top: 0;
  right: -66%;
  width: 66%;
  height: 100%;
  background: #111827;
  border-left: 2px solid #1f2937;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: right 0.28s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -12px 0 40px rgba(0,0,0,0.6);
}
.ref-drawer.open { right: 0; }

.ref-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  display: none;
  cursor: pointer;
}
.ref-drawer-backdrop.open { display: block; }

.ref-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid #1f2937;
  background: #0b1220;
  font-weight: 600;
  font-size: 0.9rem;
  color: #e2e8f0;
  flex-shrink: 0;
}
.ref-drawer-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.ref-screenshot-btn {
  background: #16a34a !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-color: #15803d !important;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
}
.ref-screenshot-btn:hover {
  background: #15803d !important;
}
.ref-copy-btn {
  background: #0369a1 !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-color: #075985 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
}
.ref-copy-btn:hover { background: #075985 !important; }

.ref-extlink-btn {
  background: #1e40af !important;
  color: #fff !important;
  border-color: #1e3a8a !important;
  text-decoration: none;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.ref-extlink-btn:hover { background: #1e3a8a !important; }

.ref-close-btn {
  background: #374151 !important;
  color: #e2e8f0 !important;
  border-color: #4b5563 !important;
}
.ref-close-btn:hover { background: #4b5563 !important; }

.ref-screenshot-status {
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  flex-shrink: 0;
}
.ref-screenshot-status.ok  { background: #14532d; color: #86efac; }
.ref-screenshot-status.err { background: #7f1d1d; color: #fca5a5; }

.ref-drawer-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px;
  gap: 10px;
}

.ref-steps-box {
  background: #0b1220;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  padding: 12px 16px;
  flex-shrink: 0;
}
.ref-steps-box .ref-steps-title {
  font-weight: 700;
  color: #94a3b8;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px 0;
}
.ref-steps-list {
  margin: 0;
  padding-left: 1.4em;
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.9;
}
.ref-steps-list b { color: #7dd3fc; }

.ref-code-preview {
  flex: 1;
  width: 100%;
  min-height: 0;
  background: #060d1a;
  color: #a8d8ea;
  border: 1px solid #1e3a5f;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: 'Consolas', 'Fira Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  resize: none;
  outline: none;
}
.table-wrapper { overflow-x: auto; }
.lamp-dots {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  padding: 4px 0 2px;
  width: 100%;
  align-items: center;
}
.lamp-dot {
  flex: 1 1 0;
  min-width: 0;
  max-width: 12px;
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: default;
}
.lamp-red   { background: #e74c3c; box-shadow: 0 0 3px #e74c3c88; }
.lamp-green { background: #27ae60; box-shadow: 0 0 3px #27ae6088; }
