:root {
  color-scheme: light;
  --bg: #f6f3ee;
  --paper: #fffaf3;
  --ink: #1d1a16;
  --muted: #6f665c;
  --line: #ded5ca;
  --brand: #5236ff;
  --danger: #b72b2b;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(circle at top left, #fff 0, var(--bg) 38rem);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
}

.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 20px 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 7vw, 68px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.shell {
  display: grid;
  gap: 18px;
  max-width: 960px;
  margin: 0 auto 64px;
  padding: 0 20px;
}

.card {
  background: color-mix(in srgb, var(--paper) 92%, white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 42px rgb(50 35 20 / 8%);
}

h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

label {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  font-weight: 700;
}

input, textarea, select, button {
  font: inherit;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  padding: 12px;
}

textarea { resize: vertical; }

.grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

button {
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
}

button.secondary {
  background: #e8e1d8;
  color: var(--ink);
}

button.danger {
  background: var(--danger);
}

button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.hint, .status {
  color: var(--muted);
}

.login-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  padding: 14px;
  margin: 12px 0;
}

.login-panel .status {
  margin: 0;
}

.dev-token {
  margin: 12px 0;
  color: var(--muted);
}

.dev-token summary {
  cursor: pointer;
  font-weight: 800;
}

.photo-list {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.photo-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 12px;
  background: white;
}

.photo-card img {
  width: 128px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.photo-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.photo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.actions.small button {
  padding: 7px 10px;
  font-size: 13px;
}

.state {
  white-space: pre-wrap;
  overflow: auto;
  min-height: 180px;
  border-radius: 14px;
  background: #171512;
  color: #fff7e8;
  padding: 16px;
}

@media (max-width: 720px) {
  .grid.two, .photo-card {
    grid-template-columns: 1fr;
  }
  .photo-card img {
    width: 100%;
    height: auto;
    max-height: 260px;
  }
}
