:root {
  --bg0: #0c0f14;
  --bg1: #151a22;
  --ink: #eef2f7;
  --muted: #9aa6b5;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #7dd3fc;
  --danger: #fb7185;
  --font: "Source Sans 3", system-ui, sans-serif;
  --display: Outfit, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 10% -10%, #1a2740, transparent),
    radial-gradient(900px 500px at 100% 0%, #1b1530, transparent), var(--bg0);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.75rem 0.5rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--accent);
}

h1 {
  margin: 0.2rem 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.sub {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 420px);
  gap: 1.5rem;
  padding: 1rem 1.75rem 2.5rem;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

.panel form {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.shots-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.shots-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.shot {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot button {
  position: absolute;
  top: 2px;
  right: 2px;
  border: 0;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  cursor: pointer;
}

.primary,
.ghost,
.file {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
}

.primary {
  background: linear-gradient(120deg, #7dd3fc, #a78bfa);
  color: #0b1220;
  padding: 0.85rem 1.2rem;
  text-align: center;
  text-decoration: none;
}

.ghost,
.file {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
}

.status,
.error {
  margin-top: 0.8rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
}

.status {
  background: rgba(125, 211, 252, 0.08);
  color: var(--accent);
}

.error {
  background: rgba(251, 113, 133, 0.1);
  color: var(--danger);
}

.card {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.card h2 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.1rem;
}

.card ol {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.card pre {
  overflow: auto;
  max-height: 220px;
  font-size: 0.72rem;
  color: var(--muted);
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.phone {
  width: min(100%, 360px);
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.phone canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.stage-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
