*, *::before, *::after { box-sizing: border-box; }
:root { --account-header-height: 73px; }
html { scroll-padding-top: calc(var(--account-header-height) + 24px); }
body { margin: 0; padding-top: var(--account-header-height); min-width: 280px; min-height: 100svh; display: flex; flex-direction: column; font-family: var(--font-sans); -webkit-font-smoothing: antialiased; background: var(--paper); color: var(--ink); }
a { text-decoration: none; }
button { font: inherit; }
input { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
input, button { max-width: 100%; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 40; padding: 12px 18px; }
.skip-link:focus { top: 12px; }
.account-header { position: fixed; inset: 0 0 auto; z-index: 30; width: 100%; min-height: var(--account-header-height); padding-inline: max(56px, calc((100% - 1200px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--header); border-bottom: 1px solid var(--header-line); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--ink); }
.brand img { border-radius: 6px; }
.brand > span { display: inline-flex; align-items: baseline; gap: 8px; font-size: 18px; font-weight: 600; letter-spacing: -.5px; }
.brand span[lang] { font-size: 16px; }
.header-controls { display: flex; align-items: center; gap: 18px; min-width: 0; }
.language-toggle { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 32px; padding: 0; color: var(--muted); font-size: 12px; font-weight: 550; line-height: 18px; flex-shrink: 0; }
.home-link { font-size: 13px; }
.icon-button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; }
#account-main { flex: 1; width: 100%; outline: none; display: grid; align-items: center; padding: 44px 24px 56px; }
.auth-shell { width: min(360px, 100%); margin: auto; }
.auth-title { display: grid; justify-items: center; gap: 23px; text-align: center; margin-bottom: 32px; }
.account-mark { width: 46px; height: 46px; object-fit: contain; border-radius: 12px; }
.verification-mark { position: relative; display: inline-block; width: 46px; height: 46px; }
.verification-check { position: absolute; right: -6px; bottom: -5px; display: grid; place-items: center; width: 22px; height: 22px; border: 3px solid var(--paper); border-radius: 50%; background: var(--ink); color: var(--paper); }
.verification-check svg { width: 13px; height: 13px; stroke-width: 2; }
.auth-title h1 { font-size: 28px; font-weight: 550; letter-spacing: -.045em; line-height: 1.4; }
.auth-title h1:focus, .center-heading h1:focus { outline: none; }
.auth-description { color: var(--muted); font-size: 14px; line-height: 1.85; margin-top: 9px; }
.heading-with-info { display: flex; align-items: flex-start; gap: 5px; }
.help-tip { position: relative; display: inline-flex; flex-shrink: 0; width: 24px; height: 24px; margin-top: -1px; }
.help-button { position: relative; width: 24px; height: 24px; color: var(--muted); }
.help-button::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; }
.help-button svg { width: 16px; height: 16px; stroke-width: 1.75; }
.help-content { position: absolute; top: calc(100% + 8px); left: 0; z-index: 45; width: 280px; max-width: calc(100vw - 32px); padding: 14px 16px; border: 0; border-radius: 16px; background: var(--surface); color: var(--muted); box-shadow: 0 8px 32px #00000014; font-size: 13px; font-weight: 400; line-height: 1.85; letter-spacing: normal; text-align: left; }
.help-content::before { content: ''; position: absolute; inset: -9px 0; z-index: -1; }
.help-content > span { display: block; }
.auth-form { display: grid; gap: 20px; }
.field { display: grid; gap: 9px; }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.field label { font-size: 13px; font-weight: 550; }
.field input::placeholder { color: var(--muted); opacity: .7; }
.field input:autofill { box-shadow: 0 0 0 100px var(--surface) inset; }
.password-control { position: relative; }
.password-control input { padding-right: 49px; }
.password-toggle { position: absolute; top: 6px; right: 7px; width: 34px; height: 34px; }
.password-toggle svg { width: 18px; height: 18px; }
.field-hint { color: var(--muted); font-size: 12px; line-height: 1.7; }
.subtle-link { font-size: 12px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 44px; padding: 11px 17px; font-size: 13px; font-weight: 600; line-height: 22px; border: 1px solid transparent; }
.primary-button:disabled { opacity: .62; }
.form-error { color: var(--danger); font-size: 13px; line-height: 1.8; }
.form-success { color: var(--ink); font-size: 13px; line-height: 1.8; }
.form-tail { color: var(--muted); font-size: 13px; line-height: 1.85; text-align: center; margin-top: 25px; }
.notice { background: var(--media); border-radius: 16px; padding: 18px 20px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.notice strong { color: var(--ink); font-weight: 550; }
.recovery-notice { margin-bottom: 24px; }
.verify-actions { display: grid; gap: 12px; margin-top: 23px; }
.delivery-preview { margin-top: 24px; padding: 16px 18px; border: 1px dashed var(--line); border-radius: 16px; }
.delivery-preview-heading { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.delivery-preview-heading::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.delivery-preview p { color: var(--muted); font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.delivery-preview .text-link { display: inline-block; margin-top: 9px; font-size: 12px; }
.account-footer { display: flex; width: min(1200px, calc(100% - 112px)); margin: auto; padding-block: 25px; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.page-loading { text-align: center; color: var(--muted); font-size: 14px; }
.account-center { width: min(790px, 100%); margin: auto; }
.center-heading { display: flex; justify-content: space-between; align-items: start; gap: 28px; margin-bottom: 44px; }
.center-heading h1 { font-size: 32px; font-weight: 550; letter-spacing: -.045em; line-height: 1.4; }
.center-heading p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.inline-button { flex-shrink: 0; width: auto; min-height: 36px; padding: 7px 14px; font-size: 12px; }
.account-section { border-top: 1px solid var(--line); padding-block: 29px 33px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 23px; }
.section-heading h2 { font-size: 17px; font-weight: 550; letter-spacing: -.025em; }
.section-heading p { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.profile-details { display: grid; gap: 17px; margin: 0; font-size: 13px; line-height: 1.7; }
.profile-details > div { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: baseline; }
.profile-details dt { color: var(--muted); }
.profile-details dd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.profile-email { min-width: 0; }
.verified-state { color: var(--muted); display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; font-size: 12px; line-height: 1; }
.verified-state svg { width: 13px; height: 13px; }
.profile-name-form { width: 100%; gap: 12px; }
.profile-name-editor { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.profile-name-editor .field { flex: 1 1 220px; max-width: 390px; min-width: 0; }
.profile-name-actions { display: flex; flex-shrink: 0; gap: 8px; }
.profile-name-actions .primary-button, .profile-name-actions .secondary-button { width: auto; }
.security-form { max-width: 390px; }
.session-list { display: grid; }
.session-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.session-row:first-child { padding-top: 0; }
.session-row:last-child { border: 0; padding-bottom: 0; }
.session-details { display: flex; align-items: start; gap: 14px; min-width: 0; }
.session-device { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; background: var(--media); border-radius: 11px; color: var(--muted); }
.session-device svg { width: 19px; height: 19px; }
.session-details h3 { font-size: 13px; font-weight: 550; line-height: 1.7; }
.session-details p { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.current-session { color: var(--muted); font-size: 11px; white-space: nowrap; }
.empty-state { color: var(--muted); font-size: 12px; line-height: 1.8; }
.consent-client { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 18px; }
.consent-client strong { display: block; font-size: 14px; font-weight: 550; }
.consent-client p { color: var(--muted); font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; }
.permission-list { display: grid; gap: 12px; padding: 0; margin: 23px 0; list-style: none; }
.permission-list li { display: flex; align-items: start; gap: 10px; font-size: 13px; line-height: 1.8; }
.permission-list svg { margin-top: 3px; width: 15px; height: 15px; color: var(--muted); }
.consent-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 20; max-width: calc(100% - 36px); padding: 12px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; line-height: 1.8; box-shadow: 0 8px 36px #0000000d; text-align: center; }
.no-script { position: fixed; inset: 45% 24px auto; padding: 20px; background: var(--surface); text-align: center; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .auth-shell, .account-center { animation: enter .5s var(--ease) both; }
  @keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 800px) {
  :root { --account-header-height: 65px; }
  .account-footer { width: calc(100% - 40px); }
  .account-header { padding-inline: 20px; }
  #account-main { padding-block: 54px 70px; }
  .account-footer { flex-wrap: wrap; gap: 7px 22px; padding-block: 20px; }
  .center-heading { margin-bottom: 32px; }
}
@media (max-width: 520px) {
  .account-footer { width: calc(100% - 36px); }
  .account-header { padding-inline: 18px; }
  .brand > span { font-size: 16px; }
  .brand span[lang] { font-size: 14px; }
  .header-controls { gap: 8px; }
  #account-main { padding: 42px 24px 58px; }
  .auth-title { gap: 20px; }
  .auth-title h1 { font-size: 26px; }
  .field input { font-size: 16px; }
  .center-heading h1 { font-size: 28px; }
  .center-heading { gap: 20px; }
  .center-heading .inline-button { margin-top: 2px; }
  .profile-details > div { grid-template-columns: 70px 1fr; gap: 12px; }
  .section-heading { flex-wrap: wrap; gap: 14px; }
  .session-row { gap: 14px; }
  .session-details { gap: 10px; }
  .session-device { width: 34px; height: 34px; border-radius: 10px; }
  .home-link { font-size: 12px; }
}

@media (max-width: 360px) {
  .account-header { gap: 12px; }
  .brand > span { gap: 5px; }
  .brand { gap: 8px; }
  .header-controls { gap: 4px; }
  .home-link { display: none; }
}

.account-header .icon-button svg { width: 19px; height: 19px; }

.social-login { display: grid; gap: 8px; }
.social-button { width: 100%; min-height: 46px; border-color: var(--line); }
.provider-logo { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.provider-mark { width: 20px; height: 20px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; }
.auth-divider { display: flex; align-items: center; gap: 16px; margin-block: 20px; font-size: 12px; color: var(--muted); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.mark-dark { display: none; }
:root[data-theme='dark'] .mark-light { display: none; }
:root[data-theme='dark'] .mark-dark { display: block; }
.product-entry-note { margin: -14px 0 28px; color: var(--muted); font-size: 13px; line-height: 1.8; text-align: center; text-wrap: balance; }
.product-entry-note span { display: inline-block; }
:lang(zh) .pending-description, :lang(zh) .link-notice { word-break: keep-all; }
.last-used { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--media); color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.6; }
.auth-divider .last-used { margin-left: -6px; }
.pending-email { margin: -18px 0 8px; font-size: 14px; font-weight: 550; text-align: center; overflow-wrap: anywhere; }
.pending-description, .link-notice { margin: 0 0 24px; text-align: center; text-wrap: balance; }
.more-methods { margin-top: 6px; }
.social-error { margin-bottom: 24px; }
.login-method-row { display: flex; align-items: center; gap: 14px; min-height: 52px; font-size: 13px; }
.login-method-row > :first-child { flex: 1; }

.deletion-shell { width: min(580px, 100%); }
.deletion-shell .auth-title { margin-bottom: 24px; }
.deletion-introduction, .deletion-identity-note { color: var(--muted); font-size: 14px; line-height: 1.9; margin-bottom: 24px; }
.deletion-identity { display: grid; gap: 6px; text-align: center; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.deletion-identity > span { color: var(--muted); }
.deletion-identity strong { font-weight: 550; }
.deletion-impact { border-top: 1px solid var(--line); padding-top: 24px; margin-block: 28px 24px; }
.deletion-impact h2 { font-size: 14px; font-weight: 600; line-height: 1.7; }
.deletion-impact ul { display: grid; gap: 12px; padding-left: 18px; margin-block: 16px 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.deletion-impact > .field-hint { margin-top: 16px; }
.deletion-warning { color: var(--danger); font-size: 13px; line-height: 1.85; margin-bottom: 24px; }
.destructive-link { color: var(--danger); }
.section-heading .destructive-link { border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.deletion-scope { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.deletion-scope legend { padding: 0 0 12px; font-size: 14px; font-weight: 600; }
.deletion-scope-choice { display: flex; align-items: start; gap: 12px; padding-block: 16px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; line-height: 1.8; }
.deletion-scope-choice input { margin: 6px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.deletion-scope-choice strong { display: block; font-weight: 550; }
.deletion-scope-choice small { display: block; color: var(--muted); font-size: 12px; line-height: 1.8; }
.deletion-scope-note { color: var(--muted); font-size: 13px; line-height: 1.85; margin-bottom: 24px; }
.deletion-acknowledgement { display: flex; align-items: start; gap: 11px; cursor: pointer; font-size: 13px; line-height: 1.8; }
.deletion-switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; margin-top: 1px; }
.deletion-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.deletion-switch-track { display: block; height: 100%; border: 1px solid var(--line); border-radius: var(--button-radius); background: var(--media); pointer-events: none; }
.deletion-switch-track::before { content: ''; display: block; width: 18px; height: 18px; margin: 2px; border-radius: var(--icon-button-radius); background: var(--muted); }
.deletion-switch input:checked + .deletion-switch-track { background: var(--ink); border-color: var(--ink); }
.deletion-switch input:checked + .deletion-switch-track::before { background: var(--paper); transform: translateX(18px); }
.deletion-switch input:focus-visible + .deletion-switch-track { outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset); }

.privacy-document { width: min(760px, 100%); margin: 24px auto; line-height: 1.9; font-size: 14px; }
.privacy-document h1 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -.035em; }
.privacy-document h2 { font-size: 18px; font-weight: 550; margin-bottom: 16px; }
.privacy-document section { padding-block: 32px; border-top: 1px solid var(--line); }
.privacy-document p { margin-bottom: 12px; }
.privacy-document p[lang='en'], .privacy-date { color: var(--muted); }
/* The notice is written in both languages and each reader sees their own; without scripts both stay visible. */
html[data-language='zh'] .privacy-document [lang='en'], html[data-language='en'] .privacy-document [lang='zh-CN'] { display: none; }
html[data-language='en'] .privacy-document p[lang='en'] { color: inherit; }
.privacy-date { margin-top: 16px; padding-bottom: 24px; font-size: 12px; }

/* v2 polish: quiet outlined section actions aligned to the content edge. */
.section-heading .inline-button, .center-heading .inline-button, .session-row .inline-button, .empty-state-action .inline-button { border: 1px solid var(--hairline-strong); background: var(--surface-1); }
@media (hover: hover) { .section-heading .inline-button:hover, .center-heading .inline-button:hover, .session-row .inline-button:hover, .empty-state-action .inline-button:hover { background: var(--surface-2); } }
.section-heading > div > p { max-width: 520px; }
.security-form .form-submit { justify-self: start; margin-top: 8px; border: 1px solid var(--hairline-strong); background: var(--surface-1); }
@media (hover: hover) { .security-form .form-submit:hover { background: var(--surface-2); } }
.empty-state-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.empty-state-action p { margin: 0; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.product-card { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--hairline); border-radius: 16px; background: var(--surface-1); color: var(--ink); text-decoration: none; transition: border-color 200ms var(--ease), background-color 200ms var(--ease); }
.product-card:hover { border-color: var(--hairline-strong); background: var(--surface-2); }
.product-card-name { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.product-card-kind { color: var(--muted); font-size: 12px; line-height: 1.6; }
.product-card-open { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; color: var(--text-soft); font-size: 12px; font-weight: 600; }
.product-card-open svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product-more { margin-top: 16px; text-align: left; }
.product-more .text-link { margin-left: -8px; }
@media (max-width: 760px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* One filled primary action per view, as on the main site; other buttons are quiet outlined capsules. */
.primary-button { background: var(--ink); color: var(--paper); box-shadow: 0 1px 0 #ffffff33 inset, 0 8px 24px -8px var(--glow-strong); }
.primary-button:focus-visible { background: var(--ink); color: var(--paper); }
@media (hover: hover) { .primary-button:not(:disabled):hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); color: var(--paper); } }
.primary-button:not(:disabled):active { background: color-mix(in srgb, var(--ink) 78%, var(--paper)); color: var(--paper); }
.primary-button.destructive-link { background: var(--danger); color: #fff; box-shadow: none; }
@media (hover: hover) { .primary-button.destructive-link:not(:disabled):hover { background: color-mix(in srgb, var(--danger) 88%, #000); color: #fff; } }
.primary-button.destructive-link:not(:disabled):active, .primary-button.destructive-link:focus-visible { background: color-mix(in srgb, var(--danger) 80%, #000); color: #fff; }
.secondary-button { border-color: var(--hairline-strong); background: var(--surface-1); }
@media (hover: hover) { .secondary-button:not(:disabled):hover { border-color: var(--quiet); background: var(--surface-2); } }
/* Buttons carry an icon before the label (rounded, one stroke width, the same set as the main site). It is drawn in
   CSS so that replacing a button label while a request runs never removes it. */
/* Without mask support the label stands alone rather than beside a filled square. */
@supports ((-webkit-mask: none) or (mask: none)) {
  [data-icon]::before { content: ''; flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
  .inline-button[data-icon]::before { width: 14px; height: 14px; }
}
.inline-button[data-icon] { gap: 6px; }
.home-link[data-icon] { gap: 6px; }
@supports ((-webkit-mask: none) or (mask: none)) { .home-link[data-icon]::before { width: 15px; height: 15px; } }
[data-icon='login'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h3.5A2.5 2.5 0 0 1 20 6.5v11a2.5 2.5 0 0 1-2.5 2.5H14'/%3E%3Cpath d='M4 12h10m-3.5-3.5L14 12l-3.5 3.5'/%3E%3C/svg%3E"); }
[data-icon='logout'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4H6.5A2.5 2.5 0 0 0 4 6.5v11A2.5 2.5 0 0 0 6.5 20H10'/%3E%3Cpath d='M10 12h10m-3.5-3.500L20 12l-3.5 3.5'/%3E%3C/svg%3E"); }
[data-icon='signup'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='8' r='3.5'/%3E%3Cpath d='M3.5 20v-1a6.5 6.5 0 0 1 13 0v1M19 8v6m-3-3h6'/%3E%3C/svg%3E"); }
[data-icon='mail'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m4.5 8 7.5 5.500L19.5 8'/%3E%3C/svg%3E"); }
[data-icon='done'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.2 4L19 7'/%3E%3C/svg%3E"); }
[data-icon='edit'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 20 .900-4.400L16 4.500a2.1 2.1 0 0 1 3 0l.500.500a2.1 2.1 0 0 1 0 3L8.4 19.1 4 20Z'/%3E%3Cpath d='m14.2 6.3 3.5 3.5'/%3E%3C/svg%3E"); }
[data-icon='refresh'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.6-5.9'/%3E%3Cpath d='M20 4.500V9h-4.5'/%3E%3C/svg%3E"); }
[data-icon='shield'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 5 6v5.500c0 4.2 2.9 7.4 7 9 4.1-1.6 7-4.8 7-9V6Z'/%3E%3Cpath d='m9 12 2.2 2.200L15 10.2'/%3E%3C/svg%3E"); }
[data-icon='trash'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 7h15M9.5 7V5.500A1.5 1.5 0 0 1 11 4h2a1.5 1.5 0 0 1 1.5 1.500V7M6.5 7l.800 11.200a2 2 0 0 0 2 1.800h5.400a2 2 0 0 0 2-1.800L17.5 7M10 11v5.500M14 11v5.5'/%3E%3C/svg%3E"); }
[data-icon='home'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11.2 12 4l8 7.2'/%3E%3Cpath d='M6.2 9.600V18a2 2 0 0 0 2 2h7.600a2 2 0 0 0 2-2V9.600M10 20v-5h4v5'/%3E%3C/svg%3E"); }
[data-icon='user'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.8'/%3E%3Cpath d='M4.5 20v-.500a7.5 7.5 0 0 1 15 0v.500'/%3E%3C/svg%3E"); }
[data-icon='back'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5m5.5-6L5 12l5.5 6'/%3E%3C/svg%3E"); }
[data-icon='close'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 6.5 11 11m0-11-11 11'/%3E%3C/svg%3E"); }
[data-icon='link'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.2 13.800a4 4 0 0 0 5.7 0l2.9-2.900a4 4 0 0 0-5.7-5.700l-1.1 1.1'/%3E%3Cpath d='M13.8 10.200a4 4 0 0 0-5.7 0l-2.9 2.900a4 4 0 0 0 5.7 5.700l1.1-1.1'/%3E%3C/svg%3E"); }
[data-icon='unlink'] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.2 13.800a4 4 0 0 0 5.7 0l2.9-2.900a4 4 0 0 0-5.7-5.700l-1.1 1.1'/%3E%3Cpath d='M13.8 10.200a4 4 0 0 0-5.7 0l-2.9 2.900a4 4 0 0 0 5.7 5.700l1.1-1.1'/%3E%3Cpath d='M4 4l16 16'/%3E%3C/svg%3E"); }
/* Chinese text keeps a space between an address in Latin letters and the words after it. */
html[data-language='zh'] .notice strong + span { margin-left: .25em; }
/* Links inside the notice read as text links, not browser-default blue. */
.privacy-document a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hairline-strong); }
.privacy-document a:hover { text-decoration-color: currentColor; }

/* Second layout (2026-11-11, founder: the page looked bare). The account centre is a page heading, a contents
   rail and one card per section; cards are told from the page by their fill, not a border. */
.account-center { width: min(1040px, 100%); }
#account-main:has(.account-center) { align-items: start; }
.center-heading { align-items: center; margin-bottom: 36px; }
.center-heading h1 { font-size: clamp(30px, 3.6vw, 40px); font-weight: 600; line-height: 1.25; }
.center-heading p { margin-top: 8px; }
.center-layout { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.center-nav { position: sticky; top: calc(var(--account-header-height) + 32px); display: grid; gap: 2px; margin-left: -12px; }
.center-nav a { padding: 9px 12px; border-radius: 10px; color: var(--muted); font-size: 13px; line-height: 1.6; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.center-nav a:is(:hover, :focus-visible) { background: var(--button-hover); color: var(--ink); }
.center-sections { display: grid; gap: 16px; min-width: 0; }
.account-section { padding: 28px 32px 30px; border-top: 0; border-radius: 20px; background: var(--surface-1); scroll-margin-top: calc(var(--account-header-height) + 24px); }
.section-heading { margin-bottom: 24px; }
.section-heading:last-child { margin-bottom: 0; }
.section-heading .heading-with-info { align-items: center; gap: 6px; min-width: 0; }
.section-heading h2 { font-weight: 600; }
.section-icon { display: grid; flex: none; place-items: center; width: 36px; height: 36px; margin-right: 8px; border-radius: 11px; background: var(--surface-3); color: var(--ink); }
.section-icon svg { width: 18px; height: 18px; stroke-width: 1.7; }
/* On a card the quiet buttons, tiles and wells step one surface up so they still read as separate. */
.account-section .inline-button, .account-section .security-form .form-submit, .account-section .secondary-button { background: var(--surface-2); }
@media (hover: hover) { .account-section .inline-button:not(:disabled):hover, .account-section .security-form .form-submit:not(:disabled):hover, .account-section .secondary-button:not(:disabled):hover { background: var(--surface-3); } }
.account-section .session-device { background: var(--surface-3); }
.account-section .product-card { border: 0; background: var(--surface-2); }
.account-section .product-card:hover { background: var(--surface-3); }
.profile-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; }
.profile-avatar { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, var(--surface-3))); color: #fff; font-size: 26px; font-weight: 650; line-height: 1; }
.profile-details { padding-top: 6px; }
@media (max-width: 960px) {
  .center-layout { grid-template-columns: minmax(0, 1fr); }
  .center-nav { display: none; }
}
@media (max-width: 520px) {
  .account-section { padding: 22px 20px 24px; border-radius: 18px; }
  .profile-body { gap: 16px; }
  .profile-avatar { width: 52px; height: 52px; font-size: 20px; }
  .section-icon { width: 32px; height: 32px; border-radius: 10px; }
}

/* Sign-in and the other single-form pages sit on a card with a soft glow at its top, like the closing card on the
   main site. The glow is the card's own background layer, so the help bubbles are never clipped. */
.auth-shell { position: relative; width: min(440px, 100%); padding: 40px 40px 36px; border-radius: 28px; background: var(--surface-1); isolation: isolate; }
.auth-shell::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(70% 46% at 50% 0%, var(--glow-strong), transparent 72%); pointer-events: none; }
.deletion-shell { width: min(620px, 100%); }
.auth-shell .secondary-button { background: var(--surface-2); }
@media (hover: hover) { .auth-shell .secondary-button:not(:disabled):hover { background: var(--surface-3); } }
@media (max-width: 520px) {
  .auth-shell { padding: 0; border-radius: 0; background: none; }
  .auth-shell::before { display: none; }
  .auth-shell .secondary-button { background: var(--surface-1); }
}
/* The three password fields share one row on a wide card. */
.account-section .security-form { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.account-section .security-form > :not(.field) { grid-column: 1 / -1; }
@media (max-width: 760px) { .account-section .security-form { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
/* Labels with and without a help button stand on the same line, so the three inputs line up. */
.account-section .security-form .heading-with-info { align-items: center; min-height: 24px; }
.account-section .security-form .help-tip { margin-top: 0; }
/* The delete flow: its notes are spaced by the form's own gap, and the account being deleted stands clear of the choices. */
.deletion-shell .deletion-identity { margin-bottom: 28px; }
.deletion-shell .auth-form > :is(.deletion-scope, .deletion-scope-note, .deletion-warning, .deletion-introduction, .deletion-identity-note) { margin-bottom: 0; }

/* The terms line under the sign-in and sign-up buttons. */
.terms-note { margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.8; text-align: center; }
.terms-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hairline-strong); }
.terms-note a:hover { text-decoration-color: currentColor; }
html[data-language='zh'] .terms-gap { display: none; }
.terms-sentence { display: inline-block; }
/* Footer: the operator on one side, the terms, the notice and the filing numbers on the other, as on the main site. */
.account-footer { align-items: center; flex-wrap: wrap; row-gap: 8px; }
.footer-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.footer-links a { color: var(--muted); transition: color 200ms var(--ease); }
.footer-links a:is(:hover, :focus-visible) { color: var(--ink); }
.filing-psb { display: inline-flex; align-items: center; gap: 5px; }
/* The value column may shrink below the width of its buttons, so the name editor wraps instead of pushing the card out. */
.profile-details > div { grid-template-columns: 110px minmax(0, 1fr); }
.profile-name-actions { flex: 0 1 auto; flex-wrap: wrap; min-width: 0; }
@media (max-width: 520px) {
  .profile-body { grid-template-columns: minmax(0, 1fr); }
  .profile-details { padding-top: 0; }
  .profile-details > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .profile-name-editor .field { flex-basis: 100%; }
}
