:root {
  --bg: #f5f5f4;
  --card-bg: #ffffff;
  --text: #1c1c1a;
  --muted: #6b6b66;
  --border: #d9d9d5;
  --accent: #2f6f4f;
  --accent-text: #ffffff;
  --error: #b3261e;
  --error-bg: #fbeceb;
  --success: #2f6f4f;
  --success-bg: #eaf3ee;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

.page {
  min-height: 100vh;
  padding: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.page--centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.topbar .user {
  font-weight: 600;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  width: 100%;
}

h1 {
  margin: 0 0 16px;
  font-size: 1.4rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 12px;
}

input,
select,
textarea {
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text);
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

textarea {
  resize: vertical;
}

button {
  margin-top: 20px;
  padding: 12px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button:active {
  opacity: 0.85;
}

.link-button {
  margin-top: 0;
  padding: 6px 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: underline;
}

.error,
.error-list {
  background: var(--error-bg);
  color: var(--error);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin: 0 0 12px;
}

.error-list {
  list-style: none;
}

.error-list li + li {
  margin-top: 4px;
}

.success {
  background: var(--success-bg);
  color: var(--success);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin: 0 0 12px;
}