:root {
  --page: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --ink: #111827;
  --muted: #667085;
  --line: rgba(15, 23, 42, 0.12);
  --blue: #1677ff;
  --blue-hover: #0667ea;
  --purple: #9b7af7;
  --orange: #ff966b;
  --yellow: #f5ce55;
  --black: #20222a;
  --error: #d92d20;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-width: 320px;
  min-height: 100%;
  overflow-x: hidden;
  background: #f7f7fa;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse 58% 72% at -4% 70%, rgba(255, 205, 220, 0.58) 0%, rgba(255, 224, 232, 0.26) 42%, transparent 73%),
    radial-gradient(ellipse 55% 70% at 103% 28%, rgba(224, 205, 255, 0.56) 0%, rgba(238, 227, 255, 0.26) 45%, transparent 74%),
    radial-gradient(ellipse 44% 48% at 49% 18%, rgba(224, 216, 255, 0.32) 0%, transparent 72%),
    radial-gradient(ellipse 72% 42% at 49% 109%, rgba(217, 225, 255, 0.5) 0%, rgba(246, 235, 255, 0.34) 48%, transparent 76%),
    linear-gradient(145deg, #fbfbfd 0%, #f8f8fc 46%, #fbf9fd 100%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.22);
  outline-offset: 2px;
}

.login-header,
.login-footer {
  position: relative;
  z-index: 20;
  display: flex;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.login-header {
  height: 82px;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  font-weight: 720;
}

.login-brand-mark,
.auth-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #17181c;
}

.login-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.login-brand-mark svg {
  width: 20px;
  height: 20px;
}

.private-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.private-label svg {
  width: 15px;
  height: 15px;
}

.login-main {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1120px, calc(100% - 64px));
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 468px);
  align-items: center;
  gap: clamp(48px, 8vw, 124px);
  padding: 34px 0 58px;
}

.character-panel {
  position: relative;
  min-width: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.character-copy {
  position: relative;
  z-index: 5;
  width: min(100%, 560px);
  margin-bottom: 8px;
  text-align: center;
}

.character-copy h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1.06;
  font-weight: 720;
}

.character-stage {
  position: relative;
  width: min(100%, 560px);
  height: 410px;
  isolation: isolate;
}

@media (min-width: 901px) {
  .character-stage {
    transform: translateY(-24px);
  }

  body[data-auth-mode="register"] .auth-panel {
    transform: translateY(-16px);
  }
}

.character-stage::after {
  content: "";
  position: absolute;
  right: 2%;
  bottom: 4px;
  left: 2%;
  height: 42px;
  border-radius: 50%;
  background: rgba(50, 54, 70, 0.1);
  filter: blur(22px);
  transform: scaleY(0.55);
  z-index: -1;
}

.character {
  --look-x: 0px;
  --look-y: 0px;
  --tilt: 0deg;
  position: absolute;
  bottom: 28px;
  transform: rotate(var(--tilt));
  transform-origin: 50% 100%;
  transition: transform 420ms cubic-bezier(0.2, 0.72, 0.2, 1), height 420ms cubic-bezier(0.2, 0.72, 0.2, 1);
  will-change: transform;
}

.character-purple {
  left: 18px;
  width: 182px;
  height: 316px;
  border-radius: 42px;
  background: linear-gradient(145deg, #b99bff 0%, #8263eb 100%);
  box-shadow: inset 12px 12px 24px rgba(255, 255, 255, 0.22), 0 30px 55px rgba(105, 75, 201, 0.2);
  z-index: 1;
}

.character-black {
  left: 190px;
  width: 140px;
  height: 230px;
  border-radius: 70px;
  background: linear-gradient(145deg, #3a3c47, #17181e);
  box-shadow: inset 8px 8px 18px rgba(255, 255, 255, 0.08), 0 28px 48px rgba(20, 20, 28, 0.25);
  z-index: 2;
}

.character-orange {
  left: 58px;
  width: 260px;
  height: 142px;
  border-radius: 142px 142px 28px 28px;
  background: linear-gradient(145deg, #ffb08e, #ff7f54);
  box-shadow: inset 10px 10px 20px rgba(255, 255, 255, 0.2), 0 28px 50px rgba(223, 102, 62, 0.17);
  z-index: 3;
}

.character-yellow {
  left: 298px;
  width: 145px;
  height: 208px;
  border-radius: 72px 72px 50px 50px;
  background: linear-gradient(145deg, #ffe889, #f3c63f);
  box-shadow: inset 9px 9px 20px rgba(255, 255, 255, 0.24), 0 26px 48px rgba(211, 167, 40, 0.17);
  z-index: 4;
}

.face {
  position: absolute;
  display: flex;
  gap: 7px;
  transform: translate(var(--look-x), var(--look-y));
  transition: transform 220ms ease, left 420ms ease, top 420ms ease;
}

.face-purple {
  top: 58px;
  right: 30px;
}

.face-black {
  top: 48px;
  right: 25px;
}

.face-orange {
  top: 48px;
  right: 44px;
}

.face-yellow {
  top: 44px;
  right: 26px;
}

.eye {
  position: relative;
  display: block;
  width: 31px;
  height: 39px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 7px rgba(20, 20, 30, 0.1);
  transform-origin: center;
  transition: height 90ms ease, transform 220ms ease;
}

.character-black .eye,
.character-yellow .eye {
  width: 29px;
  height: 36px;
}

.pupil {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 17px;
  border-radius: 50%;
  background: #10131c;
  transform: translate(calc(-50% + var(--pupil-x, 0px)), calc(-50% + var(--pupil-y, 0px)));
  transition: transform 180ms ease;
}

.character.blinking .eye {
  height: 3px;
  margin-top: 18px;
  background: #20222a;
  box-shadow: none;
}

.attention {
  position: absolute;
  width: 7px;
  height: 25px;
  border-radius: 8px;
  background: currentColor;
  opacity: 0.9;
}

.attention::before,
.attention::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 20px;
  border-radius: 8px;
  background: currentColor;
}

.attention::before {
  left: -14px;
  top: 7px;
  transform: rotate(-38deg);
}

.attention::after {
  right: -14px;
  top: 7px;
  transform: rotate(38deg);
}

.attention-purple {
  top: -30px;
  right: 34px;
  color: #8263eb;
}

.attention-orange {
  top: -35px;
  left: 45px;
  color: #ff895d;
  transform: rotate(-25deg) scale(0.82);
}

.attention-yellow {
  top: -29px;
  right: 10px;
  color: #e8b827;
  transform: rotate(24deg) scale(0.8);
}

.mouth {
  position: absolute;
  top: 105px;
  right: 48px;
  width: 20px;
  height: 8px;
  border-bottom: 3px solid rgba(24, 29, 39, 0.82);
  border-radius: 50%;
  transform: translate(var(--look-x), var(--look-y));
  transition: transform 220ms ease;
}

.character-stage.is-account .character-purple { --tilt: 5deg; }
.character-stage.is-account .character-black { --tilt: -5deg; }
.character-stage.is-account .character-orange { --tilt: 3deg; }
.character-stage.is-account .character-yellow { --tilt: -4deg; }
.character-stage.is-account .character-purple .face { transform: translate(10px, 34px); }
.character-stage.is-account .character-black .face { transform: translate(-18px, -7px); }
.character-stage.is-account .character-orange .face { transform: translate(7px, -8px); }
.character-stage.is-account .character-yellow .face { transform: translate(-17px, 9px); }

.character-stage.is-password .character-purple { --tilt: -9deg; }
.character-stage.is-password .character-black { --tilt: -8deg; }
.character-stage.is-password .character-orange { --tilt: -6deg; }
.character-stage.is-password .character-yellow { --tilt: -8deg; }
.character-stage.is-password .face { transform: translate(-18px, -13px); }
.character-stage.is-password .pupil { --pupil-x: -6px; --pupil-y: -6px; }

.character-stage.is-password-visible .character { --tilt: 0deg; }
.character-stage.is-password-visible .face { transform: translate(-8px, -8px); }
.character-stage.is-password-visible .pupil { --pupil-x: -5px; --pupil-y: -5px; }
.character-stage.is-password-visible.is-peeking .character-purple .face { transform: translate(6px, 10px); }
.character-stage.is-password-visible.is-peeking .character-purple .pupil { --pupil-x: 5px; --pupil-y: 5px; }

.character-stage.is-error .character {
  animation: character-shake 420ms ease;
}

.character-stage.is-error .mouth {
  border-top: 3px solid rgba(24, 29, 39, 0.82);
  border-bottom: 0;
}

.auth-panel {
  width: 100%;
  max-width: 468px;
  justify-self: end;
}

.auth-card {
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(30, 35, 50, 0.1), 0 2px 8px rgba(30, 35, 50, 0.04);
  padding: 28px 32px 23px;
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
}

.auth-emblem {
  display: flex;
  width: 42px;
  height: 42px;
  margin: 0 auto 13px;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(20, 22, 28, 0.13);
}

.auth-emblem svg {
  width: 22px;
  height: 22px;
}

.auth-heading {
  text-align: center;
}

.auth-heading h2 {
  margin: 0 0 5px;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 750;
}

.auth-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-tabs {
  display: grid;
  height: 42px;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin: 20px 0 18px;
  border-radius: 10px;
  background: rgba(118, 118, 128, 0.1);
  padding: 4px;
}

.auth-tab {
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.auth-tab.active {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 2px 8px rgba(30, 35, 50, 0.08);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: auth-form-in 220ms ease both;
}

#register-form.active {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
}

#register-form > .registration-access,
#register-form > .password-requirements,
#register-form > .verification-block,
#register-form > .form-message,
#register-form > .submit-button {
  grid-column: 1 / -1;
}

#register-form > .registration-password-field {
  grid-column: 1 / -1;
}

body[data-auth-mode="register"] .auth-card {
  padding: 22px 28px 18px;
}

body[data-auth-mode="register"] .auth-emblem {
  width: 38px;
  height: 38px;
  margin-bottom: 9px;
}

body[data-auth-mode="register"] .auth-heading h2 {
  margin-bottom: 3px;
  font-size: 23px;
}

body[data-auth-mode="register"] .auth-heading p {
  font-size: 12px;
}

body[data-auth-mode="register"] .auth-tabs {
  height: 40px;
  margin: 14px 0 13px;
}

#register-form .registration-access {
  min-height: 44px;
  margin-bottom: 10px;
  padding: 6px 9px;
}

#register-form .field {
  margin-bottom: 9px;
}

#register-form .field-label {
  margin-bottom: 5px;
}

#register-form .field-control {
  height: 43px;
}

#register-form .field-control input {
  height: 39px;
}

#register-form .password-requirements {
  margin: -1px 2px 8px;
}

#register-form .verification-block {
  margin-bottom: 8px;
  padding: 8px 10px 9px;
}

#register-form .verification-heading {
  margin-bottom: 6px;
}

#register-form .submit-button {
  height: 44px;
}

body[data-auth-mode="register"] .auth-footnote {
  display: none;
}

.tool-thanks {
  width: min(100%, 560px);
  margin: -2px auto 0;
  text-align: center;
}

.tool-thanks-heading h2 {
  margin: 0 0 5px;
  color: rgba(17, 24, 39, 0.9);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.tool-thanks-heading p {
  margin: 0;
  color: rgba(102, 112, 133, 0.86);
  font-size: 12px;
  line-height: 1.5;
}

.tool-list {
  position: relative;
  min-height: 66px;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.42);
  padding: 7px 0;
  box-shadow: 0 8px 24px rgba(30, 35, 50, 0.025);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.tool-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: tool-marquee 36s linear infinite;
}

.tool-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.tool-list:hover .tool-track,
.tool-list:focus-within .tool-track {
  animation-play-state: paused;
}

.tool-list:focus-within {
  overflow-x: auto;
  scrollbar-width: none;
  mask-image: none;
  -webkit-mask-image: none;
}

.tool-list:focus-within::-webkit-scrollbar {
  display: none;
}

.tool-list:focus-within .tool-track {
  animation: none;
  transform: none;
}

.tool-item {
  display: inline-flex;
  min-width: 0;
  min-height: 46px;
  width: 124px;
  flex: 0 0 124px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 0;
  color: rgba(71, 84, 103, 0.68);
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 200ms ease, background-color 200ms ease, box-shadow 200ms ease, opacity 200ms ease, transform 200ms ease;
}

.tool-logo {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.tool-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 650;
}

.tool-item:hover,
.tool-item:focus-visible {
  color: rgba(17, 24, 39, 0.98);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 7px 18px rgba(30, 35, 50, 0.07);
  transform: translateY(-2px) scale(1.04);
}

.tool-item:active {
  transform: translateY(0) scale(0.98);
}

.tool-item:focus-visible {
  outline: 2px solid rgba(36, 124, 255, 0.24);
  outline-offset: -2px;
}

.tool-openai:hover,
.tool-openai:focus-visible { color: #30343b; }
.tool-codex:hover,
.tool-codex:focus-visible { color: #6851bd; }
.tool-apple:hover,
.tool-apple:focus-visible { color: #111827; }
.tool-github:hover,
.tool-github:focus-visible { color: #24292f; }
.tool-cloudflare:hover,
.tool-cloudflare:focus-visible { color: #d97728; }
.tool-google:hover,
.tool-google:focus-visible { color: #4285f4; }
.tool-claude:hover,
.tool-claude:focus-visible { color: #c66f4e; }
.tool-deepseek:hover,
.tool-deepseek:focus-visible { color: #4d6bfe; }
.tool-ccswitch:hover,
.tool-ccswitch:focus-visible { color: #3276e8; }

@keyframes tool-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .tool-list {
    min-height: 108px;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .tool-track {
    width: 100%;
    animation: none;
  }

  .tool-group {
    width: 100%;
    flex-wrap: wrap;
  }

  .tool-group[aria-hidden="true"] {
    display: none;
  }

  .tool-item {
    width: 20%;
    flex-basis: 20%;
  }

  .tool-item:nth-child(n + 6) {
    width: 25%;
    flex-basis: 25%;
  }
}

.field {
  display: block;
  margin-bottom: 12px;
}

.field-label {
  display: block;
  margin: 0 0 7px 2px;
  color: #344054;
  font-size: 12px;
  font-weight: 630;
}

.field-control {
  display: grid;
  height: 46px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 0 11px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field-control:focus-within {
  border-color: rgba(22, 119, 255, 0.58);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.1);
}

.field-control > svg {
  width: 17px;
  height: 17px;
  color: #7b8494;
}

.field-control input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}

.field-control input::placeholder {
  color: #98a2b3;
}

.field.invalid .field-control {
  border-color: rgba(217, 45, 32, 0.56);
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.08);
}

.password-toggle {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  color: #667085;
  background: transparent;
  cursor: pointer;
}

.password-toggle:hover {
  background: rgba(118, 118, 128, 0.08);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.form-options {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 9px;
}

.remember-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475467;
  cursor: pointer;
  font-size: 13px;
}

.remember-option input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--blue);
}

.text-button {
  border: 0;
  color: var(--blue);
  background: transparent;
  padding: 6px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 630;
}

.form-message {
  min-height: 19px;
  margin: 0 2px 7px;
  color: var(--error);
  font-size: 12px;
  line-height: 1.45;
}

.form-message:empty {
  min-height: 0;
  margin-bottom: 0;
}

.submit-button {
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 9px 22px rgba(22, 119, 255, 0.22);
  cursor: pointer;
  font-size: 15px;
  font-weight: 680;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.submit-button:hover {
  background: var(--blue-hover);
  box-shadow: 0 11px 26px rgba(22, 119, 255, 0.28);
  transform: translateY(-1px);
}

.submit-button:active {
  transform: translateY(1px);
}

.submit-button:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

.submit-button svg {
  width: 18px;
  height: 18px;
}

.registration-access {
  display: grid;
  min-height: 50px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin: 0 0 14px;
  border: 1px solid #dce8ff;
  border-radius: 10px;
  color: #344054;
  background: #f5f8ff;
  padding: 7px 10px;
}

.registration-access-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #1267d6;
  background: #e6efff;
}

.registration-access-icon svg {
  width: 17px;
  height: 17px;
}

.registration-access strong,
.registration-access small {
  display: block;
}

.registration-access strong {
  margin-bottom: 1px;
  color: #24324a;
  font-size: 11px;
  font-weight: 720;
}

.registration-access small {
  color: #667085;
  font-size: 10px;
  line-height: 1.35;
}

.registration-access-status {
  border-radius: 999px;
  color: #175cd3;
  background: #e8f0ff;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 720;
}

.registration-access.valid {
  border-color: #ccebdc;
  background: #f2fbf6;
}

.registration-access.valid .registration-access-icon,
.registration-access.valid .registration-access-status {
  color: #14734b;
  background: #dff5e9;
}

.password-requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: -3px 2px 11px;
  color: #8a93a3;
  font-size: 11px;
}

.password-requirements span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 180ms ease;
}

.password-requirements svg {
  display: none;
}

.password-requirements span::before {
  content: "";
  display: inline-flex;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.password-requirements .valid {
  color: #18794e;
}

.password-requirements .valid::before {
  content: "✓";
  border-color: #1f9d64;
  color: #fff;
  background: #1f9d64;
  transform: scale(1.04);
}

.password-requirements .invalid {
  color: #c4322b;
}

.password-requirements .invalid::before {
  content: "×";
  border-color: #df4b45;
  color: #fff;
  background: #df4b45;
}

.verification-block {
  margin: 0 0 11px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 10px;
  background: #fafafa;
  padding: 10px 12px 12px;
}

.verification-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: #475467;
  font-size: 11px;
}

.verification-heading span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 680;
}

.verification-heading svg {
  width: 14px;
  height: 14px;
}

.verification-heading small {
  color: #98a2b3;
  font-size: 10px;
}

.cf-turnstile {
  min-height: 65px;
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

.auth-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 15px 0 0;
  color: #8a93a3;
  font-size: 11px;
}

.auth-footnote svg {
  width: 13px;
  height: 13px;
}

.login-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  max-width: calc(100% - 48px);
  border-radius: 10px;
  color: #fff;
  background: rgba(20, 22, 28, 0.92);
  padding: 12px 16px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.login-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-link,
.admin-primary-button,
.copy-link-button,
.copy-invite-button,
.refresh-button,
.revoke-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
}

.back-link {
  gap: 7px;
  color: #475467;
  text-decoration: none;
  font-size: 13px;
  font-weight: 630;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.admin-shell {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 66px 0 80px;
}

.admin-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.admin-heading p {
  margin: 0 0 9px;
  color: #6f5bd3;
  font-size: 11px;
  font-weight: 760;
}

.admin-heading h1 {
  margin: 0 0 8px;
  color: #101828;
  font-size: 34px;
  line-height: 1.1;
}

.admin-heading > div > span {
  color: #667085;
  font-size: 14px;
}

.admin-primary-button {
  min-height: 44px;
  flex: 0 0 auto;
  gap: 8px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #17181c;
  padding: 0 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 680;
  box-shadow: 0 8px 20px rgba(20, 22, 28, 0.14);
}

.admin-primary-button svg {
  width: 16px;
  height: 16px;
}

.admin-primary-button:disabled,
.refresh-button:disabled,
.revoke-button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.invite-result,
.invite-list-section {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 45px rgba(30, 35, 50, 0.06);
}

.invite-result {
  margin-bottom: 18px;
  padding: 20px;
}

.invite-result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.invite-result-heading span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #14734b;
  font-size: 13px;
  font-weight: 690;
}

.invite-result-heading svg {
  width: 16px;
  height: 16px;
}

.invite-result-heading small {
  color: #8a93a3;
  font-size: 11px;
}

.invite-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
}

.invite-code-row code {
  display: flex;
  min-width: 0;
  height: 44px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d8dee8;
  border-radius: 9px;
  background: #f8fafc;
  padding: 0 13px;
  color: #24324a;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.copy-invite-button,
.refresh-button {
  width: 42px;
  height: 42px;
  border: 1px solid #d8dee8;
  border-radius: 9px;
  color: #475467;
  background: #fff;
  cursor: pointer;
}

.copy-invite-button svg,
.refresh-button svg {
  width: 16px;
  height: 16px;
}

.copy-link-button {
  gap: 7px;
  margin-top: 11px;
  border: 0;
  color: #175cd3;
  background: transparent;
  padding: 5px 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.copy-link-button svg {
  width: 14px;
  height: 14px;
}

.admin-message {
  margin: 0 0 10px;
}

.invite-list-section {
  overflow: hidden;
}

.invite-list-heading {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0 20px;
}

.invite-list-heading h2 {
  margin: 0;
  font-size: 15px;
}

.refresh-button {
  width: 34px;
  height: 34px;
  border-color: transparent;
}

.invite-row {
  display: grid;
  min-height: 72px;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  padding: 10px 20px;
}

.invite-row:last-child {
  border-bottom: 0;
}

.invite-row-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #667085;
  background: #f2f4f7;
}

.invite-row-icon svg {
  width: 16px;
  height: 16px;
}

.invite-row-main {
  min-width: 0;
}

.invite-row-main strong,
.invite-row-main small {
  display: block;
}

.invite-row-main strong {
  overflow: hidden;
  color: #344054;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-row-main small {
  margin-top: 4px;
  color: #98a2b3;
  font-size: 10px;
}

.invite-state {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 680;
}

.invite-state.available {
  color: #14734b;
  background: #e8f7ef;
}

.invite-state.used {
  color: #667085;
  background: #f2f4f7;
}

.revoke-button {
  border: 0;
  color: #b42318;
  background: transparent;
  padding: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}

.invite-empty {
  margin: 0;
  color: #8a93a3;
  padding: 34px 20px;
  text-align: center;
  font-size: 13px;
}

@keyframes character-shake {
  0%, 100% { translate: 0 0; }
  25% { translate: -7px 0; }
  50% { translate: 6px 0; }
  75% { translate: -3px 0; }
}

@keyframes auth-form-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .login-main {
    width: min(520px, calc(100% - 32px));
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 8px;
  }

  .character-panel {
    min-height: 238px;
    display: block;
  }

  .character-copy {
    width: 46%;
    margin: 34px 0 0;
    text-align: left;
  }

  .character-copy h1 {
    font-size: 32px;
  }

  .character-stage {
    position: absolute;
    right: 0;
    bottom: 120px;
    width: 430px;
    height: 270px;
    transform: scale(0.58);
    transform-origin: right bottom;
  }

  .tool-thanks {
    margin-top: 176px;
  }

  .auth-card {
    padding: 26px 28px 22px;
  }
}

@media (max-width: 560px) {
  body {
    background:
      radial-gradient(ellipse 82% 44% at -10% 30%, rgba(255, 211, 224, 0.48) 0%, transparent 72%),
      radial-gradient(ellipse 82% 48% at 110% 12%, rgba(224, 205, 255, 0.5) 0%, transparent 72%),
      radial-gradient(ellipse 100% 32% at 50% 103%, rgba(219, 227, 255, 0.44) 0%, transparent 76%),
      linear-gradient(160deg, #fbfbfd 0%, #f8f8fc 52%, #fcf9fd 100%);
    background-attachment: fixed;
  }

  .login-header,
  .login-footer {
    width: calc(100% - 36px);
  }

  .login-header {
    height: 66px;
  }

  .private-label {
    font-size: 0;
  }

  .private-label svg {
    width: 17px;
    height: 17px;
  }

  .login-main {
    min-height: calc(100vh - 66px);
    padding-bottom: 30px;
  }

  .character-panel {
    min-height: 190px;
  }

  .character-copy {
    width: 52%;
    margin-top: 26px;
  }

  .character-copy h1 {
    font-size: 28px;
  }

  .character-stage {
    right: 0;
    bottom: 98px;
    transform: scale(0.43);
  }

  .tool-thanks {
    width: 100%;
    margin-top: 132px;
  }

  .tool-thanks-heading h2 {
    font-size: 16px;
  }

  .tool-thanks-heading p {
    display: none;
  }

  .tool-list {
    min-height: 0;
    margin-top: 11px;
    border-radius: 18px;
    padding: 6px 7px;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .tool-track {
    display: block;
    width: 100%;
    animation: none;
    transform: none;
  }

  .tool-group {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px 0;
  }

  .tool-group[aria-hidden="true"] {
    display: none;
  }

  .tool-item {
    width: auto;
    min-height: 38px;
    flex-basis: auto;
    gap: 5px;
    border: 0;
    border-radius: 11px;
  }

  .tool-item:hover,
  .tool-item:focus-visible {
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .tool-item:active {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(0.98);
  }

  .tool-mobile-optional {
    display: none;
  }

  .tool-logo {
    width: 18px;
    height: 18px;
  }

  .tool-item span {
    font-size: 10px;
  }

  body[data-auth-mode="register"] .auth-card {
    padding: 20px 18px 17px;
  }

  .auth-card {
    border-radius: 18px;
    padding: 23px 18px 19px;
  }

  .auth-emblem {
    width: 40px;
    height: 40px;
  }

  .auth-heading h2 {
    font-size: 24px;
  }

  .auth-tabs {
    margin-top: 18px;
  }

  #register-form.active {
    grid-template-columns: 1fr;
  }

  #register-form > * {
    grid-column: 1;
  }

  .registration-access {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    padding-right: 10px;
  }

  .login-toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
    text-align: center;
  }

  .admin-shell {
    width: calc(100% - 32px);
    padding: 38px 0 56px;
  }

  .admin-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
  }

  .admin-primary-button {
    width: 100%;
  }

  .invite-result-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .invite-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .revoke-button {
    grid-column: 2 / -1;
    justify-self: start;
    padding: 2px 0 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
