.account-center { color:#232b33; padding-bottom:24px; letter-spacing:0; }
.mobile-auth-actions { display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.mobile-auth-row { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.mobile-auth-row:not(:has(:not([hidden]))) { display:none; }
.mobile-auth-row .fineprint { margin:0; text-align:left; flex:1 1 0; min-width:0; }
.mobile-auth-row #sms-login-entry { width:auto; flex:1 1 0; white-space:nowrap; text-align:center; }
.mobile-auth-row #forgot-password { width:auto; margin-left:0; flex:1 1 0; white-space:nowrap; text-align:right; }
#forgot-password { width:100%; }
.form:not(.auth-reset) > .auth-field { display:contents; }
.form.auth-reset { gap:0; }
.form.auth-reset > h2 { margin:0 0 4px; }
.form.auth-reset .auth-field {
  display:flex;
  align-items:center;
  gap:clamp(6px, 2vw, 10px);
  margin:6px 0 0;
  min-width:0;
}
.form.auth-reset .auth-field > label {
  flex:0 0 auto;
  width:4.6em;
  margin:0;
  white-space:nowrap;
  font-size:13px;
  line-height:1.2;
  color:#4e485e;
}
.form.auth-reset .auth-field > input,
.form.auth-reset .auth-field > .password-field,
.form.auth-reset .auth-field > .reset-code-row {
  flex:1 1 auto;
  min-width:0;
  width:auto;
}
.form.auth-reset .auth-field > input,
.form.auth-reset .password-field input,
.form.auth-reset .reset-code-row input {
  min-height:42px;
  padding:10px 12px;
  font-size:14px;
}
.form.auth-reset .password-field { position:relative; display:block; }
.form.auth-reset .password-toggle { width:40px; height:42px; }
.form.auth-reset .reset-code-row button {
  min-height:42px;
  padding:0 clamp(8px, 2.2vw, 12px);
  font-size:13px;
}
.form.auth-reset #reset-fields {
  display:flex;
  flex-direction:column;
  gap:0;
  margin:0;
  min-width:0;
}
.form.auth-reset #reset-fields[hidden] { display:none; }
.form.auth-reset #login-error { display:none; } /* reset uses toast */
.form.auth-reset > .primary {
  margin-top:8px;
}
.form.auth-reset .mobile-auth-actions {
  margin-top:10px;
  gap:10px;
}
.reset-code-row { display:flex; gap:8px; align-items:stretch; min-width:0; }
.form .reset-code-row input { flex:1; width:auto; min-width:0; }
.reset-code-row button { flex:none; white-space:nowrap; }
#login-captcha-fields[hidden] { display:none !important; }
.captcha-row { display:flex; gap:8px; align-items:stretch; min-width:0; }
.form .captcha-row input { flex:1; width:auto; min-width:0; }
.captcha-image-button {
  flex:none;
  padding:4px;
  line-height:0;
  min-width:128px;
}
.captcha-image-button img {
  display:block;
  width:120px;
  height:40px;
  object-fit:contain;
  visibility:hidden;
  background:#f3f1f8;
}
.password-field { position:relative; }
.form .password-field input { padding-right:48px; }
.password-toggle { position:absolute; top:0; right:0; width:46px; height:46px; display:grid; place-items:center; padding:0; background:transparent; color:#8d869c; }
.password-toggle[aria-pressed="true"] { color:var(--purple); }
#auth-mode.text-button { width:100%; }
#wechat-login { display:flex; align-items:center; justify-content:center; gap:8px; }
@media (max-width:359px) {
  .form.auth-reset .auth-field > label { width:3.8em; font-size:12px; }
  .form.auth-reset .reset-code-row { gap:6px; }
  .form.auth-reset .reset-code-row button { padding:0 8px; font-size:12px; }
}
@media (min-width:720px) {
  .form.auth-reset .auth-field > label { width:5em; font-size:14px; }
  .form.auth-reset .auth-field > input,
  .form.auth-reset .password-field input,
  .form.auth-reset .reset-code-row input { min-height:44px; font-size:15px; }
}
.account-center h1 { font-size:24px; margin:0; }
.account-center h2 { font-size:17px; margin:0; }
.account-center button, .account-center select { font:inherit; }
.ac-title, .ac-section-head, .ac-account header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ac-title { margin-bottom:24px; }
.ac-title > span, .ac-section-head > span, .ac-muted, .ac-caption, .ac-unit { color:#6d7481; font-size:12px; }
.account-center .ac-icon { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; min-width:40px; min-height:40px; padding:8px; border:1px solid #dce2e8; border-radius:8px; background:#fff; color:#394552; }
.account-center .icon { width:19px; height:19px; }
.ac-profile { display:flex; gap:14px; align-items:flex-start; }
.ac-profile-link { display:flex; flex:1; min-width:0; gap:10px; align-items:flex-start; color:inherit; text-decoration:none; }
.ac-profile-link:focus-visible { outline:2px solid #7854ce; outline-offset:4px; border-radius:10px; }
.ac-profile-link .ac-avatar, .ac-profile-row .ac-avatar { object-fit:cover; border-radius:12px; }
.ac-profile-rows { margin-top:12px; }
.ac-profile-back { display:flex; margin-top:16px; }
.ac-profile-back > a { flex:1; text-align:center; }
.ac-profile-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; width:100%; min-height:54px; border:0; background:transparent; color:inherit; padding:8px 0; text-align:left; font:inherit; }
button.ac-profile-row { cursor:pointer; }
.ac-profile-row + .ac-profile-row { border-top:1px solid #e2dfeb; }
.ac-profile-row strong { justify-self:end; min-width:0; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ac-profile-row .ac-avatar { justify-self:end; width:40px; height:40px; }
.ac-profile-row > span:last-child, .ac-profile-dialog small { color:#6d7481; }
.ac-profile-dialog #ac-profile-field { display:grid; gap:8px; }
.ac-profile-dialog .ac-profile-error { color:#b42339; font-size:14px; margin:8px 0 0; }
.ac-profile-dialog .ac-profile-error:empty { margin:0; }
.ac-profile > div { min-width:0; }
.ac-profile-identity { flex:1; align-self:flex-start; }
.ac-profile-compute { flex:0 0 104px; max-width:36%; text-align:right; align-self:flex-start; margin-right:10px; }
.ac-profile-compute > span, .ac-profile-compute small { display:block; font-size:11px; color:#6d7481; }
.ac-profile-compute strong { display:block; font-size:18px; color:#287463; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; margin:4px 0; }
.ac-profile-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:12px 10px 5px 0; }
.account-center .ac-profile-actions .ac-roles { flex:1; min-width:0; margin:0; }
.ac-profile-actions .ac-profile-task { display:inline-flex; align-items:center; justify-content:center; flex:none; gap:5px; padding:5px 9px; min-height:32px; box-sizing:border-box; font-size:12px; }
.ac-profile-task .icon { width:14px; height:14px; }
.ac-profile h2 { overflow-wrap:anywhere; line-height:1.5; }
.ac-profile p { margin:3px 0; font-size:12px; color:#6d7481; overflow-wrap:anywhere; }
.ac-avatar { width:52px; height:52px; flex-shrink:0; }
.ac-meta, .ac-code { display:flex; align-items:baseline; gap:6px; }
.ac-meta-label { flex:0 0 24px; }
.ac-code { font-size:11px; color:#79828a; overflow-wrap:anywhere; }
.ac-roles { display:flex; flex-wrap:wrap; gap:7px; margin:17px 0 10px; }
.ac-role { display:inline-flex; padding:5px 9px; border-radius:4px; font-size:12px; line-height:1.4; background:#e6f2ff; color:#246099; }
.ac-role-2 { color:#167060; background:#e2f3ed; }
.ac-role-3 { color:#86551d; background:#fcf0d8; }
.account-center button.ac-role { min-height:32px; width:auto; border:0; cursor:pointer; font-weight:400; }
.ac-validity-value { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; font-size:14px; }
.ac-inactive { color:#737b84; background:#edf0f3; }
.ac-role-detail { font-size:12px; color:#687480; }
.ac-role-detail p { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; margin:8px 0; }
.account-center .ac-recharge { padding:12px 0; }
.ac-recharge > details + details { margin-top:12px; }
.ac-recharge summary { cursor:pointer; padding:10px 0; min-height:24px; }
.ac-recharge summary h2 { display:inline; }
.ac-product { padding:12px; margin:8px 0; border:1px solid #dce3e8; border-radius:6px; background:#fff; }
.ac-product header { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px 12px; }
.ac-product h3 { font-size:14px; margin:0; overflow-wrap:anywhere; min-width:0; }
.ac-product header strong { color:#287463; font-size:16px; overflow-wrap:anywhere; }
#ac-product-orders .ac-order-heading { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; }
.ac-order-source { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.ac-order-source > strong { color:#287463; font-size:16px; overflow-wrap:anywhere; margin-left:auto; }
.ac-order-number { display:block; margin-top:6px; overflow-wrap:anywhere; }
.ac-product dl { margin:8px 0 0; font-size:12px; }
.ac-product dl > div { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; padding:4px 0; }
.ac-product dt { color:#6d7481; }
.ac-product dd { margin:0; overflow-wrap:anywhere; }
.ac-account-actions { display:flex; flex-direction:column; align-items:flex-end; gap:6px; min-width:0; flex-shrink:0; }
.ac-account-withdraw { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:10px; align-items:center; }
.ac-account-withdraw > header, .ac-account-withdraw > .ac-caption, .ac-account-withdraw > dl { grid-column:1 / -1; }
.ac-account-withdraw > strong { grid-column:1; grid-row:2; }
.ac-account-withdraw > .ac-account-actions { grid-column:2; grid-row:2; align-self:center; }
.account-center .ac-account-actions .ac-withdraw { position:static; float:none; flex:0 0 auto; width:auto; min-height:30px; height:30px; margin:0; padding:0 10px; font-size:12px; line-height:1; border-radius:6px; }
dialog.ac-withdraw-dialog {
  width:min(480px, calc(100vw - 24px));
  max-width:calc(100vw - 24px);
  max-height:min(calc(100dvh - 24px), calc(var(--visible-height, 100dvh) - 24px));
  height:fit-content;
  margin:auto;
  box-sizing:border-box;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
dialog.ac-application-dialog.ac-withdraw-dialog {
  width:min(480px, calc(100vw - 24px));
  max-width:calc(100vw - 24px);
}
dialog.ac-withdraw-dialog:has(.ac-withdraw-sheet) { padding:0; }
dialog.ac-withdraw-dialog > .ac-withdraw-sheet {
  display:flex;
  flex-direction:column;
  min-height:0;
  max-height:min(calc(100dvh - 24px), calc(var(--visible-height, 100dvh) - 24px));
  overflow:hidden;
}
dialog.ac-withdraw-dialog .ac-withdraw-heading { flex:none; padding:18px 20px 0; }
dialog.ac-withdraw-dialog .ac-withdraw-heading h2 { margin:0; }
dialog.ac-withdraw-dialog .ac-withdraw-body {
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  padding:12px 20px 16px;
}
dialog.ac-withdraw-dialog .ac-withdraw-footer {
  flex:none;
  margin:0;
  padding:12px 20px calc(12px + env(safe-area-inset-bottom));
  border-top:1px solid #e2e5ea;
  background:#fff;
}
dialog.ac-withdraw-dialog .ac-withdraw-footer button { min-height:44px; }
dialog.ac-withdraw-dialog fieldset { border:1px solid #e2e5ea; border-radius:8px; padding:12px; margin:0 0 12px; min-width:0; }
.ac-bank-option { display:flex; align-items:center; gap:10px; }
.ac-bank-option small { display:block; margin-top:4px; }
.ac-bank-option input { width:auto; }
.ac-bank-option span { min-width:0; overflow-wrap:break-word; }
.ac-bank-row { display:flex; align-items:flex-start; justify-content:space-between; gap:8px 10px; margin:12px 0; flex-wrap:wrap; }
.ac-bank-row > .ac-bank-option { flex:1 1 auto; min-width:min(100%, 16em); }
.ac-bank-row-actions { display:flex; flex-shrink:0; gap:6px; margin-left:auto; align-self:center; }
.ac-bank-row-actions > button { padding:6px 10px; font-size:13px; }
.ac-bank-editor { min-width:0; }
.ac-bank-editor summary { cursor:pointer; user-select:none; min-height:44px; display:flex; align-items:center; font-weight:600; }
.ac-bank-form { display:grid; gap:10px; padding-top:4px; min-width:0; }
.ac-bank-field {
  display:flex;
  align-items:center;
  gap:clamp(6px, 2vw, 10px);
  min-width:0;
}
dialog.ac-withdraw-dialog .ac-bank-field > label {
  display:flex;
  align-items:center;
  flex:0 0 auto;
  width:5.5em;
  margin:0;
  white-space:nowrap;
  font-size:13px;
  line-height:1;
  color:#4e485e;
}
dialog.ac-withdraw-dialog .ac-bank-field > input,
dialog.ac-withdraw-dialog .ac-bank-field > select {
  flex:1 1 auto;
  min-width:0;
  width:auto;
  max-width:none;
  box-sizing:border-box;
  min-height:42px;
  margin:0;
  padding:10px 12px;
  border:1px solid #cdd3dc;
  border-radius:6px;
  background:#fff;
  color:#232b33;
  font:inherit;
  font-size:14px;
}
.ac-required { color:#d33443; margin-right:2px; line-height:1; }
.ac-bank-form > .primary { width:100%; min-height:44px; margin-top:2px; }
.ac-bank-manage { margin-top:12px; }
dialog.ac-withdraw-dialog .ac-bank-message,
dialog.ac-withdraw-dialog .ac-withdraw-message { margin:4px 0 0; color:#b42339; font-size:13px; line-height:1.5; }
dialog.ac-withdraw-dialog .ac-bank-message:empty,
dialog.ac-withdraw-dialog .ac-withdraw-message:empty,
dialog.ac-withdraw-dialog [data-tax-preview]:empty { display:none; }
dialog.ac-withdraw-dialog input[name="amount"] { display:block; width:100%; box-sizing:border-box; margin-top:8px; }
@media (max-width:359px) {
  dialog.ac-withdraw-dialog .ac-bank-field > label { width:4.6em; font-size:12px; }
  dialog.ac-withdraw-dialog .ac-bank-field > input,
  dialog.ac-withdraw-dialog .ac-bank-field > select { min-height:40px; padding:8px 10px; font-size:13px; }
}
@media (min-width:720px) {
  dialog.ac-application-dialog.ac-withdraw-dialog { width:min(520px, calc(100vw - 48px)); max-width:calc(100vw - 48px); }
  dialog.ac-withdraw-dialog .ac-bank-field > label { width:6em; font-size:14px; }
}
@media (min-width:800px) and (min-height:500px) {
  dialog.ac-application-dialog.ac-withdraw-dialog:has(.ac-bank-editor[open]) { width:min(880px, calc(100vw - 48px)); max-width:calc(100vw - 48px); }
  dialog.ac-withdraw-dialog:has(.ac-bank-editor[open]) .ac-withdraw-body {
    display:grid;
    grid-template-columns:minmax(240px, 0.9fr) minmax(320px, 1.15fr);
    column-gap:20px;
    align-items:start;
  }
  dialog.ac-withdraw-dialog:has(.ac-bank-editor[open]) .ac-withdraw-heading { padding:12px 20px 0; }
  dialog.ac-withdraw-dialog:has(.ac-bank-editor[open]) .ac-withdraw-body { padding:8px 20px; }
  dialog.ac-withdraw-dialog:has(.ac-bank-editor[open]) .ac-withdraw-footer { padding:8px 20px; }
  dialog.ac-withdraw-dialog:has(.ac-bank-editor[open]) .ac-withdraw-footer button { min-height:40px; }
  dialog.ac-withdraw-dialog:has(.ac-bank-editor[open]) fieldset { margin:0; padding:8px 12px; }
  dialog.ac-withdraw-dialog:has(.ac-bank-editor[open]) .ac-bank-row { flex-wrap:wrap; align-items:flex-start; margin:4px 0; }
  dialog.ac-withdraw-dialog:has(.ac-bank-editor[open]) .ac-bank-row-actions { width:100%; justify-content:flex-end; }
  dialog.ac-withdraw-dialog:has(.ac-bank-editor[open]) .ac-bank-option small { margin-top:2px; }
  dialog.ac-withdraw-dialog:has(.ac-bank-editor[open]) .ac-bank-editor {
    margin:0;
    padding:8px 12px 10px;
    border:1px solid #e2e5ea;
    border-radius:8px;
    background:#f7f8fa;
  }
  dialog.ac-withdraw-dialog:has(.ac-bank-editor[open]) .ac-bank-editor summary { min-height:32px; }
  dialog.ac-withdraw-dialog:has(.ac-bank-editor[open]) .ac-bank-form { gap:6px; padding-top:2px; }
  dialog.ac-withdraw-dialog:has(.ac-bank-editor[open]) .ac-bank-field > input,
  dialog.ac-withdraw-dialog:has(.ac-bank-editor[open]) .ac-bank-field > select { min-height:36px; padding:6px 12px; }
  dialog.ac-withdraw-dialog:has(.ac-bank-editor[open]) .ac-bank-form > .primary { min-height:40px; margin-top:0; }
}
#ac-member-products { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:stretch; }
#ac-compute-products { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; align-items:stretch; }
#ac-compute-products .ac-product { display:flex; flex-direction:column; min-width:0; }
#ac-compute-products .ac-product header { flex-direction:column; align-items:flex-start; }
#ac-compute-products .ac-product dl { margin-bottom:14px; }
#ac-compute-products .ac-product dl > div { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:baseline; gap:4px; }
#ac-compute-products .ac-product dt { min-width:0; overflow-wrap:anywhere; }
#ac-compute-products .ac-product dd { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
#ac-compute-products .ac-product > button { width:100%; margin-top:auto; min-height:40px; padding:8px 6px; font-size:13px; }
#ac-compute-products .ac-product > button:disabled { opacity:.5; cursor:not-allowed; }
.ac-compute-member-tip { margin:8px 0 0; font-size:12px; line-height:1.6; text-align:center; color:#9e3540; overflow-wrap:anywhere; }
.ac-member-product { display:flex; flex-direction:column; min-width:0; padding:18px; margin:8px 0; background:#edf8ef; border-color:#83c78d; }
.ac-member-product.ac-member-vip { background:#fff8df; border-color:#e9c460; }
.ac-member-product h3 { font-size:17px; line-height:1.5; }
.ac-member-benefits { margin:14px 0; padding-left:20px; font-size:14px; line-height:1.8; white-space:pre-wrap; }
.ac-member-benefits li { margin:5px 0; overflow-wrap:anywhere; }
.ac-member-prices { display:flex; flex-direction:column; gap:10px; padding-top:14px; margin: auto 0 16px; border-top:1px solid #cddfcf; }
.ac-member-vip .ac-member-prices { border-top-color:#e8dab0; }
.ac-member-prices > div { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.ac-member-prices > div > span:first-child { width:50px; flex-shrink:0; font-size:13px; color:#66716b; }
.ac-member-prices strong { font-size:24px; line-height:1.4; color:#b52f38; overflow-wrap:anywhere; }
.ac-market-price { position:relative; display:inline-block; text-decoration:none; color:#737b77; font-size:16px; }
.ac-market-price::after { content:''; position:absolute; left:-3px; right:-3px; top:50%; height:2px; background:#d33443; transform:rotate(-12deg); }
.ac-member-product > button { width:100%; min-height:40px; }
@media(max-width:480px) {
  #ac-member-products, #ac-compute-products { gap:8px; }
  #ac-compute-products .ac-product { padding:8px; }
  #ac-compute-products .ac-product dl { font-size:10px; }
  #ac-compute-products .ac-product h3 { font-size:12px; line-height:1.6; }
  #ac-compute-products .ac-product header strong { font-size:13px; }
  #ac-compute-products .ac-product > button { font-size:12px; padding:8px 3px; }
  .ac-member-product { padding:10px; }
  .ac-member-product h3 { font-size:15px; }
  .ac-member-benefits { font-size:12px; line-height:1.7; padding-left:15px; }
  .ac-member-prices > div { gap:4px; }
  .ac-member-prices > div > span:first-child { width:100%; font-size:12px; }
  .ac-member-prices strong { font-size:20px; }
  .ac-market-price { font-size:14px; }
  .ac-member-product > button { padding:8px 6px; font-size:13px; }
}
.ac-enterprise { font-size:13px; color:#56616b; }
.ac-section { padding:24px 0; border-bottom:1px solid #e0e5e9; }
.ac-section-head { margin-bottom:16px; flex-wrap:wrap; }
.ac-accounts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.ac-account { background:#fff; border:1px solid #dce3e8; border-top:3px solid #4c87b2; border-radius:8px; padding:15px 13px; min-width:0; }
.ac-account-1 { border-top-color:#558a73; }
.ac-account-3 { border-top-color:#bb9652; }
.ac-account-4 { border-top-color:#7c70b3; }
.ac-account header { font-size:13px; gap:5px; align-items:flex-start; }
.ac-account > strong { display:block; font-size:22px; line-height:1.4; margin-top:15px; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.ac-account dl, .ac-snapshot { margin:12px 0 0; font-size:12px; }
.ac-account dl > div, .ac-snapshot > div { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 10px; padding:5px 0; }
.ac-account dt, .ac-snapshot dt { color:#6d7481; }
.ac-account dd, .ac-snapshot dd { margin:0; overflow-wrap:anywhere; }
.ac-account details { border-top:1px solid #edf0f3; margin-top:9px; padding-top:10px; font-size:12px; }
.ac-account summary, .ac-role-detail summary { cursor:pointer; min-height:24px; }
.ac-legacy { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:16px 0 0; font-size:13px; }
.ac-legacy small, .ac-tree-node small, .ac-flow small { display:block; font-size:11px; color:#75818a; margin-top:4px; }
.ac-legacy strong { font-size:20px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.ac-empty { text-align:center; color:#75818a; padding:25px 10px; font-size:14px; }
.ac-empty span { display:block; font-size:12px; margin-top:8px; }
.ac-points { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; padding:8px 0; }
.ac-points span { font-size:12px; color:#6d7481; }
.ac-points strong { display:block; font-size:24px; margin-top:8px; overflow-wrap:anywhere; }
.ac-level { font-size:12px; background:#e7f2ee; color:#286b55; padding:10px; border-radius:4px; }
.ac-invite { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:0; font-size:14px; }
.ac-invite > span { color:#6d7481; }
.ac-invite strong { overflow-wrap:anywhere; }
.ac-share { margin:0 0 20px; }
.ac-share label { display:block; color:#6d7481; font-size:12px; margin-bottom:7px; }
.ac-share-banner { display:block; text-align:center; color:#fff; font-size:14px; font-weight:600; padding:14px 12px; background:linear-gradient(135deg,#6c3ce0 0%,#9b59b6 50%,#6c3ce0 100%); border-radius:8px 8px 0 0; margin:0 -12px; letter-spacing:0.5px; }
.ac-share-link { display:flex; gap:8px; align-items:center; }
.ac-share-link input { flex:1; min-width:0; height:40px; border:1px solid #dce3e8; border-radius:6px; background:#fff; padding:0 10px; color:#394552; font:inherit; font-size:12px; }
.ac-copy-btn { display:inline-flex; align-items:center; gap:5px; flex-shrink:0; min-height:40px; padding:0 14px; border:1px solid #6c3ce0; border-radius:6px; background:#6c3ce0; color:#fff; font-size:13px; font-weight:500; cursor:pointer; white-space:nowrap; transition:background .15s,border-color .15s; }
.ac-copy-btn:hover { background:#5a2dc5; border-color:#5a2dc5; }
.ac-copy-btn:active { background:#4a22a8; }
.ac-copy-btn .icon { width:16px; height:16px; }
a.ac-share-btn { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; min-height:40px; padding:0 14px; border:1px solid #6c3ce0; border-radius:6px; background:#fff; color:#6c3ce0; font-size:13px; font-weight:600; cursor:pointer; white-space:nowrap; text-decoration:none; }
.ac-share-btn:hover { background:#f6f1ff; }
.ac-share-btn:active { background:#efe6ff; }
@media (max-width: 360px) {
  .ac-copy-btn, .ac-share-btn { padding:0 10px; font-size:12px; }
}
dialog.invite-gift {
  position: fixed;
  width: min(400px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 22px 20px 16px;
  box-sizing: border-box;
  overflow: auto;
  border-radius: 24px;
  text-align: center;
}
dialog.invite-gift::backdrop { background: #1c1430c7; }
dialog.invite-gift p { margin: 0; white-space: normal; text-align: center; }
.invite-gift-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 50%;
  background: #f3f1f8;
  color: #4e4860;
  font-size: 20px;
  line-height: 1;
}
.invite-gift-kicker { color: #6c3ce0 !important; font-size: 12px; font-weight: 700; letter-spacing: 0.4px; }
dialog.invite-gift h2 { margin: 8px 28px 0; font-size: 22px; line-height: 1.35; letter-spacing: -0.4px; }
.invite-gift-points { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 12px 0 4px !important; color: #6c3ce0 !important; }
.invite-gift-points strong { font-size: 56px; line-height: 0.95; letter-spacing: -2px; }
.invite-gift-points span { font-size: 16px; font-weight: 700; }
.invite-gift-note { margin-top: 2px !important; color: #6d657c !important; font-size: 13px !important; }
dialog.invite-gift ul { list-style: none; margin: 14px 0 16px; padding: 12px 14px; text-align: left; background: #f7f4fc; border-radius: 14px; }
dialog.invite-gift li { position: relative; margin: 0; padding: 5px 0 5px 16px; color: #3d4553; font-size: 13px; line-height: 1.45; }
dialog.invite-gift li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: #6c3ce0; }
dialog.invite-gift .primary { width: 100%; min-height: 46px; }
.invite-gift-login { display: block; width: 100%; margin-top: 4px; min-height: 40px; padding: 8px; background: transparent; color: #6c3ce0; font-size: 13px; font-weight: 600; }
.ac-qr-wrap { min-height:200px; display:flex; align-items:center; justify-content:center; margin-top:14px; }
.ac-qr-wrap img { width:184px; height:184px; image-rendering:pixelated; background:#fff; }
.ac-qr-wrap p { color:#6d7481; font-size:12px; }
.ac-tree { overflow:hidden; max-width:100%; min-width:0; max-height:none; padding:4px 0; contain:inline-size; }
.ac-tree-scroll { display:block; width:100%; max-width:100%; overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain; background:#fff; border:1px solid #dce3e8; border-radius:6px; }
.ac-tree-table { border-collapse:collapse; width:max-content; min-width:100%; font:inherit; color:inherit; }
.ac-tree-table th, .ac-tree-table td { padding:8px 5px; white-space:nowrap; vertical-align:middle; text-align:left; }
.ac-tree-table th:first-child, .ac-tree-table td:first-child { padding-left:8px; }
.ac-tree-table th:last-child, .ac-tree-table td:last-child { padding-right:8px; }
.ac-tree-table thead th { color:#687480; font-size:10px; font-weight:400; line-height:18px; border-bottom:1px solid #edf0f3; }
.ac-tree-table tbody th, .ac-tree-table tbody td { border-bottom:1px solid #edf0f3; }
.ac-tree-table tbody tr:last-child th, .ac-tree-table tbody tr:last-child td { border-bottom:0; }
.ac-tree-table tbody th { font-weight:400; }
.ac-tree-table tbody td { font-size:12px; font-weight:600; color:#287463; font-variant-numeric:tabular-nums; }
.ac-tree-person { display:flex; align-items:center; gap:8px; }
.ac-tree-person > strong { font-size:13px; font-weight:700; }
.ac-tree-node { display:grid; grid-template-columns:24px minmax(0,1fr); align-items:center; gap:6px; padding:8px; background:#fff; border:1px solid #dce3e8; border-radius:6px; min-width:0; width:100%; box-sizing:border-box; }
.ac-node-line { display:flex; align-items:center; gap:8px; min-width:0; overflow-x:auto; }
.ac-node-line > strong { flex:0 0 auto; }
.ac-identity { display:inline-flex; align-items:center; gap:3px; flex:0 0 auto; font-size:11px; line-height:16px; white-space:nowrap; }
.ac-identity svg { width:14px; height:14px; flex:0 0 auto; }
.ac-identity.on { color:#6c3ce0; }
.ac-identity.off { color:#c5c9d1; }
.ac-share-toggle { display:inline-flex; align-items:center; gap:8px; min-height:28px; max-width:100%; border:0; background:transparent; padding:0; color:#6942aa; font:inherit; cursor:pointer; }
.ac-share-toggle::before { content:''; width:0; height:0; flex:0 0 auto; border-style:solid; border-width:5px 0 5px 7px; border-color:transparent transparent transparent #6942aa; }
.ac-share-toggle[aria-expanded="true"]::before { border-width:7px 5px 0 5px; border-color:#6942aa transparent transparent transparent; }
.ac-share-toggle span { color:#6942aa; font-family:inherit; font-size:13px; font-weight:600; line-height:1.4; letter-spacing:0; }
.ac-share-toggle strong { color:#1c2430; font-size:16px; font-weight:700; letter-spacing:0.3px; }
.ac-icon-btn { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; min-height:32px; padding:0; border:1px solid #e4e7ee; border-radius:8px; background:#fff; color:#394552; cursor:pointer; }
.ac-icon-btn svg { width:16px; height:16px; }
.ac-share-panel { margin-top:14px; }
.ac-share-panel .ac-qr-wrap { display:flex; flex-direction:column; align-items:center; margin:18px 0; }
.ac-share-panel .ac-qr-wrap img { width:184px; height:184px; background:#fff; }
.ac-promoter-counts { color:#6d7481; font-size:12px; font-weight:500; white-space:nowrap; }
.ac-tree-table .ac-promoter-link { display:inline; border:0; background:none; padding:0; margin:0; min-height:24px; color:#2467be; font:inherit; font-weight:600; text-decoration:underline; cursor:pointer; }
dialog.ac-promotion-detail[open] { display:flex; flex-direction:column; width:min(960px, calc(100% - 16px)); max-width:calc(100% - 16px); max-height:min(80dvh, calc(var(--visible-height, 100dvh) - 24px)); margin:auto; box-sizing:border-box; padding:0; overflow:hidden; contain:inline-size; }
dialog.ac-promotion-detail .ac-promotion-detail-head { display:flex; flex:none; align-items:flex-start; justify-content:space-between; gap:8px; min-width:0; padding:16px 12px 8px; }
dialog.ac-promotion-detail .ac-promotion-detail-head > div { min-width:0; flex:1; }
dialog.ac-promotion-detail .ac-promotion-detail-head h2 { margin:0 0 4px; font-size:18px; overflow-wrap:anywhere; }
dialog.ac-promotion-detail .ac-promotion-detail-head [data-person] { margin:0; font-size:14px; font-weight:700; overflow-wrap:anywhere; }
dialog.ac-promotion-detail .ac-promotion-detail-head [data-person]:empty { display:none; }
dialog.ac-promotion-detail .ac-promotion-detail-head [data-counts] { display:block; margin:2px 0 0; white-space:normal; }
dialog.ac-promotion-detail .ac-promotion-detail-actions { display:flex; flex:none; flex-wrap:wrap; justify-content:flex-end; gap:8px; max-width:46%; }
dialog.ac-promotion-detail .ac-promotion-detail-actions .secondary { min-height:36px; height:auto; padding:6px 12px; font-size:13px; border-radius:8px; }
dialog.ac-promotion-detail .ac-tree { min-height:0; max-width:100%; overflow-x:hidden; overflow-y:auto; padding:0 12px 16px; }
.account-center .ac-section[data-promotion-title="分享推广"] { max-width:100%; min-width:0; }
.account-center .ac-section[data-promotion-title="分享推广"] > .ac-fold { max-width:100%; min-width:0; }
.account-center .ac-section[data-promotion-title="分享推广"] > .ac-fold > summary { max-width:100%; min-width:0; }
.account-center .ac-section[data-promotion-title="分享推广"] > .ac-fold > summary .ac-section-head { flex:1 1 auto; min-width:0; flex-wrap:wrap; justify-content:flex-start; gap:10px; }
.account-center .ac-section[data-promotion-title="分享推广"] .ac-promoter-counts { white-space:normal; }
.ac-share-section,
.account-center .ac-assets,
.ac-section[data-promotion-title="分享推广"] { padding:8px 0; }
.ac-fold { border:0; margin:0; }
.ac-fold > summary { display:flex; align-items:center; gap:8px; min-height:28px; margin:0; padding:8px 0; color:#6942aa; font-family:inherit; font-size:13px; font-weight:600; line-height:1.4; letter-spacing:0; cursor:pointer; list-style:none; }
.ac-fold > summary::-webkit-details-marker,
.ac-fold > summary::marker { display:none; content:none; }
.ac-fold > summary::before { content:''; width:0; height:0; flex:0 0 auto; border-style:solid; border-width:5px 0 5px 7px; border-color:transparent transparent transparent #6942aa; }
.ac-fold[open] > summary::before { border-width:7px 5px 0 5px; border-color:#6942aa transparent transparent transparent; }
.ac-fold > summary .ac-section-head { flex:1; min-width:0; margin:0; }
.ac-fold > summary h2 { margin:0; color:#6942aa; font-family:inherit; font-size:13px; font-weight:600; line-height:1.4; letter-spacing:0; }
.ac-fold > summary .ac-icon { width:32px; height:32px; min-width:32px; min-height:32px; padding:6px; }
.ac-fold[open] > summary { margin-bottom:8px; }
.ac-tree-node > .ac-node-identity { min-width:0; }
.ac-node-identity > strong { display:block; line-height:18px; }
.ac-tree-node strong { font-size:13px; overflow-wrap:anywhere; }
.ac-node-points { display:grid; grid-auto-flow:column; grid-auto-columns:max-content; gap:10px; margin:0; font-size:12px; min-width:0; overflow:visible; flex:0 0 auto; }
.ac-node-points > div { min-width:0; padding:0; }
.ac-node-points dt { color:#687480; font-size:10px; line-height:18px; white-space:nowrap; }
.ac-node-points dd { margin:0; font-weight:600; color:#287463; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.ac-node-dot { width:24px; height:24px; display:flex; align-items:center; justify-content:center; flex-shrink:0; background:#e8eef3; color:#60788c; border-radius:50%; font-size:12px; }
.ac-node-own { background:#dfefe9; color:#21765d; }
.ac-node-count { font-size:10px; color:#7c8790; flex-shrink:0; }
.account-center .ac-branches { list-style:none; padding:0; margin:0; }
.ac-branches > li { list-style:none; position:relative; margin-top:12px; }
.ac-branches > li::before { content:''; position:absolute; top:-12px; left:26px; width:1px; height:12px; background:#cbd5dd; }
.ac-branches summary { cursor:pointer; list-style:none; position:relative; padding-right:22px; }
.ac-branches summary::-webkit-details-marker { display:none; }
.ac-branches summary::after { content:'+'; position:absolute; top:19px; right:2px; color:#397560; font-size:20px; }
.ac-branches details[open] > summary::after { content:'−'; }
.account-center select { max-width:150px; border:1px solid #dce3e8; border-radius:6px; background:#fff; padding:7px 10px; color:#485460; font-size:12px; min-height:36px; }
.ac-flow { display:flex; justify-content:space-between; gap:14px; padding:14px 0; border-bottom:1px solid #edf0f3; }
.ac-flow > div { min-width:0; }
.ac-flow strong { font-size:13px; overflow-wrap:anywhere; }
.ac-flow small { overflow-wrap:anywhere; }
.ac-flow-filter { display:flex; justify-content:flex-end; margin-bottom:12px; }
.ac-compute-ranges { justify-content:flex-start; flex-wrap:wrap; gap:8px; margin-top:16px; }
.account-center .ac-compute-ranges a { padding:4px 8px; color:inherit; text-decoration:underline; text-underline-offset:3px; }
.account-center .ac-compute-ranges a[aria-current] { color:#6d38dc; font-weight:700; }
.account-center .ac-flow-toggle { display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:6px 12px; font-size:12px; }
.ac-flow-toggle[aria-expanded="true"] .icon { transform:rotate(90deg); }
.ac-flow-dates { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:8px; }
.ac-flow-dates label { min-width:0; font-size:12px; color:#6d7481; }
.ac-flow-dates input { display:block; box-sizing:border-box; width:100%; min-width:0; height:40px; margin-top:6px; padding:6px 8px; border:1px solid #dce3e8; border-radius:6px; background:#fff; color:#394552; font:inherit; }
.ac-flow-dates > div { grid-column:1 / -1; display:flex; gap:8px; }
.ac-flow-dates button { min-height:36px; padding:6px 16px; font-size:12px; }
.ac-flow-value { text-align:right; flex-shrink:0; max-width:48%; font-variant-numeric:tabular-nums; }
.account-center .ac-more { width:100%; min-height:40px; border:1px solid #dce3e8; background:#fff; color:#356c5e; border-radius:6px; margin-top:12px; font-size:13px; }
.ac-links { padding-top:12px; }
.ac-links a,
.ac-links .ac-link-row { display:flex; justify-content:space-between; align-items:center; gap:12px; width:100%; min-height:52px; padding:0; border:0; border-bottom:1px solid #e0e5e9; background:transparent; font:inherit; font-size:13px; color:#485460; text-align:left; text-decoration:none; box-sizing:border-box; }
.ac-links button.ac-link-row { cursor:pointer; }
.ac-links button.ac-link-row:disabled,
.ac-links .ac-link-row[aria-disabled="true"] { cursor:default; color:#6d7481; }
.ac-link-main { display:inline-flex; align-items:center; gap:10px; min-width:0; }
.ac-link-main .icon, .ac-settings-row .icon { width:18px; height:18px; flex:none; color:#5b6570; }
.ac-link-tip { flex:none; max-width:52%; color:#8a939c; font-size:12px; line-height:1.4; text-align:right; }
.ac-settings { padding-bottom:24px; }
.ac-settings .ac-settings-card,
.ac-settings .ac-profile-back { width:100%; max-width:520px; margin-left:auto; margin-right:auto; box-sizing:border-box; }
.ac-settings .ac-settings-card + .ac-settings-card { margin-top:12px; }
.ac-settings .ac-profile-back > a { width:100%; }
.ac-settings-head { display:grid; grid-template-columns:40px 1fr 40px; align-items:center; margin-bottom:16px; }
.ac-settings-head h2 { margin:0; text-align:center; font-size:17px; }
.ac-settings-back { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; color:#394552; }
.ac-settings-label { margin:0; padding:14px 14px 4px; font-size:12px; font-weight:500; color:#8a939c; line-height:1.4; }
.ac-settings-card { background:#fff; border-radius:14px; overflow:hidden; box-shadow:0 1px 0 rgba(28,39,49,.04); }
.ac-settings-row { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:54px; padding:10px 14px; border:0; border-bottom:1px solid #eef1f4; background:#fff; color:#394552; font:inherit; text-align:left; text-decoration:none; box-sizing:border-box; }
.ac-settings-card > .ac-settings-row:last-child { border-bottom:0; }
button.ac-settings-row { cursor:pointer; }
.ac-settings-meta { display:inline-flex; align-items:center; gap:8px; min-width:0; color:#8a939c; }
.ac-settings-meta strong, .ac-settings-value { font-weight:500; color:#6d7481; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:46vw; }
.ac-settings-hint { margin:0; padding:0 14px 12px; font-size:12px; color:#8a939c; line-height:1.5; }
.ac-settings-toggle { cursor:default; }
.ac-switch { position:relative; display:inline-flex; width:44px; height:26px; flex:none; }
.ac-switch input { position:absolute; opacity:0; width:1px; height:1px; }
.ac-switch span { display:block; width:100%; height:100%; border-radius:999px; background:#cfd3db; transition:background .2s ease; }
.ac-switch span::after { content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.15); transition:transform .2s ease; }
.ac-switch input:checked + span { background:#6d38dc; }
.ac-switch input:checked + span::after { transform:translateX(18px); }
.ac-security-form { display:grid; gap:12px; margin:8px auto 0; width:100%; max-width:520px; box-sizing:border-box; }
.ac-security-form .ac-field-row { display:flex; align-items:center; gap:10px; min-width:0; }
.ac-security-form .ac-field-row > label { flex:none; width:4.5em; margin:0; font-size:14px; font-weight:600; color:#394552; white-space:nowrap; }
.ac-security-form .ac-field-row > input,
.ac-security-form .ac-field-row > .reset-code-row { flex:1; min-width:0; width:auto; margin:0; }
.ac-security-form .reset-code-row { display:flex; gap:8px; align-items:stretch; }
.ac-security-form .reset-code-row input { flex:1; min-width:0; width:auto; }
.ac-security-form .ac-send-code-row button {
  flex:none;
  min-width:100px;
  min-height:40px;
  border-radius:10px;
  font-size:12px;
  font-weight:600;
  padding:0 10px;
  color:#5b3bb5;
  border-color:#d9ccf5;
  background:#f4efff;
}
.ac-security-form .ac-send-code-row button:disabled {
  color:#8b8498;
  background:#f0eef5;
  border-color:#e5e2ec;
}
.ac-security-form .ac-form-back { display:flex; align-items:center; justify-content:center; box-sizing:border-box; width:100%; margin:0; text-decoration:none; }
.ac-captcha-dialog { width:min(420px, calc(100vw - 32px)); border:0; border-radius:16px; padding:18px 16px 14px; box-shadow:0 16px 40px rgba(28,39,49,.18); }
.ac-captcha-dialog::backdrop { background:rgba(28,39,49,.45); }
.ac-captcha-dialog h2 { margin:0 0 14px; font-size:16px; text-align:center; }
.ac-captcha-dialog .captcha-row { display:flex; gap:8px; align-items:stretch; }
.ac-captcha-dialog .captcha-row input { flex:1; min-width:0; width:auto; }
.ac-captcha-dialog .ac-application-actions { display:flex; gap:8px; margin-top:14px; }
.ac-captcha-dialog .ac-application-actions button { flex:1; }
.account-center .ac-logout { margin-top:24px; width:100%; min-height:46px; border:1px solid #e1d7d7; background:#fff; color:#ad4a4a; border-radius:6px; font-size:14px; }
body:has(.account-center) > #app > .topbar { display:none; }
body:has(.account-center) main { padding-top:12px; }
.account-center .ac-assets { padding:0 0 12px; }
.ac-assets .ac-section-head { margin-bottom:10px; }
.ac-assets .ac-accounts { gap:8px; }
.ac-assets .ac-account { padding:10px; }
.ac-assets .ac-account > strong { margin-top:6px; font-size:20px; line-height:1.3; }
.ac-assets .ac-account dl { margin:5px 0 0; }
.ac-assets .ac-account dl > div { padding:2px 0; font-size:11px; }
.ac-assets .ac-legacy { padding-top:10px; }
.ac-assets .ac-legacy strong { font-size:18px; }
.ac-assets #ac-legacy-records { font-size:12px; margin-top:6px; }
.account-center .ac-profile { gap:10px; }
.account-center .ac-profile h2 { font-size:16px; line-height:1.3; }
.account-center .ac-profile-compute > span { font-size:16px; font-weight:700; line-height:1.3; }
.account-center .ac-avatar { width:42px; height:42px; }
.account-center .ac-roles { margin:8px 0 5px; }
.account-center .ac-role { padding:3px 7px; }
.account-center .ac-role-detail summary { min-height:20px; }
.account-center .ac-enterprise { margin:6px 0 8px; font-size:12px; }
.ac-assets .ac-section-head { margin-bottom:6px; }
.account-center .ac-share-section,
.account-center .ac-assets,
.account-center .ac-section[data-promotion-title="分享推广"],
.account-center .ac-section[data-promotion-title="账户流水"] { padding:8px 0; }
.account-center .ac-fold > summary .ac-section-head { margin:0; }
.ac-assets .ac-account { padding:8px; }
.ac-assets .ac-account > strong { margin-top:4px; }
.ac-assets .ac-account-1 { grid-column:1 / -1; padding:14px; }
.ac-assets .ac-account-1 dl { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(72px,1fr); gap:8px; margin:0; padding:0; border:0; overflow-x:auto; }
.ac-relation-bar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:12px; font-size:12px; }
.ac-relation-bar > span { color:#6d7481; }
.ac-relation-bar strong { overflow-wrap:anywhere; }
.ac-relation-bar .secondary, .ac-relation-bar .ac-share-btn { min-height:32px; padding:4px 10px; }
#ac-qr-panel input { box-sizing:border-box; width:100%; margin-top:8px; }
.ac-cash-line { display:flex; gap:16px; margin-top:8px; }
.ac-cash-line p { margin:0; min-width:0; }
.ac-cash-line span { display:block; color:#6d7481; font-size:12px; }
.ac-cash-line strong { font-size:14px; font-weight:600; line-height:1.3; font-variant-numeric:tabular-nums; }
.ac-fund-sources { margin-top:8px; }
.ac-fund-sources .ac-opening { padding:10px 0; }
.ac-fund-sources .ac-opening strong { font-size:14px; font-weight:600; font-variant-numeric:tabular-nums; }
button.ac-opening { width:100%; border:0; border-bottom:1px solid #edf0f5; background:transparent; font:inherit; color:inherit; text-align:left; cursor:pointer; }
.ac-assets .ac-account-1 dl > div { display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:6px; min-width:0; }
.ac-assets .ac-account-1 dd { font-size:14px; font-weight:600; color:#287463; font-variant-numeric:tabular-nums; max-width:100%; }
@media(max-height:700px) {
  .ac-assets .ac-account { padding:6px 8px; }
  .ac-assets .ac-account header, .ac-assets .ac-caption { line-height:1.3; }
  .ac-assets .ac-account dl { margin-top:2px; }
  .ac-assets .ac-account dl > div { padding:1px 0; line-height:1.2; }
  .ac-assets .ac-legacy { padding-top:6px; }
  .ac-assets #ac-legacy-records summary { padding:4px 0; min-height:0; }
}
@media(max-width:359px) { .ac-node-count { display:none; } .ac-assets .ac-account > strong { font-size:18px; } }
.ac-opening{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #edf0f5}
.ac-membership p{line-height:1.7}
.ac-membership textarea{width:100%;box-sizing:border-box;padding:12px;border:1px solid #dbe0eb;border-radius:10px;margin:10px 0;font:inherit}
.ac-growth{padding:14px;border-radius:12px;background:#f3f6ff;margin-top:14px}
.ac-membership button:disabled{opacity:.6}
.ac-roles { align-items:center; }
dialog.ac-application-dialog { width:380px; max-width:calc(100vw - 32px); box-sizing:border-box; padding:20px; border:1px solid #e2e5ea; border-radius:8px; background:#fff; color:#26323c; }
dialog.ac-application-dialog::backdrop { background:rgba(0,0,0,.4); }
dialog.ac-agreement-dialog { width:min(720px, calc(100vw - 16px)); height:80vh; height:80dvh; max-height:calc(100dvh - 24px); padding:0; overflow:hidden; }
.ac-agreement-dialog[open] { display:flex; flex-direction:column; }
.ac-agreement-heading { display:flex; flex:none; align-items:center; justify-content:space-between; gap:12px; padding:16px; border-bottom:1px solid #e2e5ea; }
dialog.ac-agreement-dialog .ac-agreement-heading h2 { margin:0; font-size:16px; overflow-wrap:anywhere; }
.ac-agreement-heading button { flex:none; width:36px; height:36px; padding:0; font-size:22px; }
.ac-agreement-content { flex:1; min-height:0; overflow:auto; padding:16px; }
.ac-agreement-content:has(iframe) { padding:0; overflow:hidden; }
.ac-agreement-content pre { white-space:pre-wrap; overflow-wrap:anywhere; font-family:inherit; font-size:14px; line-height:1.8; }
.ac-agreement-content iframe { display:block; width:100%; height:100%; min-height:180px; border:0; background:#fff; }
.ac-agreement-content a { display:inline-block; margin-top:10px; color:#1769aa; font-size:13px; }
.ac-agreement-footer { flex:none; padding:12px 16px; padding-bottom:max(12px,env(safe-area-inset-bottom)); background:#fff; border-top:1px solid #e2e5ea; }
.ac-agreement-footer [data-status]:empty { display:none; }
dialog.ac-agreement-dialog .ac-agreement-footer label { display:flex; align-items:center; gap:8px; min-height:32px; margin-bottom:10px; font-size:12px; cursor:pointer; }
.ac-agreement-footer input { flex:none; width:18px; height:18px; margin:0; accent-color:#1769aa; }
.ac-agreement-footer .ac-application-actions { margin:0; }
.ac-application-dialog h2 { font-size:18px; margin:0 0 18px; }
.ac-application-dialog label { display:block; font-size:14px; }
.ac-application-dialog textarea { display:block; width:100%; box-sizing:border-box; margin:8px 0; padding:10px; border:1px solid #cdd3dc; border-radius:4px; font:inherit; resize:vertical; }
.ac-application-actions { display:flex; justify-content:flex-end; gap:10px; }
.ac-application-actions button { min-height:36px; padding:8px 14px; font-size:14px; }
.ac-profile-dialog .ac-application-actions { align-items:center; margin-top:12px; }
.ac-profile-dialog .ac-application-actions button { display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; height:44px; min-height:44px; min-width:72px; margin:0; line-height:1.2; }

#ac-apply-message { color:#c72f40; font-size:13px; }
.ac-payment-methods { border:0; padding:0; margin:18px 0; min-width:0; }
.ac-payment-methods legend { font-size:14px; margin-bottom:10px; }
.ac-payment-methods > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.ac-payment-option { position:relative; min-width:0; cursor:pointer; }
.ac-payment-option input { position:absolute; opacity:0; width:1px; height:1px; }
.ac-payment-option span { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; min-height:112px; box-sizing:border-box; border:1px solid #d9dfe6; border-radius:6px; background:#fff; }
.ac-payment-option strong { font-size:14px; font-weight:500; }
.ac-payment-option small { font-size:12px; color:#697580; }
.ac-payment-option input:checked + span { border:2px solid #287463; background:#f0faf5; }
.ac-payment-option input:focus-visible + span { outline:2px solid #1677ff; outline-offset:3px; }
.ac-payment-option input:disabled + span { opacity:.55; cursor:default; }
.ac-application-dialog [data-status] { font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.ac-application-dialog img[data-payment-qr] { display:block; max-width:100%; height:auto; margin:12px auto; }
.ac-application-dialog img[data-payment-qr][hidden] { display:none; }

.ac-invite-edit{display:flex;flex-wrap:wrap;gap:8px;margin:-8px 0 14px}.ac-invite-edit input{width:130px;padding:7px;border:1px solid #cdd3dc;border-radius:4px}.ac-invite-edit p{width:100%;margin:0;color:#c72f40;font-size:12px}.ac-referrals-collapse{margin-top:8px}.ac-referrals-collapse>summary{cursor:pointer;font-weight:600;padding:8px 0}
.account-center .ac-source-order-link { display:inline; border:0; background:none; color:#2467be; text-decoration:underline; padding:0; margin:0; min-height:24px; border-radius:0; font:inherit; text-align:left; overflow-wrap:anywhere; cursor:pointer; }
.ac-flow > div:first-child { min-width:0; overflow-wrap:anywhere; }
.ac-source-order-dialog { width:min(480px,calc(100% - 32px)); box-sizing:border-box; max-height:calc(100dvh - 40px); overflow-y:auto; }
.ac-source-order-dialog dl > div { display:grid; grid-template-columns:80px minmax(0,1fr); gap:12px; padding:8px 0; border-bottom:1px solid #edf0f3; }
.ac-source-order-dialog dt { color:#687480; }
.ac-source-order-dialog dd { margin:0; overflow-wrap:anywhere; }
.ac-source-order-items { overflow-wrap:anywhere; font-size:13px; }

#register-fields[hidden],
#register-agreement[hidden],
#register-switch[hidden] { display:none !important; }

/* Register-only layout polish (login/reset untouched) */
/* Compact register shell so logo → CTA → agreement fit ~667–812px phones */
body.auth-register-active.signed-out .topbar {
  padding: 10px 16px 6px;
}
body.auth-register-active.signed-out .brand {
  --brand-mark: 34px;
}
body.auth-register-active.signed-out main {
  padding: 2px 14px 20px;
  min-height: 0;
}
.login.auth-register-page {
  max-width: 440px;
  margin: 0 auto;
}
.login.auth-register-page > .eyebrow {
  display: none;
}
.login.auth-register-page > h1 {
  margin: 2px 0 2px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.4px;
}
.login.auth-register-page > p.muted {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.35;
}
.form.auth-register {
  gap: 0;
  padding: 14px 14px 12px;
}
.form.auth-register > h2 {
  margin: 0 0 2px;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: #1f2430;
}
.login > p.muted {
  margin-top: 0;
}
.form.auth-register .auth-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  min-width: 0;
}
.form.auth-register .auth-field > label,
.form.auth-register #register-fields > .auth-field > label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #4a5160;
  line-height: 1.3;
}
.form.auth-register .auth-field > input,
.form.auth-register .reset-code-row input,
.form.auth-register .password-field input {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #e3e6ee;
  background: #fbfbfe;
  font-size: 15px;
  padding: 0 12px;
}
.form.auth-register .auth-field > input:focus,
.form.auth-register .reset-code-row input:focus,
.form.auth-register .password-field input:focus {
  border-color: #b79aef;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(113, 62, 225, 0.12);
}
.form.auth-register .register-code-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  min-width: 0;
}
.form.auth-register .register-code-row input {
  flex: 1;
  width: auto;
  min-width: 0;
  letter-spacing: 0.08em;
}
.form.auth-register .register-code-row button {
  flex: none;
  min-width: 100px;
  min-height: 40px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  padding: 0 10px;
  color: #5b3bb5;
  border-color: #d9ccf5;
  background: #f4efff;
}
.form.auth-register .register-code-row button:disabled {
  color: #8b8498;
  background: #f0eef5;
  border-color: #e5e2ec;
}
.form.auth-register .register-invite-field label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.form.auth-register .register-optional {
  font-size: 10px;
  font-weight: 500;
  color: #8a919e;
  background: #f1f2f6;
  border-radius: 999px;
  padding: 1px 7px;
}
.form.auth-register > .primary {
  margin-top: 12px;
  min-height: 44px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, #a855f7, #7c3aed 55%, #6366f1);
  border: 0;
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.24);
}
.form.auth-register > .primary:active {
  transform: translateY(1px);
}
#register-fields {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  min-width: 0;
}
.register-agreement {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f7f6fb;
  border: 1px solid #eceaf3;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
/* Grid: checkbox | text. MUST beat .form label { display:block } (0,1,1) — use .form .register-agreement-label. */
.form .register-agreement-label,
.register-agreement .register-agreement-label {
  --ra-lh: 1.5;
  --ra-box: 1.15em; /* checkbox size in label em */
  display: grid !important; /* beat .form label { display:block } */
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 8px;
  margin: 0 !important; /* beat .form label { margin:18px 0 8px } */
  font-size: 12px;
  font-weight: 400;
  line-height: var(--ra-lh);
  color: #6d7481;
  cursor: pointer;
  min-width: 0;
}
/* Kill every .form input rule (width:100%, min-height:46px, padding:13px, font-size:15px, border, bg, radius, focus ring). */
.form .register-agreement-label input[type="checkbox"],
.register-agreement-label input[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  appearance: auto !important;
  box-sizing: border-box !important;
  display: block;
  align-self: start;
  grid-column: 1;
  grid-row: 1;
  width: var(--ra-box) !important;
  height: var(--ra-box) !important;
  min-width: var(--ra-box) !important;
  max-width: var(--ra-box) !important;
  min-height: 0 !important;
  max-height: var(--ra-box) !important;
  margin: 0 !important;
  /* (line-height - box) / 2, em inherited from label → matches first text line */
  margin-top: calc((var(--ra-lh) * 1em - var(--ra-box)) / 2) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  font-size: inherit !important; /* critical: em must track label 12px, not .form input 15px */
  font-weight: inherit !important;
  line-height: 1 !important;
  color: inherit !important;
  accent-color: #7c3aed;
  cursor: pointer;
}
.form .register-agreement-label input[type="checkbox"]:focus,
.form .register-agreement-label input[type="checkbox"]:focus-visible,
.register-agreement-label input[type="checkbox"]:focus,
.register-agreement-label input[type="checkbox"]:focus-visible {
  border: 0 !important;
  box-shadow: none !important;
  outline: 2px solid rgba(124, 58, 237, 0.35);
  outline-offset: 2px;
}
.form .register-agreement-label .register-agreement-text,
.register-agreement-text {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: block;
  padding: 0;
  margin: 0;
  line-height: inherit;
  /* allow Chinese soft wraps, but keep each 《…》 link atomic via nowrap on <a> */
  overflow-wrap: break-word;
  word-break: normal;
}
.register-agreement-label a {
  color: #2f3542;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.register-agreement-label a:hover { color: var(--purple, #8c65d9); }
@media (max-width: 360px) {
  .register-agreement { padding: 7px 8px; }
  .form .register-agreement-label,
  .register-agreement .register-agreement-label {
    --ra-lh: 1.45;
    font-size: 11.5px;
    column-gap: 7px;
  }
}
@media (max-height: 720px) {
  body.auth-register-active.signed-out .topbar { padding: 8px 14px 4px; }
  .login.auth-register-page > h1 { font-size: 18px; margin: 0; }
  .login.auth-register-page > p.muted { margin-bottom: 6px; }
  .form.auth-register { padding: 12px 12px 10px; }
  .form.auth-register .auth-field { margin-top: 6px; gap: 3px; }
  .form.auth-register .auth-field > input,
  .form.auth-register .reset-code-row input,
  .form.auth-register .password-field input,
  .form.auth-register .register-code-row button {
    min-height: 38px;
  }
  .form.auth-register > .primary { margin-top: 10px; min-height: 42px; }
  .register-agreement { margin-top: 8px; padding: 6px 8px; }
  .register-switch { margin-top: 10px; }
}
.register-switch {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  color: #6d7481;
}
.register-switch .text-button {
  display: inline;
  min-height: 0;
  padding: 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: #7c3aed;
}
.form.auth-register .mobile-auth-actions {
  margin-top: 4px;
}
/* Register already has 「去登录」; hide login-only chrome to save fold space */
.form.auth-register .mobile-auth-actions #wechat-login,
.form.auth-register .mobile-auth-actions #auth-mode {
  display: none !important;
}
.form.auth-register #login-error:empty { display: none; }
.form.auth-register #login-error:not(:empty) { display: none; } /* register uses toast */
.form:not(.auth-register):not(.auth-reset):not(.auth-sms) #login-error { display: none; } /* password login uses toast */


/* SMS login mode (password login / register / reset untouched) */
.form.auth-sms { gap:0; }
.form.auth-sms > h2 { margin:0 0 4px; }
.form.auth-sms #sms-login-fields {
  display:flex;
  flex-direction:column;
  gap:0;
  margin:0;
  min-width:0;
}
.form.auth-sms #sms-login-fields[hidden] { display:none; }
.form.auth-sms .auth-field {
  display:flex;
  align-items:center;
  gap:clamp(6px, 2vw, 10px);
  margin:6px 0 0;
  min-width:0;
}
.form.auth-sms .auth-field > label {
  flex:0 0 auto;
  width:4.6em;
  margin:0;
  white-space:nowrap;
  font-size:13px;
  line-height:1.2;
  color:#4e485e;
}
.form.auth-sms .auth-field > .sms-phone-capsule,
.form.auth-sms .auth-field > .sms-code-row {
  flex:1 1 auto;
  min-width:0;
  width:auto;
}
.sms-phone-capsule {
  display:flex;
  align-items:stretch;
  min-width:0;
  border:1px solid #e3e6ee;
  border-radius:999px;
  background:#fbfbfe;
  overflow:hidden;
}
.sms-phone-capsule:focus-within {
  border-color:#b79aef;
  background:#fff;
  box-shadow:0 0 0 3px rgba(113, 62, 225, 0.12);
}
.sms-phone-prefix {
  flex:none;
  display:inline-flex;
  align-items:center;
  padding:0 12px;
  font-size:14px;
  font-weight:600;
  color:#5b3bb5;
  background:#f4efff;
  border-right:1px solid #e3e6ee;
}
.form.auth-sms .sms-phone-capsule input {
  flex:1;
  width:auto;
  min-width:0;
  min-height:42px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  padding:10px 14px;
  font-size:14px;
}
.form.auth-sms .sms-code-row {
  display:flex;
  gap:8px;
  align-items:stretch;
  min-width:0;
}
.form.auth-sms .sms-code-row input {
  flex:1;
  width:auto;
  min-width:0;
  min-height:42px;
  padding:10px 12px;
  font-size:14px;
  border-radius:999px;
}
.form.auth-sms .sms-code-row button {
  flex:none;
  min-height:42px;
  padding:0 clamp(10px, 2.4vw, 14px);
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
  border-radius:999px;
  color:#5b3bb5;
  border-color:#d9ccf5;
  background:#f4efff;
}
.form.auth-sms .sms-code-row button:disabled {
  color:#8b8498;
  background:#f0eef5;
  border-color:#e5e2ec;
}
.form.auth-sms #login-error { display:none; } /* sms uses toast */
.form.auth-sms > .primary { margin-top:10px; }
.form.auth-sms .mobile-auth-actions { margin-top:10px; gap:10px; }
@media (max-width:359px) {
  .form.auth-sms .auth-field > label { width:3.8em; font-size:12px; }
  .form.auth-sms .sms-code-row { gap:6px; }
  .form.auth-sms .sms-code-row button { padding:0 8px; font-size:12px; }
}
@media (min-width:720px) {
  .form.auth-sms .auth-field > label { width:5em; font-size:14px; }
  .form.auth-sms .sms-phone-capsule input,
  .form.auth-sms .sms-code-row input { min-height:44px; font-size:15px; }
}

/* In-app legal docs (fetched from /public/legal/*.html) */
.card.privacy.legal-doc {
  overflow-wrap: anywhere;
}
.card.privacy.legal-doc h1 {
  font-size: 20px;
  margin: 0 0 8px;
}
.card.privacy.legal-doc h2 {
  font-size: 16px;
  margin: 18px 0 6px;
}
.card.privacy.legal-doc .meta {
  font-size: 12px;
  color: #6d7481;
  margin-bottom: 14px;
}
.card.privacy.legal-doc table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.card.privacy.legal-doc th,
.card.privacy.legal-doc td {
  border: 1px solid #e7e3f1;
  padding: 8px;
  vertical-align: top;
}
