:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, #111827 0%, #1f2937 100%);
  display: flex;
  justify-content: center;
  padding: 16px;
}

.app-shell {
  width: min(100%, 480px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero,
.camera-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: #fbbf24;
  margin: 0 0 6px;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.hero p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.5;
}

.stage {
  position: relative;
  background: #020617;
  border-radius: 20px;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#camera,
#result-canvas,
#result-image,
#overlay-display,
#depth-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#depth-canvas {
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
}

.status {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  text-align: center;
  font-size: 0.95rem;
  background: rgba(2, 6, 23, 0.78);
  color: #f8fafc;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

button {
  border: none;
  border-radius: 999px;
  padding: 13px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
}

button.secondary {
  background: #e2e8f0;
  color: #0f172a;
}

#diagnostics-panel {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

#depth-preview-canvas {
  width: 100%;
  max-height: 260px;
  margin-top: 12px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: block;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (min-width: 700px) {
  body {
    padding: 24px;
  }

  .hero,
  .camera-card {
    padding: 24px;
  }
}
