/* ==========================================================================
   TEACH THE MACHINE — Design Installation & Projector Stylesheet
   Aesthetic: Minimalist, Architectural, Dark Glassmorphism, Oversized Typography
   ========================================================================== */

:root {
  --bg-deep: #060608;
  --bg-surface: rgba(14, 15, 20, 0.65);
  --bg-surface-elevated: rgba(22, 24, 32, 0.75);
  
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-subtle: rgba(255, 255, 255, 0.05);
  --glass-border-active: rgba(255, 255, 255, 0.22);
  
  --text-primary: #f5f5f7;
  --text-secondary: #9a9aa2;
  --text-muted: #5e5e68;
  --text-glow: rgba(255, 255, 255, 0.85);

  --accent-white: #ffffff;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-cyan: #38bdf8;
  --accent-violet: #a78bfa;

  --font-display: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-ambient: 0 20px 50px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 60px rgba(255, 255, 255, 0.06);

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
}

/* ==========================================================================
   AMBIENT GENERATIVE CANVAS & VIGNETTE
   ========================================================================== */

.visual-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bg-deep);
  transition: opacity var(--transition-slow);
}

.ambient-vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(6, 6, 8, 0) 30%, rgba(6, 6, 8, 0.65) 100%),
              linear-gradient(180deg, rgba(6, 6, 8, 0.3) 0%, transparent 20%, transparent 80%, rgba(6, 6, 8, 0.5) 100%);
}

/* ==========================================================================
   GLASSMORPHISM ATOMS
   ========================================================================== */

.glass-card {
  background: var(--bg-surface);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-ambient);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, transparent 100%);
  pointer-events: none;
}

/* ==========================================================================
   BUTTONS & TYPOGRAPHY UTILITIES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  outline: none;
}

.btn-primary {
  background: #f5f5f7;
  color: #060608;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: #ffffff;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.45);
}

.btn-primary:active {
  transform: translateY(0) scale(0.99);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--glass-border-active);
  transform: translateY(-2px);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: shineSweep 4.5s infinite;
}

@keyframes shineSweep {
  0%, 60% { left: -100%; }
  100% { left: 200%; }
}

kbd {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: #fff;
}

.meta-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* ==========================================================================
   1. LANDING SCREEN
   ========================================================================== */

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  transition: opacity var(--transition-slow), transform var(--transition-slow), visibility var(--transition-slow);
}

body.state-landing #landingScreen {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.state-landing #mainScreen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.02);
}

body.state-main #landingScreen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.97);
}

body.state-main #mainScreen {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.landing-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.landing-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.landing-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.landing-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.5vw, 6.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.title-glow {
  background: linear-gradient(180deg, #ffffff 30%, rgba(255, 255, 255, 0.45) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.2);
}

.landing-subheading {
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 2.2vw, 1.85rem);
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  max-width: 580px;
}

.landing-cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.landing-footer-hints {
  position: absolute;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ==========================================================================
   2. MAIN EXPERIMENT SCREEN (SPLIT VIEW)
   ========================================================================== */

.main-screen {
  padding: 32px 40px 92px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main-layout-container {
  width: 100%;
  height: calc(100vh - 134px);
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 28px;
  align-items: stretch;
}

/* ==========================================================================
   LEFT PANE: WEBCAM FEED (~60%)
   ========================================================================== */

.camera-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  border-radius: var(--radius-lg);
  position: relative;
}

.camera-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  height: 32px;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--text-primary);
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 12px var(--accent-emerald);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.model-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.model-status-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

.freeze-indicator {
  padding: 5px 12px;
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-rose);
  animation: pulseFreeze 1.2s infinite ease-in-out;
}

@keyframes pulseFreeze {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.video-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

#webcamVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Natural webcam interaction mirroring */
  transform: scaleX(-1);
  display: block;
}

/* Optic Guide Framing */
.optic-reticle {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  bottom: 16px;
  pointer-events: none;
}

.reticle-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(255, 255, 255, 0.35);
  border-style: solid;
}

.reticle-corner.top-left {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

.reticle-corner.top-right {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
}

.reticle-corner.bottom-left {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
}

.reticle-corner.bottom-right {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
}

.reticle-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.video-overlay-state {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.overlay-spinner {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.camera-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-dim {
  color: var(--text-secondary);
}

/* ==========================================================================
   RIGHT PANE: REAL-TIME PREDICTION (~40%)
   ========================================================================== */

.prediction-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  justify-content: space-between;
}

.prediction-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.mode-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

/* Top Predicted Class */
.top-class-block {
  padding: 24px 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.top-class-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.top-predicted-class {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.4vw, 4.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--text-primary);
  min-height: 1.1em;
  word-break: break-word;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.top-predicted-class.state-not-sure {
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.top-confidence-value {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.top-class-meter {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.top-meter-fill {
  height: 100%;
  background: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.8);
  transition: width 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Probabilities List */
.probabilities-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px 0;
  flex: 1;
  justify-content: center;
}

.probabilities-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.threshold-note {
  color: var(--text-secondary);
}

.probabilities-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prob-row {
  display: grid;
  grid-template-columns: 140px 1fr 65px;
  align-items: center;
  gap: 18px;
  transition: transform var(--transition-fast);
}

.prob-row.active-class {
  transform: translateX(4px);
}

.prob-name {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.prob-row.active-class .prob-name {
  color: #ffffff;
  font-weight: 700;
}

.prob-bar-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.prob-bar-fill {
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  transition: width 0.15s cubic-bezier(0.16, 1, 0.3, 1), background-color var(--transition-fast);
}

.prob-row.active-class .prob-bar-fill {
  background: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.6);
}

.prob-percent {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: right;
  transition: color var(--transition-fast);
}

.prob-row.active-class .prob-percent {
  color: #ffffff;
}

/* Pedagogical Card */
.pedagogical-card {
  margin-top: 12px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-md);
  position: relative;
}

.quote-mark {
  position: absolute;
  top: 6px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.07);
}

.quote-primary {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.quote-subtext {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   PROJECTOR HUD (BOTTOM CONTROLS)
   ========================================================================== */

.projector-hud {
  position: fixed;
  bottom: 22px;
  left: 40px;
  right: 40px;
  z-index: 10;
  height: 52px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-full);
}

.hud-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hud-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border);
  color: #ffffff;
}

.hud-btn.active {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.5);
  color: var(--accent-rose);
}

.hud-status-group {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.hud-label {
  color: var(--text-muted);
  margin-right: 6px;
}

.hud-value {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   3. TEACHING OVERLAY MODAL [H]
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(6, 6, 8, 0.85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition-smooth);
}

.modal-backdrop.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.teaching-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

/* Pipeline Diagram */
.pipeline-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-md);
}

.pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.node-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.pipeline-node.highlight .node-icon {
  background: #ffffff;
  color: #060608;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
}

.node-label {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-primary);
}

.node-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.4rem;
}

/* Manifesto Statement */
.teaching-manifesto {
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #ffffff;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.manifesto-lead {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.manifesto-follow {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-top: 6px;
}

.teaching-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.teaching-col h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.teaching-col p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.modal-footer-bar {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   4. ERROR / FALLBACK MODALS
   ========================================================================== */

.error-card {
  max-width: 640px;
  text-align: left;
}

.modal-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

.warning-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-amber);
}

.error-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-rose);
}

.error-heading {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.error-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.path-code-block {
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #e2e8f0;
  margin-top: 10px;
}

.error-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-upload-label {
  cursor: pointer;
}

.error-footnote {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.camera-checklist ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.camera-checklist li strong {
  color: var(--text-primary);
}

/* ==========================================================================
   RESPONSIVE & PROJECTOR OPTIMIZATION (1920x1080 & Laptops)
   ========================================================================== */

@media (max-width: 1100px) {
  .main-layout-container {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    height: auto;
    overflow-y: auto;
  }

  .main-screen {
    padding: 20px 20px 80px 20px;
    height: 100vh;
    overflow-y: auto;
  }

  .projector-hud {
    left: 20px;
    right: 20px;
    bottom: 14px;
  }

  .pipeline-diagram {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pipeline-arrow {
    transform: rotate(0deg);
  }
}

@media (min-width: 1920px) {
  /* Generous 1080p+ Projector Enhancement */
  .main-layout-container {
    max-width: 1840px;
    margin: 0 auto;
  }

  .top-predicted-class {
    font-size: 5rem;
  }

  .top-confidence-value {
    font-size: 3.8rem;
  }

  .prob-name {
    font-size: 1.25rem;
  }

  .prob-percent {
    font-size: 1.15rem;
  }
}
