/* Minimal, clean, responsive baseline (master prompt §53). No framework, no
   animation, no theme package (dependency-baseline.md "deliberately
   rejected" — the approved prototype defines the UI, styled per-phase as
   real screens land). */

:root {
  --color-bg: #f7f8fa;
  --color-surface: #ffffff;
  --color-text: #1b1f24;
  --color-muted: #6b7280;
  --color-border: #e2e5ea;
  --color-primary: #1f6feb;
  --color-danger: #d1242f;
  --color-success: #1a7f37;
  --radius: 8px;
  --space: 1rem;
}

* { box-sizing: border-box; }

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

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.topbar__brand { font-weight: 600; }
.topbar__nav { display: flex; align-items: center; gap: 0.75rem; }
.topbar__user { color: var(--color-muted); font-size: 0.9rem; }

.link-button {
  background: none; border: none; color: var(--color-primary);
  cursor: pointer; padding: 0; font: inherit;
}

.content { max-width: 960px; margin: 0 auto; padding: var(--space); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card--narrow { max-width: 420px; margin: 2rem auto; }

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.field input, .field textarea {
  width: 100%; padding: 0.5rem; border: 1px solid var(--color-border);
  border-radius: var(--radius); font: inherit;
}
.field__error { color: var(--color-danger); font-size: 0.85rem; margin-top: 0.25rem; }

.button {
  display: inline-block; padding: 0.55rem 1.1rem; border-radius: var(--radius);
  border: 1px solid transparent; font: inherit; cursor: pointer;
}
.button--primary { background: var(--color-primary); color: #fff; }

.alert { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.alert--error { background: #fdecea; color: var(--color-danger); border: 1px solid #f5c2c0; }

.messages { list-style: none; padding: 0; margin: 0.75rem 1.25rem; }
.messages__item { padding: 0.5rem 0.75rem; border-radius: var(--radius); margin-bottom: 0.5rem; }
.messages__item--error { background: #fdecea; color: var(--color-danger); }
.messages__item--success { background: #e9f7ef; color: var(--color-success); }

.muted { color: var(--color-muted); }

@media (max-width: 600px) {
  .content { padding: 0.75rem; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
