/* 외부 촬영 페이지의 화면 스타일 */
:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --ink: #172033;
  --muted: #667085;
  --line: #d8deea;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --danger: #b42318;
  --ok: #067647;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.top {
  padding-top: 8px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 0;
}

.sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 68vh;
  background: #111827;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.camera-preview,
.photo-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #111827;
}

.empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  color: #fff;
  text-align: center;
}

.empty-state span {
  color: #d0d5dd;
  font-size: 14px;
}

.status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.status.ok {
  color: var(--ok);
}

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

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

button {
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0;
  cursor: pointer;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.primary {
  background: var(--primary);
  color: #fff;
}

.primary:active {
  background: var(--primary-dark);
}

.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.ghost {
  background: transparent;
  color: var(--muted);
}

@media (min-width: 480px) {
  .actions {
    grid-template-columns: 1fr 1fr;
  }

  .ghost {
    grid-column: 1 / -1;
  }
}
