.bs2fa-admin-wrap .bs2fa-card,
.bs2fa-login-card,
.bs2fa-card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 16px;
  padding: 22px;
  max-width: 1100px;
  box-shadow: 0 6px 20px rgba(0,0,0,.04);
}

.bs2fa-grid {
  display: grid;
  gap: 16px;
}

.bs2fa-metrics {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 18px 0;
}

.bs2fa-metric-card,
.bs2fa-mini-stat {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
}

.bs2fa-metric-card span,
.bs2fa-mini-stat span {
  display: block;
  color: #64748b;
  margin-bottom: 6px;
}

.bs2fa-metric-card strong,
.bs2fa-mini-stat strong {
  font-size: 22px;
  line-height: 1.2;
  color: #0f172a;
}

.bs2fa-settings-grid {
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}

.bs2fa-card-section {
  background: #fbfdff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 4px 18px 14px;
}

.bs2fa-profile-stats {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 18px;
}

.bs2fa-section {
  padding-top: 8px;
  margin-top: 18px;
  border-top: 1px solid #eef2f7;
}

.bs2fa-highlight {
  margin: 16px 0;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid #cfe3ff;
  border-left: 4px solid #2271b1;
  border-radius: 10px;
}

.bs2fa-passkey-list {
  margin: 16px 0 0;
}

.bs2fa-passkey-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f1;
}

.bs2fa-passkey-status {
  margin-top: 10px;
  color: #1d2327;
  min-height: 20px;
}

.bs2fa-backup-output pre {
  display: inline-block;
  padding: 16px;
  background: #111827;
  color: #fff;
  border-radius: 12px;
  line-height: 1.8;
  margin-top: 12px;
}

.bs2fa-login-card {
  margin: 24px auto;
}

.bs2fa-login-card label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.bs2fa-login-card input[type="text"] {
  width: 100%;
  max-width: 340px;
  min-height: 42px;
}

.bs2fa-log-card {
  margin-top: 20px;
}

.bs2fa-log-head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.bs2fa-log-table-wrap {
  overflow: auto;
}

.bs2fa-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.bs2fa-pill-info {
  background: #e0f2fe;
  color: #075985;
}

.bs2fa-pill-warning {
  background: #fef3c7;
  color: #92400e;
}

.bs2fa-pill-error {
  background: #fee2e2;
  color: #991b1b;
}

.bs2fa-activity-list {
  margin: 12px 0 0 18px;
}

.bs2fa-activity-list li {
  margin-bottom: 8px;
}

@media (max-width: 782px) {
  .bs2fa-passkey-list li,
  .bs2fa-log-head {
    display: block;
  }

  .bs2fa-passkey-list li .button-link-delete {
    display: inline-block;
    margin-top: 8px;
  }
}

.bs2fa-log-actions,
.bs2fa-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bs2fa-trust-device {
  margin: 14px 0;
}

.bs2fa-trust-device label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bs2fa-filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 16px 0 18px;
  align-items: end;
}

.bs2fa-filter-field label,
.bs2fa-label-grid label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.bs2fa-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bs2fa-label-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.bs2fa-label-grid-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(220px, 1fr);
  gap: 12px;
  align-items: center;
}

.bs2fa-muted {
  color: #64748b;
}

.bs2fa-log-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.bs2fa-pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bs2fa-trust-name {
  margin: 10px 0 14px;
}

.bs2fa-trust-name input {
  width: 100%;
  max-width: 360px;
}

@media (max-width: 782px) {
  .bs2fa-label-grid-row,
  .bs2fa-log-foot {
    display: block;
  }

  .bs2fa-label-grid-row input {
    margin-top: 8px;
  }
}


.bs2fa-totp-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.bs2fa-totp-qr-wrap {
  text-align: center;
}

.bs2fa-totp-qr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 260px;
  min-height: 260px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-sizing: border-box;
}

.bs2fa-totp-qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.bs2fa-totp-setup-fields code {
  word-break: break-all;
}

.bs2fa-qr-actions {
  justify-content: center;
}

@media (max-width: 782px) {
  .bs2fa-totp-grid {
    grid-template-columns: 1fr;
  }

  .bs2fa-totp-qr {
    max-width: 220px;
    min-height: 220px;
  }
}
