.account-page { background: #f7f9fc; }
.account-page .section-kicker { display: inline-block; color: #246bea; font-size: 13px; line-height: 1.5; font-weight: 750; letter-spacing: .08em; }
.account-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.account-page .button { min-height: 46px; font-size: 14px; padding: 0 20px; text-align: center; }
.account-page .text-button, .account-page .text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.account-page input[type=email], .account-page input[type=password], .account-page input[type=text] { min-height: 50px; font-size: 16px; background: #fbfcff; border-radius: 10px; }
.account-page form label { font-size: 14px; line-height: 1.5; }
.account-page .form-status { font-size: 14px; line-height: 1.8; margin-top: 12px; }
.auth-layout { min-height: calc(100dvh - 260px); display: grid; grid-template-columns: 1fr 460px; gap: 80px; align-items: start; padding-top: 76px; padding-bottom: 84px; }
.auth-intro { padding-top: 32px; }
.auth-intro h1 { margin: 19px 0 23px; font-size: clamp(36px,4vw,52px); line-height: 1.35; font-weight: 780; letter-spacing: -.045em; }
.auth-intro > p { margin: 0 0 18px; color: #607086; font-size: 16px; line-height: 1.9; }
.auth-intro-note { display: flex; align-items: center; gap: 13px; max-width: 380px; padding: 21px 0; margin-top: 34px; border-top: 1px solid #e0e8f1; }
.auth-intro-note > span { width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: #e8f0ff; color: #246bea; font-size: 18px; }
.auth-intro-note p { margin: 0; font-size: 14px; color: #607086; line-height: 1.7; }
.auth-card { padding: 30px 36px 22px; background: #fff; border: 1px solid #e1e8f1; border-radius: 22px; box-shadow: 0 20px 65px rgb(30 64 110 / 5%); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; border-radius: 12px; background: #f1f5fa; }
.auth-tabs button { min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: #66768b; font-size: 16px; font-weight: 700; }
.auth-tabs button[aria-selected=true] { background: #fff; color: #246bea; box-shadow: 0 2px 7px rgb(20 48 90 / 7%); }
.auth-card h3 { margin: 28px 0 8px; font-size: 25px; font-weight: 750; letter-spacing: -.03em; }
.auth-description { margin: 0 0 24px; font-size: 14px; color: #607086; line-height: 1.8; }
.auth-card form label { margin-top: 18px; }
.auth-forgot { display: flex; justify-content: end; margin-top: 12px; font-size: 13px; color: #246bea; }
.auth-forgot a { min-height: 32px; display: inline-flex; align-items: center; text-decoration: none; }
.auth-card .auth-submit { width: 100%; margin-top: 20px; min-height: 50px; font-size: 15px; }
.auth-support { margin: 16px 0 0; padding-top: 19px; border-top: 1px solid #edf0f5; text-align: center; color: #607086; font-size: 13px; }
.auth-support a { color: #246bea; text-decoration: none; }
.field-optional { display: inline; font-size: 12px; color: #7b889b; font-weight: 400; }
.account-page .consent-check { display: flex; margin-top: 20px; gap: 10px; font-size: 12px; font-weight: 400; line-height: 1.8; }
.account-page .consent-check input { width: 18px; height: 18px; flex-shrink: 0; }
.verification-note { margin-top: 25px; font-size: 14px; color: #607086; line-height: 1.8; overflow-wrap: anywhere; }
.verification-note strong { color: #172e4c; }
.verification-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.verification-actions .text-button { font-size: 12px; }
.account-main { padding: 46px 0 80px; min-height: 60dvh; }
.account-loading { padding: 60px 0; color: #607086; font-size: 16px; }
.account-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.account-heading h1 { margin: 9px 0 8px; font-size: 34px; line-height: 1.25; letter-spacing: -.04em; font-weight: 780; }
.account-heading p { margin: 0; font-size: 14px; line-height: 1.8; color: #607086; overflow-wrap: anywhere; }
.account-notice { padding: 15px 19px; margin-bottom: 24px; background: #edf4ff; color: #23589e; border: 1px solid #d8e5fa; border-radius: 12px; font-size: 14px; line-height: 1.8; }
.account-layout { display: grid; grid-template-columns: 184px minmax(0,1fr); gap: 34px; align-items: start; }
.account-side { position: sticky; top: 100px; display: grid; gap: 6px; }
.account-side a { padding: 14px 18px; border-radius: 10px; color: #607086; text-decoration: none; font-size: 14px; font-weight: 650; }
.account-side a:hover, .account-side a:focus-visible { background: #eaf1ff; color: #246bea; }
.account-side a:last-child { margin-top: 15px; border-top: 1px solid #e1e8f1; padding-top: 20px; border-radius: 0; }
.account-sections { display: grid; gap: 22px; min-width: 0; }
.account-section, .account-membership { display: block; padding: 28px 30px; border: 1px solid #e0e7f0; border-radius: 18px; background: #fff; scroll-margin-top: 105px; }
.account-section h2 { margin: 0; font-size: 21px; font-weight: 750; line-height: 1.5; letter-spacing: -.02em; }
.account-section-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-description { font-size: 14px; color: #607086; line-height: 1.85; margin: 8px 0 13px; }
.account-membership { background: linear-gradient(120deg,#eaf2ff,#f7faff 82%); border-color: #d3e1f8; }
.membership-eyebrow { font-size: 13px; color: #5576a6; font-weight: 650; }
.account-membership h2 { margin: 12px 0 0; font-size: 30px; letter-spacing: -.03em; line-height: 1.4; }
.membership-expiry { margin: 12px 0 0; color: #3c5b84; font-size: 15px; line-height: 1.8; }
.membership-limit { margin: 8px 0 0; font-size: 13px; color: #607086; }
.membership-actions { display: flex; align-items: center; gap: 24px; margin-top: 24px; }
.membership-actions > a:last-child { color: #396494; font-size: 13px; text-decoration: none; }
.account-records { display: grid; gap: 12px; padding: 0; margin: 16px 0 0; list-style: none; }
.account-record { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; background: #f8fafd; border: 1px solid #e8edf4; border-radius: 12px; }
.account-record-copy { min-width: 0; }
.account-record-title { display: block; font-size: 15px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.account-record-meta { margin: 7px 0 0; font-size: 13px; color: #607086; line-height: 1.9; overflow-wrap: anywhere; }
.account-record > .button { flex-shrink: 0; min-height: 40px; padding: 0 14px; font-size: 13px; }
.invitation-details { margin-top: 20px; padding: 18px; border: 1px solid #dfe7f2; border-radius: 12px; background: #f8faff; }
.invitation-details > span { font-size: 13px; color: #607086; }
.invitation-code-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.invitation-code-row strong { font-family: ui-monospace,monospace; font-size: 23px; letter-spacing: .08em; overflow-wrap: anywhere; }
.invitation-link-row { display: grid; gap: 9px; margin-top: 12px; }
.invitation-link-row label { color: #607086; font-size: 13px; }
.account-page .invitation-link-row input { min-width: 0; font-size: 12px; }
.invitation-link-row button { justify-self: start; margin-top: 3px; }
.account-inline-note { padding: 16px 0 0; margin-top: 23px; border-top: 1px solid #e8edf4; }
.account-inline-note > strong { font-size: 14px; }
.account-inline-note p { margin: 8px 0 0; font-size: 13px; color: #607086; line-height: 1.85; }
.account-inline-note a { color: #246bea; }
.password-change-form { max-width: 420px; margin: 24px 0; }
.password-change-form h3, .account-security-row h3 { margin: 0; font-size: 15px; font-weight: 700; }
.password-change-form > .button { margin-top: 18px; }
.account-security-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 0; border-top: 1px solid #e8edf4; }
.account-security-row p { margin: 7px 0 0; font-size: 13px; color: #607086; line-height: 1.8; }
.account-security-row--danger { padding-bottom: 0; }
.account-security-row--danger h3 { color: #a53442; }
.account-page .button--danger { color: #a53442; background: #fff; border: 1px solid #e8cbd0; }
.account-page .button--danger:hover { background: #fff6f7; }
.account-dialog { width: min(480px,calc(100% - 32px)); padding: 30px; border: 1px solid #e0e7f0; border-radius: 18px; color: #172e4c; background: #fff; box-shadow: 0 20px 80px rgb(20 40 70 / 22%); }
.account-dialog::backdrop { background: rgb(18 38 64 / 48%); }
.account-dialog h2 { font-size: 23px; margin: 0 0 16px; }
.account-dialog p { font-size: 14px; line-height: 1.85; color: #607086; }
.dialog-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.account-page .reset-main { min-height: calc(100dvh - 260px); padding: 64px 0 90px; }
.account-page .reset-card { width: min(480px,100%); padding: 34px; }
.account-page .reset-card h1 { margin: 14px 0 17px; font-size: 31px; line-height: 1.4; font-weight: 750; letter-spacing: -.03em; }
.account-page .reset-card > p { font-size: 14px; line-height: 1.85; }
.account-page .reset-card > .text-link { margin-top: 16px; }
.account-page .reset-card form .button { min-height: 48px; }
.account-page .reset-card .fine-print { font-size: 12px; }
@media(max-width:900px) {
  .auth-layout { grid-template-columns: .9fr 1fr; gap: 36px; padding-top: 55px; }
  .auth-card { padding: 25px; }
  .account-layout { grid-template-columns: 145px minmax(0,1fr); gap: 20px; }
  .account-side a { padding-inline: 12px; }
}
@media(max-width:680px) {
  .auth-layout { min-height: 0; display: block; padding-top: 32px; padding-bottom: 45px; }
  .auth-intro { padding: 0; margin-bottom: 25px; }
  .auth-intro h1 { margin: 11px 0 10px; font-size: 32px; line-height: 1.3; }
  .auth-intro h1 br { display: none; }
  .auth-intro > p { font-size: 14px; margin-bottom: 8px; }
  .auth-intro > p br { display: none; }
  .auth-intro > .text-link, .auth-intro-note { display: none; }
  .auth-card { padding: 22px; border-radius: 16px; }
  .auth-card h3 { margin-top: 25px; font-size: 23px; }
  .auth-description { margin-bottom: 18px; }
  .account-main { padding-top: 30px; padding-bottom: 50px; }
  .account-heading { margin-bottom: 22px; gap: 12px; align-items: end; }
  .account-heading h1 { font-size: 29px; }
  .account-heading > .button { min-height: 42px; padding-inline: 13px; font-size: 13px; }
  .account-heading p { max-width: 210px; font-size: 12px; }
  .account-layout { display: block; }
  .account-side { position: static; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 7px; margin: 0 -2px 19px; scrollbar-width: thin; }
  .account-side a { flex-shrink: 0; padding: 12px 13px; font-size: 13px; background: #eef2f9; }
  .account-side a:last-child { display: none; }
  .account-sections { gap: 16px; }
  .account-section, .account-membership { padding: 22px 20px; border-radius: 15px; scroll-margin-top: 85px; }
  .account-section h2 { font-size: 20px; }
  .account-membership h2 { font-size: 27px; }
  .membership-expiry { font-size: 14px; }
  .membership-actions { gap: 15px; flex-wrap: wrap; }
  .account-record { align-items: flex-start; gap: 12px; padding: 15px; }
  .account-record-title { font-size: 14px; }
  .account-record-meta { font-size: 12px; }
  .account-record > .button { padding-inline: 10px; font-size: 12px; }
  .invitation-code-row { align-items: start; flex-direction: column; gap: 0; }
  .invitation-code-row strong { margin-top: 10px; font-size: 21px; letter-spacing: .05em; }
  .account-security-row { align-items: start; gap: 13px; }
  .account-security-row > .button { flex-shrink: 0; padding-inline: 12px; font-size: 12px; }
  .account-dialog { padding: 24px; }
  .account-dialog h2 { font-size: 21px; }
  .account-page .reset-main { min-height: 60dvh; padding-top: 36px; padding-bottom: 50px; }
  .account-page .reset-card { padding: 25px; }
  .account-page .reset-card h1 { font-size: 28px; }
}

.device-platform-icon { flex: 0 0 28px; color: var(--accent, #397af5); align-self: center; }
#device-list .account-record-copy { flex: 1; }
