.profile-main { padding-top: 48px; padding-bottom: 64px; flex: 1; }
.profile-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; }
.profile-heading .auth-eyebrow, .profile-section-label { color: #8dbaff; font-size: 11px; letter-spacing: .14em; font-weight: 700; }
.profile-heading h1 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -.04em; margin: 10px 0; }
.profile-heading p:last-child, .profile-description, .profile-member, .profile-empty p, .profile-help { color: #aaa8bc; font-size: 14px; line-height: 1.7; }
.profile-page .primary-link { color: #0b1020 !important; }
.profile-layout { display: grid; gap: 24px; align-items: start; }
.profile-layout[hidden] { display: none; }
.profile-summary, .profile-card { background: #14101e; border: 1px solid #ffffff14; border-radius: 16px; padding: 28px; }
.profile-summary { background: radial-gradient(ellipse at top right, #28437c55, transparent 65%), #151321; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 22px; }
.profile-avatar { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(135deg, #438fe9, #8058cf); font-size: 26px; font-weight: 700; margin-bottom: 20px; color: white; }
.profile-summary h2 { font-size: 22px; overflow-wrap: anywhere; }
.profile-summary #account-email { font-size: 13px; color: #b8b5cc; }
.profile-badge { display: inline-block; padding: 5px 10px; border-radius: 20px; font-size: 11px; background: #58a6ff16; color: #9dceff; margin: 18px 0 12px; }
.profile-summary .profile-avatar { margin: 0; }
.profile-meta { text-align: right; }
.profile-meta .profile-badge { margin: 0 0 8px; }
.profile-summary nav { grid-column: 1 / 3; display: flex; flex-wrap: wrap; gap: 24px; padding-top: 22px; margin-top: 12px; border-top: 1px solid #ffffff14; }
.profile-summary #sign-out { justify-self: end; margin: 12px 0 0; padding: 10px 16px; border: 1px solid #ffffff24; border-radius: 8px; text-decoration: none; }
.profile-summary nav a { text-decoration: none; font-size: 14px; }
.profile-sections { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.profile-sections #orders, .profile-help { grid-column: 1 / -1; }
.profile-sections #details, .profile-sections #security { height: 100%; }
.profile-card { scroll-margin-top: 24px; }
.profile-card h2 { font-size: 23px; margin: 10px 0; letter-spacing: -.025em; }
.profile-description { margin-bottom: 22px; }
.profile-card form { margin-top: 24px; }
.profile-card .auth-submit { width: auto; min-width: 150px; padding: 12px 22px; }
.profile-card input[readonly] { color: #a8a4b8; background: #191522; }
.profile-password { border-top: 1px solid #ffffff14; padding-top: 22px; margin-top: 22px; }
.profile-password h3, .profile-empty h3 { font-size: 16px; }
.profile-empty { padding: 28px 16px; text-align: center; }
.profile-empty > span { display: block; color: #8ab7ff; font-size: 40px; margin-bottom: 12px; }
.profile-empty p { max-width: 360px; margin: 12px auto 20px; }
.profile-empty a { font-size: 14px; }
.profile-help { text-align: center; }
.profile-sections #keys, .profile-sections #support { height: 100%; }
.account-tip { border-top: 1px solid #ffffff14; padding-top: 18px; color: #aaa8bc; font-size: 14px; line-height: 1.7; }
.account-tip summary { cursor: pointer; color: #8dbaff; }
.account-tip p { margin-top: 12px; }
#support textarea { width: 100%; resize: vertical; min-height: 110px; padding: 12px; background: #191522; color: #e6edf3; border: 1px solid #ffffff24; border-radius: 8px; font: inherit; }
#support textarea:focus-visible { outline: 2px solid #58a6ff; }
#support .auth-submit { margin-top: 16px; }
.account-faq { display: inline-block; margin-top: 20px; font-size: 14px; }
.profile-main > .auth-status:not(:empty) { margin: 0 0 24px; }
@media (max-width: 760px) { .profile-sections { grid-template-columns: 1fr; } .profile-summary { grid-template-columns: auto minmax(0, 1fr); } .profile-meta { grid-column: 1 / -1; text-align: left; margin-top: 10px; } .profile-summary nav { grid-column: 1 / -1; gap: 18px; } .profile-summary #sign-out { justify-self: start; } .profile-heading { align-items: flex-start; flex-direction: column; } .profile-main { padding-top: 28px; } .profile-card, .profile-summary { padding: 22px; } }
/* Inset the support topic chevron from the field edge. */
#support-topic { appearance: none; padding-right: 52px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23aab8cc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 16px 16px; background-position: right 20px center; }
.profile-save-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
#email-password-dialog { margin: auto; width: min(440px, calc(100% - 32px)); padding: 28px; color: #e6edf3; background: #14101e; border: 1px solid #ffffff24; border-radius: 16px; }
#email-password-dialog::backdrop { background: #000a; }
#email-password-dialog p { margin: 16px 0; font-size: 14px; }
