:root {
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111;
  background: #f2f2f2;
  --background: #f2f2f2;
  --surface: #fff;
  --blue: #0e3c8c;
  --muted: #666;
  --line: #e1e1e1;
  --shadow: 0 1px 2px #00000012, 0 3px 5px #0000000c;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.app-scroll { min-width: 0; overflow: auto; display: flex; flex-direction: column; }
h1, h2, p, dl { margin: 0; }
h1 { font-size: clamp(1.6rem, 4.9vw, 2rem); font-weight: 500; line-height: 1.25; }
h2 { font-size: 1.125rem; font-weight: 650; line-height: 1.3; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #387bf2; outline-offset: 3px; }
main { width: min(100% - 32px, 540px); margin: 24px auto 36px; position: relative; }
main:has(.completion) { flex: 1; display: grid; align-content: center; }
main:has(.task) { width: min(100% - 32px, 490px); }
main:has(.back) { padding-top: 52px; }
.back {
  position: absolute;
  inset: 0 auto auto 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: inherit;
  background: white;
  box-shadow: var(--shadow);
}
.back svg { width: 18px; height: 18px; }

.primary, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-size: .93rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}
.primary { color: white; background: var(--blue); }
.primary:hover:not(:disabled) { background: #0a3175; }
.primary:disabled { background: #dce4f0; color: #4f6079; cursor: default; }
.primary svg, .secondary svg { width: 18px; height: 18px; flex: none; }
.secondary { color: inherit; background: transparent; }
.secondary:hover { background: #e8e8e8; }
.section-heading, .actions, .task-progress { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.outline-badge {
  display: inline-block;
  width: fit-content;
  padding: 2px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--blue);
  text-transform: uppercase;
  white-space: nowrap;
  font-size: .72rem;
  font-weight: 550;
}

.dashboard main { margin-top: 34px; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 27px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 1.45rem; font-weight: 850; letter-spacing: -.065em; line-height: 1; }
.brand-mark {
  display: block;
  width: 28px;
  height: 28px;
  flex: none;
  background: #387bf2;
  clip-path: polygon(42% 4%, 58% 4%, 100% 96%, 84% 96%, 50% 26%, 23% 81%, 61% 81%, 68% 96%, 0 96%);
}
.level-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 31px;
  padding: 3px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ce8e00, #e4b137 37%, #fbe7ae 51%, #d69b00 72%, #bd8100);
  color: #402600;
  box-shadow: 0 1px 3px #0002;
  font-size: .84rem;
  font-weight: 650;
  white-space: nowrap;
}
.level-badge svg { width: 16px; height: 16px; }
.greeting { margin: 0 0 9px; color: var(--muted); font-size: 1rem; font-weight: 400; overflow-wrap: anywhere; }
.greeting strong { color: #111; font-weight: 600; }
.home-balance, .home-links, .overview, .history { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.home-balance { padding: clamp(18px, 6vw, 24px); border-radius: 25px; }
.home-label { color: var(--muted); text-transform: uppercase; font-weight: 500; font-size: .79rem; letter-spacing: .13em; }
.balance-value {
  display: block;
  width: fit-content;
  margin: 3px 0 18px;
  color: #9f6900;
  background: linear-gradient(105deg, #ad7300, #b5810c 52%, #966100);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(2.65rem, 12vw, 3.3rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.home-balance .primary { width: 100%; min-height: 52px; box-shadow: 0 3px 6px #0e3c8c4a; font-size: 1.05rem; }
.home-tasks { margin-top: 23px; }
.home-tasks h2 { font-size: 1.17rem; }
.reset-time { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .79rem; white-space: nowrap; }
.reset-time svg { width: 13px; height: 13px; }
progress {
  display: block;
  flex: 1;
  min-width: 0;
  height: 8px;
  appearance: none;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #e3e6ec;
}
progress::-webkit-progress-bar { background: transparent; }
progress::-webkit-progress-value { background: var(--blue); }
progress::-moz-progress-bar { background: var(--blue); }
.home-tasks progress { width: 100%; height: 22px; margin: 13px 0 12px; border: 1.5px solid var(--blue); border-radius: 9px; background: transparent; }
.home-tasks p { text-align: center; font-size: .95rem; }
.home-tasks p strong { color: var(--blue); }
.home-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; text-align: center; }
.home-stats div { position: relative; }
.home-stats div + div::before { content: ''; position: absolute; top: 4px; bottom: 5px; left: 0; width: 1px; background: var(--line); }
.home-stats dd { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 0; font-size: 1.15rem; font-weight: 750; }
.home-stats dd svg { width: 17px; height: 17px; color: #d65c00; }
.home-stats dt { margin-top: 3px; color: var(--muted); font-size: .78rem; }
.home-references { margin-top: 23px; text-align: center; }
.brand-viewport { margin-top: 10px; overflow: clip; mask-image: linear-gradient(to right, transparent, #000 15px, #000 calc(100% - 15px), transparent); }
.brand-track { display: flex; width: max-content; min-width: 200%; animation: brand-loop 17s linear infinite; }
@keyframes brand-loop { to { transform: translateX(-50%); } }
.brand-strip {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: space-around;
  gap: clamp(9px, 3.4vw, 24px);
  min-height: 54px;
  margin: 0;
  padding: 4px 12px;
  list-style: none;
}
.brand-viewport:has(a:focus-visible) { overflow-x: auto; mask-image: none; }
.brand-viewport:has(a:focus-visible) .brand-track { min-width: 100%; animation: none; }
.brand-viewport:has(a:focus-visible) .brand-strip[aria-hidden] { display: none; }
@media (hover: hover) {
  .brand-viewport:hover .brand-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-strip[aria-hidden] { display: none; }
  .brand-viewport { overflow-x: auto; mask-image: none; }
  .brand-track { min-width: 100%; animation: none; }
}
.brand-strip li { flex: none; }
.brand-reference, .brand-accent { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 8px; }
.brand-reference img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-reference.discord { background: #5865f2; border-radius: 50%; padding: 9px; }
.brand-reference.openai { width: 84px; }
.brand-reference.amazon { width: 66px; }
.brand-accent { background: #5135f7; }
.brand-accent::after { content: ''; width: 52%; height: 42%; background: #fff; transform: skewY(-13deg); }
.reference-note { margin-top: 3px; color: var(--muted); font-size: .69rem; }
.home-links { margin-top: 21px; overflow: hidden; border-radius: 14px; }
.home-links a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 15px; text-decoration: none; color: inherit; line-height: 1.4; font-weight: 500; }
.home-links a + a { border-top: 1px solid var(--line); }
.home-links a:hover { background: #f9f9f9; }
.home-links a:focus-visible { outline-offset: -3px; }
.home-links small { display: block; color: var(--muted); font-size: .81rem; font-weight: 400; overflow-wrap: anywhere; }
.home-links a > svg { width: 15px; height: 15px; color: var(--muted); }
.resource-icon, .list-icon, .profile-avatar, .task-icon { display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--background); }
.resource-icon { width: 37px; height: 37px; }
.resource-icon svg { width: 20px; height: 20px; }

.task { text-align: center; }
.task h1 { font-size: clamp(1.25rem, 4.8vw, 1.6rem); font-weight: 650; }
.task-progress { color: var(--muted); font-size: .8rem; margin-bottom: 18px; }
.task-progress strong { color: var(--blue); white-space: nowrap; }
.task-progress span { white-space: nowrap; }
.task-icon { width: 48px; height: 48px; margin: 0 auto 13px; color: var(--blue); background: #e7eaf0; }
.eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .095em; color: var(--muted); margin-bottom: 6px; }
.task-reward { margin: 0 0 13px; color: var(--blue); font-size: 1.35rem; font-weight: 700; line-height: 1.15; }
blockquote { margin: 14px 0 0; padding: 12px 14px; border-left: 3px solid #c6d3e7; border-radius: 9px; background: #e9edf4; text-align: left; }
.question { margin: 12px 0; color: var(--muted); font-size: .83rem; }
.options { display: grid; gap: 9px; border: 0; padding: 0; margin: 0; min-width: 0; }
.options.images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option { position: relative; display: block; text-align: left; cursor: pointer; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 1px 2px #0001; overflow: hidden; }
.option:hover { border-color: #8ca3c9; }
.option:has(:checked) { border-color: var(--blue); background: #edf2fa; box-shadow: 0 0 0 2px #0e3c8c44; }
.option:has(:focus-visible) { outline: 2px solid #387bf2; outline-offset: 2px; }
.option input, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.option img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #eaf1ff; }
.option-text { display: flex; align-items: center; gap: 9px; padding: 10px 12px; font-size: .92rem; min-height: 46px; }
.letter { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #eef0f3; color: #414141; font-size: .75rem; }
.images .letter { position: absolute; top: 7px; left: 7px; color: white; background: #000a; }
.option-check { display: none; position: absolute; top: 7px; right: 7px; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: white; background: var(--blue); }
.option-check svg { width: 16px; height: 16px; }
.option:has(:checked) .option-check { display: grid; }
.option:has(:checked) .letter { color: white; background: var(--blue); }
.actions { margin-top: 13px; flex-wrap: wrap; }
.actions .primary { margin-left: auto; }
.task [role="status"]:empty { display: none; }

.completion { text-align: center; padding: 30px 0; }
.completion .muted { max-width: 46ch; margin: 8px auto 0; }
.completion .primary { min-width: min(100%, 190px); margin-top: 17px; }
.completion .outline-badge { margin-top: 9px; }
.completion .text-link { display: table; margin: 6px auto 0; }
.completion .success { color: #17633a; background: #e3efe6; }
.limit .task-icon { color: #ba5700; background: none; }
.limit .task-icon svg { width: 36px; height: 36px; }
.reward-amount { color: var(--blue); font-size: 2.25rem; font-weight: 750; margin-top: 8px; }
.completion-total { color: var(--muted); font-size: .85rem; }
.cooldown { width: fit-content; min-width: 128px; margin: 16px auto 0; padding: 10px 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.cooldown span, .cooldown strong { display: block; }
.cooldown span { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.cooldown strong { color: var(--blue); font-size: 2rem; font-weight: 700; line-height: 1.2; }
.limit .cooldown { box-shadow: none; background: none; border: 0; }
.limit .cooldown strong { color: inherit; font-size: 1.25rem; }
.cooldown strong, #home-reset { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.text-link { display: inline-block; color: var(--blue); font-size: .87rem; font-weight: 500; padding: 9px 0; }
button.text-link, .dashboard-footer button { border: 0; background: none; text-decoration: underline; }
.page-heading { text-align: center; }
.page-heading .muted { margin-top: 6px; }
.text-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: inherit; font-weight: 500; text-decoration: none; }
.text-back:hover { text-decoration: underline; }
.text-back svg { width: 16px; height: 16px; }
.rewards-heading { margin: 18px 0 24px; }
.rewards-heading h1 { font-weight: 450; }
.rewards-heading p { margin: 6px auto 0; max-width: 44ch; }
.reward-card { padding: 29px 22px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.reward-icon { display: grid; place-items: center; width: 53px; height: 53px; margin: 0 auto 12px; border-radius: 50%; background: var(--background); color: var(--muted); }
.reward-card p { max-width: 38ch; margin: 13px auto 0; color: var(--muted); font-size: .9rem; }
.reward-card .text-link { margin-top: 4px; }
.rewards-footer { padding: 19px 14px 12px; border-top: 1px solid var(--line); color: var(--muted); }
.policy-links { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 14px; margin: 0 0 12px; padding: 0; list-style: none; }
.policy-links a { display: inline-flex; align-items: center; min-height: 34px; color: inherit; font-size: .83rem; text-decoration: none; }
.policy-links a:hover { text-decoration: underline; }
@media (max-width: 480px) {
  .policy-links li:last-child { flex-basis: 100%; text-align: center; }
}
.rewards-notice { font-size: .75rem; }
.rewards-notice p + p { margin-top: 8px; }
.copyright { margin-top: 12px; text-align: center; font-size: .8rem; }
.policy-page { margin-top: 13px; }
.policy-page p { margin: 12px 0; color: var(--muted); }
.profile-heading { margin-bottom: 18px; }
.profile-avatar { width: 54px; height: 54px; margin: 0 auto 8px; border: 1px solid var(--line); color: var(--muted); }
.overview, .history { padding: clamp(16px, 4vw, 23px); border-radius: 16px; }
.task-list { padding: 0; margin: 12px 0 0; list-style: none; }
.task-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 550; }
.task-list li:last-child { border-bottom: 0; }
.list-icon { width: 34px; height: 34px; color: var(--blue); }
.list-icon svg { width: 17px; height: 17px; }
.task-list small, .task-list strong { display: block; font-size: .75rem; color: var(--muted); }
.overview > .primary { margin-top: 16px; }
.overview > .text-link + .text-link { margin-left: 16px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; }
.stats div { padding: 11px; background: var(--background); border-radius: 11px; text-align: center; }
.stats strong, .stats span { display: block; }
.stats strong { color: var(--blue); font-size: 1.35rem; }
.stats span { color: var(--muted); font-size: .84rem; }
.demo-cash-out { margin: 12px 0 0; font-size: .84rem; text-align: center; }
.history { margin-top: 13px; }
.about h2 { margin-top: 19px; }
.about p { margin-top: 6px; color: var(--muted); }
form { display: grid; justify-items: start; gap: 8px; margin-top: 16px; }
form input { width: 100%; min-height: 43px; background: var(--background); border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; }
form .primary { width: 100%; }

.dashboard-footer { display: none; }
.dashboard .dashboard-footer { display: block; margin-top: auto; border-top: 1px solid var(--line); padding: 15px max(16px, env(safe-area-inset-left), env(safe-area-inset-right)); color: var(--muted); font-size: .73rem; text-align: center; }
.dashboard-footer a, .dashboard-footer button { color: inherit; }
.dashboard-footer button { font: inherit; padding: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 15px; margin-bottom: 4px; }
.nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 115px));
  justify-content: center;
  padding: 3px max(4px, env(safe-area-inset-right)) calc(3px + env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  background: var(--background);
}
.nav a { min-height: 55px; display: grid; justify-items: center; align-content: center; gap: 4px; padding: 4px; text-align: center; color: var(--muted); text-decoration: none; font-size: .75rem; font-weight: 500; line-height: 1.2; }
.nav svg { width: 23px; height: 23px; }
.nav a:hover { background: #e9e9e9; }
.nav [aria-current] { color: var(--blue); }
.nav a:focus-visible { outline-offset: -3px; }

dialog { width: min(100% - 32px, 475px); border: 1px solid var(--line); border-radius: 16px; padding: 23px; color: inherit; box-shadow: 0 24px 68px #0004; }
dialog::backdrop { background: #0008; }
dialog p, dialog dd { color: var(--muted); }
dialog p { margin-top: 8px; }
dialog dt { margin-top: 9px; font-weight: 600; }
dialog dd { margin: 0; font-size: .9rem; }
@media (min-width: 700px) {
  .dashboard main { margin-top: 40px; margin-bottom: 50px; }
  .dashboard-heading { margin-bottom: 23px; }
  .home-tasks progress { height: 18px; }
  .home-balance .primary { min-height: 47px; }
  .nav a { min-height: 47px; }
  .nav svg { width: 20px; height: 20px; }
}
@media (max-width: 360px) {
  main, main:has(.task) { width: calc(100% - 24px); }
  .home-stats dt { font-size: .72rem; }
  .reset-time { gap: 3px; font-size: .73rem; }
  .option-text { padding-inline: 9px; }
}

body:has(.nexus-auth) {
  background: #cde5ff url("/nexus-login-soft-blue.jpg") left center / cover no-repeat;
}
body:has(.nexus-auth) .nav { display: none; }
main:has(.nexus-auth) {
  width: min(calc(100% - 32px), 450px);
  margin: auto max(5vw, calc((100% - 1200px) / 2)) auto auto;
  padding-block: 32px;
}
.nexus-auth {
  padding: clamp(22px, 5vw, 40px);
  border: 1px solid #fff9;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 72px #23497440;
  color: #17263d;
}
.nexus-auth-brand, .nexus-google {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nexus-auth-brand { margin-bottom: 24px; font-weight: 700; }
.nexus-auth-brand img { border-radius: 12px; }
.nexus-auth h1 { font-weight: 700; }
.nexus-auth-intro { margin-top: 8px; color: #52617a; }
.nexus-auth [role=status] {
  margin: 16px 0;
  padding: 12px;
  border-radius: 10px;
  background: #edf3ff;
  font-size: .9rem;
}
.nexus-login { margin-top: 18px; }
.nexus-login form, form.nexus-login { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.nexus-login label { display: block; width: 100%; font-size: .9rem; font-weight: 600; min-width: 0; }
.nexus-login input {
  display: block;
  width: 100%;
  margin-top: 5px;
  min-width: 0;
  min-height: 50px;
  padding: 11px 13px;
  font-size: 16px;
  color: inherit;
  border: 1px solid #b9c6d8;
  border-radius: 10px;
  background: #fff;
}
.nexus-login .primary { width: 100%; min-height: 48px; border-radius: 10px; }
.nexus-login input:focus-visible { border-color: #285d9d; outline-offset: 1px; }
.nexus-login summary { cursor: pointer; color: var(--blue); font-size: .9rem; }
.nexus-login[open] form { margin-top: 12px; }
.nexus-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #52617a;
  font-size: .88rem;
}
.nexus-auth-divider::before, .nexus-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dce4f1;
}
.nexus-google {
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #747775;
  border-radius: 8px;
  background: #fff;
  color: #1f1f1f;
  font: 500 14px/20px Roboto, Arial, sans-serif;
  text-decoration: none;
}
.nexus-google:hover { background: #f3f6fc; }

button.nexus-google { width: 100%; }
.nexus-google:disabled { cursor: default; opacity: .65; background: #fff; }

@media (max-width: 760px) {
  body:has(.nexus-auth) {
    background-image: linear-gradient(#e4f1ff13, #e4f1ff54), url("/nexus-login-soft-blue-mobile.jpg");
    background-position: left center;
  }
  body:has(.nexus-auth) .app-scroll {
    padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right));
    scroll-padding-block: 16px;
  }
  main:has(.nexus-auth) {
    width: min(100%, 420px);
    margin-inline: auto;
    padding-block: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-bottom));
  }
  .nexus-auth { padding: clamp(16px, 5vw, 26px); border-radius: 18px; }
  .nexus-auth-brand { margin-bottom: 14px; }
  .nexus-auth-brand img { width: 38px; height: 38px; }
  .nexus-auth-intro { font-size: .9rem; }
  .nexus-login { margin-top: 12px; }
  .nexus-login form, form.nexus-login { gap: 13px; }
  .nexus-login .primary, .nexus-google { min-height: 48px; }
  .nexus-login summary { min-height: 44px; align-content: center; }
  .nexus-auth-divider { margin-block: 8px 12px; }
}

@media (max-width: 760px) and (max-height: 680px) {
  main:has(.nexus-auth) { margin-block: 0 auto; }
}

main:has(.task) { width: min(calc(100% - 32px), 560px); }
.task-progress {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px 12px;
  margin-bottom: 12px;
}
.task-progress progress { grid-row: 2; grid-column: 1 / -1; width: 100%; }
.task-level { font-weight: 650; color: var(--blue); }
.task .option-text { min-height: 50px; overflow-wrap: anywhere; }
body:has(.task-toolbar:not([hidden])) {
  grid-template-rows: minmax(0, 1fr) auto auto;
}
.task-toolbar {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
}
.task-toolbar .actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  max-width: 532px;
  margin: 0 auto;
}
.task-toolbar .actions .primary { width: 100%; margin: 0; }
@media (max-width: 420px) {
  main:has(.task) { width: calc(100% - 24px); }
  .task { padding-inline: 14px; }
  .task .option img { aspect-ratio: 16 / 11; }
}

.nexus-level-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  margin: 14px auto;
  max-width: 26rem;
  text-align: left;
  font-size: .85rem;
}
.nexus-level-progress progress { grid-column: 1 / -1; width: 100%; height: 8px; margin: 0; }
.nexus-sound { display: flex; align-items: center; gap: 8px; min-height: 44px; }

.home-next { margin-top: 14px; }
.home-next p { font-size: .9rem; overflow-wrap: anywhere; }
.home-next .muted { margin-top: 3px; }

.balance-value, .reward-amount, .reward-balance strong {
  font-variant-numeric: tabular-nums;
}
.reward-balance {
  width: fit-content;
  margin: 16px auto 0;
  padding: 8px 14px;
  border-radius: 12px;
  background: #eaf2ff;
  color: #15346a;
}
.reward-balance strong { margin-inline-start: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .task .option { transition: border-color 130ms ease, background-color 130ms ease, box-shadow 130ms ease; }
  .task-toolbar .primary { transition: background-color 150ms ease, color 150ms ease; }
  .completion .reward-balance { animation: reward-enter 280ms ease-out both; }
  @keyframes reward-enter {
    from { opacity: 0; transform: translateY(5px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}

.reward-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 12px;
}
.reward-metrics > div, .rewards-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 14px;
}
.reward-metrics dt, .reward-chart { color: var(--muted); font-size: .75rem; }
.reward-metrics dd { margin: 6px 0 0; font-size: clamp(.85rem, 3.65vw, 1.35rem); font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rewards-panel { margin-bottom: 12px; padding: 18px; }
.rewards-panel > p { margin-top: 6px; }
.reward-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 16px 0;
  gap: 4px;
}
.reward-chart li { display: grid; row-gap: 5px; align-items: end; text-align: center; }
.reward-chart-value { font-size: clamp(.55rem, 2.1vw, .75rem); font-weight: 650; color: var(--blue); overflow-wrap: anywhere; }
.reward-chart-track {
  height: 84px;
  display: flex;
  align-items: end;
  justify-content: center;
  background: #edf2fb;
  border-radius: 6px;
}
.reward-chart-track > span { width: 100%; height: var(--bar-size); border-radius: 6px; background: var(--blue); }
.withdrawal-goal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin: 16px 0; font-size: .82rem; }
.withdrawal-goal progress { width: 100%; accent-color: var(--blue); }
.withdrawal-goal p { color: var(--muted); }
.withdrawal-panel h3 { margin: 0; font-size: .9rem; }
.withdrawal-methods { list-style: none; padding: 0; margin: 8px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.withdrawal-methods li { border: 1px solid var(--line); padding: 4px 9px; border-radius: 8px; font-size: .8rem; }
.withdrawal-button { width: 100%; padding: 10px; border: 0; border-radius: 9px; font-weight: 650; background: var(--blue); color: white; }
.withdrawal-button:disabled { background: #e9edf4; color: #435268; cursor: not-allowed; }
.withdrawal-dialog { width: min(100% - 32px, 400px); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.withdrawal-dialog::backdrop { background: #10172788; }
.withdrawal-dialog p, .withdrawal-dialog fieldset { margin: 10px 0; }
.withdrawal-dialog fieldset { border: 1px solid var(--line); border-radius: 8px; }
.withdrawal-dialog label { display: block; padding: 5px 0; }

.withdrawal-goal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.withdrawal-goal progress, .withdrawal-goal p { grid-column: 1 / -1; }
.withdrawal-requirements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.withdrawal-requirements div { padding: 10px; border-radius: 10px; background: #f3f6fb; }
.withdrawal-requirements dt { font-size: .8rem; color: var(--muted); }
.withdrawal-requirements dd { margin: 2px 0 0; font-weight: 700; }
.withdrawal-fields { margin: 0 0 14px; padding: 0; min-width: 0; border: 0; }
.withdrawal-fields legend, .withdrawal-fields > label { font-size: .9rem; font-weight: 650; }
.withdrawal-options { display: grid; gap: 7px; margin: 8px 0 14px; }
.payout-option { display: grid; grid-template-columns: auto 58px 1fr; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.payout-option:has(:checked:not(:disabled)) { border-color: var(--blue); background: #f0f5ff; }
.payout-option small { display: block; color: var(--muted); }
.payout-mark { display: grid; place-items: center; min-height: 30px; background: #edf2fb; color: #17376b; border-radius: 6px; }
.paypal-mark { color: #003087; font-weight: 800; font-style: italic; font-size: .85rem; }
.paypal-mark span { color: #0070a4; }
.ach-mark { font-size: .8rem; font-weight: 800; }
#withdrawal-amount { display: block; width: 100%; min-height: 44px; margin-top: 5px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
#withdrawal-amount:disabled { background: #f3f6fb; color: #52617a; }
@media (max-width: 380px) { .withdrawal-goal { grid-template-columns: minmax(0, 1fr); } }

.withdrawal-panel { container-type: inline-size; }
.withdrawal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.withdrawal-status {
  border-radius: 999px;
  padding: 4px 10px;
  background: #edf2fa;
  color: #344965;
  font-size: .75rem;
  font-weight: 650;
}
.withdrawal-note { font-size: .86rem; }
.withdrawal-goal {
  padding: 12px;
  margin: 12px 0 8px;
  background: #f4f7fc;
  border-radius: 12px;
}
.withdrawal-goal strong, .withdrawal-requirements dd { font-variant-numeric: tabular-nums; }
.withdrawal-goal progress { height: 7px; }
.withdrawal-requirements { margin: 0 0 14px; }
.withdrawal-requirements div { padding: 8px 10px; }
.withdrawal-method-preview .withdrawal-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 7px 0 0;
}
.withdrawal-method-preview .payout-option {
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  align-content: start;
  gap: 5px;
  min-width: 0;
  font-size: .76rem;
  line-height: 1.25;
}
.withdrawal-method-preview .payout-mark { min-width: 42px; padding-inline: 4px; }
.withdrawal-fields { margin-top: 10px; }
@container (max-width: 280px) {
  .withdrawal-method-preview .withdrawal-options { grid-template-columns: 1fr; }
  .withdrawal-method-preview .payout-option { grid-template-columns: 52px 1fr; align-items: center; }
}

.practice-hero {
  padding: clamp(18px, 5vw, 28px);
  border-radius: 20px;
  color: #fff;
  background: radial-gradient(ellipse at 100% 0%, #315dae, transparent 75%), #122b57;
}
.practice-hero-top { display: flex; gap: 10px; justify-content: space-between; font-size: .82rem; color: #d8e7ff; }
.practice-hero h2 { margin-block: 8px 14px; font-size: clamp(1.4rem, 5vw, 2rem); overflow-wrap: anywhere; }
.practice-hero p { margin-bottom: 14px; }
.practice-hero .primary { background: white; color: #15346a; min-height: 48px; }
.practice-hero .primary:hover { background: #e7f0ff; }
.practice-overview { margin-top: 14px; padding: clamp(16px, 5vw, 24px); border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.practice-overview-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.practice-overview-top .text-link { display: inline-flex; align-items: center; gap: 3px; }
.practice-overview-top svg { width: 16px; height: 16px; }
.practice-overview .balance-value { margin: 4px 0 0; color: #15346a; background: none; -webkit-text-fill-color: currentColor; font-size: clamp(1.85rem, 7vw, 2.7rem); }
.practice-overview .nexus-level-progress { max-width: none; margin: 18px 0; }
.practice-daily { padding-top: 12px; border-top: 1px solid var(--line); }
.practice-daily h2 { font-size: .9rem; }
.practice-daily strong { font-size: .85rem; }
.practice-overview > progress { width: 100%; height: 7px; }
.practice-reset { font-size: .8rem; }
.practice-recap .recap-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px auto; max-width: 26rem; }
.recap-metrics div, .recap-return { border: 1px solid #e4ebf7; border-radius: 12px; padding: 10px; background: #f7f9fd; }
.recap-metrics dt, .recap-return span { display: block; color: var(--muted); font-size: .8rem; }
.recap-metrics dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.recap-return { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; justify-content: space-between; max-width: 26rem; margin: 0 auto; }

.nav a[href="#tasks"] svg { background: #15396e; color: white; border-radius: 10px; padding: 5px; width: 30px; height: 30px; }
@media (max-width: 380px) { .nav a { font-size: .7rem; } }

.finance-heading { margin-bottom: 14px; }
.finance-heading p { color: var(--muted); }
.finance-receipt { display: grid; gap: 16px; }
.receipt-total { padding: 16px; border-radius: 12px; background: #edf4ff; color: #15346a; }
.receipt-total span, .receipt-total strong { display: block; }
.receipt-total strong { font-size: clamp(1.6rem, 6vw, 2.3rem); font-variant-numeric: tabular-nums; }
.receipt-total small { font-size: .5em; }
.receipt-details div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.receipt-details dt { color: var(--muted); }
.receipt-details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.finance-receipt .primary { width: 100%; }

.member-hero { padding: clamp(16px, 5vw, 24px); border-radius: 20px; color: #fff; background: radial-gradient(ellipse at top right, #315dae, transparent 75%), #122b57; }
.member-identity { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.member-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #ffffff25; font-size: 1.2rem; font-weight: 750; }
.member-identity h1 { font-weight: 700; font-size: clamp(1.2rem, 5vw, 1.65rem); }
.member-identity p { color: #dbe7ff; overflow-wrap: anywhere; font-size: .88rem; }
.member-level { border-radius: 999px; padding: 4px 8px; background: #ffffff25; font-size: .75rem; white-space: nowrap; }
.member-hero .nexus-level-progress { max-width: none; margin: 16px 0 0; color: #e7eeff; }
.member-hero progress { accent-color: #91baff; }
.member-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; }
.member-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px; }
.member-stats dt, .member-preference small, .member-links small { color: var(--muted); font-size: .78rem; }
.member-stats dd { margin: 2px 0 0; font-size: 1.12rem; font-weight: 700; }
.member-settings form { margin: 12px 0 0; }
.member-edit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.member-edit input, .member-edit .primary { min-width: 0; min-height: 44px; margin: 0; border-radius: 10px; }
.member-preference, .member-links > a { display: flex; align-items: center; gap: 10px; padding-block: 10px; border-top: 1px solid var(--line); }
.member-preference { justify-content: space-between; margin-top: 10px; }
.member-preference small, .member-links small { display: block; }
.member-preference input { flex: none; width: 20px; height: 20px; accent-color: var(--blue); }
.member-links a { color: inherit; text-decoration: none; }
.member-links a:hover { color: var(--blue); }
.member-links h2 { margin-bottom: 8px; }
.member-links > a > svg { margin-left: auto; width: 16px; flex: none; }
.member-link-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; background: #edf3fe; border-radius: 9px; color: #15396e; }
.member-link-icon svg { width: 18px; }
.member-signout { color: #922b34; border: 0; background: none; padding: 8px 0; min-height: 44px; font-weight: 600; }

.withdrawal-form, .withdrawal-fields { display: block; width: 100%; min-inline-size: 0; }
.withdrawal-fields .withdrawal-options,
.withdrawal-method-preview .withdrawal-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin: 7px 0 12px;
}
.withdrawal-options .payout-option {
  width: 100%;
  min-height: 44px;
  padding: 6px 10px;
  grid-template-columns: 16px 52px minmax(0, 1fr);
  align-items: center;
  font-size: .86rem;
  line-height: 1.25;
}
.withdrawal-method-preview .payout-option {
  grid-template-columns: 52px minmax(0, 1fr);
  justify-items: stretch;
}
.withdrawal-options .payout-option input {
  width: 15px;
  height: 15px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--blue);
}
.withdrawal-options .payout-mark { min-height: 26px; }
.withdrawal-options .payout-option small { font-size: .75rem; }
.withdrawal-form .withdrawal-button { min-height: 48px; }

.finance-history > p { font-size: .85rem; margin-top: 4px; }
.finance-history ul { list-style: none; padding: 0; margin: 12px 0 0; }
.finance-history li { padding: 12px 0; border-top: 1px solid var(--line); }
.finance-history li:last-child { padding-bottom: 0; }
.finance-history-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.finance-history li p, .finance-history code { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.finance-history-actions { display: flex; flex-wrap: wrap; gap: 0 16px; }
.finance-history-actions button { min-height: 44px; padding: 0; }
.finance-history-empty { padding-block: 10px; }

.member-payout { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 0; border: 0; border-top: 1px solid var(--line); background: none; color: inherit; }
.member-payout > svg { margin-left: auto; width: 16px; flex: none; }
.payout-settings-dialog p { font-size: .9rem; }
.payout-settings-dialog form { margin-top: 12px; }

.payout-detail { margin: 0 0 12px; }
.payout-detail label, .payout-detail small { display: block; }
.payout-detail label { font-size: .9rem; font-weight: 650; }
.payout-detail input { margin: 5px 0; border-radius: 9px; }
.payout-detail small { color: var(--muted); }

.finance-evaluations .text-link { font-size: .82rem; }
.finance-eval-list { list-style: none; margin: 8px 0 0; padding: 0; }
.finance-eval-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.finance-eval-list small { display: block; color: var(--muted); }
.finance-eval-credit { margin-left: auto; color: #15396e; font-variant-numeric: tabular-nums; }
.finance-rank { display: grid; place-items: center; min-width: 29px; min-height: 29px; border-radius: 8px; background: #edf3fe; color: #15396e; font-weight: 650; }

.finance-wallet {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 16px;
  width: min(100%, 620px);
  margin-inline: auto;
  padding: clamp(16px, 4vw, 24px);
  border: 1px solid #28477e;
  border-radius: 20px;
  color: white;
  background: radial-gradient(ellipse at 100% 0%, #2e5593, transparent 72%), #101f3b;
  box-shadow: 0 12px 28px #152d4924;
}
.wallet-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wallet-heading h1 { font-size: clamp(1.05rem, 4vw, 1.35rem); font-weight: 700; }
.wallet-icon {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid #ffffff40; border-radius: 10px; background: #ffffff1a;
}
.wallet-icon svg { width: 20px; height: 20px; }
.finance-wallet .withdrawal-status { margin-left: auto; background: #ffffff24; color: #e4eeff; }
.finance-wallet-label { display: block; color: #dbe7ff; font-size: .82rem; }
.wallet-balance > strong { display: block; margin-top: 4px; font-size: clamp(1.8rem, 7vw, 2.8rem); line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wallet-balance small { font-size: .42em; color: #dbe7ff; }
.finance-history-jump {
  display: flex; gap: 6px; align-items: center; justify-self: start;
  padding: 0 10px; min-height: 44px; border: 1px solid #ffffff40; border-radius: 9px;
  background: #ffffff12; color: #fff; font-size: .85rem;
}
.finance-history-jump:hover { background: #ffffff26; }
.finance-history-jump svg { width: 15px; height: 15px; }
.finance-review { display: block; width: min(calc(100% - 28px), 440px); }
.finance-review:not([open]) { display: none; }
.finance-review-total { display: block; margin: 14px 0 4px; color: #15346a; font-size: clamp(1.45rem, 6vw, 2rem); font-variant-numeric: tabular-nums; }
.finance-review-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-top: 14px; }
.finance-history h2:focus { scroll-margin-block: 16px; }

.demo-leaderboard > p { margin: 5px 0 10px; font-size: .85rem; }
.demo-rank-date { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; text-align: center; gap: 3px; background: #f2f6fd; border-radius: 11px; font-size: .85rem; }
.demo-rank-date button { min-height: 44px; border: 0; background: none; color: #15396e; font-size: 1.35rem; }
.demo-rank-date button:disabled { opacity: .35; cursor: default; }
.demo-rank-list { padding: 0; margin: 8px 0 0; list-style: none; }
.demo-rank-list li { display: grid; grid-template-columns: 22px 32px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.demo-rank-list li:last-child { border-bottom: 0; }
.demo-rank-position { color: #52617a; font-weight: 650; text-align: center; }
.demo-rank-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #edf3fe; color: #15396e; font-size: .7rem; font-weight: 750; }
.demo-rank-list li:first-child .demo-rank-avatar { background-color: #fff0d0; color: #795013; }
.demo-rank-amount { text-align: right; color: #15396e; font-variant-numeric: tabular-nums; }
.demo-rank-amount small { display: block; color: var(--muted); font-size: .68rem; }

.demo-rank-list .demo-rank-portrait {
  background-image: url("/demo-rank-portraits.jpg");
  background-size: 400% 400%;
  background-position: var(--portrait-x) var(--portrait-y);
  background-repeat: no-repeat;
}

.demo-rank-list .demo-rank-portrait-alt { background-image: url("/demo-rank-portraits-2.jpg"); }
.demo-rank-list .demo-rank-avatar,
.demo-rank-position { border-radius: 50%; }
.demo-rank-position { display: grid; place-items: center; width: 22px; height: 22px; background: #f0f4fa; }
.demo-rank-list li:first-child .demo-rank-position { background: #fff0d0; color: #795013; }

.desktop-install {
  position: fixed;
  z-index: 5;
  inset: auto 20px calc(72px + env(safe-area-inset-bottom)) auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  width: min(360px, calc(100% - 40px));
  padding: 14px;
  border: 1px solid #dce6f5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px #132b5526;
  color: #142b4d;
  font-size: .88rem;
}
.desktop-install img { border-radius: 10px; }
.desktop-install p { color: var(--muted); font-size: .8rem; margin: 3px 0 8px; }
.desktop-install .primary { min-height: 40px; border-radius: 9px; }
.desktop-install-dismiss { border: 0; background: none; color: #52617a; width: 36px; height: 36px; font-size: 1.35rem; }
@media (max-width: 767px), (hover: none), (pointer: coarse) {
  .desktop-install { display: none; }
}

.finance-review { padding: clamp(16px, 5vw, 24px); }
.finance-review-amount { margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px; background: #eef4ff; color: #15346a; }
.finance-review-amount span { font-size: .82rem; }
.finance-review-amount .finance-review-total { margin: 0; overflow-wrap: anywhere; }
.finance-review-note { margin-top: 10px; font-size: .84rem; }
.finance-confirmed {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 12px;
  border: 1px solid #cbe3d8; border-radius: 12px; background: #eef8f3; color: #194b3a;
}
.finance-confirmed > span { display: grid; place-items: center; flex: none; border-radius: 50%; width: 30px; height: 30px; background: #d9efe5; }
.finance-confirmed svg { width: 17px; height: 17px; }
.finance-confirmed p { font-size: .84rem; }
@media (prefers-reduced-motion: no-preference) {
  .finance-review[open], .finance-confirmed { animation: payout-enter 220ms cubic-bezier(.2,.7,.3,1) both; }
  @keyframes payout-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

main:has(.finance-wallet), main:has(.member-hero) {
  width: min(calc(100% - 28px), 1040px);
}
main:has(.finance-wallet) .rewards-panel,
main:has(.member-hero) .rewards-panel {
  padding: clamp(14px, 3vw, 24px);
  border-color: #dce4ef;
  border-radius: 16px;
  box-shadow: 0 5px 20px #172d5108;
}
.finance-layout, .finance-insights, .member-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-block: 12px;
}
.finance-layout .rewards-panel, .finance-insights .rewards-panel,
.member-layout .rewards-panel { margin: 0; }
.finance-history-column { min-width: 0; }
.finance-history-column .finance-confirmed { margin: 0 0 10px; }
.finance-history li {
  margin-top: 8px;
  border: 1px solid #e2e9f2;
  border-radius: 12px;
  padding: 11px;
  background: #f8fafd;
}
.finance-history li:last-child { padding-bottom: 11px; }
.finance-history li code { overflow-wrap: anywhere; }
.finance-history-actions { margin-top: 8px; gap: 6px; }
.finance-history-actions button {
  padding-inline: 10px;
  border: 1px solid #d8e3f3;
  border-radius: 8px;
  background: white;
  text-decoration: none;
  font-size: .78rem;
}
.finance-history-actions button:hover { background: #edf4ff; }
.withdrawal-form .withdrawal-button { margin-top: 4px; }
.member-settings .member-edit { width: 100%; }
.member-settings #nickname { width: 100%; }
.member-preference input {
  appearance: none;
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #65748a;
  cursor: pointer;
}
.member-preference input::after {
  content: "";
  position: absolute;
  inset: 3px auto auto 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
}
.member-preference input:checked { background: #0e3c8c; }
.member-preference input:checked::after { transform: translateX(18px); }
@media (min-width: 820px) {
  .finance-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; }
  .finance-insights, .member-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 380px) {
  .finance-history-actions button { flex: 1; font-size: .72rem; padding-inline: 6px; }
}

#demo-destination {
  width: 100%;
  min-height: 44px;
  margin: 5px 0;
  padding: 8px;
  font: inherit;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}

.payout-settings-dialog .withdrawal-fields legend { margin-bottom: 4px; }
.payout-settings-dialog .payout-option { cursor: pointer; min-height: 58px; }
.payout-settings-dialog .payout-mark { background: #edf3ff; min-height: 32px; }
.payout-settings-dialog .payout-option:has(:checked) { outline: 1px solid var(--blue); outline-offset: -1px; }
.payout-settings-dialog [data-destination] { overflow-wrap: anywhere; }
.payout-settings-dialog .payout-detail { padding: 10px 12px; background: #f5f8fd; border-radius: 10px; }

.payout-settings-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  width: min(calc(100% - 24px), 540px);
  max-height: calc(100dvh - 24px);
  border: 1px solid #dce6f3;
  border-radius: 20px;
  overflow: hidden;
}
.payout-settings-dialog[open] { display: flex; flex-direction: column; }
.payout-dialog-heading {
  flex: none;
  text-align: center;
  padding: 14px 16px 12px;
  background: #f5f8fe;
  border-bottom: 1px solid #dce6f3;
}
.payout-dialog-heading .wallet-icon { margin: 0 auto 6px; color: #15346a; background: #e4edff; }
.payout-dialog-heading p { margin: 4px 0 0; }
.payout-settings-dialog form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  gap: 0;
}
.payout-dialog-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px clamp(12px, 4vw, 24px); }
.payout-dialog-body .payout-detail { width: 100%; margin-block: 8px 0; }
.payout-dialog-body .payout-detail input { display: block; width: 100%; }
.payout-dialog-body .withdrawal-fields { margin: 0; }
.payout-dialog-body [role="status"]:empty { display: none; }
.payout-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: 6px;
  padding: 10px clamp(12px, 4vw, 24px);
  border-top: 1px solid #dce6f3;
  background: white;
}
.payout-dialog-actions .primary { flex: 1; border-radius: 10px; }
.payout-dialog-actions button { margin: 0; }

.withdrawal-processing {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 16px 0;
  text-align: center;
}
.withdrawal-processing :is(h2, p) { margin: 0; }
.withdrawal-processing progress { width: min(100%, 260px); height: 8px; accent-color: #153e85; }
.withdrawal-countdown { color: #153e85; font-variant-numeric: tabular-nums; }
.withdrawal-spinner {
  width: 46px;
  height: 46px;
  border: 4px solid #e1eaff;
  border-top-color: #153e85;
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .withdrawal-spinner { animation: withdrawal-spin .9s linear infinite; }
}
@keyframes withdrawal-spin { to { transform: rotate(360deg); } }

.withdrawal-lock {
  margin: 16px 0 20px;
  padding: clamp(16px, 4vw, 24px);
  border: 1px solid #e4c57b;
  border-radius: 20px;
  background: radial-gradient(ellipse at top right, #ffe6a7 0, transparent 68%), #fff8e7;
  color: #3c2809;
}
.withdrawal-lock-heading { display: flex; align-items: flex-start; gap: 12px; }
.withdrawal-lock-icon {
  display: grid;
  flex: 0 0 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #e2bb62;
  border-radius: 13px;
  background: #f9e3a9;
  color: #785018;
}
.withdrawal-lock-heading h3 { margin: 0; font-size: clamp(1rem, 4vw, 1.25rem); color: inherit; }
.withdrawal-lock-heading p { margin: 4px 0 0; color: #654c23; font-size: .875rem; line-height: 1.45; }
.withdrawal-lock-goals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
  gap: 8px;
  margin-top: 16px;
}
.withdrawal-lock-goal {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid #ead5a5;
  border-radius: 12px;
  background: #fffaf0;
}
.withdrawal-lock-goal label { color: #654c23; font-size: .78rem; }
.withdrawal-lock-goal strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.withdrawal-lock-goal small { color: #654c23; font-size: .75rem; font-weight: 500; }
.withdrawal-lock-goal progress {
  width: 100%;
  height: 5px;
  margin-top: 3px;
  accent-color: #9e6006;
}

#payout-feedback:empty { display: none; }
.member-payout-list { margin: 0 0 12px; padding: 0; list-style: none; }
.member-payout-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 10px 12px;
  border: 1px solid #dce7f7;
  border-radius: 12px;
  background: #f5f8fd;
}
.member-payout-list li + li { margin-top: 6px; }
.member-payout-list small { display: block; overflow-wrap: anywhere; }
.member-payout-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.member-payout-actions button {
  min-height: 44px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--blue);
  font-weight: 650;
}
.member-payout-actions [data-remove-method] { color: #a02736; }

.nexus-password-setup .nexus-password-help {
  margin-top: -7px;
  color: #52617a;
  font-size: .875rem;
}
.nexus-password-setup [role="alert"] {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #892637;
  background: #fff1f3;
}
@media (max-width: 760px), (hover: none), (pointer: coarse) {
  #install-app, #profile-install, #desktop-install { display: none !important; }
}

.task .review-context {
  margin: 14px 0 10px;
  padding: 13px 15px;
  border: 1px solid #d7e5fa;
  border-radius: 14px;
  background: #eff5ff;
  color: #193657;
  text-align: left;
  font-style: normal;
  line-height: 1.5;
}
.review-context-label {
  display: block;
  margin-bottom: 4px;
  color: #294f80;
  font-size: .75rem;
  font-weight: 700;
}
.comparison-options .option { text-align: left; }
.comparison-options .option-text { align-items: flex-start; line-height: 1.5; }

/* First evaluation and progress */
.password-group{display:grid;gap:8px;min-width:0;width:100%;justify-self:stretch}
.password-field{position:relative;width:100%;min-width:0}
.nexus-login .password-field input{display:block;width:100%;max-width:none;margin:0;padding-right:54px}
.password-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:8px;background:transparent;color:#526884;cursor:pointer}
.password-toggle:hover{background:#edf3fb;color:#174784}.password-toggle:focus-visible{outline:2px solid #347bd2;outline-offset:-2px}
.password-toggle svg{width:21px;height:21px}
.nexus-auth .nexus-login>a,.nexus-auth p.nexus-login a{color:#174784;text-underline-offset:3px;font-size:.9rem}
.learning-progress{background:#fff;border:1px solid #dbe5f1;border-radius:20px;padding:clamp(18px,3vw,26px);margin:18px 0}
.learning-progress h2{font-size:1.1rem;margin:0 0 16px;letter-spacing:-.02em}
.learning-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}
.learning-metrics dt{font-size:.76rem;color:#49617f}.learning-metrics dd{margin:4px 0 0;font-size:1.65rem;font-weight:750;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.learning-milestones{padding:0;list-style:none;display:grid;gap:0;margin:18px 0 0}
.learning-milestones li{display:flex;align-items:center;gap:10px;padding:12px 0;border-top:1px solid #e5ecf4;color:#52657b;font-size:.84rem}
.learning-milestones small{margin-left:auto}.learning-milestones svg{width:18px;height:18px;flex:0 0 18px}.learning-milestones .earned{color:#176447}
.learning-progress>.muted{font-size:.75rem;line-height:1.5;margin:12px 0 0}
.first-evaluation-guide{background:#edf4ff;border:1px solid #d6e5fb;border-radius:12px;padding:14px 16px;color:#294b78;font-size:.9rem;line-height:1.55;margin:14px 0}
.practice-hero>p{max-width:42ch;line-height:1.6;color:#e4edfb}
.nexus-auth form input{font-size:16px}
@media(max-width:600px){.practice-hero{padding:24px}.practice-hero h2{font-size:1.8rem;line-height:1.18}.task h1{font-size:1.35rem;line-height:1.3}.task-reward{font-size:1.7rem}.learning-metrics{gap:8px}.learning-metrics dd{font-size:1.5rem}.task-toolbar .actions button{min-height:48px}.learning-progress{border-radius:16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Rewards keeps the deeper review and guidance together. */
.rewards-panel h2{margin:0 0 8px;font-size:1.15rem;line-height:1.3;letter-spacing:-.02em}
.practice-insights>p,.review-invite p,.reminder-card>p{color:#49617f;font-size:.9rem;line-height:1.65}
.practice-insights details{border-top:1px solid #e3ebf5;margin-top:14px;padding-top:12px}
.practice-insights summary{cursor:pointer;color:#174784;font-weight:600;font-size:.88rem;padding:6px 0}
.practice-insights details p{font-size:.88rem;line-height:1.6;color:#49617f}
.review-invite{display:flex;gap:18px;align-items:center;justify-content:space-between}
.review-invite .primary{flex:0 0 auto;white-space:nowrap}
.reminder-card label{display:flex;align-items:flex-start;gap:10px;font-size:.88rem;margin:16px 0;line-height:1.5}
.reminder-card input{width:20px;height:20px;flex:0 0 20px;accent-color:#174784}
.reminder-card .primary{min-height:46px}.reminder-card [role=status]:empty{display:none}
.review-day-label{display:grid;gap:7px;font-size:.85rem;color:#49617f;margin:20px 0}
.review-day-label select{width:100%;padding:12px;border:1px solid #bdcee2;border-radius:10px;background:#fff;color:#162b4c;font:inherit;min-height:46px}
.answer-review-list{display:grid;gap:16px}.answer-review-list .rewards-panel{margin:0}
.review-answer-heading{display:flex;gap:12px;justify-content:space-between;align-items:baseline;flex-wrap:wrap}
.review-answer-heading>span{font-size:.75rem;color:#49617f}.answer-review>p{line-height:1.65;color:#354e70;font-size:.9rem}
.review-answer-details{margin:16px 0}.review-answer-details dt{font-weight:650;font-size:.8rem;color:#49617f;margin-top:14px}.review-answer-details dd{font-size:.9rem;margin:5px 0 0;line-height:1.65}
.review-explanation{background:#f1f6fd;border-radius:12px;padding:15px;margin-top:18px}
.review-explanation strong{font-size:.82rem}.review-explanation p{font-size:.88rem;line-height:1.65;margin:6px 0 0;color:#354e70}
.review-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}
.review-images figure{margin:0}.review-images img{display:block;width:100%;height:150px;object-fit:cover;border-radius:9px}.review-images figcaption{font-size:.76rem;margin-top:6px;line-height:1.5}
.support-report-dialog{max-height:calc(100dvh - 32px);overflow:auto}
.support-report-dialog form{display:grid;gap:14px}
.support-report-dialog label{display:grid;gap:6px;width:100%;font-size:.86rem;font-weight:600}
.support-report-dialog textarea,.support-report-dialog input{width:100%;font:inherit;font-size:16px;padding:11px;border:1px solid #bdcee2;border-radius:10px;resize:vertical;background:#fff;color:#162b4c}
.support-report-dialog textarea[readonly]{background:#f4f7fb;font-size:.8rem}
.support-report-actions{display:flex;gap:10px;justify-content:flex-end;width:100%;flex-wrap:wrap}
.report-problem{font-size:.82rem;min-height:44px;margin-top:10px;color:#49617f}
@media(max-width:600px){.review-invite{display:block}.review-invite .primary{width:100%;margin-top:14px}.rewards-heading h1{font-size:1.9rem}.reward-metrics dd{font-size:1.35rem}.support-report-dialog{width:calc(100% - 24px);padding:20px}.support-report-actions>button{flex:1}.review-images img{height:120px}}
.evaluation-focus{font-size:.8rem;line-height:1.5;color:#49617f;margin:12px 0}
