.library-page {
  max-height: 78dvh;
  overflow-y: auto;
  overflow-wrap: anywhere;
}
.library-page .library-toolbar,
.library-formatbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.25rem 0 1rem;
}
.library-toolbar button,
.library-formatbar button {
  padding: 0.45rem 0.7rem;
}
.library-page fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.library-list {
  margin: 1rem 0;
  color: var(--muted);
}
.library-row {
  display: block;
  width: 100%;
  padding: 0.75rem 0.4rem;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.library-row:hover,
.library-row:focus-visible {
  background: var(--surface);
}
.library-page .library-pin {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin: 0.5rem 0;
}
.library-pin input {
  width: 1rem;
  height: 1rem;
  margin: 0;
}
.library-formatbar .library-pin {
  width: 100%;
}
.library-preview iframe {
  width: 100%;
  height: 12rem;
  border: 0;
  border-radius: 0.3rem;
  background: #fff;
}
.library-rich,
.library-files {
  margin: 0.7rem 0;
}
.library-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0.65rem 0;
}
.library-page input[hidden],
.library-preview[hidden] {
  display: none;
}
@media (max-width: 640px) {
  .library-page {
    max-height: calc(100dvh - 65px);
  }
}
.one-time-values {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: all;
}
.totp-code {
  padding: 0.5rem;
  background: white;
}

.provider-dns-details {
  margin-block: 0.75rem;
}
.provider-dns-details summary {
  cursor: pointer;
}
.provider-record {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.provider-record h4,
.provider-record p {
  margin: 0.25rem 0;
}

.auth-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6em;
}
#gate .auth-check input {
  width: auto;
  min-height: 0;
  margin: 0;
}
.auth-trust {
  margin-block: 0.7rem;
}
#deviceNameLabel[hidden] {
  display: none;
}
