:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --text: #172033;
  --muted: #647083;
  --line: #d9dee7;
  --panel: #ffffff;
  --primary: #165c7d;
  --primary-dark: #0f425c;
  --ok: #177245;
  --warning: #966a00;
  --blocker: #b42318;
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--primary);
}

.topbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 14px 22px;
}

.brand {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

nav a {
  font-weight: 600;
  text-decoration: none;
}

.page {
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px;
}

.hero,
.section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.hero h1,
.page-heading h1,
h1 {
  font-size: 32px;
  margin: 0 0 8px;
}

h2 {
  font-size: 20px;
  margin: 0 0 14px;
}

p {
  color: var(--muted);
  line-height: 1.5;
}

.page-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button,
button {
  background: var(--primary);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  min-height: 44px;
  padding: 12px 16px;
  text-decoration: none;
}

.button.secondary {
  background: #e7edf3;
  color: var(--primary-dark);
}

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

table {
  background: var(--panel);
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

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

th {
  color: #3b4657;
  font-size: 13px;
  text-transform: uppercase;
}

.badge {
  border-radius: 999px;
  color: #ffffff;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
  text-transform: uppercase;
}

.badge.ok {
  background: var(--ok);
}

.badge.warning {
  background: var(--warning);
}

.badge.blocker {
  background: var(--blocker);
}

.badge.neutral {
  background: #516072;
}

.form-grid {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 22px;
}

label {
  color: #3b4657;
  display: grid;
  font-weight: 700;
  gap: 6px;
}

input,
select,
textarea {
  border: 1px solid #b9c1cf;
  border-radius: 6px;
  font: inherit;
  min-height: 42px;
  padding: 9px 10px;
}

textarea {
  min-height: 96px;
}

.wide {
  grid-column: 1 / -1;
}

.check {
  align-items: center;
  display: flex;
  gap: 10px;
}

.check input {
  min-height: auto;
}

.summary {
  display: grid;
  gap: 8px 18px;
  grid-template-columns: 220px 1fr;
  margin: 0;
}

.summary dt {
  color: var(--muted);
  font-weight: 700;
}

.summary dd {
  margin: 0;
}

.section {
  margin-bottom: 18px;
}

.two-column {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checklist {
  line-height: 1.5;
  margin: 0;
  padding-left: 22px;
}

.empty,
.notice {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.notice {
  color: var(--ok);
  font-weight: 700;
}

@media (max-width: 720px) {
  .topbar,
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .page {
    padding: 16px;
  }

  .form-grid,
  .two-column,
  .summary {
    grid-template-columns: 1fr;
  }
}
