:root {
  --ink: #1c2420;
  --muted: #5c675f;
  --paper: #f6f3ec;
  --card: rgba(255, 255, 255, 0.82);
  --line: rgba(28, 36, 32, 0.1);
  --sage: #3f5646;
  --blue: #1f4bff;
  --danger: #9a3412;
  --ok: #2f6b45;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(1200px 500px at 10% -10%, #e7efe6, transparent 50%),
    var(--paper);
}
a { color: var(--sage); }
button, input, textarea, select {
  font: inherit;
  color: inherit;
}
button {
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  background: var(--blue);
  color: white;
  font-weight: 600;
  cursor: pointer;
}
button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
button:disabled { opacity: 0.5; cursor: default; }
.wrap { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; padding: 1.5rem 0 3rem; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.brand { font-family: var(--display); font-size: 1.7rem; margin: 0; }
.muted { color: var(--muted); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  backdrop-filter: blur(10px);
}
.grid { display: grid; gap: 0.8rem; }
.screens { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
label { display: grid; gap: 0.3rem; font-size: 0.92rem; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: white;
}
.login {
  width: min(420px, calc(100% - 2rem));
  margin: 12vh auto;
}
.error { color: var(--danger); min-height: 1.2rem; }
.dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; display: inline-block; background: #b9b2a6; }
.dot.on { background: var(--ok); }
.row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.previews { display: grid; grid-template-columns: 140px 220px 280px; gap: 0.8rem; align-items: end; }
.frame { background: #efeae2; border-radius: 12px; overflow: hidden; color: #1c2420; }
.frame.p { aspect-ratio: 9/16; }
.frame.l { aspect-ratio: 16/9; }
.frame.n { aspect-ratio: 32/9; }
.slide { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 0.7rem; }
.frame.l .slide { flex-direction: row; align-items: center; gap: 0.6rem; }
.frame h3 { margin: 0; font-family: var(--display); font-size: 1rem; }
.frame p { margin: 0.25rem 0 0; font-size: 0.75rem; }
.hidden { display: none; }
