:root {
  font-family: Inter, ui-sans-serif, system-ui;
  color: #19242b;
  background: #f3f6f5;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
main {
  width: min(760px, calc(100% - 32px));
  margin: 72px auto;
}
header {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}
.mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: #173b35;
  color: white;
  border-radius: 14px;
  font-size: 28px;
  font-weight: 800;
}
h1 {
  font-size: 28px;
  margin: 0;
}
header p {
  margin: 2px 0;
  color: #63716f;
}
section {
  background: white;
  border: 1px solid #dbe3e1;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 28px #173b350d;
}
h2 {
  margin-top: 0;
}
.button {
  display: inline-block;
  border: 0;
  background: #176b5c;
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 9px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.button:hover {
  background: #12564a;
}
.link {
  background: none;
  border: 0;
  color: #176b5c;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.account {
  display: flex;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid #e5eae9;
  margin-bottom: 28px;
}
.status {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.status h2 {
  margin-bottom: 8px;
}
.status span {
  font-weight: 800;
  font-size: 24px;
}
.bar {
  height: 12px;
  background: #e3e9e7;
  border-radius: 99px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #1b806d;
  transition: width 0.3s;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.metrics div {
  background: #f5f8f7;
  padding: 16px;
  border-radius: 10px;
}
.metrics strong,
.metrics span {
  display: block;
}
.metrics strong {
  font-size: 19px;
}
.metrics span {
  font-size: 13px;
  color: #66726f;
}
.danger {
  color: #a12b2b;
  margin-right: 16px;
}
#error {
  color: #a12b2b;
  font-weight: 600;
}
@media (max-width: 600px) {
  main {
    margin: 28px auto;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  section {
    padding: 22px;
  }
}
