*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: sans-serif;
  margin: 0;
  color: #222;
  background: #f8f9fa;
  min-height: 100vh;
}

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}
.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
}
nav a { color: #2563eb; font-size: 0.9rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }

/* Content wrapper (narrow panel layout) */
.content {
  max-width: 420px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

/* Panel */
.panel {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.75rem 2rem;
}
.panel h2 { margin: 0 0 0.25rem; font-size: 1.3rem; }

/* Form fields */
.field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: #444; }
.field input, .field select {
  padding: 0.55rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}

.error { color: #dc2626; font-size: 0.85rem; min-height: 1.1rem; margin-bottom: 0.5rem; }

/* Buttons */
.btn {
  padding: 0.55rem 1.2rem;
  border-radius: 5px;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.1s;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-primary:disabled { background: #93c5fd; cursor: default; }

/* Success state */
.success { text-align: center; padding: 1rem 0; }
.success .check { font-size: 2.5rem; margin-bottom: 0.5rem; }
.success p { color: #555; margin: 0.25rem 0; font-size: 0.95rem; }
.success strong { color: #222; }

.spinner {
  text-align: center;
  padding: 2rem 0;
  color: #999;
  font-size: 0.9rem;
}

.hidden { display: none !important; }
