/* Login and personal learning space. */
.auth-experience { grid-template-columns: minmax(0,1fr) minmax(0,470px); align-items: center; gap: 90px; padding-top: 64px; }
.auth-experience .auth-intro { max-width: 490px; }
.auth-experience .auth-intro h1 { font-size: clamp(34px,4vw,54px); line-height: 1.75; margin-bottom: 20px; }
.auth-experience .auth-intro h1 span { color: var(--teal); background: linear-gradient(transparent 80%,var(--lime) 80%); }
.auth-experience .auth-intro>p { font-size: 16px; color: var(--muted); line-height: 2.1; max-width: 430px; }
.auth-benefits { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 22px; }
.auth-benefits li { display: flex; gap: 16px; align-items: center; }
.auth-benefits li>span { width: 46px; height: 46px; border-radius: 14px; background: #e9efdf; display: grid; place-items: center; color: var(--teal); flex-shrink: 0; }
.auth-benefits strong { font-size: 15px; display: block; }
.auth-benefits small { font-size: 13px; display: block; color: var(--muted); margin-top: 2px; }
.auth-explore { font-size: 13px; color: var(--muted); display: inline-flex; flex-direction: column; align-items: flex-start; }
.auth-explore>span { min-height: 44px; display: flex; align-items: center; gap: 10px; color: var(--teal); font-size: 14px; font-weight: 600; }
.auth-explore svg { width: 18px; height: 18px; }
.auth-experience .auth-card { padding: 32px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 18px 50px #153e3808; border-radius: 24px; min-width: 0; }
.auth-card-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.auth-experience .auth-back { margin: 0; font-size: 12px; font-weight: 400; }
.auth-back svg { width: 17px; height: 17px; }
.auth-secure { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.auth-secure svg { width: 15px; height: 15px; }
.auth-progress { padding: 0; margin: 0 0 30px; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-progress li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); border-bottom: 2px solid var(--line); padding-bottom: 15px; }
.auth-step-number { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; background: #edf1e8; line-height: 1; }
.auth-progress li[aria-current] { color: var(--ink); border-color: var(--teal); font-weight: 600; }
.auth-progress li[aria-current] .auth-step-number { color: var(--paper); background: var(--teal); }
.auth-progress li.completed { color: var(--teal); border-color: #a3b779; }
.auth-progress li.completed .auth-step-number { background: var(--lime); }
.auth-heading-group { margin-bottom: 26px; }
.auth-experience .auth-heading-group h2 { font-size: 28px; margin-bottom: 8px; }
.auth-heading-group p { font-size: 16px; line-height: 2; margin: 0; }
.auth-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border: 1px solid var(--line); background: var(--paper); padding: 4px; border-radius: 12px; margin-bottom: 24px; }
.auth-methods button { background: transparent; border: 1px solid transparent; min-height: 44px; border-radius: 8px; color: var(--muted); font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.auth-methods button svg { width: 17px; height: 17px; }
.auth-methods button[aria-pressed=true] { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: 0 2px 4px #153e3808; font-weight: 600; }
.auth-methods button:not([aria-pressed=true]):hover { color: var(--ink); background: #e9efdf; }
.auth-experience .field { margin-bottom: 12px; }
.auth-experience .field label { font-size: 14px; margin-bottom: 8px; }
.auth-experience .field input { height: 56px; width: 100%; font-size: 17px; border-radius: 12px; background: var(--surface); padding: 12px 16px; transition: border-color 200ms,box-shadow 200ms; }
.auth-experience .field input[aria-invalid=true] { border-color: #a14135; box-shadow: 0 0 0 2px #a1413512; }
.auth-experience .field input::placeholder { color: #697b72; }
.auth-experience .field input:read-only { color: var(--muted); background: var(--paper); }
.auth-experience .field small { display: block; font-size: 12px; line-height: 1.9; color: var(--muted); margin-top: 9px; }
.auth-account-note { font-size: 12px; line-height: 2; color: var(--muted); margin: 14px 0 22px; }
.auth-experience .auth-submit { font-size: 16px; min-height: 54px; margin-top: 6px; gap: 12px; }
.auth-submit[aria-busy=true] { opacity: 1; background: #345b50; color: white; }
.auth-submit[aria-busy=true]:before { content: ''; width: 18px; height: 18px; border: 2px solid #ffffff60; border-top-color: white; border-radius: 50%; animation: account-spin .8s linear infinite; }
.auth-experience .form-message { font-size: 14px; line-height: 2; border: 1px solid #eed1cb; color: #873b2f; border-radius: 10px; padding: 12px 14px; margin-block: 18px 12px; background: #fcf4ef; }
.auth-experience .form-message.success { color: var(--teal); background: #eff6df; border-color: #c9dca6; }
.auth-experience .auth-trust { display: flex; align-items: flex-start; gap: 8px; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.9; }
.auth-trust svg { width: 17px; height: 17px; margin-top: 2px; }
.auth-destination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 24px; }
.auth-destination>span { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 15px; }
.auth-destination bdi { overflow-wrap: anywhere; }
.auth-destination svg { width: 17px; height: 17px; color: var(--muted); }
.auth-destination button { min-height: 44px; padding: 6px 8px; color: var(--teal); font-size: 13px; border-radius: 8px; background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.auth-destination button:hover { background: #e5ecd9; }
.auth-local-code { display: grid; gap: 3px; margin: 0 0 18px; padding: 13px 16px; border: 1px solid #b2c779; border-radius: 13px; background: #f2f8df; color: var(--teal); }
.auth-local-code[hidden] { display: none; }
.auth-local-code>span { font-size: 13px; font-weight: 700; }
.auth-local-code output { font: 700 28px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.auth-local-code small { color: var(--muted); font-size: 11px; }
.auth-experience .input-with-action { position: relative; }
.auth-experience .input-with-action input[type=password],.auth-experience .input-with-action:has(.password-toggle:not([hidden])) input { padding-right: 72px; }
.auth-experience .password-toggle { position: absolute; left: auto; right: 6px; top: 6px; height: 44px; min-width: 56px; padding: 6px; border-radius: 8px; background: var(--paper); color: var(--teal); font-size: 12px; }
.auth-alternatives { margin-block: 10px 20px; }
.auth-alternatives .text-link { min-height: 44px; font-size: 13px; white-space: normal; text-align: right; }
.auth-alternatives button:disabled { opacity: 1; color: var(--muted); cursor: default; }
/* Account navigation is shared with all account subpages. */
.account-layout { grid-template-columns: 236px minmax(0,1fr); gap: 40px; padding-top: 44px; align-items: start; }
.account-navigation { border-radius: 18px; padding: 24px 14px 14px; background: var(--surface); border: 1px solid var(--line); top: 110px; }
.account-navigation .account-person { display: flex; text-align: center; flex-direction: column; align-items: center; gap: 12px; padding: 0 6px 22px; margin: 0 0 12px; border-bottom: 1px solid var(--line); }
.account-navigation .avatar-large { height: 60px; width: 60px; border-radius: 50%; overflow: hidden; background: #eaf1dc; color: var(--teal); }
.account-navigation .avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.account-navigation .avatar-large svg { width: 25px; height: 25px; }
.account-navigation .account-person strong { font-size: 16px; display: block; overflow-wrap: anywhere; }
.account-navigation .account-person small { font-size: 12px; color: var(--muted); display: block; margin-top: 3px; }
.account-navigation .account-desktop-navigation { display: flex; flex-direction: column; gap: 5px; }
.account-nav-group { font-size: 12px; color: var(--muted); margin: 12px 12px 5px; }
.account-navigation .account-desktop-navigation a { display: flex; flex-direction: row; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--muted); flex: initial; }
.account-navigation .account-desktop-navigation a svg { width: 19px; height: 19px; }
.account-navigation .account-desktop-navigation a svg:last-child { width: 16px; height: 16px; margin-right: auto; opacity: 0; }
.account-navigation .account-desktop-navigation a[aria-current] { background: var(--teal); color: white; font-weight: 600; }
.account-navigation .account-desktop-navigation a[aria-current] svg:last-child { opacity: 1; }
.account-navigation .account-desktop-navigation a:not([aria-current]):hover { background: var(--paper); color: var(--teal); }
.account-navigation form { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 12px; }
.account-navigation .account-logout { background: transparent; margin: 0; display: flex; align-items: center; justify-content: flex-start; gap: 10px; font-size: 13px; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 10px; color: #854537; }
.account-navigation .account-logout svg { width: 18px; height: 18px; }
.account-navigation .account-logout:hover { background: #fbf0e9; }
.account-mobile-navigation { display: none; }
.account-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.account-page-heading .eyebrow { margin-bottom: 9px; }
.account-experience .account-page-heading h1 { font-size: clamp(30px,3vw,40px); margin-bottom: 8px; }
.account-page-heading p { font-size: 16px; margin-bottom: 0; color: var(--muted); }
.account-discover-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; white-space: nowrap; color: var(--teal); font-weight: 600; }
.account-discover-link svg { width: 18px; height: 18px; }
.account-overview { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; margin-bottom: 26px; }
.account-overview-item { display: flex; align-items: center; gap: 14px; min-width: 0; border: 1px solid var(--line); background: var(--surface); padding: 19px 22px; border-radius: 16px; }
.account-overview-item .overview-symbol { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 12px; background: #edf2e5; color: var(--teal); flex-shrink: 0; }
.account-overview-item strong { font-size: 24px; font-weight: 700; display: block; }
.account-overview-item strong span { font-size: 12px; font-weight: 400; }
.account-overview-item small { font-size: 12px; color: var(--muted); display: block; }
.account-overview-item>svg { width: 18px; height: 18px; margin-right: auto; color: var(--muted); }
.account-overview>a:hover { border-color: #9eb28b; background: #fbfcf8; }
.account-continue { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; background: var(--teal); border-radius: var(--radius-card); color: var(--paper); overflow: hidden; padding: 30px; margin-bottom: 42px; align-items: center; }
.continue-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--lime); margin-bottom: 14px; }
.continue-label svg { width: 16px; height: 16px; }
.account-continue h2 { font-size: clamp(22px,2.3vw,30px); color: var(--paper); margin-bottom: 12px; }
.account-continue p { font-size: 16px; line-height: 2; color: #d4dfd1; margin-bottom: 22px; }
.account-continue .continue-button { background: var(--lime); color: var(--ink); min-height: 48px; font-size: 13px; padding: 11px 18px; gap: 9px; }
.account-continue .continue-button:hover { background: #e5f7b3; }
.account-continue-image { border-radius: 16px; overflow: hidden; border: 1px solid #769282; }
.account-continue-image img { width: 100%; aspect-ratio: 1.15; height: auto; object-fit: cover; }
.account-continue-art { min-height: 215px; border: 1px solid #5a796a; border-radius: 90px 90px 15px 15px; display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 20px; color: var(--lime); background: #254d43; font-size: 22px; text-align: center; }
.account-continue-art svg { width: 46px; height: 46px; stroke-width: 1.2; }
.account-library-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.account-library-heading h2 { font-size: 26px; margin-bottom: 0; }
.account-library-heading .eyebrow { margin-bottom: 5px; }
.account-count { background: #e8eee0; border-radius: 20px; color: var(--muted); font-size: 12px; padding: 6px 13px; }
.account-learning-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.account-learning-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: border-color 200ms,box-shadow 200ms; }
.account-learning-card:hover { border-color: #adbfa1; box-shadow: 0 8px 22px #153e3808; }
.account-learning-cover { position: relative; padding: 9px 9px 0; }
.account-learning-cover img { aspect-ratio: 1.75; object-fit: cover; border-radius: 12px; width: 100%; height: auto; }
.account-cover-placeholder { aspect-ratio: 1.75; border-radius: 12px; display: grid; place-items: center; background: #e9efdf; color: #72856a; }
.account-cover-placeholder svg { width: 60px; height: 60px; stroke-width: 1; }
.account-course-state { position: absolute; bottom: 12px; right: 20px; font-size: 11px; background: #f7f8f2f5; color: var(--teal); border-radius: 20px; padding: 5px 10px; display: flex; align-items: center; gap: 6px; }
.account-course-state svg { width: 14px; height: 14px; }
.account-learning-body { padding: 19px 21px 7px; }
.account-course-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.account-course-meta span { display: flex; align-items: center; gap: 5px; }
.account-course-meta svg { width: 15px; height: 15px; }
.account-learning-body h3 { font-size: 19px; line-height: 1.9; min-height: 64px; margin-bottom: 14px; }
.account-learning-body h3 a:hover { color: #627c3d; }
.account-learning-action { border-top: 1px solid var(--line); min-height: 54px; display: flex; align-items: center; }
.account-learning-action>a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; width: 100%; font-size: 13px; font-weight: 600; color: var(--teal); }
.account-learning-action svg { width: 18px; height: 18px; }
.account-learning-action>span { font-size: 12px; color: var(--muted); }
.account-empty-library { border: 1px dashed #b4c5a6; border-radius: var(--radius-card); padding: 44px 24px; background: #f0f4e9; text-align: center; display: flex; align-items: center; flex-direction: column; }
.empty-library-symbol { width: 74px; height: 74px; border-radius: 22px; background: #e0eacb; display: grid; place-items: center; margin-bottom: 22px; color: var(--teal); }
.empty-library-symbol svg { width: 32px; height: 32px; }
.account-empty-library h3 { font-size: 24px; margin-bottom: 10px; }
.account-empty-library p { font-size: 16px; color: var(--muted); line-height: 2; margin-bottom: 24px; }
.account-empty-library>.text-link { margin-top: 12px; font-size: 13px; }
.account-help-note { margin-top: 32px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 21px; }
.account-help-note>span { display: flex; color: var(--muted); }
.account-help-note strong { font-size: 14px; }
.account-help-note p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.account-help-note>a { display: flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 12px; min-height: 44px; margin-right: auto; color: var(--teal); }
.account-help-note>a svg { width: 16px; height: 16px; }
@keyframes account-spin { to { transform: rotate(360deg); } }
@media (max-width:1100px) {
  .auth-experience { gap: 44px; grid-template-columns: minmax(0,1fr) minmax(0,430px); }
  .account-layout { grid-template-columns: 216px minmax(0,1fr); gap: 28px; }
  .account-overview-item { padding: 17px; gap: 10px; }
  .account-overview-item .overview-symbol { width: 38px; height: 38px; }
  .account-continue { gap: 20px; padding: 24px; }
  .account-learning-grid { gap: 18px; }
  .account-help-note { flex-wrap: wrap; }
}
@media (max-width:900px) {
  .auth-experience { grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 30px; padding-top: 42px; }
  .auth-experience .auth-intro h1 { font-size: 35px; }
  .auth-benefits { gap: 18px; }
  .auth-benefits li { gap: 12px; }
  .auth-experience .auth-card { padding: 24px; }
  .account-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 28px; }
  .account-navigation { position: static; padding: 16px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 18px; align-items: center; }
  .account-navigation .account-person { flex-direction: row; text-align: right; padding: 0; margin: 0; border: 0; gap: 10px; }
  .account-navigation .avatar-large { width: 44px; height: 44px; flex-shrink: 0; }
  .account-navigation .account-person strong { font-size: 14px; }
  .account-navigation .account-person small { font-size: 11px; }
  .account-navigation .account-desktop-navigation { grid-column: 1/-1; flex-direction: row; flex-wrap: wrap; }
  .account-navigation .account-desktop-navigation a { font-size: 13px; }
  .account-navigation .account-nav-group { display: none; }
  .account-navigation.js-account-navigation .account-desktop-navigation { display: none; }
  .js-account-navigation .account-mobile-navigation { display: block; }
  .account-mobile-navigation>label { font-size: 12px; display: block; margin-bottom: 3px; }
  .account-section-select { position: relative; }
  .account-section-select select { appearance: none; width: 100%; min-height: 48px; padding: 9px 12px 9px 36px; font-size: 16px; background: var(--paper); }
  .account-section-select>svg { position: absolute; left: 12px; top: 16px; width: 16px; height: 16px; pointer-events: none; }
  .account-navigation form { border: 0; padding: 0; margin: 0; }
  .account-navigation .account-logout { font-size: 12px; padding: 10px; }
  .account-continue { grid-template-columns: 1.4fr 1fr; }
}
@media (max-width:650px) {
  .auth-experience { grid-template-columns: 1fr; padding-top: 28px; gap: 26px; }
  .auth-experience .auth-intro { max-width: none; }
  .auth-experience .auth-intro h1 { font-size: 31px; margin-bottom: 12px; }
  .auth-experience .auth-intro h1 br { display: none; }
  .auth-experience .auth-intro>p { font-size: 16px; margin: 0; }
  .auth-experience .auth-intro>.eyebrow { font-size: 12px; }
  .auth-benefits,.auth-explore { display: none; }
  .auth-experience .auth-card { padding: 24px 20px; border-radius: 20px; }
  .auth-card-top { margin-bottom: 20px; }
  .auth-progress { margin-bottom: 23px; gap: 14px; }
  .auth-progress li { font-size: 12px; gap: 8px; }
  .auth-heading-group { margin-bottom: 22px; }
  .auth-experience .auth-heading-group h2 { font-size: 26px; }
  .auth-heading-group p { font-size: 16px; }
  .auth-methods { margin-bottom: 20px; }
  .auth-methods button { font-size: 13px; }
  .account-layout { gap: 26px; }
  .account-navigation { grid-template-columns: minmax(0,1fr) auto; gap: 14px; padding: 16px; }
  .account-navigation .account-person { grid-column: 1/-1; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .account-navigation .account-person strong { font-size: 15px; }
  .account-navigation .account-person small { font-size: 12px; }
  .account-page-heading { gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
  .account-page-heading p { font-size: 16px; }
  .account-page-heading .eyebrow { font-size: 12px; }
  .account-discover-link { font-size: 13px; }
  .account-overview { gap: 12px; grid-template-columns: 1fr 1fr; margin-bottom: 22px; }
  .account-overview-item { padding: 15px 12px; display: block; }
  .account-overview-item .overview-symbol { width: 36px; height: 36px; margin-bottom: 10px; }
  .account-overview-item .overview-symbol svg { width: 19px; height: 19px; }
  .account-overview-item strong { font-size: 21px; }
  .account-overview-item small { font-size: 12px; margin-top: 4px; }
  .account-overview-item>svg { display: none; }
  .account-continue { grid-template-columns: 1fr; gap: 24px; padding: 25px 23px; margin-bottom: 32px; }
  .account-continue-image,.account-continue-art { display: none; }
  .account-continue h2 { font-size: 25px; }
  .account-continue p { font-size: 16px; }
  .account-continue .continue-button { font-size: 14px; width: 100%; min-height: 50px; }
  .account-library-heading { margin-bottom: 20px; }
  .account-library-heading .eyebrow { font-size: 12px; }
  .account-library-heading h2 { font-size: 24px; }
  .account-learning-grid { grid-template-columns: 1fr; gap: 22px; }
  .account-learning-body { padding: 19px 20px 7px; }
  .account-learning-body h3 { min-height: 0; font-size: 20px; margin-bottom: 20px; }
  .account-learning-action>a { font-size: 14px; }
  .account-course-state { font-size: 12px; }
  .account-empty-library { padding: 34px 22px; }
  .account-empty-library h3 { font-size: 22px; }
  .account-empty-library p br { display: none; }
  .account-help-note { gap: 12px; padding: 19px; }
  .account-help-note>span { display: none; }
  .account-help-note p { font-size: 13px; }
  .account-help-note>a { margin-right: 0; font-size: 13px; }
}
@media (prefers-reduced-motion:reduce) {
  .auth-experience *, .account-experience *, .account-navigation * { animation: none!important; transition: none!important; }
}
