:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7f5;
  color: #17211b;
}

* { box-sizing: border-box; }

body { margin: 0; min-height: 100vh; }

main {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: calc(24px + env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom));
}

header { margin-bottom: 20px; }

.eyebrow {
  margin: 0 0 6px;
  color: #07883e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; }

.hint { margin: 8px 0 0; color: #58635c; font-size: 14px; line-height: 1.6; }

.card {
  padding: 18px;
  border: 1px solid #dfe7e1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(31, 73, 46, .08);
}

.label-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
}

label { font-weight: 700; }

#char-count { color: #68746c; font-variant-numeric: tabular-nums; }

textarea {
  width: 100%;
  min-height: 320px;
  resize: vertical;
  padding: 14px;
  border: 1px solid #aebbb2;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
}

textarea:focus { outline: 3px solid #b9efd0; border-color: #06c755; }
textarea:disabled { background: #f1f4f2; }

.meta { min-height: 20px; margin: 8px 0 0; color: #68746c; font-size: 13px; }

.status { min-height: 24px; margin: 12px 0; color: #b42318; font-size: 14px; line-height: 1.5; }
.status.success { color: #067647; }

.actions { display: flex; gap: 10px; }

button {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  padding: 10px 20px;
  font: inherit;
  font-weight: 700;
}

button:disabled { cursor: wait; opacity: .55; }
.primary { flex: 1; background: #06c755; color: #fff; }
.secondary { background: #eaf0ec; color: #26342b; }

@media (max-width: 480px) {
  main { padding-left: 12px; padding-right: 12px; }
  .card { padding: 14px; border-radius: 14px; }
  textarea { min-height: 46vh; }
}
