:root {
  --bg: #100c12;
  --bg-soft: #191321;
  --panel: #221a2d;
  --panel-soft: #2a2138;
  --text: #f8f4ff;
  --muted: #b7adc7;
  --rose: #ec4899;
  --rose-soft: #f472b6;
  --line: #3d304f;
  --ok: #34d399;
  --danger: #fb7185;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Nunito", sans-serif;
  background:
    radial-gradient(1200px 500px at 20% -10%, rgba(236, 72, 153, 0.2), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(99, 102, 241, 0.2), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, #0c0a10 100%);
  min-height: 100vh;
}

.page {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 50px;
}

.hero {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(39, 29, 52, 0.95), rgba(24, 19, 33, 0.96));
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.eyebrow {
  margin: 0;
  color: var(--rose-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}

.hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1;
  font-family: "Lora", serif;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.7;
}

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

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(120deg, var(--rose), #be185d);
  color: white;
}

.btn-secondary {
  background: #2f2740;
  border-color: #4b3a63;
  color: #fdf4ff;
}

.btn-ghost {
  background: transparent;
  border-color: #55406f;
  color: #d5c8e8;
}

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

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

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

.locked-note {
  margin-top: 16px;
  padding: 16px;
  border: 1px dashed #5f4a79;
  background: rgba(35, 29, 47, 0.75);
  border-radius: 16px;
}

.locked-note h2 {
  margin: 0 0 6px;
  font-size: 16px;
}

.locked-note p {
  margin: 0;
  color: var(--muted);
}

.cards {
  margin-top: 16px;
  display: grid;
  gap: 18px;
}

.section-tabs {
  display: inline-flex;
  gap: 8px;
  background: rgba(30, 23, 41, 0.75);
  border: 1px solid #4a3b5f;
  border-radius: 999px;
  padding: 5px;
  width: fit-content;
}

.section-tab {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #d8cde9;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  cursor: pointer;
}

.section-tab.active {
  background: linear-gradient(120deg, var(--rose), #be185d);
  color: #ffffff;
}

.section-group {
  display: grid;
  gap: 14px;
}

.section-group.is-hidden {
  display: none;
}

.section-headline {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #4a3b5f;
  background: rgba(30, 23, 41, 0.75);
}

.section-headline h2 {
  margin: 0;
  font-size: 18px;
  font-family: "Lora", serif;
}

.section-headline p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(160deg, var(--panel), var(--bg-soft));
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0;
  font-size: 20px;
  font-family: "Lora", serif;
}

.card small {
  color: var(--muted);
}

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

.field {
  display: grid;
  gap: 6px;
}

.field.span-2 {
  grid-column: 1 / -1;
}

.field label {
  font-size: 12px;
  font-weight: 700;
  color: #ddd1ee;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #4a3a61;
  border-radius: 10px;
  padding: 10px 11px;
  background: var(--panel-soft);
  color: #fff;
  font: inherit;
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.field .hint {
  color: var(--muted);
  font-size: 12px;
}

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

body.embed-mode {
  background: transparent;
}

body.embed-mode .page {
  width: min(980px, calc(100% - 16px));
  padding: 12px 0 20px;
}

body.embed-mode .hero {
  border-radius: 16px;
  padding: 16px;
}

body.embed-mode .hero h1 {
  font-size: clamp(22px, 4.2vw, 34px);
}

body.embed-mode .subtitle {
  font-size: 14px;
  line-height: 1.5;
}

body.embed-mode .locked-note {
  margin-top: 12px;
  padding: 12px;
}

body.embed-mode .card {
  border-radius: 14px;
}

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