.page-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.7;
}

.template-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tpl-btn {
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}

.tpl-btn:hover,
.tpl-btn.is-active {
  border-color: var(--text);
  color: var(--text);
}

.field-block {
  margin-bottom: 1rem;
}

.field-block label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.field-block textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  resize: vertical;
  min-height: 220px;
}

.field-block textarea:focus {
  outline: none;
  border-color: #999;
}

.btn-copy {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
}

.btn-copy:hover {
  opacity: 0.85;
}

.copy-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.auto-save-note {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.history-save,
.history-saved {
  text-align: center;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.btn-save-history {
  padding: 0.6rem 1.4rem;
  background: transparent;
  border: 1px solid var(--text);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.btn-save-history:hover {
  background: var(--text);
  color: #fff;
}

.saved-message {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.history-link {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.history-link:hover {
  text-decoration: underline;
}
