.rakucloud-passkey-shell {
  min-height: min(62vh, 680px);
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: #fff;
}

.rakucloud-passkey-card {
  width: min(100%, 420px);
  padding: 32px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
  color: #172033;
}

.rakucloud-passkey-card h1,
.rakucloud-passkey-settings h2 {
  margin: 0 0 16px;
  color: #172033;
  font-size: var(--raku-font-size-page-title);
  font-weight: var(--raku-font-weight-medium);
  line-height: var(--raku-line-height-heading);
}

.rakucloud-passkey-intro,
.rakucloud-passkey-protocol-note {
  margin: 0 0 16px;
  font-size: var(--raku-font-size-md);
  font-weight: var(--raku-font-weight-regular);
  line-height: var(--raku-line-height-body);
}

.rakucloud-passkey-protocol-note {
  padding: 12px 14px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #f7faff;
  color: #35445f;
}

.rakucloud-passkey-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.rakucloud-passkey-actions .button {
  min-height: 44px;
  font-size: var(--raku-font-size-md);
  font-weight: var(--raku-font-weight-regular);
  line-height: var(--raku-line-height-body);
}

.rakucloud-passkey-primary,
.rakucloud-passkey-settings .mainaction {
  background: #2368c4;
  border-color: #2368c4;
}

.rakucloud-passkey-status {
  min-height: 24px;
  margin-top: 12px;
  color: #35445f;
  font-size: var(--raku-font-size-sm);
  font-weight: var(--raku-font-weight-regular);
  line-height: var(--raku-line-height-body);
}

.rakucloud-passkey-status.error,
.rakucloud-passkey-alert {
  color: #a61b1b;
}

.rakucloud-passkey-alert {
  padding: 12px 14px;
  border: 1px solid #e5aaaa;
  border-radius: 8px;
  background: #fff7f7;
  font-size: var(--raku-font-size-sm);
  font-weight: var(--raku-font-weight-regular);
  line-height: var(--raku-line-height-body);
}

.rakucloud-passkey-settings .boxcontent {
  max-width: 840px;
}

.rakucloud-passkey-credentials {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.rakucloud-passkey-credential {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
}

.rakucloud-passkey-credential-main {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 8px;
}

.rakucloud-passkey-credential-main input {
  width: min(100%, 340px);
}

.rakucloud-passkey-credential-main small {
  overflow-wrap: anywhere;
  color: #66758c;
  font-size: var(--raku-font-size-xs);
  font-weight: var(--raku-font-weight-regular);
  line-height: var(--raku-line-height-tight);
}

.rakucloud-passkey-sync {
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid #bdd1ee;
  border-radius: 999px;
  color: #235b9f;
  font-size: var(--raku-font-size-xs);
  font-weight: var(--raku-font-weight-regular);
  line-height: var(--raku-line-height-tight);
}

.rakucloud-passkey-credential-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rakucloud-passkey-credential-actions .danger {
  color: #a61b1b;
  border-color: #d9a3a3;
}

.rakucloud-passkey-busy {
  cursor: progress;
}

[data-passkey-action]:focus-visible,
.rakucloud-passkey-credential-main input:focus-visible {
  outline: 3px solid rgba(35, 104, 196, .32);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .rakucloud-passkey-card {
    padding: 24px 20px;
  }

  .rakucloud-passkey-credential {
    align-items: stretch;
    flex-direction: column;
  }

  .rakucloud-passkey-credential-actions .button {
    flex: 1;
  }
}
