:root {
  color: #1f2c42;
  background: #f4f6fa;
}
aside {
  background: #172237;
  width: 228px;
  padding: 30px 20px;
}
#shell {
  grid-template-columns: 228px 1fr;
}
main {
  padding: 0 34px;
}
.wordmark {
  font-size: 26px;
}
.wordmark span {
  color: #8eafff;
}
nav button.selected {
  background: #3b56944d;
  border-color: #5c7fc342;
}
nav button {
  padding: 13px 12px;
}
.workspace {
  color: #8596b3;
}
.aside-bottom {
  color: #96a8c7;
}
header {
  height: 70px;
}
.risk-page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0 22px;
}
.risk-page-head h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 10px 0;
}
.risk-page-head p {
  font-size: 15px;
  margin: 0;
  color: #53647b;
}
.risk-head-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  padding-top: 6px;
}
.risk-external {
  font-size: 14px;
  text-decoration: none;
  color: #5872a8;
}
.risk-badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.3px;
  white-space: nowrap;
  background: #edf0f6;
  color: #67758d;
}
.risk-badge.good {
  background: #e6f2ed;
  color: #377c63;
}
.risk-badge.critical {
  background: #fbe9e9;
  color: #b65252;
}
.risk-badge.warning {
  background: #fff1da;
  color: #a16c26;
}
.risk-badge.unknown {
  background: #eeebf9;
  color: #7a659f;
}
.risk-demo-banner {
  padding: 11px 15px;
  background: #edf0fa;
  color: #61729b;
  border: 1px solid #dce3f4;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.15px;
}
.risk-global {
  display: flex;
  gap: 26px;
  margin: 19px 0;
  font-size: 14px;
  color: #53647b;
}
.critical-text {
  color: #b47163;
}
.account-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.account-card {
  background: white;
  color: #273751;
  text-align: left;
  border: 1px solid #dde3ed;
  border-radius: 9px;
  padding: 20px;
  cursor: pointer;
  font-weight: 400;
  box-shadow: 0 2px 5px #1f345503;
}
.account-card:hover {
  filter: none;
  border-color: #94a9d2;
}
.account-card.active {
  border-color: #5d7bb8;
  box-shadow: 0 0 0 2px #5d7bb810;
}
.account-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.account-name {
  font-size: 16px;
  font-weight: 650;
}
.account-card code {
  font-size: 14px;
  color: #53647b;
}
.account-card-stats {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #edf0f6;
  padding-top: 13px;
  margin-top: 14px;
  font-size: 14px;
  color: #53647b;
}
.risk-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin: 29px 0 18px;
}
.risk-toolbar h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}
.risk-toolbar .muted {
  font-size: 14px;
}
.risk-periods {
  background: #e9edf4;
  border: 1px solid #dfe5ee;
  padding: 3px;
  display: flex;
  border-radius: 7px;
}
.risk-periods button {
  background: transparent;
  color: #53647b;
  padding: 7px 14px;
  font-size: 14px;
  border-radius: 5px;
}
.risk-periods button.selected {
  background: white;
  color: #334c7b;
  box-shadow: 0 2px 4px #182d4c0b;
}
.risk-tabs {
  display: flex;
  gap: 23px;
  border-bottom: 1px solid #dce3ee;
  margin: 0 0 23px;
  overflow: auto;
}
.risk-tabs button {
  padding: 12px 0;
  background: transparent;
  color: #53647b;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.risk-tabs button.selected {
  color: #365faa;
  border-color: #577bc1;
}
.risk-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 19px;
}
.risk-kpi {
  background: #fff;
  border: 1px solid #e0e5ee;
  border-radius: 8px;
  padding: 19px 17px;
  min-width: 0;
}
.kpi-label {
  font-size: 14px;
  color: #53647b;
}
.risk-kpi strong {
  display: block;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.9px;
  margin: 15px 0 11px;
  color: #293d5d;
  overflow-wrap: anywhere;
}
.risk-kpi small {
  font-size: 13px;
  line-height: 1.5;
  color: #53647b;
  display: block;
}
.risk-kpi.amber strong {
  color: #aa783c;
}
.risk-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.risk-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.risk-panel {
  background: white;
  border: 1px solid #e0e5ee;
  border-radius: 9px;
  padding: 22px;
  margin-bottom: 18px;
  min-width: 0;
}
.risk-two > .risk-panel,
.risk-three > .risk-panel {
  margin-bottom: 0;
}
.risk-two,
.risk-three {
  margin-bottom: 18px;
}
.r-heading {
  margin-bottom: 19px;
}
.r-heading h2 {
  font-size: 15px;
  letter-spacing: 0;
  color: #3a4b68;
}
.r-heading p {
  font-size: 14px;
  line-height: 1.6;
  color: #53647b;
  margin: 6px 0 0;
}
.risk-pair {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 0;
  border-bottom: 1px solid #f0f3f7;
  font-size: 14px;
}
.risk-pair > span {
  color: #53647b;
}
.risk-pair > b {
  font-weight: 550;
  text-align: right;
  overflow-wrap: anywhere;
}
.risk-empty {
  padding: 28px 10px;
  color: #53647b;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
  background: #fafbfe;
  border-radius: 7px;
}
.attention-row {
  display: flex;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid #f0f3f7;
}
.attention-row i {
  font-style: normal;
  background: #fff1df;
  color: #b4874a;
  width: 21px;
  height: 21px;
  border-radius: 5px;
  text-align: center;
  font-size: 15px;
  line-height: 21px;
  flex-shrink: 0;
}
.attention-row.critical i {
  color: #b65c5c;
  background: #f9e8e8;
}
.attention-row.unknown i {
  color: #8065a2;
  background: #f0ecf8;
}
.attention-row b {
  font-size: 14px;
  font-weight: 550;
}
.attention-row p {
  font-size: 14px;
  margin: 5px 0 0;
  color: #53647b;
  line-height: 1.5;
}
.risk-definition {
  background: #edf1f8;
  border: 1px solid #e1e7f2;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 0 0 18px;
  font-size: 14px;
  color: #637796;
  line-height: 1.8;
}
.risk-definition b {
  font-size: 14px;
  font-weight: 600;
}
.risk-definition p {
  font-size: 14px;
  color: #53647b;
  margin: 5px 0 0;
}
.risk-chart {
  height: 170px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  border-bottom: 1px solid #e8edf4;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 41px,
    #f2f4f8 41px,
    #f2f4f8 42px
  );
}
.risk-chart-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1px;
  min-width: 0;
  height: 100%;
}
.risk-chart-bar i {
  display: block;
  border-radius: 2px 2px 0 0;
  min-height: 0;
}
.chart-success {
  background: #6b8ab9;
}
.chart-failure {
  background: #d3a273;
}
.risk-chart-axis {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #53647b;
  padding-top: 11px;
}
.chart-legend {
  font-size: 13px;
  color: #53647b;
  margin: 16px 0 0;
}
.breakdown-row {
  margin: 14px 0;
}
.breakdown-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: #53647b;
  margin-bottom: 7px;
}
.breakdown-row b {
  font-weight: 500;
  color: #4a5d7a;
}
.breakdown-track {
  height: 5px;
  border-radius: 4px;
  background: #f1f4f8;
}
.breakdown-track i {
  display: block;
  height: 5px;
  border-radius: 4px;
  background: #829bc2;
}
.risk-source {
  font-size: 14px;
  color: #53647b;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.risk-quality-banner {
  background: #fff1dc;
  color: #946c32;
  font-size: 14px;
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.requirements-group {
  padding: 12px 0;
  border-bottom: 1px solid #edf1f6;
}
.requirements-group h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 7px;
}
.requirements-group p {
  font-size: 14px;
  color: #53647b;
  margin: 0;
}
.requirements-group code {
  display: block;
  font-size: 14px;
  color: #947148;
  background: #faf5ec;
  margin: 5px 0;
  padding: 7px;
  overflow-wrap: anywhere;
}
.risk-table-wrap {
  overflow: auto;
}
.risk-table-wrap table {
  font-size: 14px;
}
.risk-table-wrap th {
  font-size: 13px;
  padding: 12px 10px;
  white-space: nowrap;
}
.risk-table-wrap td {
  padding: 14px 10px;
  max-width: 240px;
  overflow-wrap: anywhere;
  color: #65758f;
}
.risk-table-wrap td:first-child {
  font-size: 13px;
  color: #53647b;
}
.risk-panel > a {
  font-size: 14px;
  color: #597eb9;
}
footer {
  margin-top: 25px;
}
@media (min-width: 1600px) {
  main {
    padding: 0 55px;
  }
  .risk-page-head h1 {
    font-size: 34px;
  }
  .risk-panel {
    padding: 27px;
  }
  .risk-kpi {
    padding: 24px;
  }
  .risk-kpi strong {
    font-size: 32px;
  }
}
@media (max-width: 1150px) {
  .risk-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .risk-three {
    grid-template-columns: 1fr;
  }
  .account-card-stats {
    flex-wrap: wrap;
  }
  .risk-tabs {
    gap: 16px;
  }
}
@media (max-width: 950px) {
  aside {
    width: 190px;
  }
  #shell {
    grid-template-columns: 190px 1fr;
  }
  main {
    padding: 0 22px;
  }
  .risk-two {
    grid-template-columns: 1fr;
  }
  .risk-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-cards {
    grid-template-columns: 1fr;
  }
  .risk-head-meta {
    display: none;
  }
  .risk-page-head h1 {
    font-size: 26px;
  }
  .risk-global {
    flex-wrap: wrap;
    gap: 12px;
  }
}
@media (max-width: 650px) {
  aside {
    width: auto;
  }
  #shell {
    display: block;
  }
  .risk-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .risk-kpi {
    padding: 15px;
  }
  .risk-kpi strong {
    font-size: 24px;
  }
  .risk-page-head {
    margin-top: 22px;
  }
  .risk-global {
    font-size: 14px;
  }
  .risk-panel {
    padding: 17px;
  }
  .risk-tabs {
    gap: 17px;
  }
}
