body {
  font-family: Arial, sans-serif;
  margin: 24px;
  background: #f6f8fb;
  color: #1c2733;
}

h1, h2, h3 {
  margin: 0 0 14px;
}

h3 {
  font-size: 18px;
}

.topbar {
  margin-bottom: 14px;
}

.topbar a {
  color: #0b3a67;
  text-decoration: none;
}

.card {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
}

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 980px;
}

.nav-link {
  display: block;
  padding: 14px 16px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid #d9e2ec;
  background: #fff;
  color: #0b3a67;
  font-weight: 600;
}

.nav-link:hover {
  background: #eef5ff;
}

form {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.inline-form {
  grid-template-columns: 1fr auto;
  align-items: end;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

input,
textarea,
select,
button {
  padding: 8px;
  border: 1px solid #c8d5e2;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}

button {
  cursor: pointer;
  background: #0b3a67;
  color: #fff;
  border-color: #0b3a67;
}

button:hover {
  background: #0a3157;
}

.actions-row {
  display: flex;
  align-items: end;
  gap: 8px;
}

.fieldset-full {
  grid-column: 1 / -1;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  padding: 10px;
}

.fieldset-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.hint {
  margin: 8px 0 0;
  color: #4b5d70;
  font-size: 13px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  border: 1px solid #d9e2ec;
  padding: 8px;
  text-align: left;
  font-size: 14px;
}

th {
  background: #eef2f7;
}

.msg {
  margin-top: 8px;
  color: #b00020;
  white-space: pre-wrap;
}

.secondary-btn {
  background: #eef2f7;
  border-color: #d0d9e3;
  color: #1c2733;
}

.secondary-btn:hover {
  background: #e4ebf2;
}

.primary-btn {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #0b3a67;
  border-radius: 6px;
  background: #0b3a67;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.primary-btn:hover {
  background: #0a3157;
  border-color: #0a3157;
}

.small-btn {
  padding: 6px 8px;
  font-size: 12px;
}

.hidden {
  display: none;
}
