.account-page [hidden] { display: none !important; }
.account-page { min-height: 100vh; display: flex; flex-direction: column; }
.account-page button:disabled { cursor: not-allowed; transform: none; box-shadow: none; }
.back-link { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.account-header-actions { display: flex; align-items: center; gap: 28px; }
.account-header-actions button:disabled { opacity: .55; }
.login-layout { display: grid; grid-template-columns: 1fr .9fr; gap: 100px; align-items: center; padding-block: 62px 80px; flex: 1; }
.login-intro h1 { font-size: clamp(44px, 4.8vw, 64px); }
.login-intro .eyebrow { font-size: 10px; letter-spacing: .09em; }
.login-description { max-width: 440px; margin-top: 23px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.login-illustration { width: min(440px, 100%); margin: 20px auto 0; }
.login-illustration img { width: 100%; height: auto; }
.login-card { padding: 42px; border: 1px solid #e0dedf; border-radius: 28px; background: var(--white); box-shadow: 0 16px 60px #19284906; }
.account-symbol { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 29px; border-radius: 17px; background: var(--lilac); color: #8266ab; font-size: 33px; }
.login-card .eyebrow { margin-bottom: 13px; font-size: 10px; letter-spacing: .08em; }
.login-card h2 { font-size: clamp(31px, 3.1vw, 41px); }
.card-description { margin-top: 21px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.google-button { width: 100%; gap: 13px; margin-top: 27px; border-color: #c9cdd5; background: white; color: var(--ink); border-radius: 13px; }
.google-button > span { font-size: 14px; font-weight: 650; }
.google-button svg { flex-shrink: 0; }
.google-button:hover { background: #f4f3fa; border-color: #b6a8cf; }
.google-button:disabled { opacity: .6; }
.account-status { margin-top: 15px; color: var(--muted); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.account-status:empty { display: none; }
#profile-retry { margin-top: 14px; }
.shared-account-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 26px; padding-top: 25px; border-top: 1px solid #e4e2e7; }
.shared-account-note > span { color: #8f78af; font-size: 23px; line-height: 1; }
.shared-account-note p { font-size: 12px; line-height: 1.75; color: var(--muted); }
.access-caption { margin-top: 21px; padding: 13px 15px; border-radius: 12px; background: #f4f1fa; color: #6c5d81; font-size: 11px; line-height: 1.7; }
.account-legal-links { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; font-size: 11px; color: var(--muted); }
.login-card .account-legal-links { justify-content: center; margin-top: 23px; }
.account-legal-links a { text-underline-offset: 4px; }
.account-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: auto; padding-block: 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.7; }
.account-footer > a, .account-footer p a { text-underline-offset: 4px; }
.dashboard-main { padding-block: 46px 55px; flex: 1; }
.dashboard-status:has(.account-status:empty):has(#profile-retry[hidden]) { display: none; }
.dashboard-status { margin-bottom: 25px; }
.dashboard-status .account-status { margin-top: 0; }
.dashboard-welcome { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px; margin-bottom: 32px; }
.dashboard-welcome-copy { min-width: 0; }
.dashboard-welcome .eyebrow { margin-bottom: 15px; font-size: 10px; letter-spacing: .09em; }
.dashboard-welcome h1 { max-width: 550px; font-size: clamp(36px, 4vw, 49px); line-height: 1.12; letter-spacing: -.05em; }
.dashboard-welcome-visual { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1.4; justify-self: end; overflow: hidden; }
/* Frame the illustration around its artwork, leaving out its transparent margins. */
.dashboard-illustration { position: absolute; display: block; width: 118%; max-width: none; height: auto; left: 50%; top: 50%; transform: translate(-50%, -44%); }
.welcome-description { max-width: 530px; margin-top: 20px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.dashboard-welcome .profile-card { max-width: 100%; margin-top: 24px; }
.profile-card { display: flex; align-items: center; gap: 13px; max-width: 310px; flex-shrink: 0; }
.profile-avatar { display: grid; place-items: center; flex-shrink: 0; overflow: hidden; width: 56px; height: 56px; border-radius: 50%; background: #e6e0f0; color: #70548e; font-size: 18px; font-weight: 650; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-details { min-width: 0; }
#profile-name { font-size: 13px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.access-label { margin-top: 7px; color: var(--muted); font-size: 11px; }
#access-status { display: inline-block; margin-left: 5px; padding: 4px 9px; border-radius: 30px; background: #eeeaf6; color: #6b5587; font-weight: 650; }
.progress-card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 31px 34px; border: 1px solid #dcd5ea; border-radius: 24px; background: #ebe6f6; }
.progress-copy .eyebrow { margin-bottom: 10px; font-size: 9px; letter-spacing: .1em; color: #6d5889; }
.progress-copy h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.035em; }
.progress-copy > p:last-child { margin-top: 9px; color: #746c85; font-size: 12px; line-height: 1.7; }
.progress-label { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 12px; color: #6a5a7f; }
.progress-label strong { color: var(--ink); font-size: 18px; font-weight: 650; }
#progress-percent { font-size: 13px; font-weight: 650; }
#progress-bar { display: block; width: 100%; height: 10px; margin-top: 14px; overflow: hidden; border: 0; border-radius: 30px; background: #d8cfe8; accent-color: #8b6aac; appearance: none; }
#progress-bar::-webkit-progress-bar { border-radius: 30px; background: #d8cfe8; }
#progress-bar::-webkit-progress-value { border-radius: 30px; background: #8b6aac; }
#progress-bar::-moz-progress-bar { border-radius: 30px; background: #8b6aac; }
.progress-caption { margin-top: 12px; color: #746c85; font-size: 10px; line-height: 1.6; }
.credits-card { display: flex; align-items: center; gap: 24px; margin-top: 20px; padding: 26px 30px; border: 1px solid #d7dfd8; border-radius: 22px; background: #f3f7f1; }
.credits-number { display: flex; align-items: center; flex-direction: column; gap: 4px; flex-shrink: 0; min-width: 85px; color: #54705d; }
.credits-number strong { font-size: 37px; line-height: 1; font-weight: 650; }
.credits-number span { font-size: 11px; }
.credits-copy { flex: 1; }
.credits-copy h2 { font-size: 19px; line-height: 1.35; }
.credits-copy p { max-width: 570px; margin-top: 8px; color: #6a786a; font-size: 12px; line-height: 1.75; }
.credits-copy .credits-upcoming { font-weight: 650; }
.credits-card > .button { flex-shrink: 0; min-height: 46px; padding: 12px 18px; font-size: 12px; }
.dashboard-activities { margin-top: 46px; }
.dashboard-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.dashboard-section-heading .eyebrow { margin-bottom: 10px; font-size: 9px; letter-spacing: .1em; }
.dashboard-section-heading h2 { font-size: 28px; }
.upcoming-label { color: var(--muted); font-size: 11px; line-height: 1.6; text-align: right; }
.activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.activity-card { display: flex; flex-direction: column; padding: 27px; border: 1px solid #dedfdd; border-radius: 22px; background: var(--white); }
.activity-card-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 27px; }
.activity-icon { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 15px; font-size: 30px; line-height: 1; }
.activity-free .activity-icon { background: #faedbf; color: #826b2b; }
.activity-full .activity-icon { background: #e9e2f5; color: #8b6aac; }
.activity-analysis .activity-icon { background: #e7edf5; color: #6c85a6; }
.activity-step { color: var(--muted); font-size: 10px; }
.activity-card h3 { font-size: 21px; }
.activity-card > p:not(.activity-detail) { margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.activity-detail { margin-top: auto; padding-top: 24px; color: #776c86; font-size: 11px; line-height: 1.6; }
.activity-detail strong { font-weight: 650; }
.activity-card > .button { margin-top: 15px; }
.upcoming-button { width: 100%; min-height: 44px; margin-top: 15px; padding: 12px 15px; border-radius: 11px; border-color: #e0dfe4; background: #f0efef; color: #787d87; font-size: 12px; }
.dashboard-availability { margin-top: 16px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.dashboard-note { display: flex; align-items: center; gap: 22px; margin-top: 34px; padding: 25px 29px; border-radius: 20px; background: #eeece4; }
.dashboard-note > span { color: #a48b4a; font-size: 41px; line-height: 1; }
.dashboard-note h2 { font-size: 20px; letter-spacing: -.03em; }
.dashboard-note p { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.session-note { max-width: 760px; margin-top: 22px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.noscript-message { margin: 20px; padding: 18px; border: 1px solid #ded6ec; border-radius: 12px; background: #eee8f8; font-size: 14px; }
.signout-dialog { width: min(550px, calc(100% - 36px)); }
.signout-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.signout-actions .button { flex: 1 1 170px; padding-inline: 18px; font-size: 14px; }
.new-analysis-dialog { width: min(550px, calc(100% - 32px)); }
.new-analysis-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.new-analysis-actions .button { flex: 1 1 170px; min-height: 48px; padding-inline: 15px; font-size: 14px; }
.dashboard-main .button { min-height: 46px; }

@media (max-width: 1100px) {
  .login-layout { gap: 45px; }
  .login-card { padding: 32px; }
  .profile-card { max-width: 250px; }
  .activity-card { padding: 22px; }
  .activity-card h3 { font-size: 19px; }
}

@media (max-width: 760px) {
  .login-layout { grid-template-columns: 1fr; gap: 30px; width: min(520px, calc(100% - 40px)); padding-block: 38px 48px; }
  .login-intro h1 { font-size: 43px; }
  .login-intro h1 br { display: none; }
  .login-description { margin-top: 18px; font-size: 14px; }
  .login-illustration { display: none; }
  .login-card { padding: 28px; border-radius: 22px; }
  .login-card h2 { font-size: 32px; }
  .account-symbol { margin-bottom: 23px; }
  .account-header-actions { gap: 17px; }
  .account-header-actions .back-link { display: none; }
  .back-link { font-size: 11px; }
  .account-footer { flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 22px; }
  .dashboard-main { padding-block: 30px 40px; }
  .dashboard-welcome { grid-template-columns: 1fr; gap: 10px; margin-bottom: 24px; }
  .dashboard-welcome h1 { max-width: 510px; font-size: clamp(34px, 7vw, 44px); }
  .dashboard-welcome .welcome-description { margin-top: 16px; font-size: 14px; }
  .dashboard-welcome .profile-card { margin-top: 20px; }
  .dashboard-welcome-visual { width: min(380px, 100%); justify-self: center; }
  .profile-card { max-width: 100%; }
  .profile-avatar { width: 43px; height: 43px; font-size: 15px; }
  .progress-card { grid-template-columns: 1fr; gap: 27px; padding: 25px; border-radius: 21px; }
  .progress-copy h2 { font-size: 23px; }
  .credits-card { flex-wrap: wrap; gap: 18px; padding: 23px; }
  .credits-number { min-width: 65px; }
  .credits-copy { min-width: calc(100% - 85px); }
  .credits-copy h2 { font-size: 18px; }
  .credits-card > .button { width: 100%; }
  .dashboard-activities { margin-top: 34px; }
  .dashboard-section-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dashboard-section-heading h2 { font-size: 26px; }
  .upcoming-label { text-align: left; }
  .activity-grid { grid-template-columns: 1fr; gap: 15px; }
  .activity-card { padding: 25px; }
  .activity-card-top { margin-bottom: 20px; }
  .activity-card h3 { font-size: 22px; }
  .activity-card > p:not(.activity-detail) { max-width: 420px; font-size: 13px; }
  .activity-detail { padding-top: 20px; }
  .dashboard-note { align-items: flex-start; padding: 23px; gap: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .account-page .button { transition: none; }
}

.credits-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.credits-actions .button { min-height: 48px; padding: 13px 20px; font-size: 12px; text-align: center; }
@media (max-width: 700px) { .credits-actions { width: 100%; } }
