:root {
  --bg: #f6efe6;
  --ink: #1d1a17;
  --muted: #6e645b;
  --card: #fffaf3;
  --accent: #e67c47;
  --accent-dark: #c76435;
  --line: #e6d6c7;
  --shadow: 0 24px 80px rgba(32, 23, 12, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top left, #f9f1e7 0%, #f3e7d7 35%, #f6efe6 100%);
  color: var(--ink);
  min-height: 100vh;
}

.shell {
  width: min(1120px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 24px;
  margin-bottom: 40px;
}

header.shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1f1a17, #42352b);
  color: #fdf5ea;
  display: grid;
  place-items: center;
  font-weight: 600;
}

.brand-title {
  font-family: "Fraunces", serif;
  font-size: 22px;
  letter-spacing: 0.4px;
}

.brand-sub {
  font-size: 13px;
  color: var(--muted);
}

.status-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff3e6;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
}

h1,
h2 {
  font-family: "Fraunces", serif;
  margin: 0 0 12px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.field span {
  font-size: 13px;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  background: #fff;
  font-size: 14px;
  font-family: inherit;
}

.row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(230, 124, 71, 0.35);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn:hover {
  transform: translateY(-1px);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip {
  border-radius: 999px;
  border: 1px dashed var(--line);
  background: #fff;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #fff7ef;
  border: 1px solid var(--line);
}

.status-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.preview {
  margin-top: 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  min-height: 220px;
  display: grid;
  place-items: center;
}

.preview video {
  width: 100%;
  height: auto;
  display: none;
}

.log {
  margin-top: 18px;
}

.log-title {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

pre {
  background: #1c1815;
  color: #f6efe6;
  padding: 12px;
  border-radius: 12px;
  min-height: 120px;
  overflow: auto;
  font-size: 12px;
}

.footer {
  display: flex;
  justify-content: space-between;
  padding-bottom: 32px;
  color: var(--muted);
  font-size: 12px;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.7;
  z-index: 0;
  animation: float 12s ease-in-out infinite;
}

.orb-a {
  width: 220px;
  height: 220px;
  background: rgba(230, 124, 71, 0.25);
  top: -40px;
  left: -60px;
}

.orb-b {
  width: 260px;
  height: 260px;
  background: rgba(44, 32, 26, 0.18);
  bottom: 10%;
  right: -80px;
  animation-delay: 2s;
}

.orb-c {
  width: 140px;
  height: 140px;
  background: rgba(255, 213, 170, 0.45);
  top: 60%;
  left: 10%;
  animation-delay: 4s;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@media (max-width: 720px) {
  header.shell {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .footer {
    flex-direction: column;
    gap: 6px;
  }
}
