:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-edge: rgba(186, 174, 158, 0.35);
  --ink: #1f2937;
  --muted: #5f6b7a;
  --accent: #1f8f74;
  --accent-strong: #166b57;
  --secondary: #eef1f4;
  --secondary-ink: #334155;
  --danger-bg: #fff1f2;
  --danger-edge: #fecdd3;
  --danger-ink: #be123c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(180deg, #f7f4ee 0%, var(--bg) 100%);
  color: var(--ink);
}

a {
  color: var(--accent-strong);
}

.page-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 20px 28px;
}

.panel {
  position: relative;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid var(--panel-edge);
  background: var(--panel);
  box-shadow:
    0 24px 70px rgba(148, 163, 184, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}

.panel-head h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  line-height: 1.05;
}

.panel-head p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.field-group {
  margin-top: 28px;
}

.field-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 700;
}

textarea {
  width: 100%;
  min-height: 340px;
  resize: vertical;
  border: 1px solid rgba(190, 199, 208, 0.9);
  border-radius: 22px;
  padding: 18px 18px 20px;
  font: inherit;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 250, 0.96));
  box-shadow:
    inset 0 2px 7px rgba(148, 163, 184, 0.08),
    0 10px 28px rgba(148, 163, 184, 0.08);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

textarea:focus {
  border-color: rgba(31, 143, 116, 0.65);
  box-shadow:
    0 0 0 4px rgba(31, 143, 116, 0.12),
    inset 0 2px 7px rgba(148, 163, 184, 0.08),
    0 14px 32px rgba(148, 163, 184, 0.12);
}

.error {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--danger-edge);
  border-radius: 16px;
  background: var(--danger-bg);
  color: var(--danger-ink);
  font-size: 0.98rem;
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: #f8fafc;
  background: linear-gradient(180deg, #27b08f 0%, var(--accent) 100%);
  box-shadow:
    0 12px 24px rgba(31, 143, 116, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 28px rgba(31, 143, 116, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  filter: saturate(1.05);
}

.site-footer {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.98rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .page-shell {
    padding: 26px 14px 20px;
  }

  .panel {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .actions {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
