/* Unified visual theme: public guide palette and the darker admin workspace. */
body {
  background: #171414 !important;
  color: #f5eeee;
}

body:has(.min-h-screen.bg-zinc-950) {
  background: #171414 !important;
}

/* The public intro layer must not cover the admin workspace. */
body:has(.min-h-screen.bg-zinc-950) #root > section {
  display: none !important;
}

/* Public guide surfaces */
body:not(:has(.min-h-screen.bg-zinc-950)) .bg-background { background-color: #171414 !important; }
body:not(:has(.min-h-screen.bg-zinc-950)) .bg-card,
body:not(:has(.min-h-screen.bg-zinc-950)) .bg-zinc-900 { background-color: #211b1b !important; }
body:not(:has(.min-h-screen.bg-zinc-950)) .border-border { border-color: #553333 !important; }

/* Admin workspace */
.min-h-screen.bg-zinc-950 {
  background: #171414 !important;
  color: #fafafa !important;
}
.min-h-screen.bg-zinc-950 .bg-zinc-800 { background-color: #2a2222 !important; }
.min-h-screen.bg-zinc-950 .bg-zinc-900 { background-color: #211b1b !important; }
.min-h-screen.bg-zinc-950 .border-zinc-800,
.min-h-screen.bg-zinc-950 .border-zinc-700 { border-color: #553333 !important; }
.min-h-screen.bg-zinc-950 .text-red-400,
.min-h-screen.bg-zinc-950 .text-red-500 { color: #f87171 !important; }
.min-h-screen.bg-zinc-950 .bg-red-600 { background-color: #d92b2b !important; }
.min-h-screen.bg-zinc-950 input,
.min-h-screen.bg-zinc-950 textarea,
.min-h-screen.bg-zinc-950 select {
  background-color: #211b1b !important;
  border-color: #553333 !important;
  color: #fafafa !important;
}
.min-h-screen.bg-zinc-950 input:focus,
.min-h-screen.bg-zinc-950 textarea:focus,
.min-h-screen.bg-zinc-950 select:focus {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, .16) !important;
}

/* Drug command copy feedback */
.drug-copy-toast {
  animation: drugCopyIn .28s ease-out both;
}

@keyframes drugCopyIn {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(.96);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
