.deck.security {
  --deck-width: var(--wide);
}

.security.failed .deck-bar {
  background: color-mix(in srgb, #9b111e 18%, transparent);
  border-bottom-color: color-mix(in srgb, #9b111e 45%, transparent);
  color: #fff;
}

.security-divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem auto;
  max-width: var(--wide);
  width: 100%;
}

.security-attempts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto)) max-content;
  list-style: none;
  margin: 0;
  padding: 0;
}

.security.lengths .security-attempts {
  grid-template-columns: repeat(4, minmax(0, auto)) max-content;
}

.security-attempts li {
  display: contents;
}

.security-attempts span {
  border-top: 1px solid var(--edge);
  padding: 0.7rem clamp(0.2rem, 0.75vw, 0.5rem);
}

.security-attempts li:first-child span {
  border-top: 0;
}

.security-attempts li span:first-child {
  padding-left: clamp(0.6rem, 2vw, 1.25rem);
}

.security-attempts li span:last-child {
  padding-right: clamp(0.6rem, 2vw, 1.25rem);
}

.security-columns span {
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border-bottom: 1px solid var(--rule);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.security-attempts span {
  font-size: clamp(0.62rem, 1.6vw, 0.9rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attempt-code {
  font-family: var(--mono);
}

.attempt-ip,
.attempt-secret-length,
.attempt-time {
  color: var(--muted);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.security-empty {
  color: var(--muted);
  margin: 0;
  padding: 1.25rem;
}
