/* Approved account panels: isolated from the landing and learning shells. */
.kum-auth {
  --auth-primary: #5a46db;
  --auth-primary-hover: #4937c1;
  --auth-ink: #1c1832;
  --auth-muted: #645d78;
  --auth-border: #e3dfef;
  --auth-error: #a23350;
  --auth-motion: 180ms;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 60;
  color: var(--auth-ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.45;
  isolation: isolate;
}
.kum-auth, .kum-auth * { box-sizing: border-box; }
.kum-auth [hidden], .kum-auth-icons { display: none !important; }
.kum-auth :where(button,input) { font: inherit; }
.kum-auth button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kum-auth svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.kum-auth h2:focus { outline: 0; }
.kum-auth-modal { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.kum-auth-backdrop { position: fixed; inset: 0; background: rgb(23 22 52 / 55%); cursor: default; opacity: 0; transition: opacity var(--auth-motion) ease; }
.kum-auth-modal-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(446px, calc(100% - 32px));
  min-height: 100%;
  margin: 0 auto;
  padding: 24px 0;
  padding-block: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-bottom));
  pointer-events: none;
}
.kum-auth-panel {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  margin: auto 0;
  padding: 30px 32px 25px;
  border: 1px solid #eeebf5;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgb(23 22 52 / 22%), 0 5px 18px rgb(23 22 52 / 8%);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(7px) scale(.99);
  transition: opacity var(--auth-motion) ease, transform var(--auth-motion) ease;
}
.kum-auth[data-open] .kum-auth-backdrop, .kum-auth[data-open] .kum-auth-panel { opacity: 1; }
.kum-auth[data-open] .kum-auth-panel { transform: none; }
.kum-auth-icon-button { display: inline-grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #655c83; }
.kum-auth-icon-button:hover { color: var(--auth-primary); background: #f5f2fd; }
.kum-auth-icon-button svg { width: 20px; height: 20px; }
.kum-auth-close { position: absolute; top: 10px; right: 9px; color: #4d426b; }
.kum-auth-close svg { width: 22px; height: 22px; }
.kum-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin: 0 37px 0 0;
  padding: 3px;
  border: 0;
  border-radius: 12px;
  background: var(--auth-soft, #eee9fa);
}
.kum-auth-tabs > button { min-width: 0; min-height: 40px; padding: 5px 8px; border: 0; border-radius: 10px; color: var(--auth-ink); background: transparent; font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.kum-auth-tabs > button:hover { background: #e8e1f9; }
.kum-auth-tabs > button[aria-selected="true"] { color: #fff; background: var(--auth-primary); box-shadow: 0 2px 4px rgb(65 45 146 / 10%); }
.kum-auth-panel h2 { margin: 24px 0 0; color: var(--auth-ink); font-size: 32px; font-weight: 750; line-height: 1.13; letter-spacing: -.045em; overflow-wrap: anywhere; }
.kum-auth-form { display: grid; gap: 17px; margin: 23px 0 0; }
.kum-auth-field { display: grid; min-width: 0; gap: 7px; color: var(--auth-ink); font-size: 14px; font-weight: 600; line-height: 1.35; }
.kum-auth-field input {
  display: block;
  min-width: 0;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid var(--auth-border);
  border-radius: 11px;
  background: #fdfcfe;
  color: var(--auth-ink);
  font-size: 15px;
  font-weight: 450;
  line-height: normal;
  box-shadow: none;
}
.kum-auth-field input::placeholder { color: #777086; opacity: 1; }
.kum-auth-field input:focus { border-color: #8977e4; outline: 0; box-shadow: 0 0 0 3px rgb(90 70 219 / 10%); }
.kum-auth-field input[aria-invalid="true"] { border-color: var(--auth-error); background: #fffafb; }
.kum-auth-field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgb(162 51 80 / 10%); }
.kum-auth-password { position: relative; display: grid; min-width: 0; }
.kum-auth-password input { padding-right: 48px; }
.kum-auth-password .kum-auth-icon-button { position: absolute; top: 2px; right: 2px; }
.kum-auth-options { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; margin: -5px 0 -4px; }
.kum-auth-check { display: inline-flex; align-items: center; gap: 9px; width: fit-content; min-height: 36px; color: var(--auth-ink); font-size: 13px; font-weight: 450; line-height: 1.4; cursor: pointer; }
.kum-auth-check input { flex: 0 0 auto; margin: 0; width: 18px; height: 18px; accent-color: var(--auth-primary); }
.kum-auth-check input[aria-invalid="true"] { outline: 1px solid var(--auth-error); outline-offset: 2px; }
.kum-auth-link { display: inline; padding: 0; border: 0; background: transparent; color: var(--auth-primary); font-size: inherit; font-weight: 650; text-align: left; text-decoration: none; }
.kum-auth button.kum-auth-link { min-height: 36px; }
.kum-auth-consent .kum-auth-link { text-decoration: underline; text-underline-offset: 2px; }
.kum-auth-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.kum-auth-options .kum-auth-link { font-size: 13px; }
.kum-auth .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; width: 100%; padding: 11px 14px; border: 0; border-radius: 11px; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.35; text-decoration: none; cursor: pointer; }
.kum-auth .button-primary { color: #fff; background: var(--auth-primary); box-shadow: 0 3px 9px rgb(90 70 219 / 12%); }
.kum-auth .button-primary:hover:not(:disabled) { background: var(--auth-primary-hover); }
.kum-auth .button:disabled { cursor: wait; opacity: .65; }
.kum-auth-switch { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--auth-border); text-align: center; color: var(--auth-ink); font-size: 13px; font-weight: 450; line-height: 1.6; }
.kum-auth-switch .kum-auth-link { margin-left: 3px; }
.kum-auth-error { margin: 0; color: var(--auth-error); font-size: 13px; font-weight: 500; line-height: 1.45; }
.kum-auth-error-box { position: relative; padding: 11px 12px 11px 39px; border: 1px solid #f4e2e8; border-radius: 11px; background: #fff5f7; }
.kum-auth-error-box::before { content: '!'; position: absolute; top: 11px; left: 12px; display: grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 700; line-height: 1; }
.kum-auth-consent { display: grid; gap: 6px; }
.kum-auth-local-note { margin: 0; color: var(--auth-muted); font-size: 12px; font-weight: 450; line-height: 1.4; }
.kum-auth-description { margin: 13px 0 0; color: var(--auth-muted); font-size: 15px; font-weight: 450; line-height: 1.55; overflow-wrap: anywhere; }
.kum-auth-back { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.kum-auth-back svg { width: 18px; height: 18px; }
.kum-auth-switch-actions { display: grid; justify-items: center; gap: 0; }
.kum-auth-switch-actions .kum-auth-link { margin-left: 0; }
.kum-auth-heading { display: flex; flex-direction: column; align-items: center; gap: 17px; margin-top: 28px; text-align: center; }
.kum-auth-heading h2 { margin: 0; }
.kum-auth-state-icon { order: -1; display: grid; place-items: center; flex: 0 0 auto; width: 68px; height: 68px; border: 0; border-radius: 50%; color: var(--auth-primary); background: #eee9fa; }
.kum-auth-state-icon svg { width: 33px; height: 33px; stroke-width: 1.7; }
.kum-auth-state-icon.is-success { color: #158a60; background: #def5e9; }
.kum-auth-flow-action { margin-top: 24px; }
.kum-auth-reset-note { margin: -1px 0 0; color: var(--auth-muted); font-size: 13px; font-weight: 450; line-height: 1.5; text-align: center; }
.kum-auth-preview-note { margin: 11px 0 0; color: var(--auth-muted); font-size: 13px; line-height: 1.5; }
.kum-auth[data-auth-mode="sent"] .kum-auth-description,
.kum-auth[data-auth-mode="updated"] .kum-auth-description,
.kum-auth[data-auth-mode="expired"] .kum-auth-description { text-align: center; }
.kum-auth :is(button,a,input):focus-visible { outline: 2px solid #7967e6; outline-offset: 3px; }
.kum-auth-form [data-auth-server-error] { margin: 0; }
@media (max-width: 700px) {
  .kum-auth-modal-layout { padding-block: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-bottom)); }
  .kum-auth-panel { padding: 24px 21px 21px; border-radius: 22px; }
  .kum-auth-panel h2 { font-size: clamp(26px, 7.5vw, 30px); }
  .kum-auth-close { top: 7px; right: 6px; }
  .kum-auth-tabs { margin-right: 31px; }
  .kum-auth-tabs > button { padding-inline: 5px; font-size: 12px; }
  .kum-auth-tabs > button, .kum-auth button.kum-auth-link, .kum-auth-check { min-height: 44px; }
  .kum-auth-check a.kum-auth-link { display: inline-flex; align-items: center; min-height: 44px; }
  .kum-auth-form { gap: 14px; margin-top: 20px; }
  .kum-auth-field { font-size: 13px; }
  .kum-auth-field input { font-size: 16px; }
  .kum-auth-description { font-size: 14px; }
  .kum-auth-switch { margin-top: 19px; padding-top: 14px; }
  .kum-auth .button { font-size: 15px; }
  .kum-auth-state-icon { width: 62px; height: 62px; }
  .kum-auth-options { column-gap: 5px; }
}
@media (max-width: 359px) {
  .kum-auth-panel { padding-inline: 17px; }
  .kum-auth-options { display: grid; gap: 0; }
  .kum-auth-tabs > button { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .kum-auth { --auth-motion: 0ms; }
  .kum-auth-panel { transform: none; }
}
