* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f5f7;
  color: #1f2933;
  line-height: 1.5;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  background: #1e3a5f;
  color: #fff;
  padding: 0.75rem 0;
  margin-bottom: 2rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-header nav a {
  color: #cdd9e8;
  text-decoration: none;
}

.site-header nav a:hover { color: #fff; }

.user-email { color: #9fb3c8; font-size: 0.85rem; }

.link-button {
  background: none;
  border: none;
  color: #cdd9e8;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
}

.link-button:hover { color: #fff; }

h1 { font-size: 1.5rem; }

.card {
  background: #fff;
  border: 1px solid #e0e4e9;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

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

.form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form select,
.form textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #c5ccd4;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.form input[type="submit"] {
  background: #1e3a5f;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.25rem;
  font-size: 1rem;
  cursor: pointer;
}

.form input[type="submit"]:hover { background: #2c4f7c; }

.flash {
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.flash-notice { background: #e3f5e8; border: 1px solid #9fd8ae; color: #1d6334; }
.flash-alert  { background: #fdeaea; border: 1px solid #f2b3b3; color: #93312f; }

.errors {
  background: #fdeaea;
  border: 1px solid #f2b3b3;
  color: #93312f;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.issue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.issue-header h2 { margin: 0; font-size: 1.15rem; }

.badge {
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-once { background: #e3edf9; color: #1e3a5f; }
.badge-recurrent { background: #fdf0e0; color: #8a5a12; }

.muted { color: #64707d; font-size: 0.85rem; }
