:root {
  color-scheme: light;
  --ink: #15211c;
  --muted: #64706a;
  --line: #d9e1dc;
  --surface: #f7faf8;
  --panel: #ffffff;
  --accent: #136f63;
  --accent-strong: #0b4f47;
  --danger: #a83232;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
}

button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 48px;
  padding: 0 16px;
}

button:disabled {
  background: #a9b7b1;
  cursor: not-allowed;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 18px;
}

.capture-panel {
  display: grid;
  gap: 16px;
  width: min(100%, 520px);
}

.topbar {
  align-items: end;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

h1 {
  font-size: 2rem;
  line-height: 1;
  margin: 0;
}

.clock {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  padding: 8px 10px;
}

.preview-frame {
  aspect-ratio: 3 / 4;
  background: #0d1512;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  overflow: hidden;
  position: relative;
}

.preview-frame video,
.preview-frame img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.empty-state {
  align-content: center;
  color: #d8e4df;
  display: grid;
  gap: 12px;
  inset: 0;
  justify-items: center;
  padding: 24px;
  position: absolute;
  text-align: center;
}

.camera-icon {
  border: 2px solid currentColor;
  border-radius: 8px;
  display: grid;
  font-size: 1.8rem;
  height: 64px;
  place-items: center;
  width: 64px;
}

.controls {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.status {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  margin: 0;
  padding: 12px 14px;
}

.status.error {
  border-color: #e9b5b5;
  color: var(--danger);
}

@media (max-width: 520px) {
  .app-shell {
    place-items: stretch;
    padding: 14px;
  }

  .controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 1.75rem;
  }
}
