.library-piece {
  --library-risk: #87344a;
}
.library-piece .library-wait {
  position: relative;
  display: grid;
  grid-template-columns: 0 3fr 0 10fr 0 4fr 0;
  list-style: none;
  margin: 9px 22px 0;
  padding: 0;
  border-bottom: 2px solid var(--teal);
}
.library-wait li { position: relative; display: grid; justify-items: center; justify-self: center; width: 48px; padding-bottom: 7px; line-height: 1.4; }
.library-wait li:nth-child(2) { grid-column: 3; }
.library-wait li:nth-child(3) { grid-column: 5; }
.library-wait li:nth-child(4) { grid-column: 7; }
.library-wait li::after { content: ""; position: absolute; top: calc(100% - 2px); left: calc(50% - 1px); width: 2px; height: 5px; background: var(--teal); }
.library-wait time { font-size: .9rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.library-wait b { font-size: .875rem; }
.library-piece .library-delay { position: relative; width: calc((100% - 44px) * 10 / 17); margin: 4px 0 0 calc(22px + (100% - 44px) * 3 / 17); padding: 3px 0; border-top: 2px solid var(--library-risk); background: var(--pink); color: var(--ink); font-size: .85rem; }
.library-where { margin-top: 5px; color: var(--library-risk); font-size: .875rem; }
.library-tip { display: grid; gap: 3px; background: var(--mint); padding: 7px 4px; margin-top: 10px; border-top: 1px solid var(--teal); }
.library-tip strong { color: var(--teal); }
.library-tip span { font-size: .88rem; line-height: 1.45; }
.library-roles { display: grid; margin-top: 3px; }
.library-roles > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(38px, .65fr) minmax(0, 1fr); align-items: center; border-top: 1px solid var(--line); gap: 2px; }
.library-roles > div:last-child { border-bottom: 1px solid var(--line); }
.library-roles img { width: 48px; }
.library-roles p { display: grid; justify-items: center; align-content: center; line-height: 1.25; padding-block: 3px; }
.library-roles b { font-size: .875rem; }
.library-role-action { font-size: .85rem; color: var(--teal); }
.library-role-action .flow-arrow { width: 100%; margin-top: 4px; }
.library-clock {
  display: grid;
  grid-template-columns: 0 3fr 0 5fr 0;
  align-items: start;
  margin-inline: 26px;
  padding-block: 5px;
}
.library-clock > div:not(.library-elapsed) { display: grid; justify-items: center; justify-self: center; gap: 2px; line-height: 1.25; width: 52px; }
.library-clock time { font-size: .87rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.library-clock b { font-size: .9rem; }
.library-backup { grid-column: 1; }
.library-outage { grid-column: 3; color: var(--library-risk); }
.library-restore { grid-column: 5; }
.library-elapsed { grid-column: 2 / 5; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); margin-top: 4px; }
.library-elapsed p { display: grid; position: relative; align-content: start; font-size: .82rem; padding: 5px 2px; line-height: 1.25; border-block-start: 3px solid var(--teal); background: var(--mint); }
.library-elapsed p:first-child { background: var(--pink); border-color: var(--library-risk); }
.library-elapsed p::before, .library-elapsed p:last-child::after { content: ""; position: absolute; left: 0; top: -7px; width: 2px; height: 10px; background: var(--ink); }
.library-elapsed p:last-child::after { left: auto; right: 0; }
.library-elapsed b { white-space: nowrap; }
.library-targets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; margin-top: 6px; border-top: 1px solid var(--ink); }
.library-targets p { font-size: .85rem; display: grid; gap: 2px; line-height: 1.35; padding: 6px 3px; }
.library-targets p:first-child { background: var(--pink); }
.library-targets p:last-child { background: var(--mint); }
.library-targets strong { border-top: 1px solid var(--line); margin-top: 3px; padding-top: 3px; }
.library-targets span { white-space: nowrap; }
