body.eldrichify-terminal {
  font-family: "Manrope", system-ui, sans-serif;
  color: #f6f7ff;
  background-color: #000;
  background-image: radial-gradient(circle, #ffffff 1px, transparent 1px),
    radial-gradient(circle, #ffffff 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px;
  background-position: 0 0, 40px 40px;
  background-attachment: fixed;
  min-height: 100vh;
}

.eldrichify-terminal .page-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
  display: block;
}

.eldrichify-terminal .retro-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  width: 100%;
  min-height: 100vh;
}

.eldrichify-terminal .retro-window {
  width: min(96vw, 2600px);
  min-height: 96vh;
  border: 3px solid #1b2d44;
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.85);
  background-color: #03050d;
  display: flex;
  flex-direction: column;
}

.retro-window__chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b7c7ff;
  background: linear-gradient(90deg, #2e3d5e, #1c2741);
  position: relative;
}

.retro-window__brand {
  flex: 1;
  z-index: 1;
}

.retro-window__title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}

.retro-window__controls {
  display: flex;
  gap: 4px;
  z-index: 1;
}

.retro-window__btn {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.45);
  background: rgba(255, 255, 255, 0.15);
  font-size: 10px;
  font-weight: 700;
}

.retro-nav {
  display: flex;
  gap: 16px;
  padding: 8px 14px;
  background-color: #040714;
  border-bottom: 1px solid #1c2e4d;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.retro-nav a {
  color: #9ac2ff;
  text-decoration: none;
}

.retro-nav a:hover,
.retro-nav a:focus-visible,
.retro-nav a[aria-current="page"] {
  color: #ff6dff;
  text-decoration: underline;
}

.eldrichify-terminal .retro-content {
  padding: clamp(24px, 3vw, 48px);
  background: #000;
  flex: 1;
  overflow-y: auto;
}

.eld-retro-content {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  min-height: 100%;
}

.eld-retro-content::after {
  content: none;
}

.eld-retro-content > * {
  position: relative;
  z-index: 1;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border: 1px solid #ff4dfc;
  border-radius: 999px;
  color: #ffbfff;
  text-decoration: none;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  margin-bottom: 16px;
}

.eld-hero-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  padding-bottom: 28px;
  align-items: start;
}

.hero-eyebrow {
  color: #8effc4;
  letter-spacing: 0.5em;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.eld-hero-panel h1 {
  margin: 12px 0;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  text-transform: uppercase;
  color: #7cfcff;
  letter-spacing: 0.25em;
  text-shadow: 0 0 18px rgba(124, 252, 255, 0.9);
}

.eld-hero-panel .hero-lede {
  max-width: 520px;
  letter-spacing: 0.15em;
  line-height: 1.65;
  text-transform: uppercase;
}

.eld-callouts {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 10px;
  letter-spacing: 0.2em;
  color: #ff90f5;
  font-weight: 600;
}

.hero-keys {
  display: inline-flex;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
}

.hero-cta {
  margin-top: 20px;
}

.launch-link {
    border: 2px solid #ff00ff;
    background: transparent;
    color: #ff00ff;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 10px 24px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    position: relative;
    top: 50px;
  }
  
.launch-link:hover,
.launch-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(255, 0, 255, 0.45);
    background: rgba(255, 0, 255, 0.12);
    color: #ffb3ff;
  }

.hero-visual {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  padding: 20px;
  background: rgba(6, 8, 22, 0.95);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.6);
  justify-self: end;
  align-self: start;
}

.eld-terminal-ascii {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  color: #ffdca8;
  text-shadow: 0 0 8px rgba(255, 220, 168, 0.5);
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.2;
  white-space: pre;
}

.hero-visual {
  justify-self: end;
  align-self: start;
}

.eld-console {
  margin-top: 24px;
  margin-bottom: 48px;
  border: 1px solid rgba(128, 255, 208, 0.35);
  border-radius: 28px;
  padding: clamp(22px, 3vw, 36px);
  background: rgba(1, 2, 8, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  min-height: 700px;
  position: relative;
  z-index: 1;
}

/* Override modern.css rule that hides .viz-panel on .state-home */
.eldrichify-terminal.state-home .viz-panel.eld-console {
  display: block !important;
  pointer-events: auto !important;
  z-index: 10 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.eld-console.is-highlighted {
  border-color: #9cffe9;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 255, 225, 0.35);
}

/* Terminal Window Styles */
.eld-terminal-window {
  background: #000;
  border: 2px solid #00ffe1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 255, 225, 0.4);
  font-family: "IBM Plex Mono", "Courier New", monospace;
}

.eld-terminal-window[hidden] {
  display: none;
}

.eld-terminal-header {
  background: #05070b;
  padding: 12px 18px;
  border-bottom: 3px solid #00ffe1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.eld-terminal-prompt {
  color: #00ffe1;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eld-terminal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ff00ff;
  background: #000;
  color: #ff00ff;
  width: 42px;
  height: 42px;
  border-radius: 0;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.08em;
  transition: background 0.2s, color 0.2s;
}

.eld-terminal-close:hover {
  background: #ff00ff;
  color: #000;
}

.eld-terminal-body {
  background: #000;
  padding: 20px;
  min-height: 500px;
  max-height: 600px;
  overflow-y: auto;
  color: #00ff00;
  font-size: 0.9rem;
  line-height: 1.5;
}

.eld-terminal-output {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.eld-terminal-line {
  margin-bottom: 4px;
  animation: terminalFadeIn 0.3s ease;
}

@keyframes terminalFadeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.eld-terminal-line.success {
  color: #00ff00;
}

.eld-terminal-line.info {
  color: #00ffe1;
}

.eld-terminal-line.warning {
  color: #ffbb00;
}

.eld-terminal-line.error {
  color: #ff4444;
}

.eld-progress {
  width: 100%;
  margin: 12px 0 16px;
  padding: 12px 16px;
  border: 1px solid rgba(0, 255, 225, 0.35);
  border-radius: 10px;
  background: rgba(2, 12, 22, 0.85);
  box-shadow: 0 0 18px rgba(0, 255, 225, 0.12);
  font-family: "IBM Plex Mono", "Space Mono", "Courier New", monospace;
  color: #d8f8ff;
}

.eld-progress__bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 255, 225, 0.2);
  overflow: hidden;
  margin-bottom: 8px;
}

.eld-progress__fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, #00ffe1 0%, #6af7ff 100%);
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.2);
  transition: width 0.35s ease;
}

.eld-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fd5ff;
}

.eld-progress__label {
  color: #e0fcff;
}

.eld-progress__eta {
  color: #7ff2ff;
}

.eld-progress.is-complete .eld-progress__fill {
  background: linear-gradient(90deg, #00ffc6 0%, #76ffb8 100%);
}

.eld-progress.is-error {
  border-color: rgba(255, 95, 162, 0.5);
  box-shadow: 0 0 18px rgba(255, 95, 162, 0.15);
}

.eld-progress.is-error .eld-progress__fill {
  background: linear-gradient(90deg, #ff5894 0%, #ff9776 100%);
}

.eld-terminal-input-line {
  margin-top: 12px;
  color: #00ffe1;
}

.eld-terminal-cursor {
  display: inline-block;
  background: #00ffe1;
  color: #000;
  padding: 0 4px;
  animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Terminal File Input */
.eld-terminal-file-input {
  display: inline-block;
  margin-left: 10px;
  color: #00ffe1;
  background: rgba(0, 255, 225, 0.05);
  border: 1px solid #00ffe1;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.eld-terminal-file-input:hover {
  background: rgba(0, 255, 225, 0.15);
  box-shadow: 0 0 10px rgba(0, 255, 225, 0.3);
}

.eld-terminal-file-input::file-selector-button {
  background: transparent;
  border: 1px solid #00ffe1;
  color: #00ffe1;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  margin-right: 8px;
  transition: all 0.2s;
}

.eld-terminal-file-input::file-selector-button:hover {
  background: #00ffe1;
  color: #000;
}

.eld-terminal-mode-buttons {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eld-terminal-mode-buttons button {
  background: rgba(0, 255, 225, 0.08);
  border: 1px solid #00ffe1;
  color: #00ffe1;
  padding: 6px 14px;
  border-radius: 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.eld-terminal-mode-buttons button:hover {
  background: #00ffe1;
  color: #010409;
  box-shadow: 0 0 12px rgba(0, 255, 225, 0.45);
}

.eld-terminal-textarea {
  width: 100%;
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 225, 0.4);
  border-radius: 4px;
  padding: 8px;
  color: #e2f8ff;
  font-family: "IBM Plex Mono", monospace;
  resize: vertical;
}

.eld-terminal-submit {
  margin-top: 10px;
  align-self: flex-start;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: rgba(0, 4, 9, 0.8);
  border: 1px solid rgba(0, 255, 225, 0.45);
  border-radius: 0;
  padding: 8px 18px;
  color: #00ffe1;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  cursor: pointer;
  box-shadow: inset 0 0 18px rgba(0, 255, 225, 0.12);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.eld-terminal-submit:hover {
  background: rgba(0, 255, 225, 0.08);
  border-color: #00ffe1;
  box-shadow: 0 0 16px rgba(0, 255, 225, 0.25), inset 0 0 18px rgba(0, 255, 225, 0.15);
}

.eld-terminal-submit-label {
  font-size: 0.85rem;
}

.eld-terminal-submit-cursor {
  font-size: 0.85rem;
  line-height: 1;
  animation: eldCursorBlink 1.1s steps(2, start) infinite;
}

@keyframes eldCursorBlink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.stage-preview-line {
  padding: 0;
}

.eld-terminal-stage-preview {
  border: 1px solid rgba(0, 255, 225, 0.32);
  background: rgba(0, 8, 16, 0.85);
  padding: 12px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: inset 0 0 20px rgba(0, 255, 225, 0.08);
}

.eld-terminal-stage-preview.ready {
  border-color: #00ffe1;
  box-shadow: 0 0 16px rgba(0, 255, 225, 0.25), inset 0 0 14px rgba(0, 255, 225, 0.12);
}

.eld-terminal-stage-preview.is-missing {
  border-color: rgba(255, 136, 136, 0.6);
  box-shadow: inset 0 0 14px rgba(255, 136, 136, 0.2);
}

.eld-stage-preview-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(138, 249, 255, 0.9);
}

.eld-stage-preview-frame {
  border: 1px solid rgba(0, 255, 225, 0.35);
  background: rgba(0, 0, 0, 0.65);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
}

.eld-stage-preview-frame img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 16px rgba(0, 255, 225, 0.25);
}

.eld-stage-preview-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(0, 255, 225, 0.25);
  border-top-color: #00ffe1;
  animation: eldStageSpin 0.9s linear infinite;
}

.eld-stage-preview-waiting {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(138, 249, 255, 0.7);
}

.eld-stage-preview-missing {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 166, 166, 0.9);
}

@keyframes eldStageSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Chat console (Disco-teque) */
.eld-terminal-chat-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eld-chat-input-shell {
  border: 3px solid #00ffe1;
  border-radius: 0;
  padding: 16px 18px 20px;
  background: linear-gradient(180deg, rgba(0, 255, 225, 0.08), rgba(0, 12, 22, 0.9));
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eld-chat-input-badge {
  position: absolute;
  top: -14px;
  left: 18px;
  background: #000;
  padding: 2px 10px;
  border: 3px solid #00ffe1;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.6rem;
  color: #00ffe1;
}

.eld-chat-input-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8af9ff;
}

.eld-chat-input-frame {
  border: 3px solid #00ffe1;
  border-radius: 0;
  background: #020306;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.eld-terminal-chat-input {
  width: 100%;
  min-height: 130px;
  border: none;
  background: transparent;
  color: #e7fffb;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 16px;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.eld-terminal-chat-input:focus-visible {
  outline: none;
  box-shadow: inset 0 0 30px rgba(255, 0, 255, 0.25);
}

.eld-terminal-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.eld-model-selector {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eld-model-selector label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #00ffe1;
  opacity: 0.8;
}

.eld-model-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 8px 32px 8px 12px;
  background: #000 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='%2300ffe1' d='M6 8L2 4h8z'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: #00ffe1;
  border: 2px solid #00ffe1;
  border-radius: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  cursor: pointer;
  outline: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  min-width: 180px;
}

.eld-model-select option {
  background: #000;
  color: #00ffe1;
  padding: 8px;
}

.eld-model-select:hover {
  background: #00ffe1 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='%23000' d='M6 8L2 4h8z'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: #000;
}

.eld-model-select:focus {
  border-color: #ff00ff;
  box-shadow: 0 0 0 2px rgba(0, 255, 225, 0.2);
}

.eld-chat-btn {
  --btn-color: #00ffe1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 14px;
  border-radius: 0;
  border: 2px solid var(--btn-color);
  background: #000;
  color: var(--btn-color);
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  cursor: pointer;
  min-width: 130px;
  transition: background 0.2s, color 0.2s;
}

.eld-chat-btn small {
  text-transform: none;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  opacity: 0.7;
}

.eld-chat-btn.primary {
  --btn-color: #00ffe1;
}

.eld-chat-btn.secondary {
  --btn-color: #ff00ff;
}

.eld-chat-btn.tertiary {
  --btn-color: #ffbb00;
}

.eld-chat-btn:hover {
  background: var(--btn-color);
  color: #000;
}

.eld-suggestion-panel {
  margin-top: 32px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(0, 255, 225, 0.3);
  background: linear-gradient(135deg, rgba(0, 8, 20, 0.8), rgba(7, 24, 42, 0.65));
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.35);
}

.eld-suggestion-label {
  margin: 0 0 12px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #8af9ff;
}

.eld-suggestion-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.eld-suggestion-btn {
  border: 1px solid rgba(0, 255, 225, 0.5);
  background: rgba(0, 255, 225, 0.08);
  color: #d7fff9;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border 0.2s;
}

.eld-suggestion-btn:hover,
.eld-suggestion-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(0, 255, 225, 0.25);
  border-color: #ff9afc;
  color: #050505;
}

.eld-suggestion-btn:focus-visible {
  outline: 2px solid #ff9afc;
  outline-offset: 2px;
}

/* Results Grid */
.eld-results-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.eld-results-grid:not([hidden]) {
  display: grid;
}

.eld-result-item {
  border: 1px solid rgba(0, 255, 225, 0.3);
  border-radius: 12px;
  padding: 16px;
  background: rgba(0, 20, 30, 0.6);
  transition: all 0.3s;
}

.eld-result-item[hidden] {
  display: none;
}

.eld-result-item:hover {
  border-color: #00ffe1;
  box-shadow: 0 0 20px rgba(0, 255, 225, 0.3);
  transform: translateY(-4px);
}

.eld-result-label {
  color: #00ffe1;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  font-family: "IBM Plex Mono", monospace;
}

.eld-result-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  background: #000;
  cursor: pointer;
  transition: transform 0.2s;
}

.eld-result-item img:hover {
  transform: scale(1.02);
}

.eld-download-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid #00ffe1;
  color: #00ffe1;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: all 0.2s;
  font-family: "IBM Plex Mono", monospace;
}

.eld-download-btn:hover {
  background: #00ffe1;
  color: #000;
}

/* Download controls */
.eld-download-panel {
  padding: 24px;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(0, 255, 225, 0.2);
}

.eld-download-panel[hidden] {
  display: none;
}

.eld-download-panel__label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  color: #00ffe1;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.eld-download-panel__form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 8px;
}

.eld-download-panel__form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eld-download-panel__form input {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 255, 225, 0.4);
  color: #00ffe1;
  padding: 8px 10px;
  border-radius: 4px;
  font-family: "IBM Plex Mono", monospace;
  width: 110px;
}

.eld-download-panel__form input:focus {
  outline: none;
  border-color: #00ffe1;
  box-shadow: 0 0 8px rgba(0, 255, 225, 0.3);
}

.eld-download-panel__x {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
}

.eld-download-panel__reset {
  padding: 10px 18px;
  border: 1px solid rgba(0, 255, 225, 0.4);
  background: transparent;
  color: #00ffe1;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.eld-download-panel__reset:hover {
  background: rgba(0, 255, 225, 0.12);
  border-color: #00ffe1;
}

.eld-download-panel__hint {
  font-size: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

/* Terminal Disconnected State */
.eld-disconnected {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  text-align: center;
  gap: 16px;
  opacity: 0.7;
}

.eld-disconnected[hidden] {
  display: none;
}

.eld-disconnected-icon {
  font-size: 4rem;
  color: #ffbb00;
  text-shadow: 0 0 20px rgba(255, 187, 0, 0.5);
}

.eld-disconnected-text {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #00ffe1;
  text-transform: uppercase;
}

.eld-disconnected-subtext {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  color: #9fc0ff;
  letter-spacing: 0.1em;
}

/* Image Lightbox */
.eld-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 40px;
}

.eld-lightbox.active {
  display: flex;
}

.eld-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border: 2px solid #00ffe1;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(0, 255, 225, 0.5);
}

.eld-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #00ffe1;
  font-size: 40px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  font-family: "IBM Plex Mono", monospace;
}

.eld-lightbox-close:hover {
  color: #ff6dff;
}

.eld-console-headline {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.eld-console-headline h2 {
  margin: 4px 0;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.eld-lab {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.eld-console-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 20px;
  background: rgba(10, 12, 28, 0.92);
}

.eldrichify-dropzone {
  position: relative;
  min-height: 200px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  background: rgba(20, 32, 60, 0.6);
  display: grid;
  place-content: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.eldrichify-dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.eldrichify-dropzone:hover,
.eldrichify-dropzone.is-hover {
  border-color: #00ffe1;
  box-shadow: 0 0 25px rgba(0, 255, 225, 0.35);
}

.eldrichify-dropzone__icon {
  font-size: 2rem;
  color: #00ffe1;
}

.eldrichify-dropzone__text {
  font-weight: 600;
  letter-spacing: 0.15em;
}

.eldrichify-dropzone__text small {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #9fc0ff;
}

.eldrichify-selection {
  margin: 12px 0;
  letter-spacing: 0.08em;
  color: #98e4ff;
}

.eldrichify-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eldrichify-spinner {
  display: inline-flex;
  gap: 6px;
}

.eldrichify-spinner span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ffe1;
  animation: eld-spinner 1s infinite ease-in-out;
}

.eldrichify-spinner span:nth-child(2) {
  animation-delay: 0.15s;
}

.eldrichify-spinner span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes eld-spinner {
  0%,
  80%,
  100% {
    opacity: 0.2;
    transform: scale(0.6);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

.eld-status-strip {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
}

.eldrichify-status {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
}

.eld-log {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.8rem;
  color: #9bd1ff;
  max-height: 140px;
  overflow-y: auto;
}

.eldrichify-output {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eld-output-frame {
  position: relative;
  width: 100%;
  padding-top: 70%;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle, rgba(0, 255, 225, 0.15), rgba(0, 0, 0, 0.85));
}

.eld-output-frame img {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  border-radius: 10px;
  object-fit: cover;
}

.eldrichify-placeholder {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  color: #7c8ab8;
  font-style: italic;
}

.eldrichify-stages {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.eldrichify-stage-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 10px;
  background: rgba(12, 16, 30, 0.92);
}

.eldrichify-stage-card strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: #7fffff;
  margin-bottom: 8px;
}

.eldrichify-stage-card img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
}

.eld-stage-scroll {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.eld-stage-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(8, 14, 28, 0.94);
}

.eld-stage-step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 225, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.12em;
  color: #00ffe1;
}

.eld-gallery-panel {
  margin-top: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  padding: clamp(16px, 3vw, 28px);
  background: rgba(4, 6, 18, 0.92);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.55);
}

.eld-gallery__header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.eld-gallery__lede {
  color: #9fb3df;
  margin: 12px 0 18px;
}

.eld-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.eld-gallery__grid[data-empty="true"] {
  display: block;
}

.eld-gallery__empty {
  margin: 0;
  font-style: italic;
  color: #7b86b0;
}

.eld-gallery-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(9, 12, 30, 0.95);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eld-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.5);
}

.eld-gallery-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.eld-gallery-card__meta {
  padding: 12px;
  font-size: 0.82rem;
  color: #d4daf6;
}

.eld-gallery-card__meta span {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  color: #82d7ff;
  font-size: 0.75rem;
}

.ghost.small {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #f5f5ff;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ghost.small:hover {
  color: #00ffe1;
  border-color: #00ffe1;
}

@media (max-width: 720px) {
  .eld-hero-panel {
    gap: 28px;
  }
  .hero-visual {
    order: -1;
    width: 100%;
  }
  .eldrichify-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.eld-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 48px);
}

.eld-shell {
    border: 3px solid #00ff96;
    padding: clamp(20px, 4vw, 36px);
    background: rgba(0, 0, 0, 0.92);
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.8), inset 0 0 45px rgba(0, 255, 210, 0.12);
    margin-top: 24px;
}

.eld-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
}

.eld-hero-copy {
    flex: 1 1 340px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.eld-eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: #ff00ff;
    font-size: 0.82rem;
}

.eld-hero-copy h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    letter-spacing: 0.18em;
    color: #00fff4;
    text-shadow: 0 0 30px rgba(0, 255, 210, 0.35);
    white-space: nowrap;
}

.eld-hero-copy p {
    margin: 0;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.eld-callouts {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.6;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
}

.eld-callouts li {
    margin-bottom: 6px;
}

.eld-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.eld-hero-art {
    flex: 1 1 320px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 255, 0, 0.35);
    padding: 16px;
    box-shadow: inset 0 0 18px rgba(0, 255, 0, 0.12);
    margin-top: 90px;
}

.eld-ascii-grid {
    display: flex;
    gap: 28px;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
}

.eld-ascii-grid pre {
    margin: 0;
    white-space: pre;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.82rem;
    line-height: 1.2;
    color: #00ff96;
    border: 1px solid rgba(0, 255, 0, 0.25);
    padding: 8px;
    background: rgba(0, 0, 0, 0.4);
    flex: 0 0 auto;
    min-width: 200px;
    scroll-snap-align: start;
}

.eld-shell .eld-console {
    border: 2px solid rgba(0, 255, 210, 0.4);
    background: rgba(0, 0, 0, 0.85);
    margin-top: 32px;
}

.eld-mini-glyphs {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.eld-mini-glyph {
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(0, 255, 244, 0.6);
    background: rgba(0, 0, 0, 0.65);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    line-height: 1.2;
    color: #9dfff5;
    text-align: center;
    white-space: pre;
    box-shadow: 0 0 12px rgba(0, 255, 244, 0.15);
}

@keyframes starPulse {
    0% { transform: translateY(0); opacity: 0.2; }
    50% { transform: translateY(-10px); opacity: 0.32; }
    100% { transform: translateY(0); opacity: 0.2; }
}
