.onboarding-page{min-height:100vh;background:#0b0d16;color:var(--text-main,#f4f3ff)}
.welcome-layout{min-height:100vh;display:grid;grid-template-columns:1.08fr 1fr}
.welcome-art{position:relative;overflow:hidden;min-height:820px;padding:44px 58px;display:flex;flex-direction:column;background:radial-gradient(ellipse at 60% 65%,#38306465 0,transparent 50%),radial-gradient(ellipse at 10% 20%,#22253f60,transparent 50%),#10121f;border-right:1px solid #242638}
.welcome-art:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.5;background-image:radial-gradient(1px 1px at 8% 28%,#d0c8ef 99%,transparent),radial-gradient(1px 1px at 83% 23%,#d0c8ef 99%,transparent),radial-gradient(1px 1px at 70% 45%,#d0c8ef 99%,transparent),radial-gradient(1px 1px at 33% 75%,#d0c8ef 99%,transparent),radial-gradient(1px 1px at 90% 82%,#d0c8ef 99%,transparent),radial-gradient(1px 1px at 13% 90%,#d0c8ef 99%,transparent);background-size:337px 339px}
.welcome-brand{display:inline-flex;align-items:center;gap:10px;width:max-content;text-decoration:none;color:#f5f3ff;font-size:26px;font-weight:650;letter-spacing:-1px;position:relative;z-index:1}
.welcome-brand img{display:block}.brand-period{color:#b6a1ff}
.welcome-copy{position:relative;z-index:1;margin-top:90px}.welcome-eyebrow{display:flex;align-items:center;gap:10px;font-size:10px;letter-spacing:2px;font-weight:600;color:#b9acd9}.welcome-eyebrow>span{font-size:17px}
.welcome-copy h1{margin:24px 0 22px;font-size:clamp(34px,3.3vw,54px);line-height:1.17;letter-spacing:-1.9px;font-weight:500;max-width:560px}.welcome-copy em{font-family:Georgia,"Times New Roman",serif;color:#c9b8ff;font-weight:400}.welcome-copy p{color:#a4a7bf;font-size:15px;line-height:1.8}
.welcome-orbit{position:relative;width:350px;height:300px;margin:15px auto 30px;flex:1;min-height:280px;max-height:360px}.orbit-core{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:116px;height:116px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 33% 27%,#e2cfff,#b497ee 16%,#7661a8 45%,#39334f 70%);box-shadow:inset -18px -20px 28px #0d0f1cbb,0 0 70px #ad87ff25}.orbit-core:after{content:"";position:absolute;inset:-1px;border-radius:50%;border:1px solid #dec8ff40}.orbit-core span{color:#eee0ff;font-size:39px;margin-top:-10px;margin-left:-9px;text-shadow:0 0 18px #d8bbff60}
.orbit-ring{position:absolute;left:50%;top:50%;border:1px solid #aaa0c72a;border-radius:50%;transform:translate(-50%,-50%) rotate(-24deg)}.orbit-ring-one{width:270px;height:125px}.orbit-ring-two{width:350px;height:188px;transform:translate(-50%,-50%) rotate(-24deg)}.orbit-ring-three{width:280px;height:280px;border-style:dashed;border-color:#aaa0c717}.orbit-point{position:absolute;width:8px;height:8px;border-radius:50%;background:#d1baff;box-shadow:0 0 12px #c6a9ff60}.point-one{left:25%;top:29%;width:11px;height:11px}.point-two{right:4%;top:40%;background:#99b8d6;width:6px;height:6px}.point-three{left:21%;bottom:16%;width:5px;height:5px}.orbit-label{position:absolute;font-size:10px;letter-spacing:.5px;padding:7px 11px;background:#151725b5;border:1px solid #3b3655;color:#c5bdd8;border-radius:20px}.label-one{left:-8%;top:41%}.label-two{right:-6%;bottom:25%}.orbit-tiny-star{position:absolute;color:#bba1ef}.star-one{left:8%;top:13%;font-size:19px}.star-two{right:18%;top:8%;font-size:14px;color:#78708f}.welcome-footnote{position:relative;z-index:1;font-size:11px;color:#89849f;display:flex;gap:9px;align-items:center;letter-spacing:.2px}
.welcome-form-panel{position:relative;display:flex;justify-content:center;align-items:center;padding:70px 50px;min-width:0}.welcome-form-inner{width:100%;max-width:380px}.form-step{font-size:10px;letter-spacing:1.8px;font-weight:600;color:#9e94bc}.welcome-form-inner h2{margin:16px 0 12px;font-size:32px;font-weight:500;line-height:1.25;letter-spacing:-1.1px}.form-intro{font-size:14px;line-height:1.7;color:#a4a7bf;margin:0 0 30px}.profile-field{display:grid;gap:9px}.profile-field label,.profile-purpose legend{font-size:12px;color:#d0ccdf;font-weight:500}.profile-field input{width:100%;height:49px;background:#131622;border:1px solid #2a2d40;padding:0 15px;border-radius:10px;font:inherit;font-size:14px;color:#f4f3ff;outline:none}.profile-field input::placeholder{color:#686d85}.profile-field input:focus{border-color:#b6a1ff;box-shadow:0 0 0 3px #b6a1ff15}.profile-purpose{border:0;padding:0;margin:26px 0}.profile-purpose legend{margin-bottom:12px}.purpose-option{position:relative;display:flex;align-items:center;gap:13px;padding:13px 14px;margin:0 0 9px;border:1px solid #25283a;border-radius:11px;cursor:pointer;background:#10131e;transition:border-color .2s,background .2s}.purpose-option:has(input:checked){background:#1e1a31;border-color:#665484}.purpose-option:has(input:focus-visible){outline:2px solid #b6a1ff;outline-offset:3px}.purpose-option input{position:absolute;opacity:0;width:1px;height:1px}.purpose-icon{font-size:24px;width:27px;display:grid;place-items:center;color:#b6a1ff}.purpose-option strong{display:block;font-size:12px;font-weight:550;color:#e5e1ef}.purpose-option small{display:block;font-size:10px;color:#8e90a6;line-height:1.4;margin-top:4px}.purpose-radio{margin-left:auto;width:14px;height:14px;border:1px solid #4a455c;border-radius:50%;flex-shrink:0}.purpose-option input:checked~.purpose-radio{border:4px solid #b6a1ff;background:#322944}.welcome-submit{display:flex!important;justify-content:space-between!important;width:100%;min-height:47px;padding:13px 18px!important;border-radius:10px!important;font-size:13px!important}.welcome-submit>span{font-size:20px;font-weight:400}.profile-note{margin-top:23px;display:flex;gap:9px;align-items:flex-start}.profile-note p{margin:0;font-size:10px;color:#7f849c;line-height:1.65}.profile-note strong{font-weight:500;color:#aaa6bd}.profile-note-dot{width:5px;height:5px;flex:0 0 5px;border-radius:50%;background:#9e98b6;margin-top:6px}.profile-error{font-size:12px;line-height:1.5;color:#ffaaaa}.welcome-bottom{position:absolute;bottom:30px;color:#777b91;font-size:10px;letter-spacing:.3px}
@media(min-width:1600px){.welcome-art{padding:50px 90px}.welcome-copy{margin-top:110px}.welcome-orbit{transform:scale(1.1)}}
@media(max-width:1000px){.welcome-art{padding:35px 32px}.welcome-copy h1{font-size:37px}.welcome-form-panel{padding:70px 35px}.welcome-orbit{width:280px}.orbit-ring-two{width:300px}.label-one{left:-2%}.label-two{right:-1%}}
@media(max-width:760px){.welcome-layout{grid-template-columns:1fr}.welcome-art{min-height:0;padding:26px 24px 36px;border-right:0;border-bottom:1px solid #242638}.welcome-brand{font-size:23px}.welcome-copy{margin-top:46px}.welcome-eyebrow{font-size:8px;letter-spacing:1.6px}.welcome-copy h1{font-size:37px;margin-top:18px;max-width:450px}.welcome-copy p{font-size:13px;margin-bottom:0}.welcome-orbit{display:none}.welcome-footnote{display:none}.welcome-form-panel{padding:40px 24px 75px;justify-content:flex-start}.welcome-form-inner{max-width:none}.welcome-form-inner h2{font-size:29px}.form-intro br{display:none}.welcome-bottom{bottom:24px;left:24px}.purpose-option{padding:15px}.profile-note p{font-size:11px}}

/* Account access and settings share the existing Stellaris surfaces. */
.auth-form { display: grid; gap: 16px; }
.auth-form button[type="submit"] { justify-self: start; }
.auth-form .welcome-submit { justify-self: stretch; }
.auth-form .field-hint { margin: 0; }
.auth-form .profile-field > input,
.auth-form .profile-field > select,
.auth-form .profile-field > textarea { width: 100%; }
.password-field { position: relative; }
.password-field input { padding-right: 90px; }
.password-field button {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  padding: 4px 9px;
  min-height: 36px;
  font-size: 12px;
}
.auth-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.auth-link:hover { color: #d5c7ff; }
.auth-divider { display: flex; align-items: center; gap: 13px; margin: 20px 0; color: var(--text-muted); font-size: 12px; }
.auth-divider::before,
.auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--space-border); }
.auth-google { width: 100%; min-height: 47px; }
.auth-google span { color: var(--accent); font-size: 16px; font-weight: 700; }
.auth-alternate,
.auth-notice { margin: 18px 0 0; color: var(--text-muted); font-size: 13px; }
.auth-notice { margin: 0; }
.auth-notice a + a { margin-left: 10px; }
.auth-status { margin: 14px 0; color: var(--text-muted); font-size: 13px; }
#auth-message { color: var(--success); }
#auth-error { margin: 12px 0; }
.welcome-form-panel,
.onboarding-page:not([data-auth-page="login"]) {
  background: radial-gradient(ellipse at 85% 10%, #3d2b5447, transparent 430px), var(--bg);
}
.welcome-form-inner { max-width: 420px; }
.welcome-form-inner h2 { font-size: clamp(30px, 3.5vw, 41px); font-weight: 620; letter-spacing: -.04em; }
.welcome-form-inner .auth-form > .auth-link { justify-self: start; font-size: 13px; }
.account-entry {
  width: min(100% - 40px, 520px);
  margin: 0 auto;
  padding: 36px 0 56px;
}
.account-entry-brand { margin: 0 0 28px; }
.account-entry-card {
  border: 1px solid var(--space-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #211b36, var(--space-card) 58%);
  padding: clamp(22px, 5vw, 40px);
  box-shadow: 0 20px 65px #04050c50;
}
.account-entry-card h1,
.account-content h1 { margin: 10px 0; font-size: clamp(28px, 4vw, 38px); font-weight: 530; line-height: 1.2; }
.account-entry-card .form-intro,
.account-content .form-intro { margin-bottom: 24px; }
.account-content { max-width: 1080px; margin: 0 auto; padding: clamp(22px, 4vw, 48px); }
.account-card { margin-bottom: 16px; }
.account-card h2 { margin-bottom: 14px; font-size: 18px; font-weight: 550; }
.account-card .auth-form { max-width: 580px; }
.account-page:not(.space-dashboard) .workspace-main {
  background: radial-gradient(ellipse at 70% 0, #30224b45, transparent 560px);
}
.account-page:not(.space-dashboard) .account-content h1 {
  font-weight: 640;
  letter-spacing: -.035em;
}
.account-page:not(.space-dashboard) #auth-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  align-items: start;
  gap: 14px;
}
.account-page:not(.space-dashboard) .account-card {
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 3vw, 26px);
  background: linear-gradient(145deg, #201a30, var(--space-card) 65%);
}
.account-card:has(#open-delete-account) { border-color: #ffa5ab3d; }
.account-card input[type="file"] { height: auto; padding: 10px; }
.account-card input[type="file"]::file-selector-button {
  margin-inline-end: 8px;
  border: 0;
  border-radius: 6px;
  padding: 7px 10px;
  background: #302646;
  color: #eadfff;
  font: inherit;
  cursor: pointer;
}
.account-fields,
.activity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 15px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.account-details { display: grid; grid-template-columns: minmax(90px, auto) 1fr; gap: 7px 14px; margin: 22px 0; }
.account-details dt { color: var(--text-muted); }
.account-details dd { margin: 0; overflow-wrap: anywhere; }
.account-avatar {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border: 1px solid #7561a8;
  border-radius: 50%;
  background: #b49bdb26;
  color: var(--accent);
  font-size: 24px;
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.account-list li { overflow-wrap: anywhere; }
.account-danger { color: var(--danger); border-color: #ffa5ab50; }

/* Profile overview and edit dialog. */
.profile-page .profile-content {
  max-width: 980px;
}
.profile-page .profile-content #auth-content {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.profile-card-view {
  --profile-avatar-size: clamp(82px, 14vw, 130px);
  overflow: hidden;
  border: 1px solid var(--space-border);
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 8% 0%, #9165c821, transparent 74%), var(--space-card);
  box-shadow: 0 18px 56px #03040a40;
}
.profile-cover {
  position: relative;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  border-bottom: 1px solid #bc9ff92d;
  background:
    radial-gradient(1px 1px at 14% 28%, #e6d9ff, transparent),
    radial-gradient(1px 1px at 34% 66%, #ddd4fa, transparent),
    radial-gradient(1.5px 1.5px at 53% 24%, #ecdfff, transparent),
    radial-gradient(1px 1px at 67% 77%, #dad0ff, transparent),
    radial-gradient(1px 1px at 88% 26%, #d9d4ff, transparent),
    radial-gradient(1.5px 1.5px at 93% 74%, #eedfff, transparent),
    radial-gradient(ellipse at 73% 57%, #8659cf9c, transparent 49%),
    radial-gradient(ellipse at 0% 100%, #28415b95, transparent 62%),
    radial-gradient(ellipse at 97% 0%, #813d6973, transparent 64%),
    linear-gradient(115deg, #101628, #231b3b 60%, #3b234d);
}
.profile-cover > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.profile-cover .profile-cover-edit {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  min-height: 44px;
  max-width: calc(100% - 24px);
  padding: 8px 13px;
  border: 1px solid #ffffff68;
  border-radius: var(--radius-pill);
  background: #171422e8;
  color: #fff;
  backdrop-filter: blur(8px);
}
.profile-cover .profile-cover-edit:hover {
  border-color: #fffc;
  background: #302346;
  color: #fff;
}
.profile-cover-edit .icon { width: 16px; height: 16px; flex: none; }
.profile-cover::before,
.profile-cover::after {
  content: "";
  position: absolute;
  left: 75%;
  top: 57%;
  border-radius: 50%;
  pointer-events: none;
}
.profile-cover::before {
  width: clamp(54px, 11vw, 100px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 28% 22%, #d5bbf9 0, #a188d4 17%, #675198 43%, #231d3b 77%);
  box-shadow: 0 0 36px #bc92ff47, inset 0 0 0 1px #d5b7ff36;
}
.profile-cover::after {
  width: clamp(154px, 31vw, 310px);
  aspect-ratio: 3.4;
  transform: translate(-50%, -50%) rotate(-18deg);
  border: 1px solid #dbbfff72;
  box-shadow: 0 0 0 9px #d4b4ff0e, 0 0 0 22px #d4b4ff09;
}
.profile-card-body {
  position: relative;
  z-index: 2;
  padding: 0 clamp(18px, 4vw, 38px) clamp(21px, 5vw, 36px);
}
.profile-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.profile-main-avatar {
  flex: 0 0 auto;
  width: var(--profile-avatar-size);
  height: var(--profile-avatar-size);
  margin-top: calc(var(--profile-avatar-size) * -.46);
  border: 5px solid var(--space-card);
  background: radial-gradient(circle at 25% 20%, #513b77, #2b223f 70%);
  color: #e4d3ff;
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 650;
  box-shadow: 0 0 0 1px #c1a5f67d, 0 8px 22px #03040a48;
}
.profile-edit-button {
  min-height: 44px;
  margin-top: 14px;
  border-color: #756096;
  border-radius: var(--radius-pill);
  background: #b6a1ff10;
  color: #e9deff;
}
.profile-edit-button:hover {
  border-color: #b29cde;
  background: #b6a1ff20;
}
.profile-settings-link .icon,
.profile-joined .icon {
  width: 16px;
  height: 16px;
}
.profile-identity {
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.profile-page #profile-display-name {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.profile-handle {
  margin: 4px 0 0;
  color: #cab7ed;
  font-size: 14px;
}
.profile-bio {
  max-width: 62ch;
  margin: 16px 0 0;
  color: #e1ddef;
  font-size: 15px;
  white-space: pre-wrap;
}
.profile-joined {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}
.profile-secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 2px 18px;
  padding: 4px 16px;
  border: 1px solid var(--space-border);
  border-radius: var(--radius-md);
  background: var(--space-card);
}
.profile-settings-link,
.profile-meta summary {
  min-height: 44px;
  color: var(--text-muted);
  font-size: 13px;
}
.profile-settings-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  text-decoration: none;
}
.profile-settings-link:focus-visible,
.profile-meta summary:focus-visible { border-radius: 7px; }
.profile-settings-link:hover,
.profile-meta summary:hover { color: var(--text-main); }
.profile-meta summary {
  padding-block: 12px;
  cursor: pointer;
}
.profile-meta .account-details {
  margin: 5px 0 10px;
  font-size: 13px;
}
.profile-editor {
  width: min(600px, 100% - 28px);
  max-height: calc(100dvh - 28px - var(--mobile-safe-top, env(safe-area-inset-top, 0px)) - var(--mobile-safe-bottom, env(safe-area-inset-bottom, 0px)));
  padding: clamp(18px, 4vw, 30px);
  border-color: #4b3c65;
  border-radius: var(--radius-lg);
  background: #161724;
  overscroll-behavior: contain;
}
.profile-editor .dialog-header h2 {
  font-size: clamp(20px, 4.5vw, 25px);
  font-weight: 620;
  letter-spacing: -.025em;
}
.profile-editor .dialog-header .icon-button { min-width: 44px; min-height: 44px; }
.profile-edit-fields {
  display: grid;
  gap: 16px;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.profile-media-editor {
  display: grid;
  gap: 12px;
}
.profile-media-section {
  min-inline-size: 0;
  margin: 0;
  padding: 10px 14px 14px;
  border: 1px solid var(--space-border);
  border-radius: var(--radius-md);
  background: var(--space-card);
}
.profile-media-section > legend {
  padding-inline: 6px;
  color: var(--text-main);
  font-weight: 650;
}
.profile-crop-stage {
  display: grid;
  place-items: center;
  width: min(100%, 450px);
  margin: 10px auto;
  overflow: hidden;
  border: 1px solid var(--space-border);
  border-radius: 12px;
  background: var(--bg);
}
.profile-crop-stage.is-avatar {
  width: min(100%, 188px);
  aspect-ratio: 1;
  border-radius: 50%;
}
.profile-crop-stage.is-banner { aspect-ratio: 3 / 1; }
.profile-crop-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.profile-crop-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr));
  gap: 4px 14px;
  margin: 8px 0;
}
.profile-crop-controls label {
  display: grid;
  gap: 3px;
  min-inline-size: 0;
  color: var(--text-muted);
  font-size: 13px;
}
.profile-editor .profile-crop-controls input[type="range"] {
  width: 100%;
  min-height: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border-color: transparent;
  background: transparent;
  accent-color: var(--accent);
}
.profile-media-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.profile-media-actions :is(button, .profile-media-pick) { min-height: 44px; }
.profile-media-pick { cursor: pointer; }
.profile-media-pick .icon { width: 16px; height: 16px; }
.profile-media-actions:has(input:focus-visible) .profile-media-pick {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.profile-media-actions:has(input:disabled) .profile-media-pick { opacity: .55; cursor: default; }
.profile-editor .account-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-editor .dialog-actions { margin-top: 2px; }
.profile-editor .dialog-actions button { min-height: 44px; }
#profile-edit-error { margin: 0; }

@media (max-width: 440px) {
  .profile-card-body { padding-inline: 16px; }
  .profile-cover .profile-cover-edit { top: 8px; right: 8px; padding-inline: 10px; }
  .profile-edit-button { gap: 6px; padding-inline: 12px; }
  .profile-editor .account-fields { grid-template-columns: minmax(0, 1fr); }
  .profile-editor .profile-field :is(input:not([type="file"]), select, textarea) { font-size: 16px; }
  .profile-crop-controls { grid-template-columns: minmax(0, 1fr); }
  .profile-editor .profile-crop-controls input[type="range"] { height: 44px; }
}

/* Light appearance for account and entry pages. */
html[data-theme="light"] .onboarding-page { background: #fff; }

html[data-theme="light"] .welcome-art {
  border-color: #e5dcf6;
  background:
    radial-gradient(ellipse at 56% 73%, #d8c9ff 0, transparent 54%),
    radial-gradient(ellipse at 98% 10%, #ffe2ce 0, transparent 48%),
    linear-gradient(145deg, #fbf8ff, #ede5ff 72%);
}

html[data-theme="light"] .welcome-art::before {
  opacity: .64;
  background-image:
    radial-gradient(2px 2px at 8% 28%, #754dcc 70%, transparent),
    radial-gradient(1px 1px at 83% 23%, #754dcc 90%, transparent),
    radial-gradient(1px 1px at 70% 45%, #754dcc 90%, transparent),
    radial-gradient(1px 1px at 33% 75%, #754dcc 90%, transparent),
    radial-gradient(2px 2px at 90% 82%, #754dcc 70%, transparent),
    radial-gradient(1px 1px at 13% 90%, #754dcc 90%, transparent);
}

html[data-theme="light"] .welcome-brand,
html[data-theme="light"] .welcome-copy h1 { color: #201935; }
html[data-theme="light"] .welcome-copy h1 { font-weight: 720; letter-spacing: -.055em; }
html[data-theme="light"] .welcome-copy em {
  color: #5c39c5;
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
}

html[data-theme="light"] :is(.welcome-eyebrow, .welcome-footnote, .welcome-copy p, .welcome-bottom, .form-intro, .profile-note p) {
  color: var(--text-muted);
}

html[data-theme="light"] .form-step,
html[data-theme="light"] .orbit-tiny-star { color: #6246a6; }
html[data-theme="light"] .orbit-core {
  background: radial-gradient(circle at 30% 24%, #f8e7ff, #be9df8 25%, #8761db 57%, #623eb3 84%);
  box-shadow: inset -8px -12px 20px #6445a859, 0 24px 60px #6843e83d;
}

html[data-theme="light"] .orbit-ring { border-color: #7756bb59; }
html[data-theme="light"] .orbit-ring-three { border-color: #7756bb36; }
html[data-theme="light"] .orbit-point { background: #754bd5; }
html[data-theme="light"] .point-two { background: #326d91; }
html[data-theme="light"] .orbit-label {
  background: #fffdf9;
  border-color: #d9caef;
  color: #4f3d78;
  box-shadow: 0 5px 12px #4d2e8912;
}

html[data-theme="light"] .welcome-form-panel { background: #fff; }
html[data-theme="light"] .onboarding-page:not([data-auth-page="login"]) {
  background: radial-gradient(ellipse at 50% 0, #eee7ff, transparent 480px), #f7f7fc;
}

html[data-theme="light"] .account-entry-card,
html[data-theme="light"] .account-page:not(.space-dashboard) .account-card {
  background: #fff;
  box-shadow: 0 14px 32px #3d24690d;
}

html[data-theme="light"] .account-entry-card h1 { font-weight: 700; letter-spacing: -.04em; }
html[data-theme="light"] .account-page:not(.space-dashboard) .workspace-main {
  background: radial-gradient(ellipse at 70% 0, #ebe3ff, transparent 560px), #f7f7fc;
}

html[data-theme="light"] :is(.onboarding-page, .account-page:not(.space-dashboard)) :is(.profile-field label, .profile-purpose legend, .purpose-option strong, .profile-note strong) {
  color: var(--text-main);
}

html[data-theme="light"] :is(.onboarding-page, .account-page:not(.space-dashboard)) .profile-field :is(input, select, textarea) {
  background: #fcfbff;
  border-color: #9e8cb6;
  color: var(--text-main);
}

html[data-theme="light"] .profile-field input::placeholder { color: #6e657e; }
html[data-theme="light"] .profile-field :is(input, select, textarea):focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #6843e820;
}

html[data-theme="light"] .purpose-option {
  background: #fff;
  border-color: #e0d7ef;
}

html[data-theme="light"] .purpose-option:hover,
html[data-theme="light"] .purpose-option:has(input:checked) {
  background: #f3edff;
  border-color: #a68cde;
}

html[data-theme="light"] .purpose-option:has(input:focus-visible) { outline-color: var(--accent); }
html[data-theme="light"] .purpose-option small { color: var(--text-muted); }
html[data-theme="light"] .purpose-icon { color: var(--accent); }
html[data-theme="light"] .purpose-radio { border-color: #8c789f; }
html[data-theme="light"] .purpose-option input:checked ~ .purpose-radio {
  border-color: var(--accent);
  background: #fff;
}

html[data-theme="light"] .profile-note-dot { background: #6843e8; }
html[data-theme="light"] .profile-error { color: #a62947; }
html[data-theme="light"] .auth-link:hover { color: #44289e; }
html[data-theme="light"] .account-card:has(#open-delete-account) { border-color: #e8c1cb; }
html[data-theme="light"] .account-page .account-danger {
  color: #a62947;
  border-color: #e6bdc6;
}

html[data-theme="light"] .profile-card-view {
  border-color: #e2d9ef;
  background: radial-gradient(ellipse at 8% 0%, #eedfff63, transparent 74%), #fff;
  box-shadow: 0 16px 48px #43227816;
}

html[data-theme="light"] .profile-cover {
  border-color: #e0d2ef;
  background:
    radial-gradient(2px 2px at 13% 28%, #9b7bc8 60%, transparent),
    radial-gradient(1px 1px at 27% 64%, #7348ba 90%, transparent),
    radial-gradient(1px 1px at 49% 24%, #7348ba 90%, transparent),
    radial-gradient(2px 2px at 89% 25%, #9b7bc8 60%, transparent),
    radial-gradient(ellipse at 72% 67%, #b896fa 0, transparent 57%),
    radial-gradient(ellipse at 100% 10%, #ffdbc6 0, transparent 51%),
    radial-gradient(ellipse at 0% 100%, #cae7f6, transparent 58%),
    linear-gradient(115deg, #fbf6ff, #e9dcff 78%);
}

html[data-theme="light"] .profile-cover::before {
  background: radial-gradient(circle at 27% 23%, #fff0ff, #d5b5fb 23%, #986fdf 55%, #6842b4 90%);
  box-shadow: 0 12px 32px #8560c350;
}

html[data-theme="light"] .profile-cover::after {
  border-color: #7452b482;
  box-shadow: 0 0 0 9px #a888df26, 0 0 0 22px #a888df12;
}

html[data-theme="light"] .profile-main-avatar {
  border-color: #fff;
  background: radial-gradient(circle at 25% 20%, #f0e3ff, #e2d2ff 76%);
  color: #553197;
  box-shadow: 0 0 0 1px #c9b3e4, 0 8px 22px #49267522;
}

html[data-theme="light"] .profile-edit-button {
  border-color: #cfbcec;
  background: #f7f1ff;
  color: #513296;
}

html[data-theme="light"] .profile-edit-button:hover {
  border-color: #ac90db;
  background: #f0e6ff;
}

html[data-theme="light"] .profile-handle { color: #6242a5; }
html[data-theme="light"] .profile-bio { color: var(--text-main); }
html[data-theme="light"] .profile-editor {
  border-color: #ded2ee;
  background: #fff;
}

@media (max-width: 560px) {
  .welcome-art { padding: 18px 20px 22px; }
  .welcome-copy { margin-top: 20px; }
  .welcome-copy h1 { margin: 0; font-size: clamp(23px, 6vw, 32px); letter-spacing: -.035em; }
  .welcome-copy .welcome-eyebrow, .welcome-copy p { display: none; }
  .welcome-form-panel { padding: 28px 20px 56px; }
  .auth-form .profile-field input, #profile-name { font-size: 16px; }
  .account-entry { width: min(100% - 28px, 520px); padding-top: 24px; }
  .account-entry-brand { margin-bottom: 20px; }
  .account-content { padding: 22px 16px; }
}

.login-theme-toggle {
  position: absolute;
  inset: 16px 16px auto auto;
  z-index: 1;
}
