:root {
  font-family:
    Inter,
    Segoe UI,
    sans-serif;
  color: #213449;
  background: #f3f6fa;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
aside {
  position: fixed;
  width: 230px;
  height: 100vh;
  background: #12263a;
  color: #dbe7f3;
  padding: 36px 26px;
  display: flex;
  flex-direction: column;
  gap: 38px;
}
.brand {
  color: white;
  text-decoration: none;
  font-size: 29px;
  font-weight: 750;
  letter-spacing: 2px;
}
.brand span {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  margin-top: 9px;
  color: #8da8c4;
}
nav {
  display: grid;
  gap: 12px;
}
nav a {
  color: #ccdae8;
  text-decoration: none;
  padding: 13px 8px;
  border-bottom: 1px solid #294059;
}
.aside-note {
  margin-top: auto;
  font-size: 22px;
  line-height: 1.4;
  color: #9bb7cd;
}
.pill {
  display: inline-block;
  padding: 8px 12px;
  background: #e0f4ee;
  color: #17725e;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1px;
  border-radius: 6px;
  white-space: nowrap;
}
main {
  overflow-wrap: anywhere;
  margin-left: 230px;
  padding: 42px 5%;
  max-width: 1550px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
small {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 750;
  color: #538198;
}
h1 {
  font-size: 34px;
  letter-spacing: -1px;
  margin: 12px 0;
}
h2 {
  font-size: 22px;
  margin: 9px 0 16px;
}
p {
  line-height: 1.65;
  color: #607286;
}
header p {
  margin: 0;
}
.notice {
  background: #fff4df;
  border: 1px solid #e9d6af;
  border-left: 4px solid #c08a34;
  padding: 18px 22px;
  line-height: 1.7;
  border-radius: 7px;
  color: #775a29;
  margin-bottom: 24px;
}
.notice strong {
  display: block;
}
.panel {
  background: white;
  border: 1px solid #dfe6ef;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 3px 14px #142a4505;
}
form,
.controls {
  display: flex;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  color: #52677e;
  min-width: 180px;
}
input,
select,
textarea {
  max-width: 100%;
  min-width: 0;
  font: inherit;
  color: #253b50;
  border: 1px solid #c9d5e2;
  border-radius: 6px;
  padding: 11px;
  background: #fafcfe;
  min-height: 42px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
button {
  max-width: 100%;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  padding: 12px 18px;
  border: 0;
  background: #216d76;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}
button:disabled {
  background: #e4e9ef;
  color: #8290a2;
  cursor: not-allowed;
}
.secondary {
  background: #edf3f7;
  color: #426076;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #63a6bf;
  outline-offset: 3px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.metric {
  padding: 20px;
  background: #f5f9fb;
  border-radius: 8px;
}
.metric b {
  display: block;
  font-size: 27px;
  margin-top: 9px;
}
.metric span {
  font-size: 11px;
  color: #627d92;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin: 20px 0;
}
.field-grid > label,
.field-grid > fieldset {
  min-width: 0;
}
#draft-form {
  display: block;
}
.draft {
  border: 1px solid #dce5ef;
  border-radius: 8px;
  padding: 18px;
  margin: 15px 0;
}
.draft h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.draft button {
  margin: 8px 10px 0 0;
}
pre {
  background: #f5f8fb;
  padding: 16px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.6;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  display: block;
  overflow: auto;
}
th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #e4eaf1;
  white-space: nowrap;
}
th {
  color: #5c758a;
  background: #f7fafc;
}
.muted,
footer {
  font-size: 12px;
  color: #708498;
}
footer {
  padding: 10px 0 30px;
}
#message {
  padding: 10px 0;
  color: #845327;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  aside {
    width: 180px;
    padding: 24px 18px;
  }
  main {
    margin-left: 180px;
    padding: 28px;
  }
  .metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  header {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 650px) {
  aside {
    position: static;
    width: auto;
    height: auto;
    gap: 14px;
    padding: 18px;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  nav a {
    padding: 6px;
  }
  .aside-note,
  aside > .pill {
    display: none;
  }
  main {
    margin: 0;
    padding: 18px;
  }
  h1 {
    font-size: 27px;
  }
  .panel {
    padding: 20px;
  }
  .field-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .heading {
    align-items: start;
    flex-direction: column;
  }
}
.rsa-asset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 160px) auto;
  gap: 8px;
  align-items: end;
  margin: 8px 0;
}
.rsa-asset-row input,
.rsa-asset-row select {
  min-width: 0;
  width: 100%;
}
@media (max-width: 600px) {
  .rsa-asset-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
.criterion-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #dbe4ec;
}
.criterion-row input,
.criterion-row select {
  min-width: 0;
  width: 100%;
}
@media (max-width: 600px) {
  .criterion-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
