body.prat-auth-open {
  overflow: hidden !important;
}

.prat-account-trigger {
  margin-right: 10px !important;
  background: linear-gradient(135deg, #5a61ff, #7b5cff) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.prat-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(12, 18, 38, .72);
  backdrop-filter: blur(12px);
}

.prat-modal[hidden] {
  display: none !important;
}

.prat-shell {
  width: min(980px, 100%);
  max-height: calc(100vh - 44px);
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 30px 100px rgba(6, 12, 28, .42);
}

.prat-brand {
  position: relative;
  min-height: 610px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 22px;
  padding: 42px 34px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 22% 16%, rgba(255,255,255,.22), transparent 28%),
    radial-gradient(circle at 78% 78%, rgba(50,235,214,.24), transparent 32%),
    linear-gradient(155deg, #5b61f5 0%, #6551e8 48%, #7e4ec5 100%);
}

.prat-brand::before,
.prat-brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
}

.prat-brand::before {
  width: 280px;
  height: 280px;
  top: -85px;
  right: -120px;
}

.prat-brand::after {
  width: 210px;
  height: 210px;
  left: -110px;
  bottom: 90px;
}

.prat-brand-mark {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 24px;
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 18px 38px rgba(20,23,92,.28);
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 900;
}

.prat-brand-copy {
  position: relative;
  z-index: 1;
}

.prat-brand-copy span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .8;
}

.prat-brand-copy strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 31px;
  line-height: 1.03;
}

.prat-brand-copy p {
  max-width: 215px;
  margin: 15px 0 0;
  font-size: 14px;
  line-height: 1.55;
  opacity: .84;
}

.prat-content {
  position: relative;
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 42px 48px 38px;
  color: #151d2d;
  background:
    radial-gradient(circle at 92% 6%, rgba(97,86,255,.08), transparent 24%),
    #fff;
}

.prat-close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef0f6;
  color: #283044;
  font-size: 26px;
  cursor: pointer;
}

.prat-header {
  padding-right: 48px;
}

.prat-kicker {
  display: block;
  margin-bottom: 8px;
  color: #6756e8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.prat-header h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(30px, 4vw, 43px);
  line-height: 1.02;
  color: #151b2d;
}

.prat-header p {
  margin: 12px 0 0;
  color: #697386;
  font-size: 14px;
  line-height: 1.55;
}

.prat-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 28px 0 22px;
  padding: 5px;
  border-radius: 16px;
  background: #f0f2f7;
}

.prat-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #616a7c;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.prat-tabs button.is-active {
  background: #fff;
  color: #5e55df;
  box-shadow: 0 6px 18px rgba(40,48,78,.1);
}

.prat-message {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 13px;
  background: #eef2ff;
  color: #3f4c75;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.prat-message[data-type="error"] {
  background: #fff0f1;
  color: #a0192c;
}

.prat-message[data-type="success"] {
  background: #eaf8f0;
  color: #17663d;
}

.prat-panel {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.prat-panel[hidden] {
  display: none !important;
}

.prat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.prat-panel label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.prat-panel label > span {
  color: #364054;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .03em;
}

.prat-panel input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #d9deea;
  border-radius: 13px;
  outline: 0;
  background: #fff;
  color: #151d2d;
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.prat-panel input:focus {
  border-color: #7567f1;
  box-shadow: 0 0 0 4px rgba(117,103,241,.13);
}

.prat-panel small {
  color: #7b8394;
  font-size: 11px;
  line-height: 1.45;
}

.prat-primary,
.prat-secondary,
.prat-link {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.prat-primary {
  min-height: 49px;
  padding: 0 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #5f65f4, #7655e6);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 13px 28px rgba(91,86,224,.24);
}

.prat-secondary {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 13px;
  background: #eef0f6;
  color: #374054;
  font-weight: 850;
}

.prat-link {
  align-self: center;
  padding: 4px 8px;
  background: transparent;
  color: #6558df;
  font-size: 13px;
  font-weight: 850;
}

.prat-primary:disabled,
.prat-secondary:disabled,
.prat-panel input:disabled {
  opacity: .58;
  cursor: wait;
}

.prat-info-box {
  padding: 14px 15px;
  border: 1px solid #e1e4ed;
  border-radius: 14px;
  background: #f8f9fc;
  color: #535e72;
  font-size: 13px;
  line-height: 1.5;
}

.prat-account {
  align-items: center;
  padding: 12px 0 4px;
  text-align: center;
}

.prat-avatar {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: linear-gradient(145deg, #5f65f4, #8451d2);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 39px;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(91,86,224,.24);
}

.prat-account h3 {
  margin: 5px 0 0;
  font-family: Georgia, serif;
  font-size: 28px;
  color: #171d2d;
}

.prat-account p {
  margin: 0;
  color: #778093;
}

.prat-account-actions {
  width: min(420px, 100%);
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 760px) {
  .prat-modal {
    padding: 10px;
  }

  .prat-shell {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 20px);
    border-radius: 23px;
  }

  .prat-brand {
    min-height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 22px 24px;
  }

  .prat-brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    font-size: 31px;
  }

  .prat-brand-copy strong {
    font-size: 23px;
  }

  .prat-brand-copy p,
  .prat-brand-copy span {
    display: none;
  }

  .prat-content {
    max-height: calc(100vh - 125px);
    padding: 30px 22px 26px;
  }

  .prat-grid {
    grid-template-columns: 1fr;
  }
}
