.up-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #cce1e7;
  border-radius: 12px;
  background: #fff;
  color: #176178;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
.up-button svg {
  flex: none;
}
.up-button:hover {
  background: #eff9fc;
  border-color: #8cc6d7;
}
.up-button:focus-visible {
  outline: 3px solid #48b6d5;
  outline-offset: 3px;
}
.up-button:disabled {
  opacity: 0.55;
  cursor: default;
}
.up-primary {
  background: #009fc6;
  color: #fff;
  border-color: #009fc6;
}
.up-primary:hover {
  background: #0085a8;
  color: #fff;
}
.up-danger {
  color: #b73743;
  background: #fff;
}
.up-button[hidden] {
  display: none !important;
}
.up-login {
  margin-top: 14px;
}
.up-login-button {
  width: 100%;
  background: #eef8fb;
  border-color: #c9e7ee;
  color: #176178;
}
.up-login [data-up-status]:empty {
  display: none;
}
.up-login [data-up-status] {
  font-size: 13px;
  margin: 8px 0 0;
  color: #596f79;
  line-height: 1.45;
}
.up-section .ps-content {
  min-width: 0;
}
.up-privacy {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #52777f !important;
}
.up-privacy svg {
  flex: none;
}
.up-keys {
  display: grid;
  gap: 10px;
}
.up-key {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid #dceaf0;
  border-radius: 14px;
  background: #f8fbfc;
  min-width: 0;
}
.up-key-info {
  display: grid;
  gap: 4px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.up-key-info strong {
  font-size: 15px;
  color: #204652;
}
.up-key-info small {
  font-size: 12px;
  line-height: 1.5;
  color: #657e88;
}
.up-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.up-key .up-button {
  font-size: 13px;
  padding: 8px 10px;
}
.up-empty {
  padding: 16px;
  margin: 0;
  border: 1px dashed #bfd7df;
  border-radius: 14px;
  color: #627d88;
  background: #f9fcfd;
}
.up-inactive {
  font-size: 12px;
  color: #9b5b12;
}
.up-hint,
.up-status,
[data-up-account] [data-up-status] {
  font-size: 13px;
  line-height: 1.6;
  color: #627b85;
  margin: 10px 0;
}
.up-hint:empty,
[data-up-account] [data-up-status]:empty {
  display: none;
}
[data-up-add] {
  margin-top: 14px;
}
.up-dialog {
  box-sizing: border-box;
  width: min(480px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid #dce8ec;
  border-radius: 22px;
  padding: 24px;
  color: #244a59;
  background: #fff;
  box-shadow: 0 24px 90px #15353d38;
}
.up-dialog::backdrop {
  background: #122a3e80;
  backdrop-filter: blur(3px);
}
.up-dialog h2 {
  font-size: 23px;
  line-height: 1.25;
  margin: 0 0 12px;
  font-weight: 700;
}
.up-field {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0;
}
.up-field input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #bdd6df;
  border-radius: 10px;
  background: #fff;
  color: #204652;
  font: inherit;
  font-size: 16px;
}
.up-field input:focus {
  outline: 2px solid #20a9cb;
  outline-offset: 2px;
}
.up-dialog .up-actions {
  justify-content: flex-end;
  margin-top: 18px;
}
@media (max-width: 620px) {
  .up-key {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .up-key .up-actions {
    gap: 6px;
  }
  .up-dialog {
    padding: 20px;
    border-radius: 18px;
  }
  .up-dialog h2 {
    font-size: 21px;
  }
  .up-section .ps-intro p {
    font-size: 13px;
  }
}
