:root {
  --navy: #082542;
  --blue: #1767ed;
  --line: #dbe4ee;
  --muted: #6d7b8d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f5f8fc;
  color: #17283d;
  font:
    14px Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
.top {
  height: 80px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 20px Georgia;
  color: var(--navy);
}
.brand i {
  width: 42px;
  height: 42px;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.brand small,
.top > span {
  display: block;
  font: 10px Arial;
  color: #7b899a;
}
.progress {
  background: #fff;
  padding: 12px max(5vw, 20px) 18px;
}
.progress > div {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.progress > i {
  display: block;
  max-width: 1200px;
  margin: 9px auto 0;
  height: 4px;
  background: #e6edf4;
}
.progress > i span {
  display: block;
  height: 100%;
  background: var(--blue);
}
.shell {
  max-width: 1220px;
  margin: 35px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 34px;
}
.shell aside h1 {
  font: 500 30px Georgia;
  color: var(--navy);
}
h1 small,
h2 small {
  display: block;
  font: 500 12px Arial;
  color: #748397;
  margin-top: 6px;
}
.shell aside > p {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
}
.shell nav {
  display: grid;
}
.shell nav button {
  text-align: left;
  border: 0;
  border-left: 2px solid #d9e3ed;
  background: none;
  padding: 8px;
  color: #7b8797;
  font-size: 11px;
}
.shell nav button.active {
  border-color: var(--blue);
  color: var(--navy);
  font-weight: 700;
}
.shell nav b {
  display: inline-block;
  width: 28px;
}
.shell nav small {
  display: block;
  margin: 3px 0 0 29px;
  font-size: 8px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 38px;
  box-shadow: 0 15px 40px #173c6810;
}
.card > header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 24px;
}
.card > header > span {
  color: var(--blue);
  font-size: 10px;
}
.card h2 {
  margin: 7px 0;
  font-size: 23px;
}
.fields,
.parents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.fields label,
.parents label,
.list label {
  display: grid;
  gap: 7px;
}
.fields label > span,
.parents label > span,
.list label > span {
  font-weight: 700;
  font-size: 11px;
}
.fields small {
  display: block;
  color: #8290a0;
  font-size: 9px;
  margin-top: 3px;
}
.wide {
  grid-column: 1/-1;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #cdd9e5;
  background: #fbfcfe;
  border-radius: 6px;
  padding: 11px;
  outline: none;
}
textarea:focus,
input:focus {
  border-color: var(--blue);
}
.radios {
  display: flex;
  gap: 8px;
}
.radios button {
  flex: 1;
  background: #fff;
  border: 1px solid #ccd8e5;
  color: #657489;
}
.radios .on {
  background: #edf4ff;
  border-color: var(--blue);
  color: var(--blue);
}
.card > footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 28px;
  position: sticky;
  bottom: 0;
  background: #fff;
}
.card > footer button,
.admin-head a {
  border: 0;
  border-radius: 6px;
  padding: 12px 17px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
.card > footer .secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid #ccd8e3;
}
.alert,
.declare {
  padding: 16px;
  background: #fff8e8;
  border: 1px solid #ead9aa;
  border-radius: 7px;
  margin-bottom: 22px;
  font-size: 11px;
  line-height: 1.6;
}
.list {
  display: grid;
  gap: 15px;
}
.list article,
.parents article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.list article > b,
.parents h3 {
  grid-column: 1/-1;
}
.list article > button,
.list > button {
  border: 1px dashed #9eb5ca;
  background: #f5f9ff;
  color: var(--blue);
  padding: 10px;
  border-radius: 5px;
}
.parents {
  align-items: start;
}
.parents article {
  grid-template-columns: 1fr;
}
.error {
  background: #fff0f0;
  color: #9f3030;
  padding: 12px;
  margin-bottom: 18px;
}
.success {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
}
.success > b {
  font-size: 40px;
  color: #258061;
}
.success h1 {
  font: 40px Georgia;
  color: var(--navy);
}
.admin-page main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
table {
  width: 100%;
  background: #fff;
  border-collapse: collapse;
  margin-top: 25px;
}
th,
td {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
section,
.answer {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px;
  margin: 12px 0;
  border-radius: 8px;
}
.answer dt {
  color: var(--muted);
  font-size: 10px;
}
.answer dd {
  margin: 7px 0;
  white-space: pre-wrap;
}
section article {
  border-top: 1px solid var(--line);
  padding: 12px;
}
section dl {
  display: inline-grid;
  min-width: 200px;
}
.detail-title {
  margin: 22px 0;
}
@media (max-width: 800px) {
  .card > footer {
    position: static;
  }
  .shell {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }
  .shell aside nav {
    display: none;
  }
  .card {
    padding: 23px 16px;
  }
  .fields,
  .parents {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .list article {
    grid-template-columns: 1fr;
  }
  .top {
    height: 70px;
  }
  .top > span {
    max-width: 120px;
    text-align: right;
  }
  .admin-head {
    display: block;
  }
  table {
    font-size: 10px;
  }
}
