:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #5d687a;
  --line: #dce4ef;
  --brand: #1d4f91;
  --brand-dark: #153b6d;
  --soft: #e9f2ff;
  --danger: #9b1c1c;
  --ok: #146c43;
  --warn: #fff7df;
  --warn-line: #ead28a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.header {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: white;
  padding: 34px 18px;
}

.header-inner, main {
  max-width: 980px;
  margin: 0 auto;
}

.header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.header p { margin: 0; opacity: .92; max-width: 760px; }

.nav {
  background: white;
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav a { font-weight: 700; }

main { padding: 28px 18px 52px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(25, 40, 72, .06);
  margin-bottom: 18px;
}

.card h2, .card h3 { margin-top: 0; line-height: 1.25; }

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
  gap: 18px;
}

label {
  display: block;
  font-weight: 700;
  margin: 12px 0 5px;
}

input, select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #bcc8d8;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
}

button, .button {
  display: inline-block;
  border: 0;
  background: var(--brand);
  color: white;
  padding: 11px 15px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 14px;
  font-size: 1rem;
}

button:hover, .button:hover {
  background: var(--brand-dark);
  text-decoration: none;
}

button.secondary, .button.secondary {
  background: var(--soft);
  color: var(--brand-dark);
}

button.secondary:hover, .button.secondary:hover {
  background: #dcecff;
}

.notice {
  background: var(--warn);
  border: 1px solid var(--warn-line);
  border-radius: 16px;
  padding: 14px 16px;
}

.muted { color: var(--muted); }
.small { font-size: .92rem; color: var(--muted); }
.error { color: var(--danger); font-weight: 700; }
.success { color: var(--ok); font-weight: 700; }

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.list {
  padding-left: 20px;
}

.list li { margin: 7px 0; }

.table-wrap { overflow-x: auto; }

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

th, td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th { background: #f8fafc; }

.footer {
  background: white;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  padding: 18px;
  font-size: .92rem;
}

@media (max-width: 750px) {
  .grid { grid-template-columns: 1fr; }
}
