* {
  box-sizing: border-box;
}

body {
  color: #202124;
  font-family: Arial, sans-serif;
  line-height: 1.5;
  margin: auto;
  max-width: 1100px;
  padding: 24px;
}

nav {
  border-bottom: 1px solid #d7dce2;
  margin-bottom: 28px;
  padding-bottom: 14px;
}

nav a {
  color: #1f5f8b;
  font-weight: 700;
  margin-right: 18px;
  text-decoration: none;
}

label {
  display: block;
  font-weight: 700;
  margin: 14px 0 6px;
}

input,
select,
textarea {
  border: 1px solid #bac4cf;
  border-radius: 6px;
  font: inherit;
  padding: 11px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

button {
  background: #1f5f8b;
  border: 1px solid #1f5f8b;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  margin: 4px;
  padding: 8px 12px;
}

button:hover {
  background: #174766;
}

button.danger {
  background: #a33d2f;
  border-color: #a33d2f;
}

button.danger:hover {
  background: #7c2e24;
}

.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card,
.panel {
  border: 1px solid #d7dce2;
  border-radius: 8px;
  margin: 10px 0;
  padding: 16px;
}

.manager-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(280px, 420px) 1fr;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.form-actions,
.section-header,
.card-header,
.actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.section-header,
.card-header {
  justify-content: space-between;
}

.article-section h2,
.panel h2 {
  margin-top: 0;
}

.question {
  color: #3f4b57;
  font-weight: 700;
}

.meta {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
}

.meta div {
  display: grid;
  gap: 8px;
  grid-template-columns: 90px 1fr;
}

.meta dt {
  color: #596574;
  font-weight: 700;
}

.meta dd {
  margin: 0;
}

.status {
  color: #596574;
  min-height: 1.5em;
}

@media (max-width: 780px) {
  body {
    padding: 18px;
  }

  .manager-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-header,
  .card-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
