:root {
  --violey-teal: #006d8f;
  --border: #dde3e6;
  --bg: #f7f9fa;
  --text: #1f2933;
  --danger: #b3261e;
}

* { box-sizing: border-box; }

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

.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--violey-teal);
  color: white;
  padding: 12px 24px;
}

.topnav .brand { font-weight: 600; }

.topnav .links a {
  color: white;
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.95rem;
}

.topnav .links a:hover { text-decoration: underline; }

.container {
  max-width: 900px;
  margin: 24px auto;
  padding: 0 16px;
}

h1 { font-size: 1.5rem; margin-bottom: 16px; }
h2 { font-size: 1.15rem; margin-top: 28px; }

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  margin-top: 8px;
}

th, td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  font-size: 0.92rem;
}

th { background: #eef2f4; }

tr.warn td { background: #fdecea; }

.muted { color: #8a97a0; font-size: 0.85rem; }

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: white;
  border: 1px solid var(--border);
  padding: 12px;
  margin-bottom: 8px;
}

.inline-form input, .inline-form select {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

button {
  padding: 6px 14px;
  border: none;
  border-radius: 4px;
  background: var(--violey-teal);
  color: white;
  cursor: pointer;
}

button.danger { background: var(--danger); }

.login-box {
  max-width: 320px;
  margin: 80px auto;
  background: white;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.login-box form { display: flex; flex-direction: column; gap: 10px; }

.flash {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  padding: 10px;
  margin-bottom: 16px;
  border-radius: 4px;
}

.hint { font-size: 0.85rem; color: #8a97a0; }
