*, *::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; 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; }
  .account-footer > span:last-child { max-width: 230px; }
  .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; }
.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); }
.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); }
.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)); } }
