.backup-dossier {
  --backup-accent: #9d6720;
  background:
    linear-gradient(90deg, rgb(23 58 64 / 4%) 1px, transparent 1px) 0 0 / 32px
    32px,
    #fffdf8;
  border: 1px solid #c8d3d1;
  border-radius: 4px 22px 22px 4px;
  box-shadow: 0 18px 50px rgb(23 58 64 / 9%);
  overflow: hidden;
  position: relative;
}

.backup-dossier::before {
  background: var(--backup-accent);
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 5px;
}

.backup-dossier[data-backup-status="ready"] {
  --backup-accent: #2f7467;
}

.backup-dossier[data-backup-status="blocked"] {
  --backup-accent: #9b3b31;
}

.backup-dossier[data-backup-status="unavailable"] {
  --backup-accent: #75807d;
}

.backup-dossier__masthead {
  align-items: center;
  background: linear-gradient(120deg, #173a40, #204d52 70%, #2f7467);
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 190px;
  padding: 30px 34px 30px 38px;
}

.backup-dossier__masthead p,
.backup-ledger > p {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 8px;
}

.backup-dossier__masthead p {
  color: #b9d2cf;
}

.backup-dossier__masthead h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  margin: 0 0 12px;
}

.backup-dossier__summary {
  color: rgb(255 255 255 / 74%);
  display: block;
  line-height: 1.65;
  max-width: 650px;
}

.backup-dossier__seal {
  align-items: center;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 50%;
  display: flex;
  flex: 0 0 112px;
  height: 112px;
  justify-content: center;
  position: relative;
  width: 112px;
}

.backup-dossier__seal i {
  border: 1px dashed rgb(255 255 255 / 38%);
  border-radius: inherit;
  inset: 8px;
  position: absolute;
}

.backup-dossier__seal b {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.backup-dossier__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.backup-ledger {
  border-bottom: 1px solid #d8d3c6;
  min-height: 245px;
  padding: 28px 30px;
}

.backup-ledger:nth-child(odd) {
  border-right: 1px solid #d8d3c6;
}

.backup-ledger > p {
  color: #75807d;
}

.backup-ledger h3 {
  color: #173a40;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: clamp(18px, 3vw, 25px);
  overflow-wrap: anywhere;
}

.backup-ledger dl {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
}

.backup-ledger dl div {
  align-items: baseline;
  border-top: 1px dotted #c8c3b8;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-top: 8px;
}

.backup-ledger dt {
  color: #75807d;
  font-size: 12px;
}

.backup-ledger dd {
  color: #243d40;
  font-weight: 700;
  margin: 0;
  text-align: right;
}

.backup-ledger__counts {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 22px;
}

.backup-ledger__counts span {
  background: #edf4f3;
  border: 1px solid #d1dfdc;
  display: grid;
  min-height: 76px;
  padding: 13px 15px;
}

.backup-ledger__counts b {
  color: #173a40;
  font-family: var(--serif);
  font-size: 25px;
}

.backup-ledger__counts small {
  color: #687c7f;
}

.backup-ledger--issues ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.backup-ledger--issues li {
  align-items: center;
  background: #f4eee4;
  border-left: 3px solid #d9a64b;
  display: flex;
  gap: 12px;
  padding: 11px 13px;
}

.backup-ledger--issues li[data-severity="blocked"] {
  background: #f6e9e6;
  border-color: #9b3b31;
}

.backup-ledger--issues li[data-severity="ready"] {
  background: #e7f0eb;
  border-color: #2f7467;
}

.backup-ledger--issues li > span {
  align-items: center;
  border: 1px solid currentcolor;
  border-radius: 50%;
  color: var(--backup-accent);
  display: flex;
  flex: 0 0 28px;
  font-size: 12px;
  height: 28px;
  justify-content: center;
}

.backup-ledger--issues li div {
  display: grid;
  gap: 3px;
}

.backup-ledger--issues li b {
  color: #243d40;
  font-size: 13px;
}

.backup-ledger--issues li small {
  color: #75807d;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 10px;
}

.backup-dossier footer {
  align-items: center;
  color: #687c7f;
  display: grid;
  font-size: 11px;
  gap: 8px 20px;
  grid-template-columns: 1fr 1fr auto;
  padding: 18px 30px 20px 34px;
}

@media (max-width: 800px) {
  .backup-dossier__masthead {
    align-items: flex-start;
    gap: 24px;
    padding: 26px 24px 28px;
  }

  .backup-dossier__seal {
    flex-basis: 82px;
    height: 82px;
    width: 82px;
  }

  .backup-dossier__grid {
    grid-template-columns: 1fr;
  }

  .backup-ledger:nth-child(odd) {
    border-right: 0;
  }

  .backup-dossier footer {
    grid-template-columns: 1fr;
  }
}
