:root {
  color-scheme: light;
  --ink: #19213a;
  --muted: #5b6377;
  --line: #d9dee8;
  --brand: #9f2f68;
  --brand-2: #176b66;
  --danger: #9f1d35;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #fff 0%, #f9eef5 50%, #edf8f6 100%);
}
.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}
.topbar, .editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
h1, h2 { margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(32px, 4vw, 54px); line-height: 1; }
h2 { font-size: 26px; }
.muted {
  margin: 8px 0 0;
  color: var(--muted);
}
.panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .55fr);
  gap: 32px;
  align-items: center;
  min-height: 420px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 18px 50px rgba(25,33,58,.08);
}
.form {
  display: grid;
  gap: 12px;
}
label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
}
input {
  min-height: 44px;
  padding: 8px 10px;
}
textarea {
  min-height: calc(100vh - 230px);
  padding: 16px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
}
button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  background: var(--brand);
  color: white;
  font-weight: 800;
  cursor: pointer;
}
button.secondary {
  background: var(--brand-2);
}
button.ghost {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}
button:disabled {
  cursor: progress;
  opacity: .68;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.status {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}
.status.error { color: var(--danger); }
.status.ok { color: var(--brand-2); }
.hidden { display: none !important; }
@media (max-width: 760px) {
  .topbar, .editor-head, .panel {
    display: block;
  }
  .actions {
    justify-content: flex-start;
    margin-top: 14px;
  }
  .form { margin-top: 22px; }
}
