:root {
  --bg: #f7f9fc;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --error: #b91c1c;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}


.container {
  max-width: 960px;
  margin: 2rem auto;
  padding: 1.5rem;
}

h1 {
  font-size: 1.8rem;
  margin: 0 0 1rem;
}

.controls {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
}

input, textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
}
textarea {
  resize: vertical;
  min-height: 8rem;
}

.actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
button {
  appearance: none;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  cursor: pointer;
}
button.secondary {
  border-color: var(--border);
  color: var(--text);
  background: #ffffff;
}
button:hover {
  filter: brightness(1.05);
}
button:active {
  transform: translateY(1px);
}

.error {
  color: var(--error);
  min-height: 1.2rem;
}


.footer {
  text-align: center;
  color: var(--muted);
  margin: 2rem 0;
}



/* Typography and text spacing */
body {
  line-height: 1.5;
}
p {
  margin: 0 0 0.75rem;
}
ul, ol {
  margin: 0 0 0.75rem 1.25rem;
}
.hint {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Back link utility */
a.back-link {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
}
a.back-link:hover {
  color: var(--accent);
  text-decoration: underline;
}
