.account-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.account-claim {
  background: linear-gradient(180deg, #f1fcf6, #fff 70%);
  border-color: #d8eee2;
}
.inner-main .account-claim-help {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #627287;
  font-size: var(--type-action);
  font-weight: var(--weight-action);
}
.account-claim-help:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.account-claim .stat-card {
  background: #fff;
  border-color: #e2f0e9;
}
.account-claim time { font-variant-numeric: tabular-nums; }
.account-claim small, .stat-card dd small { font-size: var(--type-label); font-weight: 500; }
.account-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(3px, 1vw, 8px);
}
.account-week li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 2px;
  padding: 8px 0 4px;
  border-radius: 9px;
  border: 1px solid #ebeff7;
  background: #f6f8fc;
  color: #506179;
  font-size: var(--type-caption);
}
.account-week li.current { border-color: #0b9c48; color: var(--green-dark); }
.account-week li[data-claimed="true"] { color: #176844; background: #e9f9ef; }
.account-week strong { font-size: 20px; line-height: 1; }
.account-list { border-block: 1px solid var(--border); }
.avatar-crop-dialog {
  width: min(440px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  margin: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  color: #111;
}
.avatar-crop-dialog::backdrop { background: rgb(0 0 0 / 50%); }
.avatar-crop-dialog .inner-field { margin-top: 12px; }
.avatar-crop-dialog input[type="range"] { width: 100%; }
#avatar-canvas {
  display: block;
  width: min(100%, 260px);
  height: auto;
  margin: 16px auto;
  border-radius: 50%;
  touch-action: none;
  cursor: move;
}
.profile-return { margin-top: 24px; justify-content: center; }
.account-list li {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-block: 10px;
  font-size: var(--type-body);
}
.account-list li + li { border-top: 1px solid var(--border); }
.account-list .badge { white-space: nowrap; }
.account-list .icon { color: var(--green-dark); }
.account-navigation li { padding: 0; align-items: stretch; }
.inner-main .account-navigation-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 45px;
  padding-block: 10px;
  color: #111;
  font-size: var(--type-action);
  font-weight: var(--weight-action);
  text-decoration: none;
}
.account-navigation-link .icon { color: inherit; }
.account-site-info { margin-top: 20px; }
.account-copyright { margin-top: 12px; text-align: center; color: var(--muted); font-size: var(--type-caption); line-height: 1.5; }
.account-navigation-link:hover { background: #f6f8f7; }
.account-navigation-link:focus-visible { outline: 2px solid #111; outline-offset: -2px; }
.account-knowledge {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #ddd6ff;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7f4ff, #f7fbff);
}
.account-knowledge .badge { justify-self: start; color: #583b9f; background: #ece4ff; }
.account-knowledge dt { font-size: var(--type-label); color: #605985; }
.account-knowledge dd { font-weight: 400; }
.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.account-tabs button {
  min-height: 44px;
  padding: 5px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #45546e;
  background: transparent;
  font-size: var(--type-action);
  font-weight: var(--weight-action);
  line-height: 1.5;
}
.account-tabs button:hover { background: #f2f6fb; }
.account-tabs [aria-selected="true"] {
  color: var(--green-dark);
  border-color: #d2efdf;
  background: #e9f9ef;
  font-weight: var(--weight-action);
}
.account-exchange {
  --exchange-ink: #103632;
  --exchange-deep: #073d35;
  --exchange-amber: #955617;
  --exchange-pad: clamp(20px, 3vw, 40px);
  display: flow-root;
  background: linear-gradient(180deg, #e6f7f0, #f7fcfa 405px, var(--page) 580px);
}
.account-exchange .account-exchange-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
  margin-block: clamp(20px, 3vw, 36px) clamp(28px, 3.5vw, 44px);
}
.account-exchange-controls > .inner-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 18px;
  padding: var(--exchange-pad);
}
.account-exchange-controls h2 {
  font-size: var(--type-section);
  font-weight: var(--weight-heading);
  line-height: 1.4;
}
.account-exchange-wallet {
  color: #f3fff9;
  border-color: #124d43;
  background: #062623 url("../assets/exchange/exchange-arrows.webp") center / cover no-repeat;
}
.account-exchange-wallet-heading {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-bottom: 16px;
}
.account-exchange-wallet .badge { color: #51370d; background: #f9e2af; }
.account-exchange-balances {
  width: min(100%, clamp(180px, 23vw, 255px));
  color: #e0f4eb;
}
.account-exchange-balances > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 47px;
  padding-block: 3px;
}
.account-exchange-balances > div + div { border-top: 1px solid #d4fff34a; }
.account-exchange-balances dt { font-size: var(--type-label); }
.account-exchange-balances dd {
  color: #fff;
  font-size: clamp(25px, 2.8vw, 36px);
  line-height: 1.25;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.account-exchange-note {
  max-width: 290px;
  margin-block: 11px 16px;
  color: #cfebe1;
  font-size: var(--type-caption);
  line-height: 1.65;
}
.account-exchange .account-exchange-wallet .button-outline {
  margin-top: auto;
  padding-inline: 22px;
  color: #effff8;
  border-color: #cbf8e081;
  background: #0d443be0;
}
.account-exchange .account-exchange-wallet .button-outline:hover { background: #215b50; }
.account-exchange .account-exchange-wallet .button:focus-visible { outline-color: #a8f9df; }
.account-exchange-quantity {
  color: var(--exchange-ink);
  background: linear-gradient(135deg, #fffefa, #faf5e8);
  border-color: #e8decd;
}
.account-exchange-quantity .account-stepper {
  display: grid;
  grid-template-columns: 1fr 2.15fr 1fr;
  width: 100%;
  margin-top: 24px;
  align-items: stretch;
  border: 1px solid #d8cebb;
  border-radius: 12px;
  background: #fffdf8;
}
.account-exchange .account-stepper .button {
  padding: 0;
  min-height: 60px;
  border: 0;
  border-radius: 0;
  color: var(--exchange-ink);
  background: transparent;
  font-size: 25px;
}
.account-exchange .account-stepper .button:first-child { border-radius: 11px 0 0 11px; }
.account-exchange .account-stepper .button:last-child { border-radius: 0 11px 11px 0; }
.account-exchange .account-stepper .button:hover:not(:disabled) { background: #eaf6ee; }
.account-exchange .account-stepper .button:disabled { color: #6b7670; background: #eeeee8; }
.account-stepper output {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 4px 6px;
  border-inline: 1px solid #ddd2bd;
  background: #fcf7eb;
  color: var(--exchange-amber);
  text-align: center;
  font-size: clamp(30px, 3.2vw, 43px);
  line-height: 1.15;
  font-weight: 740;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.account-exchange-quantity #exchange-cost {
  margin-block: 0 12px;
  color: #565b50;
  font-size: var(--type-label);
  font-variant-numeric: tabular-nums;
}
.account-exchange-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 8px 16px;
  margin-block: 14px;
  font-size: var(--type-label);
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.account-exchange-breakdown > div {
  padding-block-start: 7px;
  border-block-start: 1px solid #dfdfd5;
}
.account-exchange-breakdown dt { color: #565b50; }
.account-exchange-breakdown dd { margin-top: 3px; }
.account-exchange-breakdown dd strong { font-size: var(--type-body); }
.account-exchange-quantity > .inner-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}
.account-exchange-quantity .inner-actions .button { min-height: 46px; }
.account-exchange .button-primary:not(:disabled) {
  color: #fff;
  background: linear-gradient(115deg, #0b5b50, #062e2a);
}
.account-exchange .button-primary:hover:not(:disabled) { background: #0b6d59; }
.account-exchange-quantity .button-outline:not(:disabled) {
  color: var(--exchange-ink);
  background: #ffffff7a;
  border-color: #689080;
}
.account-exchange-quantity .button-outline:hover:not(:disabled) { background: #eaf6ee; }
.account-exchange-catalog {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 20px 28px;
}
.account-exchange .account-exchange-catalog { margin-top: 0; }
.account-exchange-catalog > h2 { align-self: center; color: var(--exchange-ink); }
.account-exchange-catalog [role="tabpanel"] { grid-column: 1 / -1; }
.account-exchange-catalog .account-tabs {
  gap: 6px;
  padding: 0;
  border-color: #dce8e2;
}
.account-exchange-catalog .account-tabs button {
  min-height: 43px;
  padding-inline: 18px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 7px 7px 0 0;
  color: #4a5f57;
}
.account-exchange-catalog .account-tabs button:hover { background: #f0f8f4; }
.account-exchange-catalog .account-tabs [aria-selected="true"] {
  color: #096b39;
  border-bottom-color: var(--action-green);
  background: transparent;
}
.account-area-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 18px);
}
.account-area-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0e9e4;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 10px #194d3c09;
}
.account-area-card.is-open { border-color: #a6d8be; }
.account-area-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 2;
  object-fit: cover;
  background: #e5eeea;
}
.account-area-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 3px;
  padding: 11px clamp(10px, 1.35vw, 19px) 12px;
}
.inner-main .account-area-caption h3 { color: var(--exchange-ink); font-size: var(--type-card); font-weight: var(--weight-title); }
.account-area-status { color: #586963; font-size: var(--type-caption); line-height: 1.4; white-space: nowrap; }
.is-open .account-area-status { color: #087139; font-weight: var(--weight-action); }
.account-exchange dialog {
  color: var(--exchange-ink);
  background: #fffdfa;
  border-color: #e4ddcc;
}
.account-today-points-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.inner-main .account-today-points-link {
  flex: none;
  gap: 2px;
  font-size: var(--type-label);
  line-height: 1.4;
}
.account-today-points-link .icon { font-size: .9em; }
@media (max-width: 720px) {
  .inner-main .inner-grid.two:has(> .account-today-points) { gap: 20px; }
  .inner-main .account-today-points {
    display: grid;
    gap: 14px;
    padding: 20px;
  }
  .account-today-points > strong { line-height: 1.2; }
  .account-today-points > .button {
    width: 100%;
    min-height: 48px;
  }
  .account-today-points-note { margin: 0; }
}
@media (max-width: 780px) {
  .account-exchange .account-exchange-controls { grid-template-columns: minmax(0, 1fr); }
  .account-area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 500px) {
  .account-exchange-wallet {
    background-image: linear-gradient(90deg, #062623 27%, #062623e0 53%, #0626230d 96%), url("../assets/exchange/exchange-arrows.webp");
    background-position: center, right -55px center;
    background-size: cover, clamp(370px, 116vw, 540px) auto;
  }
  .account-exchange-balances { width: min(100%, 178px); }
  .account-exchange-note { max-width: 230px; }
  .account-exchange-catalog { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .account-exchange-catalog .account-tabs button { flex: 1 0 0; padding-inline: 4px; }
  .account-area-caption { padding-block: 8px 9px; }
}
.account-avatar {
  display: grid;
  place-items: center;
  width: clamp(50px, 9vw, 76px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: #e9f8f1;
  color: var(--green-dark);
  font-size: 28px;
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-identity { justify-content: flex-start; }
.account-identity .button { margin-left: auto; }
.account-options {
  display: flex;
  gap: 12px;
  padding: 8px 0 0;
  margin: 0;
  border: 0;
}
.account-options input { margin: 0; }
.account-empty { padding: 18px; border: 1px dashed #d7e0ee; border-radius: 10px; background: #f7f9fd; }
.account-table-wrap { max-width: 100%; overflow: auto; }
.account-table-wrap table { min-width: 290px; }
.account-qr { width: 164px; height: auto; border: 1px solid var(--border); border-radius: 9px; image-rendering: pixelated; }
.account-security > div {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(70px, .38fr) 1fr;
  gap: 12px;
  min-height: 64px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.account-security dt { font-size: var(--type-label); font-weight: 500; }
.account-security dd { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; min-width: 0; }
.account-security dd span { overflow-wrap: anywhere; }
.account-steps {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: var(--type-label);
  list-style: none;
}
.account-steps li { display: flex; align-items: center; gap: 5px; }
.account-steps li span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #edf1f8;
}
.account-steps [aria-current="step"] { color: var(--green-dark); font-weight: var(--weight-action); }
.account-steps [aria-current="step"] span { background: #dff7e9; }
.inner-main input[type="range"] { accent-color: var(--green-dark); }
.account-pagination { margin-top: 14px; }
.account-pagination output { color: var(--muted); font-size: var(--type-label); }
.account-table-wrap tbody[hidden], #email-finish-form[hidden] { display: none; }

.account-milestone-viewport {
  container-type: inline-size;
  overflow-x: auto;
  scrollbar-width: none;
}
.account-milestone-viewport::-webkit-scrollbar { display: none; }
.account-milestone-track {
  --milestone-step: 116px;
  --milestone-dot-position: 16px;
  position: relative;
  width: max-content;
  padding-inline-end: max(0px, calc(50cqw - var(--milestone-step) + var(--milestone-dot-position)));
}
.account-milestones {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 43px 0 6px;
}
.account-milestones > li {
  position: relative;
  flex: 0 0 var(--milestone-step);
}
.account-milestones > li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 13px;
  left: var(--milestone-dot-position);
  width: 100%;
  height: 2px;
  background: #a3d1b5;
  pointer-events: none;
}
.inner-main .account-milestone-button {
  position: relative;
  display: grid;
  grid-template-rows: 28px auto;
  align-items: center;
  justify-items: start;
  gap: 4px;
  min-width: 44px;
  min-height: 54px;
  padding: 0 4px 0 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #445671;
  font-size: var(--type-label);
  white-space: nowrap;
}
.inner-main .account-milestone-button:focus-visible { outline-offset: -2px; }
.account-milestone-dot {
  width: 14px;
  height: 14px;
  margin-inline-start: calc(var(--milestone-dot-position) - 7px);
  border: 2px solid #4a9b69;
  border-radius: 50%;
  background: #fff;
}
.account-milestone-button:hover .account-milestone-dot { background: #e4f7eb; }
.account-milestone-button[aria-current="step"] { color: var(--green-dark); font-weight: var(--weight-action); }
.account-milestone-button[aria-current="step"] .account-milestone-dot {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.account-current-count {
  --milestone-anchor: calc(var(--milestone-index) * var(--milestone-step) + var(--milestone-dot-position));
  position: absolute;
  z-index: 1;
  top: 9px;
  left: 0;
  transform: translateX(max(0px, calc(var(--milestone-anchor) - 50%)));
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--green-dark);
  color: white;
  font-size: var(--type-caption);
  line-height: 1.5;
  font-weight: var(--weight-action);
  white-space: nowrap;
  pointer-events: none;
}
.account-current-count::after {
  content: "";
  position: absolute;
  top: calc(100% - 1px);
  left: min(50%, var(--milestone-anchor));
  transform: translateX(-50%);
  width: 12px;
  height: 8px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
@media (prefers-reduced-motion: no-preference) {
  .account-current-count { transition: transform 260ms ease-out; }
  .account-current-count::after { transition: left 260ms ease-out; }
}
.account-vote-results {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  border-color: #dcebe5;
  background: linear-gradient(155deg, #f0faf5 0, #fff 180px);
}
.account-vote-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.account-vote-header h2 { color: var(--forest); }
.account-vote-header p {
  margin-top: 5px;
  color: var(--muted);
  font-size: var(--type-label);
  line-height: 1.55;
}
.account-vote-header .account-vote-total {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  padding: 5px 10px;
  border-radius: 8px;
  background: #e3f5eb;
  color: #185a37;
  font-size: var(--type-caption);
  white-space: nowrap;
}
.account-vote-total strong { font-size: var(--type-body); font-variant-numeric: tabular-nums; }
.account-vote-list {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.account-vote-row {
  --vote-color: #4e637c;
  --vote-surface: color-mix(in srgb, var(--vote-color) 5%, white);
  --vote-tint: color-mix(in srgb, var(--vote-color) 12%, white);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) minmax(54px, auto);
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  min-height: 70px;
  padding: 10px clamp(9px, 1vw, 14px);
  border: 1px solid var(--vote-tint);
  border-radius: 12px;
  background: var(--vote-surface);
}
.account-vote-row:nth-child(1) {
  --vote-color: #624205;
  --vote-surface: #fff9eb;
  --vote-tint: #f2e5c7;
  --vote-medal: linear-gradient(145deg, #fff3bf 10%, #f7d578 57%, #eab34b);
  --vote-rim: #c18b28;
}
.account-vote-row:nth-child(2) {
  --vote-color: #344359;
  --vote-surface: #f4f7fc;
  --vote-tint: #e1e7f1;
  --vote-medal: linear-gradient(145deg, #fcfdff 10%, #dde5ef 57%, #b9c7d8);
  --vote-rim: #99a8ba;
}
.account-vote-row:nth-child(3) {
  --vote-color: #642f1a;
  --vote-surface: #fdf5ef;
  --vote-tint: #f2e1d6;
  --vote-medal: linear-gradient(145deg, #ffecd9 10%, #ecbb96 57%, #d39372);
  --vote-rim: #b37554;
}
.account-vote-rank {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 9px;
  background: var(--vote-tint);
  color: var(--vote-color);
  font-size: var(--type-card);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.account-vote-row:nth-child(-n+3) .account-vote-rank {
  border: 1px solid var(--vote-rim);
  border-radius: 50%;
  background: var(--vote-medal);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 45%), 0 1px 3px rgb(42 43 49 / 13%);
}
.account-vote-topic {
  min-width: 0;
  font-size: var(--type-body);
  font-weight: var(--weight-title);
  line-height: 1.6;
}
.account-vote-score {
  text-align: right;
  color: var(--muted);
  font-size: var(--type-caption);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  white-space: nowrap;
}
.account-vote-score strong { color: var(--vote-color); font-size: var(--type-card); }
@media (max-width: 420px) {
  .account-vote-row { grid-template-columns: 31px minmax(0, 1fr) minmax(42px, auto); }
  .account-vote-rank, .account-vote-score strong { font-size: var(--type-body); }
}
.account-reward-guide {
  gap: 18px;
  background: linear-gradient(155deg, #f2fbf6, #fff 42%);
  border-color: #d8eee2;
}
.inner-main .account-reward-guide h2 {
  color: var(--forest);
  font-size: var(--type-section);
  font-weight: var(--weight-heading);
  line-height: 1.4;
}
.account-reward-guide h2 span { white-space: nowrap; }
.account-reward-guide h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin-bottom: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green) 75%, #ffbf00 75%);
}
.account-reward-flow {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.account-reward-flow > li {
  --step-color: #087c34;
  --step-surface: #f2fbf6;
  --step-border: #d8eee2;
  --step-icon: #dff5e8;
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: clamp(8px, 1.2vw, 14px);
  align-items: start;
}
.account-reward-flow > li:nth-child(2) {
  --step-color: #2759a0;
  --step-surface: #f3f7fe;
  --step-border: #dce7f8;
  --step-icon: #e3edfc;
}
.account-reward-flow > li:nth-child(3) {
  --step-color: #805100;
  --step-surface: #fff9ea;
  --step-border: #f2e3bc;
  --step-icon: #ffefbf;
}
.account-reward-flow > li:not(:last-child)::before {
  content: "";
  position: absolute;
  inset: 35px auto -16px 16px;
  width: 2px;
  background: #b3cfc1;
}
.account-reward-flow > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  bottom: 0;
  width: 8px;
  height: 8px;
  border: solid #58826c;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.account-reward-number {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: 12px;
  border-radius: 50%;
  background: var(--step-icon);
  color: var(--step-color);
  font-size: var(--type-label);
  font-weight: 750;
}
.account-reward-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  padding: 12px clamp(10px, 1.2vw, 16px);
  border: 1px solid var(--step-border);
  border-radius: 12px;
  background: linear-gradient(105deg, #fff, var(--step-surface));
}
.account-reward-step h3 { color: var(--step-color); }
.account-reward-step p {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.7;
}
.account-reward-step p strong { color: var(--step-color); }
.account-reward-icon {
  grid-area: 1 / 2 / span 2;
  display: grid;
  place-items: center;
  width: clamp(30px, 3vw, 44px);
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--step-icon);
  color: var(--step-color);
  font-size: clamp(16px, 1.6vw, 22px);
}
.account-reward-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 3px;
  padding: 5px 10px;
  border: 1px solid var(--step-border);
  border-radius: 8px;
  background: var(--step-surface);
  color: var(--step-color);
  font-size: var(--type-action);
  font-weight: var(--weight-action);
}
.account-reward-link .icon { flex: none; }
.account-reward-link:hover { background: var(--step-icon); }
@media (max-width: 420px) {
  .account-reward-icon { grid-row: 1; }
  .account-reward-step :is(p, .account-reward-link) { grid-column: 1 / -1; }
}
.inner-main #claim-explanation {
  width: min(calc(100% - 32px), 740px);
  max-width: none;
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: hidden;
  background: #fffdf8;
}
#claim-explanation[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
#claim-explanation :is(h2, h3, p) { margin: 0; }
.claim-explanation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(13px, 2vw, 19px) clamp(16px, 3.2vw, 28px);
  border-bottom: 1px solid #ece9df;
  background: #fffefb;
}
#claim-explanation-title {
  color: var(--forest);
  font-size: var(--type-section);
  font-weight: var(--weight-heading);
  line-height: 1.4;
}
.claim-explanation-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e5e9de;
  border-radius: 50%;
  background: #f6f7ee;
  color: var(--forest);
  cursor: pointer;
}
.claim-explanation-close span { font-size: 25px; line-height: 1; }
.claim-explanation-close:hover { background: #eaf0e1; }
.claim-explanation-body {
  min-height: 0;
  padding: clamp(16px, 3.2vw, 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.claim-explanation-sections { display: grid; gap: 16px; }
#claim-explanation .claim-explanation-sections h3 {
  margin-bottom: 4px;
  color: var(--forest);
  font-size: var(--type-card);
  font-weight: var(--weight-title);
}
.claim-explanation-sections p { color: #47554d; font-size: var(--type-body); line-height: 1.7; }
.claim-explanation-resources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.claim-explanation-card {
  display: grid;
  overflow: hidden;
  border: 1px solid #e6e8dd;
  border-radius: 12px;
  background: #fffefb;
  color: var(--forest);
}
.claim-explanation-card:hover { border-color: #b5c7ae; background: #f2f6eb; }
.claim-explanation-card:focus-visible { outline-offset: 2px; }
.claim-explanation-card img {
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eeeee4;
}
.claim-explanation-card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 8px 11px;
  font-weight: var(--weight-action);
  font-size: var(--type-action);
}
.claim-explanation-card-label .icon { flex: none; }
@media (max-width: 500px) {
  .claim-explanation-resources { grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
  .claim-explanation-card { grid-template-columns: 96px 1fr; }
}

.inner-main #claim-vote {
  width: min(calc(100% - 32px), 720px);
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: clamp(20px, 3.4vw, 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
#claim-vote h2 {
  margin-bottom: 8px;
  color: var(--forest);
  font-size: var(--type-section);
  font-weight: var(--weight-heading);
  line-height: 1.4;
}
#claim-vote-form { gap: 16px; }
#claim-vote-form > p { margin: 0; }
#vote-hint { font-size: var(--type-body); line-height: 1.7; }
.claim-vote-options { display: grid; gap: 8px; }
#claim-vote .claim-vote-option {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid #dfe8e5;
  border-radius: 10px;
  background: #f7faf9;
  color: var(--ink);
  font-size: var(--type-body);
  line-height: 1.6;
  cursor: pointer;
}
#claim-vote .claim-vote-option:hover { border-color: #a6d6b9; background: #f0faf4; }
#claim-vote .claim-vote-option:has(input:checked) {
  border-color: #7dbd97;
  background: #eaf8f0;
  color: var(--forest);
}
#claim-vote .claim-vote-option input {
  width: 24px;
  height: 24px;
  margin: 0;
  cursor: pointer;
}
#claim-vote .claim-vote-option span { overflow-wrap: anywhere; }
#claim-vote .inner-actions { gap: 8px 12px; }
#claim-vote .button { min-height: 48px; font-size: var(--type-action); }
.account-claim .claim-first-note { flex: 1 0 100%; font-size: var(--type-label); }

@media (max-width: 430px) {
  .inner-main #claim-vote { width: calc(100% - 24px); padding: 16px; }
  #claim-vote-form { gap: 12px; }
  #claim-vote .claim-vote-option {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 9px;
    min-height: 50px;
    padding: 8px 10px;
  }
  #claim-vote .claim-vote-option input { width: 22px; height: 22px; }
  #claim-vote .inner-actions .button { flex: 1 1 auto; padding-inline: 10px; }
}

.account-invite-card {
  display: grid;
  align-items: center;
  min-height: 196px;
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid #cde9d9;
  border-radius: 14px;
  background: linear-gradient(90deg, #edf8f3 0%, #edf8f3 35%, #edf8f300 63%), #edf8f3 url("../assets/invite-gathering.webp") right center / cover no-repeat;
  color: var(--forest);
}
.account-invite-copy { display: grid; justify-items: start; gap: 7px; width: 46%; }
.account-invite-label { color: var(--green-dark); font-size: var(--type-caption); font-weight: var(--weight-title); }
.inner-main .account-invite-copy h3 { font-size: var(--type-card); font-weight: var(--weight-title); }
.account-invite-copy > p:not(.account-invite-label) { color: var(--muted); font-size: var(--type-body); line-height: 1.7; }
.inner-main :is(.account-claim > .inner-actions .button-primary, .account-invite-copy .button-invite) {
  min-width: 164px;
  min-height: 54px;
  padding: 10px 24px;
  border-radius: 12px;
  font-size: var(--type-action);
}
:is(.account-claim > .inner-actions, #claim-vote) .button-primary:enabled {
  color: #fff;
  background: linear-gradient(120deg, #15a931, #009b70);
  box-shadow: 0 4px 10px rgb(0 155 112 / 20%);
}
.account-invite-copy .button-invite {
  gap: 10px;
  margin-top: 6px;
  color: #fff;
  background: linear-gradient(120deg, #f46444, #ed4c69);
  box-shadow: 0 4px 10px rgb(237 76 105 / 20%);
}
:is(.account-claim > .inner-actions, #claim-vote) .button-primary:enabled:hover {
  background: linear-gradient(120deg, #0c9f3a, #00966b);
}
.account-invite-copy .button-invite:hover {
  background: linear-gradient(120deg, #f05b47, #e04664);
}

@media (max-width: 739px) {
  .inner-main :is(.account-claim > .inner-actions .button-primary, .account-invite-copy .button-invite) {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
}

@media (max-width: 950px) {
  .account-invite-card {
    align-items: end;
    padding-top: 138px;
    background: linear-gradient(0deg, #edf8f3 45%, #edf8f300 66%), #edf8f3 url("../assets/invite-gathering.webp") right top / max(165%, 465px) auto no-repeat;
  }
  .account-invite-copy { width: 100%; }
}

.account-week time {
  font-size: var(--type-caption);
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.inner-main #claim-success {
  --claim-success-pad: clamp(12px, 2.4vw, 24px);
  width: min(calc(100% - 32px), 720px);
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: var(--claim-success-pad);
  overflow-y: auto;
  overscroll-behavior: contain;
}

#claim-success .claim-success-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(16px, 3vw, 30px) 12px clamp(18px, 3vw, 26px);
  border: 1px solid #d7efe2;
  border-radius: 13px;
  background: radial-gradient(ellipse at 50% 0%, #daf7e8, transparent 74%), #f1fbf5;
  text-align: center;
}

#claim-success .claim-success-celebration {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 210px);
  height: 68px;
  margin: 0 auto 10px;
  pointer-events: none;
}

#claim-success .claim-success-seal {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #1dad64, #087e46);
  box-shadow: 0 0 0 5px #b9edcf, 0 8px 16px #13804c25;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

#claim-success .claim-success-spark {
  --spark-color: #38b971;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 10px;
  border-radius: 2px;
  background: var(--spark-color);
  opacity: 0;
  transform: translate(-50%, -50%);
}

#claim-success .claim-success-spark:nth-of-type(1) { --spark-x: -81px; --spark-y: -24px; --spark-angle: -36deg; }
#claim-success .claim-success-spark:nth-of-type(2) { --spark-x: -94px; --spark-y: 11px; --spark-angle: -68deg; --spark-color: #e6ad29; }
#claim-success .claim-success-spark:nth-of-type(3) { --spark-x: -58px; --spark-y: 29px; --spark-angle: 44deg; }
#claim-success .claim-success-spark:nth-of-type(4) { --spark-x: 79px; --spark-y: -23px; --spark-angle: 37deg; --spark-color: #e6ad29; }
#claim-success .claim-success-spark:nth-of-type(5) { --spark-x: 94px; --spark-y: 10px; --spark-angle: 62deg; }
#claim-success .claim-success-spark:nth-of-type(6) { --spark-x: 57px; --spark-y: 29px; --spark-angle: -28deg; --spark-color: #e6ad29; }

#claim-success h2 {
  margin: 0;
  color: var(--forest);
  font-size: var(--type-section);
  font-weight: var(--weight-heading);
  line-height: 1.4;
}

#claim-success .claim-success-amount {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 2px 7px;
  margin: 8px 0 0;
  color: #305844;
  font-size: var(--type-label);
  line-height: 1.5;
}

#claim-success .claim-success-amount strong {
  color: #087b43;
  font-size: clamp(34px, 6.8vw, 48px);
  font-variant-numeric: tabular-nums;
  font-weight: 820;
}

#claim-success .claim-success-next {
  padding: clamp(12px, 2.1vw, 18px);
  margin-top: clamp(12px, 2vw, 18px);
  border: 1px solid #dcebe1;
  border-radius: 12px;
  background: #f7fbf8;
}
#claim-success .claim-success-next h3 {
  margin: 0 0 6px;
  color: var(--forest);
  font-size: var(--type-body);
}
#claim-success .claim-success-next p {
  margin: 0 0 4px;
  font-size: var(--type-label);
  line-height: 1.55;
}
.claim-success-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
}
.claim-success-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#claim-success .claim-success-week {
  margin-top: clamp(16px, 2.4vw, 22px);
}

#claim-success .claim-success-week h3 { margin: 0 0 9px; color: var(--forest); }
#claim-success .account-week { gap: clamp(3px, 1vw, 8px); }
#claim-success .account-week li {
  grid-template-rows: auto auto 20px 17px;
  align-items: center;
  gap: 3px;
  padding: clamp(5px, 1.2vw, 9px) 0 4px;
  border-radius: clamp(5px, 1.3vw, 10px);
  font-size: var(--type-caption);
  line-height: 1.2;
}

#claim-success .account-week time { font-size: inherit; }
#claim-success .account-week strong { color: #64748b; font-size: 15px; }
#claim-success .account-week [data-claimed="true"] strong { color: #087b43; font-size: 18px; }
#claim-success .account-week .current {
  border-color: #43a966;
  background: #e4f7eb;
  color: var(--forest);
}

#claim-success .account-week-today {
  padding: 1px clamp(2px, .6vw, 6px);
  border-radius: 10px;
  background: #ccefd9;
  color: #0c602e;
  font-size: var(--type-caption);
  font-weight: var(--weight-action);
  white-space: nowrap;
}

#claim-success .account-knowledge {
  gap: 9px;
  margin-top: clamp(14px, 2.4vw, 20px);
  padding: clamp(12px, 2.2vw, 18px);
}

#claim-success .account-knowledge h3 { margin: 0; }
#claim-success .account-knowledge dl { gap: 8px; font-size: var(--type-body); line-height: 1.7; }
#claim-success .claim-success-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(14px, 2.4vw, 20px);
}

#claim-success .claim-success-actions .button {
  min-width: 116px;
  min-height: 44px;
  background: #087e46;
  font-size: var(--type-action);
}

#claim-success .claim-success-actions .button:hover { background: #076a3c; }

@keyframes account-claim-seal-in {
  0% { opacity: 0; transform: scale(.72); }
  75% { opacity: 1; transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes account-claim-spark-out {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.35); }
  18% { opacity: 1; }
  68% { opacity: .76; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y))) rotate(var(--spark-angle)) scale(.85); }
}

@media (prefers-reduced-motion: no-preference) {
  #claim-success[open] .claim-success-seal { animation: account-claim-seal-in .36s cubic-bezier(.2, .8, .25, 1) both; }
  #claim-success[open] .claim-success-spark { animation: account-claim-spark-out .58s ease-out .08s both; }
}

@media (max-width: 430px) {
  .inner-main #claim-success { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  #claim-success .claim-success-actions {
    position: sticky;
    inset-block-end: calc(-1 * var(--claim-success-pad));
    margin-inline: calc(-1 * var(--claim-success-pad));
    padding: 8px var(--claim-success-pad) var(--claim-success-pad);
    border-top: 1px solid #e1ece5;
    background: #fff;
  }
  #claim-success .claim-success-actions .button { width: 100%; }
}
.account-inviter { font-size: var(--type-card); font-weight: var(--weight-title); overflow-wrap: anywhere; }

/* 通知 tab: red dot when something needs attention, and the notice list. */
.account-tab-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 3px 0 0 3px;
  border-radius: 50%;
  background: #e5484d;
  vertical-align: top;
}
.account-notices { margin: 0; padding: 0; list-style: none; border-block: 1px solid var(--border); }
.account-notice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 14px 22px;
}
.account-notice + .account-notice { border-top: 1px solid var(--border); }
.account-notice-text { flex: 1 1 auto; min-width: 0; }
.account-notice-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.account-notice h3 { margin: 0; color: #45546e; font-size: var(--type-body); font-weight: 600; }
.account-notice p { margin: 4px 0 0; color: var(--muted); font-size: var(--type-label); line-height: 1.6; }
.account-notice-time { color: #7a859a; font-size: var(--type-caption); white-space: nowrap; }
.account-notice-unread { background: #f3fbf6; }
.account-notice-unread h3 { color: #111; }
.account-notice-unread::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e5484d;
}
.account-notice-pinned { background: #e9f9ef; }
.account-notice-action { flex: 0 0 auto; min-height: 40px; padding: 6px 16px; }
.account-notice-link { min-width: 0; }
@media (max-width: 560px) {
  .account-tabs:has(#account-center-tab-0) { flex-wrap: nowrap; }
  .account-tabs:has(#account-center-tab-0) button { white-space: nowrap; }
  .account-notice { flex-wrap: wrap; }
  .account-notice-pinned .account-notice-action { width: 100%; }
  .account-notice-link { min-height: 36px; margin-left: auto; padding: 4px 16px; }
}

/* 我的邀请码: poster card with a large QR code, white with a light grey frame. */
.invite-poster-page { width: min(100% - 2 * var(--gutter), 460px); margin: clamp(10px, 2.5vw, 32px) auto clamp(28px, 5vw, 56px); }
.invite-poster-bar { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; margin-bottom: 14px; }
.invite-poster-bar h1 { color: var(--ink); font-size: 20px; line-height: 1.4; }
.invite-poster-back { position: absolute; left: 0; top: 50%; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; transform: translateY(-50%); color: #3b4556; font-size: var(--type-label); }
.invite-poster-back span { font-size: 26px; line-height: 1; margin-top: -3px; }
.invite-poster-back:hover { color: var(--green-dark); }
.invite-poster {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 14px;
  padding: clamp(20px, 5vw, 30px) clamp(16px, 5vw, 28px);
  border: 1px solid #dfe3ea;
  border-radius: 20px;
  background: #fff;
  text-align: center;
}
.invite-poster-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--forest); font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.invite-poster-brand img { width: 34px; height: auto; }
.invite-poster h2 { color: #0b5a23; font-size: clamp(26px, 7.5vw, 34px); font-weight: 700; line-height: 1.3; letter-spacing: .04em; }
.invite-poster-qr { width: 100%; padding: clamp(10px, 3vw, 16px); border: 1px solid #e3e6ec; border-radius: 16px; background: #fff; }
/* The PNG carries the code underneath (for saving); the preview shows only the square QR part. */
.invite-poster-qr img { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; object-position: top; clip-path: inset(0 0 4% 0); image-rendering: pixelated; }
.invite-poster-hint { color: var(--muted); font-size: var(--type-label); line-height: 1.6; }
.invite-poster-label { margin-top: 4px; color: #4a5468; font-size: var(--type-label); }
.invite-poster-code { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: -6px; padding: 8px 10px 8px 16px; border: 1px solid #e3e6ec; border-radius: 12px; background: #fafbfc; }
#my-invite-code { width: 100%; flex: 1 1 auto; min-width: 0; min-height: 0; padding: 0; border-radius: 0; border: 0; background: transparent; color: var(--ink); font-size: clamp(20px, 6vw, 26px); font-weight: 700; letter-spacing: .04em; text-align: left; }
#my-invite-code:focus { outline: none; }
.invite-poster-code button { flex: 0 0 auto; min-height: 36px; padding: 4px 16px; border: 0; border-radius: 8px; background: var(--action-green); color: #fff; font-size: var(--type-label); font-weight: var(--weight-action); }
.invite-poster-code button:hover { background: var(--action-green-hover); }
.invite-poster-note { color: #6b7385; font-size: var(--type-label); line-height: 1.7; }
.invite-poster-url { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.invite-poster-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.invite-poster-actions .button { min-width: 0; gap: 8px; min-height: 50px; border-radius: 12px; }
.invite-poster-actions .button-outline { background: #fff; border-color: var(--action-green); color: var(--green-dark); }
.invite-poster-actions .button-outline:hover { background: #f1faf4; }
.invite-poster-actions .icon { font-size: 20px; }
.invite-poster-actions .button:only-child { grid-column: 1 / -1; }
