:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #18212f;
  --muted: #5b6779;
  --line: #d7dfeb;
  --primary: #0f4c81;
  --primary-hover: #0b3b64;
  --ok: #0b7a38;
  --err: #b3261e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(160deg, #f5f7fb, #e9eff8 65%);
  color: var(--text);
  font: 15px/1.45 "Segoe UI", Tahoma, sans-serif;
}

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

h1 {
  margin: 0 0 16px;
  font-size: 24px;
}

h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 3px 10px rgba(10, 30, 80, 0.05);
}

label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 600;
}

input,
textarea,
button {
  width: 100%;
  font: inherit;
}

input,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

button:hover {
  background: var(--primary-hover);
}

.row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.grid {
  display: grid;
  gap: 10px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status {
  margin: 10px 0 0;
  color: var(--muted);
}

.status.ok {
  color: var(--ok);
}

.status.err {
  color: var(--err);
}

.table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

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

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

th {
  background: #eef3fa;
}

@media (max-width: 720px) {
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .row {
    flex-direction: column;
  }
}
