:root {
    --blue: #1d5df3;
    --blue-dark: #1549c7;
    --blue-soft: #eaf0ff;
    --red: #f44336;
    --ink: #17223b;
    --muted: #6e7890;
    --line: #e6eaf2;
    --paper: #ffffff;
    --background: #f7f8fc;
    --shadow: 0 22px 60px rgba(31, 49, 88, 0.12);
}

/* Membership, legal pages, profile and boxed authentication */
.eq-site-shell {
    min-height: 100vh;
    background: #f7f8fc;
}

.page-eyebrow {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.footer-tagline { white-space: nowrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: #59647b; font-weight: 800; text-decoration: none; }
.footer-links a:hover { color: var(--blue); }

.cookie-banner {
    position: fixed;
    right: 22px;
    bottom: 22px;
    left: 22px;
    z-index: 1000;
    width: min(920px, calc(100% - 44px));
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #eaf0ff;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    background: #17223b;
    box-shadow: 0 20px 55px rgba(12, 20, 42, .3);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { display: block; margin-bottom: 4px; color: #fff; font-size: 15px; }
.cookie-banner p { max-width: 650px; margin: 0; font-size: 13px; line-height: 1.55; }
.cookie-banner a { color: #a9c3ff; }
.cookie-actions { display: flex; flex: 0 0 auto; gap: 9px; }
.cookie-actions button { padding: 10px 14px; color: #fff; font: inherit; font-size: 12px; font-weight: 900; border: 1px solid #53617d; border-radius: 10px; background: transparent; cursor: pointer; }
.cookie-actions .cookie-accept { border-color: var(--blue); background: var(--blue); }

.contact-page,
.pricing-page,
.profile-page {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
    padding: 76px 0 96px;
}

.progress-page [hidden] { display: none !important; }
.pricing-hero,
.profile-hero { max-width: 820px; margin-bottom: 46px; }
.contact-intro h1,
.pricing-hero h1,
.profile-hero h1,
.success-page h1 { margin: 0; color: var(--ink); font-size: clamp(42px, 6vw, 72px); line-height: 1.02; letter-spacing: -.055em; }
.pricing-hero > p:last-child,
.profile-hero > p:last-child,
.contact-intro > p:last-child { margin: 20px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.legal-page { width: min(1120px, calc(100% - 40px)); min-height: calc(100vh - 158px); margin: 0 auto; padding: 34px 0 92px; }
.legal-hero { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { max-width: 820px; margin: 5px 0 7px; color: var(--ink); font-size: clamp(1.55rem, 2.4vw, 1.9rem); line-height: 1.2; letter-spacing: -.03em; }
.legal-hero > p:last-child { max-width: 760px; margin: 0; color: #59647c; font-size: .86rem; line-height: 1.55; }
.legal-document { padding: 30px 34px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(31,49,88,.045); }
.legal-document section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.legal-document section:last-child { border-bottom: 0; }
.legal-document h2 { margin: 0 0 8px; color: var(--ink); font-size: 1.05rem; }
.legal-document p { margin: 0; color: #303b53; font-size: 15px; line-height: 1.75; }
.legal-document a { color: var(--blue); font-weight: 800; }

.contact-page { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(38px, 7vw, 90px); align-items: start; }
.contact-intro { position: sticky; top: 110px; }
.contact-card { padding: clamp(24px, 4vw, 42px); background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.contact-card form { display: grid; gap: 20px; }
.contact-card label { display: grid; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 900; }
.contact-card input,
.contact-card textarea { width: 100%; padding: 13px 14px; color: var(--ink); font: inherit; border: 1px solid #dce2ee; border-radius: 11px; outline: none; resize: vertical; }
.contact-card input:focus,
.contact-card textarea:focus { border-color: #8fb0ff; box-shadow: 0 0 0 3px #e8efff; }
.contact-card button,
.pricing-card > button { padding: 14px 20px; color: #fff; font: inherit; font-weight: 900; border: 0; border-radius: 11px; background: var(--blue); cursor: pointer; }
.contact-card button:disabled,
.pricing-card > button:disabled { opacity: .5; cursor: not-allowed; }
.contact-honeypot { position: absolute; left: -10000px; }
.form-status,
.pricing-status { min-height: 20px; margin: 0; color: var(--muted); font-size: 13px; }
.form-status.is-success { color: #167a4a; }
.form-status.is-error,
.pricing-status.is-error { color: #b13232; }

.pricing-shell { background: linear-gradient(180deg, #f3f6ff 0, #f8f9fc 48%, #fff 100%); }
.pricing-page { width: min(1060px, calc(100% - 40px)); min-height: calc(100vh - 158px); margin: 0 auto; padding: 58px 0 84px; }
.membership-sales-hero { position: relative; padding: 30px 32px; overflow: hidden; color: #fff; border-radius: 22px; background: radial-gradient(circle at 90% 18%, rgba(96,136,246,.26), transparent 24rem), linear-gradient(135deg, #101b36 0%, #182d5b 100%); box-shadow: 0 25px 70px rgba(20,38,78,.22); }
.membership-sales-hero::before { content: ""; position: absolute; width: 250px; height: 250px; right: -145px; bottom: -170px; pointer-events: none; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.membership-offer-row { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: center; gap: 34px; }
.membership-hero-copy { align-self: center; }
.membership-hero-copy h1 { max-width: 540px; margin: 0 0 12px; color: #fff; font-size: clamp(1.85rem, 3vw, 2.35rem); line-height: 1.1; letter-spacing: -.04em; }
.membership-hero-copy > p { max-width: 530px; margin: 0; color: #c9d4e9; font-size: .84rem; line-height: 1.6; }
.pricing-card { position: relative; z-index: 1; padding: 24px; scroll-margin-top: 24px; color: #495873; border: 1px solid rgba(202,216,251,.9); border-radius: 16px; background: #fff; box-shadow: 0 18px 40px rgba(4,18,55,.23); }
.pricing-card > p:first-of-type { margin: 0; color: #51617d; font-size: .7rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.pricing-price { margin: 17px 0 10px; display: flex; align-items: end; gap: 8px; }
.pricing-price strong { color: var(--ink); font-size: 3.35rem; line-height: .95; letter-spacing: -.06em; }
.pricing-price span { padding-bottom: 6px; color: #768198; font-size: .78rem; font-weight: 700; }
.pricing-card > .pricing-trial-note { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 7px; color: #657189; font-size: .72rem; line-height: 1.35; }
.pricing-trial-note strong { color: #176447; font-size: .8rem; font-weight: 900; }
.pricing-trial-note strong,
.pricing-trial-note span { white-space: nowrap; }
.pricing-trial-note span { font-weight: 700; }
.pricing-card > .pricing-renewal-note { margin: 0; color: #657189; font-size: .8rem; line-height: 1.55; }
.pricing-card > button { width: 100%; margin: 22px 0 10px; padding: 13px 18px; color: #fff; border: 0; border-radius: 10px; background: linear-gradient(90deg, #1d5df3, #315fd8); box-shadow: 0 10px 22px rgba(29,93,243,.24); font-size: .82rem; font-weight: 900; cursor: pointer; }
.pricing-card > button:hover { background: linear-gradient(90deg, #174fd1, #294fc0); transform: translateY(-1px); }
.pricing-card > button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.pricing-card > small { display: block; color: #929bad; font-size: .66rem; line-height: 1.5; text-align: center; }
.pricing-trial-offer { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.pricing-signup-cta { width: 100%; padding: 13px 18px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; color: #fff; border-radius: 10px; background: linear-gradient(90deg, #1d5df3, #315fd8); box-shadow: 0 10px 22px rgba(29,93,243,.24); font-size: .82rem; font-weight: 900; line-height: 1.25; text-align: center; text-decoration: none; white-space: nowrap; }
.pricing-signup-cta:hover { background: linear-gradient(90deg, #174fd1, #294fc0); transform: translateY(-1px); }
.pricing-status { min-height: 17px; margin: 0; color: #68748a; font-size: .7rem; text-align: center; }
.pricing-status.is-error { color: #b13232; }
.pricing-pending { margin-top: 18px; padding: 12px; color: #173b91; border: 1px solid #dce5fb; border-radius: 9px; background: #f4f7ff; }
.pricing-pending span,
.pricing-pending strong,
.pricing-pending small { display: block; }
.pricing-pending span { font-size: .62rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.pricing-pending strong { margin: 3px 0 7px; overflow: hidden; font-size: .8rem; text-overflow: ellipsis; }
.pricing-pending small { color: #52617c; font-size: .68rem; }
.membership-active-card { margin: 20px 0 14px; padding: 14px; display: flex; align-items: center; gap: 11px; color: #174f3b; border: 1px solid #b9e2cf; border-radius: 10px; background: #f2fbf7; }
.membership-active-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 50%; background: #2c956c; font-size: .72rem; font-weight: 900; }
.membership-active-card strong,
.membership-active-card span:not(.membership-active-icon) { display: block; }
.membership-active-card strong { font-size: .82rem; }
.membership-active-card span:not(.membership-active-icon) { margin-top: 3px; color: #527064; font-size: .7rem; line-height: 1.45; }
.pricing-note { margin: 14px 0 0 auto; width: 360px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #667188; border: 1px solid #dfe4ed; border-radius: 10px; background: rgba(255,255,255,.8); font-size: .7rem; }
.pricing-note > div { min-width: 0; }
.pricing-note b,
.pricing-note span { display: block; }
.pricing-note b { color: var(--ink); font-size: .73rem; }
.pricing-note span { margin-top: 2px; line-height: 1.4; }
.pricing-note a { flex: 0 0 auto; color: var(--blue); font-size: .72rem; font-weight: 900; text-decoration: none; }
.membership-value-section { position: relative; z-index: 1; margin-top: 24px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); }
.membership-benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 46px; }
.membership-benefit-card { padding: 20px 2px; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.membership-benefit-card:nth-child(-n+2) { border-top: 0; }
.membership-benefit-icon { width: 40px; height: 40px; display: grid; place-items: center; color: #dce7ff; border-radius: 11px; background: rgba(255,255,255,.09); }
.membership-benefit-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.membership-benefit-card h3 { margin: 1px 0 6px; color: #fff; font-size: .9rem; line-height: 1.35; }
.membership-benefit-card p { margin: 0; color: #c9d4e9; font-size: .76rem; line-height: 1.55; }

.practice-membership-note { margin: 28px 34px 34px; padding: 22px 24px; display: flex; align-items: center; gap: 24px; color: #566179; border: 1px solid #d8e3fb; border-radius: 18px; background: linear-gradient(135deg, #f9fbff 0%, #f0f5ff 100%); box-shadow: 0 12px 30px rgba(31, 72, 153, .08); }
.practice-membership-note-copy { min-width: 0; display: flex; align-items: center; gap: 16px; }
.practice-membership-note-copy > div { display: flex; flex-direction: column; gap: 5px; }
.practice-membership-note-copy b { color: var(--ink); font-size: 16px; line-height: 1.3; }
.practice-membership-note-copy > div > span { line-height: 1.5; }
.practice-membership-note-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 44px; color: var(--blue); border-radius: 13px; background: #fff; box-shadow: 0 6px 18px rgba(31, 72, 153, .1); }
.practice-membership-note-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.practice-membership-note > a { margin-left: auto; padding: 11px 17px; display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: #fff; font-weight: 900; text-decoration: none; border-radius: 11px; background: var(--blue); box-shadow: 0 8px 20px rgba(37, 99, 235, .2); }
.practice-membership-note > a:hover { background: #174fd1; }
.lesson-article > .practice-membership-note,
.video-page article > .practice-membership-note,
.sentences-page > .practice-membership-note,
.context-practice-flow > .practice-membership-note { width: 100%; margin-right: 0; margin-left: 0; box-sizing: border-box; }
.profile-shell { background: #f8f9fc; }
.profile-page { width: min(900px, calc(100% - 40px)); min-height: calc(100vh - 158px); margin: 0 auto; padding: 34px 0 92px; }
.profile-compact-hero { margin-bottom: 24px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.profile-compact-hero h1 { margin: 5px 0 7px; color: var(--ink); font-size: clamp(1.55rem, 2.4vw, 1.9rem); line-height: 1.2; letter-spacing: -.03em; }
.profile-compact-hero > div > p:last-child { max-width: 760px; margin: 0; color: #59647c; font-size: .86rem; line-height: 1.55; }
.profile-settings-grid { width: 100%; display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: 16px; }
.profile-avatar-card,
.profile-account-card,
.profile-billing-card,
.profile-progress-reset-card,
.profile-delete-account-card { color: var(--ink); border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(31,49,88,.045); }
.profile-avatar-card { padding: 26px 24px 22px; align-self: stretch; display: flex; flex-direction: column; text-align: center; }
.profile-avatar-card > img { width: 96px; height: 96px; display: block; margin: 0 auto 15px; object-fit: cover; border: 4px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #dce3ef, 0 8px 20px rgba(31,49,88,.1); }
.profile-avatar-card h2 { margin: 0; font-size: 1.05rem; line-height: 1.3; letter-spacing: -.02em; overflow-wrap: anywhere; }
.profile-avatar-identity { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.profile-avatar-identity > p { margin: 4px 0; color: #59647c; font-size: .76rem; overflow-wrap: anywhere; }
.profile-avatar-identity > small { color: #8993a6; font-size: .7rem; }
.profile-auth-badge { margin-top: 10px; padding: 5px 8px; display: inline-block; color: #59647c; border-radius: 999px; background: #eef1f6; font-size: .66rem; font-weight: 800; }
.profile-avatar-change-button { min-width: 70px; align-self: center; }
.profile-avatar-picker { margin: 14px 0 18px; }
.profile-account-card { min-width: 0; overflow: hidden; }
.profile-setting-row,
.profile-membership-row { border-top: 1px solid var(--line); }
.profile-account-card > .profile-setting-row:first-child { border-top: 0; }
.profile-row-copy { min-width: 0; }
.profile-row-copy strong,
.profile-row-copy span { display: block; }
.profile-row-copy strong { font-size: .86rem; line-height: 1.35; }
.profile-row-copy span { margin-top: 4px; color: #68748a; font-size: .78rem; line-height: 1.5; overflow-wrap: anywhere; }
.profile-row-copy em { margin-top: 3px; display: block; color: #8a94a7; font-size: .7rem; font-style: normal; line-height: 1.4; }
.avatar-options { display: grid; grid-template-columns: repeat(3, 42px); justify-content: center; gap: 8px 12px; }
.avatar-options button { width: 42px; height: 42px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 50%; background: transparent; cursor: pointer; opacity: .68; transition: opacity 150ms ease, border-color 150ms ease, transform 150ms ease; }
.avatar-options button:hover { opacity: 1; transform: translateY(-1px); }
.avatar-options button.is-selected { border-color: var(--blue); opacity: 1; box-shadow: 0 0 0 3px #e5ecff; }
.avatar-options button:disabled { cursor: wait; opacity: .45; transform: none; }
.avatar-options img { width: 100%; height: 100%; display: block; }
.profile-primary-button,
.profile-secondary-button,
.profile-change-button,
.profile-danger-button,
.profile-membership-actions button,
.profile-membership-actions a { padding: 9px 13px; display: inline-flex; align-items: center; justify-content: center; color: #3f4d66; border: 1px solid #d2d9e5; border-radius: 8px; background: #fff; font: inherit; font-size: .72rem; font-weight: 800; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; }
.profile-change-button:hover,
.profile-secondary-button:hover { color: var(--blue); border-color: #b8c9ee; background: #f7f9ff; }
.profile-primary-button { color: #fff; border-color: var(--blue); background: var(--blue); }
.profile-avatar-status { margin: 16px 0 0; text-align: center; }
.profile-avatar-status:empty { display: none; }
.profile-avatar-status:not(:empty) { margin-bottom: 14px; padding: 7px 10px; border-radius: 8px; background: #eef8f3; }
.profile-avatar-status.is-error:not(:empty) { background: #fff1f1; }
.profile-setting-row { min-height: 72px; padding: 17px 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.profile-change-button { min-width: 70px; }
.profile-reveal-form { padding: 0 34px 22px; display: grid; gap: 13px; }
.profile-reveal-form label,
.profile-delete-form label { display: grid; gap: 7px; color: #4b5870; font-size: .72rem; font-weight: 800; }
.profile-reveal-form input,
.profile-reveal-form select,
.profile-delete-form input { width: 100%; padding: 10px 11px; color: var(--ink); border: 1px solid #d7deea; border-radius: 8px; background: #fff; outline: none; font: inherit; font-size: .8rem; }
.profile-reveal-form input:focus,
.profile-reveal-form select:focus,
.profile-delete-form input:focus { border-color: #91adf1; box-shadow: 0 0 0 3px #edf2ff; }
.profile-form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-form-actions { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.profile-status { margin: 0; color: #788397; font-size: .72rem; line-height: 1.45; }
.profile-status.is-success { color: #167552; }
.profile-status.is-error { color: #b33d3d; }
.profile-secondary-button { color: #fff; border-color: #233d77; background: #233d77; }
.profile-primary-button:disabled,
.profile-secondary-button:disabled,
.profile-danger-button:disabled,
.profile-membership-actions button:disabled { opacity: .48; cursor: not-allowed; }
.profile-membership-row { padding: 20px 34px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; background: #fafbfc; }
.profile-membership-row.is-active { background: #f5fbf8; }
.profile-membership-icon { width: 36px; height: 36px; display: grid; place-items: center; color: #66748d; border-radius: 10px; background: #e6eaf0; font-size: .78rem; font-weight: 900; }
.profile-membership-row.is-active .profile-membership-icon { color: #fff; background: #27875f; }
.profile-membership-actions { display: flex; align-items: center; gap: 8px; }
.profile-membership-actions button { color: #fff; border-color: #233d77; background: #233d77; }
.profile-billing-card { grid-column: 1 / -1; overflow: hidden; }
.profile-progress-reset-card { grid-column: 1 / -1; overflow: hidden; }
.profile-progress-reset-card > .profile-reset-row { border-top: 0; }
.profile-delete-account-card { grid-column: 1 / -1; overflow: hidden; }
.profile-delete-account-card > .profile-delete-row { border-top: 0; }
.profile-billing-heading { padding: 24px 28px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.profile-billing-heading .page-eyebrow { margin-bottom: 5px; }
.profile-billing-heading h2 { margin: 0; font-size: 1.1rem; letter-spacing: -.02em; }
.profile-billing-heading > div > p:last-child { margin: 6px 0 0; color: #68748a; font-size: .76rem; }
.profile-billing-count { padding: 5px 9px; color: #68748a; border-radius: 999px; background: #eef1f6; font-size: .66rem; font-weight: 800; white-space: nowrap; }
.profile-transaction-list { margin: 0; padding: 0; list-style: none; }
.profile-transaction-list li { min-height: 76px; padding: 15px 28px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; border-top: 1px solid #edf0f4; }
.profile-transaction-list li:first-child { border-top: 0; }
.profile-transaction-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #3158ae; border-radius: 9px; background: #edf2ff; font-size: .82rem; font-weight: 900; }
.profile-transaction-copy strong,
.profile-transaction-copy span,
.profile-transaction-copy small,
.profile-transaction-value strong,
.profile-transaction-value span { display: block; }
.profile-transaction-copy strong { font-size: .78rem; }
.profile-transaction-copy span { margin-top: 3px; color: #68748a; font-size: .7rem; }
.profile-transaction-copy small { margin-top: 2px; color: #969faf; font-size: .63rem; }
.profile-transaction-value { text-align: right; }
.profile-transaction-value strong { font-size: .8rem; }
.profile-transaction-value span { margin-top: 5px; color: #68748a; font-size: .63rem; font-weight: 900; text-transform: uppercase; }
.profile-transaction-value span.is-completed { color: #167552; }
.profile-transaction-value span.is-past_due,
.profile-transaction-value span.is-canceled { color: #a24a42; }
.profile-transaction-value span.is-refunded { color: #3158ae; }
.profile-transaction-empty { margin: 20px 28px 26px; padding: 22px; color: #7b8597; border: 1px dashed #d7dde7; border-radius: 10px; background: #fafbfc; font-size: .76rem; text-align: center; }
.profile-delete-trigger,
.profile-reset-trigger { padding: 0; color: #a53d3d; border: 0; background: transparent; font: inherit; font-size: .74rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.profile-delete-trigger:hover,
.profile-reset-trigger:hover { color: #812b2b; }
.profile-delete-form { margin: 0 28px 20px; padding: 18px; display: grid; gap: 13px; border: 1px solid #ead5d5; border-radius: 10px; background: #fffafa; }
.profile-delete-form > p { margin: 0; color: #765858; font-size: .78rem; line-height: 1.55; }
.profile-reset-row { border-top: 1px solid #edf0f4; }
.profile-reset-form { margin: 0 28px 20px; padding: 18px; display: grid; gap: 13px; border: 1px solid #e3bcbc; border-radius: 10px; background: #fff7f7; }
.profile-reset-form label { display: grid; gap: 7px; color: #593f3f; font-size: .74rem; }
.profile-reset-form input { width: 100%; min-height: 42px; padding: 9px 11px; color: var(--ink); border: 1px solid #d8b4b4; border-radius: 8px; background: #fff; font: inherit; }
.profile-reset-warning strong { color: #8e3030; font-size: .82rem; }
.profile-reset-warning p { margin: 7px 0 0; color: #765858; font-size: .76rem; line-height: 1.55; }
.profile-danger-button { color: #fff; border-color: #b83f3f; background: #b83f3f; }
.profile-loading { width: 100%; padding: 24px; color: var(--muted); text-align: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.profile-loading.is-error { color: #b13232; }

.progress-lock { padding: clamp(28px, 5vw, 52px); display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; border: 1px solid #dce4f4; border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.progress-lock-icon { width: 66px; height: 66px; display: grid; place-items: center; color: #fff; font-size: 27px; font-weight: 900; border-radius: 20px; background: linear-gradient(145deg, #173b91, #1d5df3); }
.progress-lock h2 { margin: 0 0 10px; color: var(--ink); font-size: clamp(27px, 4vw, 40px); letter-spacing: -.035em; }
.progress-lock p:not(.page-eyebrow) { max-width: 660px; margin: 0; color: var(--muted); line-height: 1.65; }
.progress-lock > a { padding: 14px 18px; color: #fff; font-weight: 900; text-decoration: none; white-space: nowrap; border-radius: 11px; background: var(--blue); }
.progress-dashboard { display: grid; gap: 20px; }
.progress-summary-card { padding: 30px; color: #dce7ff; border-radius: 24px; background: linear-gradient(145deg, #173b91, #1d5df3); box-shadow: var(--shadow); }
.progress-summary-card p { margin: 0 0 8px; font-size: 11px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.progress-summary-card strong { display: block; margin-bottom: 8px; color: #fff; font-size: 36px; }
.progress-paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.progress-paths a { min-height: 170px; padding: 26px; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.progress-paths span { color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.progress-paths strong { margin-top: 13px; font-size: 22px; line-height: 1.3; }
.progress-paths em { margin-top: auto; padding-top: 18px; color: var(--blue); font-style: normal; font-weight: 900; }
.success-page { min-height: 100vh; padding: 38px; display: grid; place-items: center; background: radial-gradient(circle at top, #edf3ff, #f8f9fc 60%); }
.success-page-in-shell { min-height: calc(100vh - 80px); }
.success-page > .auth-boxed-brand { position: absolute; top: 34px; left: 40px; }
.success-page section { max-width: 680px; padding: clamp(32px, 6vw, 64px); text-align: center; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.success-page section > span { width: 64px; height: 64px; margin: 0 auto 24px; display: grid; place-items: center; color: #fff; font-size: 28px; font-weight: 900; border-radius: 50%; background: #1c9a62; }
.success-page h1 { font-size: clamp(36px, 6vw, 58px); }
.success-page section > p:not(.page-eyebrow) { margin: 20px auto 28px; color: var(--muted); line-height: 1.7; }
.success-page section > div { display: flex; justify-content: center; gap: 10px; }
.success-page section a { padding: 13px 17px; color: #fff; font-weight: 900; text-decoration: none; border-radius: 10px; background: var(--blue); }
.success-page section a + a { color: var(--blue); border: 1px solid #c9d7f7; background: #fff; }

.auth-boxed-shell {
    position: relative;
    min-height: 100vh;
    padding: 42px 24px;
    display: grid;
    grid-template-columns: minmax(0, 520px);
    grid-template-rows: max-content max-content;
    align-content: center;
    justify-content: center;
    row-gap: 24px;
    place-items: center;
    background:
        radial-gradient(circle at 18% 15%, rgba(29,93,243,.12), transparent 24%),
        radial-gradient(circle at 86% 82%, rgba(118,78,232,.1), transparent 26%),
        #f5f7fb;
}
.auth-boxed-shell::before { content: ""; position: fixed; inset: 0; pointer-events: none; background-image: radial-gradient(#c9d5ed 1px, transparent 1px); background-size: 25px 25px; opacity: .3; }
.auth-boxed-brand { position: relative; z-index: 2; justify-self: center; display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 16px; font-weight: 900; letter-spacing: .12em; text-decoration: none; }
.auth-boxed-brand img { width: 148px; height: auto; }
.auth-boxed-panel { position: relative; z-index: 1; width: min(520px, 100%); min-height: 0; padding: 0; display: block; background: transparent; }
.auth-boxed-panel .auth-form-wrap { width: 100%; max-width: none; padding: clamp(28px, 6vw, 48px); border: 1px solid #e0e5ef; border-radius: 24px; background: #fff; box-shadow: 0 26px 70px rgba(31,49,88,.14); }
.auth-boxed-panel .auth-mobile-brand { display: none; }
.auth-boxed-panel .auth-back-link { position: static; margin-bottom: 26px; display: inline-flex; }
.auth-boxed-panel .auth-heading h2,
.auth-boxed-panel .auth-result h2 { font-size: 32px; }
.auth-consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: #647088; font-size: 12px; line-height: 1.5; cursor: pointer; }
.auth-consent input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--blue); }
.auth-consent a { color: var(--blue); font-weight: 800; }
.auth-trial-consent { padding: 12px 13px; border: 1px solid #cfdbf7; border-radius: 11px; background: #f6f8ff; }
.auth-trial-consent strong,
.auth-trial-consent small { display: block; }
.auth-trial-consent strong { color: #263755; font-size: 13px; }
.auth-trial-consent small { margin-top: 2px; color: #77839a; font-size: 11px; }

@media (max-width: 800px) {
    .contact-page { grid-template-columns: 1fr; }
    .contact-intro { position: static; }
    .membership-sales-hero { padding: 34px; }
    .membership-offer-row { grid-template-columns: 1fr; gap: 36px; }
    .pricing-card { width: min(430px, 100%); }
    .pricing-note { margin-left: 0; width: min(430px, 100%); }
    .membership-value-section { margin-top: 24px; }
    .membership-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-settings-grid { grid-template-columns: 220px minmax(0, 1fr); }
    .profile-avatar-card { padding-right: 18px; padding-left: 18px; }
    .progress-lock { grid-template-columns: 1fr; }
    .progress-lock > a { justify-self: start; }
    .progress-paths { grid-template-columns: 1fr; }
    .cookie-banner { align-items: stretch; flex-direction: column; gap: 14px; }
    .cookie-actions { justify-content: flex-end; }
    .pricing-note { align-items: flex-start; flex-direction: column; }
    .pricing-note a { margin-left: 0; }
	.practice-membership-note { padding: 20px; align-items: stretch; flex-direction: column; gap: 18px; }
	.practice-membership-note > a { margin-left: 60px; align-self: flex-start; }
}

@media (max-width: 650px) {
	.practice-membership-note { margin-right: 14px; margin-left: 14px; }
    .legal-page { width: calc(100% - 28px); padding: 28px 0 65px; }
    .legal-hero h1 { font-size: 1.5rem; }
    .legal-document { padding: 24px 20px; border-radius: 10px; }
    .legal-document p { font-size: 14px; line-height: 1.7; }
    .membership-benefit-grid { grid-template-columns: 1fr; }
    .membership-benefit-card:nth-child(2) { border-top: 1px solid rgba(255,255,255,.12); }
    .profile-settings-grid { grid-template-columns: 1fr; }
    .profile-avatar-card { padding: 22px 20px; }
    .profile-avatar-picker { max-width: 220px; margin-right: auto; margin-left: auto; }
}

@media (max-width: 560px) {
	.practice-membership-note { margin: 24px 14px 30px; padding: 18px; }
	.practice-membership-note-copy { align-items: flex-start; }
	.practice-membership-note-icon { width: 40px; height: 40px; flex-basis: 40px; }
	.practice-membership-note > a { margin-left: 56px; }
    .contact-page { width: calc(100% - 28px); padding: 52px 0 72px; }
    .contact-intro h1 { font-size: 40px; }
    .pricing-page { width: calc(100% - 28px); padding: 28px 0 64px; }
    .membership-sales-hero { padding: 26px 20px; border-radius: 16px; }
    .membership-hero-copy h1 { font-size: clamp(1.7rem, 8vw, 2.05rem); }
    .pricing-card { padding: 26px 22px; }
    .profile-page { width: calc(100% - 28px); padding: 28px 0 64px; }
    .profile-compact-hero h1 { font-size: 1.5rem; }
    .profile-setting-row { padding: 16px 20px; }
    .profile-reveal-form { padding: 0 20px 20px; }
    .profile-reset-form,
    .profile-delete-form { margin-right: 20px; margin-left: 20px; }
    .profile-form-columns { grid-template-columns: 1fr; }
    .profile-membership-row { padding: 18px 20px; grid-template-columns: auto minmax(0, 1fr); }
    .profile-membership-actions { grid-column: 1 / -1; margin-left: 50px; }
	.profile-billing-heading { padding: 20px; }
	.profile-transaction-list li { padding-right: 20px; padding-left: 20px; }
	.profile-transaction-empty { margin-right: 20px; margin-left: 20px; }
    .cookie-banner { right: 12px; bottom: 12px; left: 12px; width: calc(100% - 24px); }
    .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .auth-boxed-shell { padding: 24px 14px; row-gap: 20px; }
    .auth-boxed-panel .auth-form-wrap { padding: 25px 20px; border-radius: 18px; }
    .success-page { padding: 84px 14px 24px; }
    .success-page > .auth-boxed-brand { top: 22px; left: 22px; }
    .success-page section > div { flex-direction: column; }
}

@media (max-width: 420px) {
    .profile-setting-row { align-items: flex-start; }
    .profile-membership-row { grid-template-columns: 1fr; }
    .profile-membership-actions { grid-column: 1; margin-left: 0; align-items: stretch; flex-direction: column; }
    .profile-form-actions { align-items: stretch; flex-direction: column; }
	.profile-transaction-list li { grid-template-columns: auto minmax(0, 1fr); }
	.profile-transaction-value { grid-column: 2; text-align: left; }
}

/* Dialogue practice */
.dialogue-catalog,
.dialogue-page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 54px 0 90px;
    color: var(--ink);
}

.dialogue-hero {
    padding: 54px;
    border: 1px solid #dfe8ff;
    border-radius: 28px;
    background: radial-gradient(circle at 88% 12%, #d9e5ff 0, transparent 30%), linear-gradient(135deg, #fff 0%, #f2f6ff 100%);
    box-shadow: 0 18px 50px rgba(38, 70, 140, .08);
}

.dialogue-eyebrow,
.dialogue-section-heading > div > span,
.dialogue-brief-title span {
    color: var(--blue);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dialogue-hero h1 {
    max-width: 720px;
    margin: 12px 0 14px;
    font-size: clamp(2.15rem, 5vw, 4.35rem);
    line-height: 1.03;
    letter-spacing: -.05em;
}

.dialogue-hero > p {
    max-width: 700px;
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.dialogue-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.dialogue-rules span {
    padding: 9px 14px;
    color: #315083;
    font-size: .85rem;
    font-weight: 800;
    background: #fff;
    border: 1px solid #dbe5fb;
    border-radius: 999px;
}

.dialogue-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin: 55px 0 22px;
}

.dialogue-section-heading h2,
.dialogue-evaluation h2 {
    margin: 6px 0 0;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    letter-spacing: -.035em;
}

.dialogue-section-heading > p {
    max-width: 390px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.dialogue-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.dialogue-category-card {
    min-height: 158px;
    padding: 23px;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: start;
    gap: 15px;
    color: inherit;
    text-align: left;
    font: inherit;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.dialogue-category-card:hover {
    transform: translateY(-3px);
    border-color: #adc5ff;
    box-shadow: 0 15px 35px rgba(31, 64, 132, .1);
}

.dialogue-category-card:disabled { opacity: .6; cursor: wait; }
.dialogue-category-card strong { display: block; margin-bottom: 7px; font-size: 1.05rem; }
.dialogue-category-card small { display: block; color: var(--muted); line-height: 1.45; }
.dialogue-category-card em { display: block; margin-top: 12px; color: var(--blue); font-size: .76rem; font-style: normal; font-weight: 900; text-transform: uppercase; }
.dialogue-category-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; font-weight: 900; border-radius: 13px; background: linear-gradient(145deg, #356ff8, #764ee8); }
.dialogue-card-arrow { color: #8da1ca; font-size: 1.35rem; }

.dialogue-progress-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dialogue-progress-list > article { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 22px; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.dialogue-progress-list > article span strong, .dialogue-progress-list > article span small { display: block; }
.dialogue-progress-list > article span small { margin-top: 3px; color: var(--muted); }
.dialogue-progress-list > article > b { color: var(--blue); font-size: 1.4rem; white-space: nowrap; }
.dialogue-progress-list > article > b small { font-size: .75rem; }

.dialogue-page { width: min(900px, calc(100% - 40px)); }
.dialogue-brief { padding: 34px 38px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 46px rgba(35, 53, 93, .08); }
.dialogue-ready-screen { max-width: 800px; margin: 30px auto; }
.dialogue-back { display: inline-block; margin-bottom: 25px; color: var(--muted); font-size: .9rem; font-weight: 800; text-decoration: none; }
.dialogue-back:hover { color: var(--blue); }
.dialogue-brief-title { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.dialogue-brief-title h1 { margin: 5px 0 0; font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.04em; }
.dialogue-brief > p { margin: 24px 0; color: #485671; font-size: 1.05rem; line-height: 1.65; }
.dialogue-goals { padding: 20px 22px; background: #eff4ff; border-radius: 15px; }
.dialogue-goals > strong { color: #244276; font-size: .84rem; text-transform: uppercase; letter-spacing: .07em; }
.dialogue-goals ul { margin: 12px 0 0; padding-left: 20px; }
.dialogue-goals li { margin-top: 7px; color: #234b9a; font-weight: 800; text-decoration: underline; text-decoration-color: #8aabf7; text-underline-offset: 3px; }
.dialogue-secondary-button,
.dialogue-ready-button { padding: 11px 17px; color: var(--blue); font: inherit; font-weight: 900; border: 1px solid #bdd0ff; border-radius: 11px; background: #f5f8ff; cursor: pointer; }
.dialogue-secondary-button:disabled, .dialogue-ready-button:disabled { opacity: .5; cursor: not-allowed; }
.dialogue-ready-button { width: 100%; margin-top: 24px; padding: 15px 20px; display: flex; justify-content: center; gap: 12px; color: #fff; border: 0; background: var(--blue); }

.dialogue-messenger { min-height: 680px; display: grid; grid-template-rows: auto auto minmax(360px, 1fr) auto; overflow: hidden; background: #eef2f8; border: 1px solid #dce3ef; border-radius: 22px; box-shadow: var(--shadow); }
.dialogue-messenger > header { min-height: 76px; padding: 13px 18px; display: flex; align-items: center; gap: 12px; background: #fff; border-bottom: 1px solid var(--line); }
.dialogue-avatar { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; font-weight: 900; border-radius: 50%; background: linear-gradient(145deg, #356ff8, #764ee8); }
.dialogue-messenger > header div { min-width: 0; flex: 1; }
.dialogue-messenger > header strong, .dialogue-messenger > header small { display: block; }
.dialogue-messenger > header small { color: var(--muted); font-size: .77rem; }
.dialogue-messenger > header button { padding: 9px 13px; color: #58657b; font: inherit; font-size: .8rem; font-weight: 800; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }
.dialogue-messenger > header button:disabled { opacity: .45; cursor: not-allowed; }
.dialogue-chat-context { padding: 13px 18px; background: #fff9dc; border-bottom: 1px solid #eee2a9; }
.dialogue-chat-context p { margin: 0; color: #5b5130; font-size: .85rem; line-height: 1.45; }
.dialogue-chat-context ul { margin: 7px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.dialogue-chat-context li { padding: 4px 8px; color: #6f5f1f; font-size: .74rem; font-weight: 800; border-radius: 6px; background: #fff3b4; text-decoration: underline; text-underline-offset: 2px; }
.dialogue-message-list { padding: 24px; overflow-y: auto; background-image: radial-gradient(#d8dfeb 1px, transparent 1px); background-size: 18px 18px; }
.dialogue-message-row { display: flex; margin-bottom: 10px; }
.dialogue-message-row.is-user { justify-content: flex-end; }
.dialogue-bubble { max-width: min(76%, 590px); padding: 11px 13px 6px; background: #fff; border-radius: 5px 16px 16px 16px; box-shadow: 0 2px 7px rgba(37, 51, 78, .1); }
.is-user .dialogue-bubble { background: #dce9ff; border-radius: 16px 5px 16px 16px; }
.dialogue-bubble p { margin: 0; white-space: pre-wrap; line-height: 1.45; }
.dialogue-bubble time { display: block; margin-top: 4px; color: #7a879b; font-size: .66rem; text-align: right; }
.dialogue-composer { padding: 12px; display: flex; align-items: end; gap: 10px; background: #fff; border-top: 1px solid var(--line); }
.dialogue-composer textarea { min-height: 46px; max-height: 130px; flex: 1; resize: vertical; padding: 12px 14px; color: var(--ink); font: inherit; border: 1px solid #dbe1eb; border-radius: 14px; outline: none; }
.dialogue-composer textarea:focus { border-color: #8eb0ff; box-shadow: 0 0 0 3px #e8efff; }
.dialogue-composer button { width: 46px; height: 46px; flex: 0 0 auto; color: #fff; font-size: 1.35rem; border: 0; border-radius: 50%; background: var(--blue); cursor: pointer; }
.dialogue-composer button:disabled { opacity: .45; cursor: not-allowed; }
.dialogue-typing { width: 58px; padding: 13px; display: flex; gap: 4px; background: #fff; border-radius: 16px; }
.dialogue-typing i { width: 6px; height: 6px; background: #9ba5b5; border-radius: 50%; animation: dialogueTyping 1s infinite alternate; }
.dialogue-typing i:nth-child(2) { animation-delay: .2s; }.dialogue-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes dialogueTyping { to { transform: translateY(-4px); opacity: .45; } }
.dialogue-loading { color: var(--muted); text-align: center; }
.dialogue-error { margin: 14px 0; padding: 12px 15px; color: #a92a2a; background: #fff0f0; border: 1px solid #ffd1d1; border-radius: 10px; }

.dialogue-evaluation { margin-top: 28px; padding: 38px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.dialogue-evaluation-summary { max-width: 720px; color: var(--muted); line-height: 1.6; }
.dialogue-score-grid { margin: 25px 0 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dialogue-score-grid article { padding: 20px 14px; text-align: center; background: #f4f7fd; border-radius: 13px; }
.dialogue-score-grid strong { color: var(--blue); font-size: 2rem; }.dialogue-score-grid span { color: var(--muted); }.dialogue-score-grid small { display: block; margin-top: 5px; color: #4f5e76; font-weight: 800; }
.dialogue-evaluation h3 { margin: 30px 0 14px; }
.dialogue-goal-results { display: grid; gap: 9px; }
.dialogue-goal-results article { padding: 14px; display: flex; gap: 12px; border: 1px solid; border-radius: 12px; }
.dialogue-goal-results article > span { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; font-weight: 900; border-radius: 50%; }
.dialogue-goal-results p { margin: 4px 0 0; color: var(--muted); line-height: 1.45; }
.dialogue-goal-results .is-achieved { border-color: #b9e7ce; background: #f0fbf5; }.dialogue-goal-results .is-achieved > span { background: #21a866; }
.dialogue-goal-results .is-missed { border-color: #ffc9c9; background: #fff4f4; }.dialogue-goal-results .is-missed > span { background: #e34c4c; }
.dialogue-recommendations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dialogue-recommendations article { padding: 18px; background: #f7f8fc; border-radius: 13px; }
.dialogue-recommendations ul { margin: 10px 0 0; padding-left: 18px; }.dialogue-recommendations li { margin-top: 7px; color: #536178; line-height: 1.4; }
.dialogue-result-actions { margin-top: 25px; display: flex; align-items: center; gap: 18px; }.dialogue-result-actions a { color: var(--blue); font-weight: 800; }

@media (max-width: 850px) {
    .dialogue-category-grid { grid-template-columns: repeat(2, 1fr); }
    .dialogue-recommendations { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .dialogue-catalog, .dialogue-page { width: min(100% - 24px, 900px); padding: 25px 0 55px; }
    .dialogue-hero { padding: 30px 24px; border-radius: 20px; }
    .dialogue-section-heading { align-items: start; flex-direction: column; gap: 10px; }
    .dialogue-category-grid, .dialogue-progress-list { grid-template-columns: 1fr; }
    .dialogue-category-card { min-height: 0; }
    .dialogue-brief { padding: 25px 20px; }
    .dialogue-brief-title { flex-direction: column; }
    .dialogue-secondary-button { width: 100%; }
    .dialogue-messenger { min-height: calc(100vh - 105px); border-radius: 15px; }
    .dialogue-messenger > header button { max-width: 100px; }
    .dialogue-message-list { padding: 16px 12px; }
    .dialogue-bubble { max-width: 88%; }
    .dialogue-score-grid { grid-template-columns: repeat(2, 1fr); }
    .dialogue-evaluation { padding: 27px 19px; }
    .dialogue-result-actions { align-items: stretch; flex-direction: column; text-align: center; }
}

/* Keep the boxed authorization layout after the legacy cover rules above. */
body .auth-shell.auth-boxed-shell {
    position: relative;
    min-height: 100vh;
    padding: 42px 24px;
    display: grid;
    grid-template-columns: minmax(0, 520px);
    grid-template-rows: max-content max-content;
    align-content: center;
    justify-content: center;
    row-gap: 24px;
    place-items: center;
    background:
        radial-gradient(circle at 18% 15%, rgba(29,93,243,.12), transparent 24%),
        radial-gradient(circle at 86% 82%, rgba(118,78,232,.1), transparent 26%),
        #f5f7fb;
}
body .auth-shell .auth-form-panel.auth-boxed-panel {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    min-height: 0;
    padding: 0;
    display: block;
    background: transparent;
}

@media (max-width: 560px) {
    body .auth-shell.auth-boxed-shell { padding: 24px 14px; row-gap: 20px; }
}

/* Home landing page */
.eq-home-shell {
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 8%, rgba(29, 93, 243, 0.08), transparent 28rem),
        linear-gradient(180deg, #fbfcff 0, #f7f8fc 38rem, #f4f5f9 100%);
}

.eq-home {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 56px;
}

.eq-home-hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 42px 0 52px;
    text-align: center;
}

.eq-home-card-number {
    margin: 0;
    color: var(--blue);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eq-home-hero h1 {
    margin: 0 0 16px;
    color: #13203a;
    font-size: clamp(38px, 4.2vw, 54px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.eq-home-hero h1 em {
    color: var(--blue);
    font-style: normal;
    font-weight: 700;
}

.eq-home-hero > p:last-of-type {
    max-width: none;
    margin: 0 auto;
    color: #626e86;
    font-size: 16px;
    line-height: 1.6;
    white-space: nowrap;
}

.eq-home-hero-link,
.eq-home-card-link,
.eq-home-roadmap-cta > a {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 900;
}

.eq-home-hero-link {
    margin-top: 24px;
    padding: 12px 16px;
    color: #fff;
    background: var(--blue);
    border-radius: 11px;
    box-shadow: 0 14px 30px rgba(29, 93, 243, 0.24);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.eq-home-hero-link:hover {
    background: var(--blue-dark);
    box-shadow: 0 17px 34px rgba(29, 93, 243, 0.31);
    transform: translateY(-2px);
}

.eq-home-paths {
    display: grid;
    gap: 18px;
}

.eq-home-card {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border: 1px solid rgba(212, 219, 233, 0.9);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
    align-items: stretch;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 18px 60px rgba(30, 46, 82, 0.08);
}

.eq-home-card-copy {
    position: relative;
    z-index: 2;
    padding: 42px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
}

.eq-home-card-copy h2 {
    max-width: 560px;
    margin: 11px 0 14px;
    color: inherit;
    font-size: clamp(27px, 2.8vw, 38px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.eq-home-card-copy > p:not(.eq-home-card-number) {
    max-width: 590px;
    margin: 0;
    color: #66728a;
    font-size: 15px;
    line-height: 1.6;
}

.eq-home-card-link {
    margin-top: 22px;
    color: var(--blue);
    font-size: 14px;
    transition: gap 160ms ease, color 160ms ease;
}

.eq-home-card-link:hover {
    gap: 16px;
    color: var(--blue-dark);
}

.eq-home-card-link:focus-visible,
.eq-home-hero-link:focus-visible,
.eq-home-roadmap-cta > a:focus-visible {
    outline: 3px solid rgba(29, 93, 243, 0.25);
    outline-offset: 4px;
}

.eq-home-visual {
    position: relative;
    min-width: 0;
    min-height: 280px;
}

.eq-home-membership {
    min-height: 400px;
    color: #fff;
    border-color: #172a55;
    background:
        radial-gradient(circle at 86% 18%, rgba(92, 140, 255, 0.32), transparent 22rem),
        linear-gradient(135deg, #111d39 0%, #182d5d 100%);
}

.eq-home-membership .eq-home-card-number {
    color: #9fbafd;
}

.eq-home-membership .eq-home-card-copy > p:not(.eq-home-card-number) {
    color: #c6d0e6;
}

.eq-home-membership .eq-home-card-link {
    color: #fff;
}

.eq-home-benefits {
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
    color: #e8edfa;
    font-size: 13px;
    font-weight: 700;
    list-style: none;
}

.eq-home-benefits li {
    display: flex;
    align-items: center;
    gap: 9px;
}

.eq-home-benefits span {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #13234b;
    background: #8eafff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
}

.eq-home-progress-visual {
    display: grid;
    place-items: center;
    padding: 30px 40px 30px 16px;
}

.eq-progress-window {
    position: relative;
    z-index: 2;
    width: min(100%, 340px);
    padding: 18px;
    color: #17223b;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 18px;
    box-shadow: 0 28px 65px rgba(2, 10, 30, 0.32);
    transform: rotate(2deg);
}

.eq-progress-topline {
    padding-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #e8ebf2;
}

.eq-progress-topline i {
    width: 7px;
    height: 7px;
    display: block;
    background: #dbe0ea;
    border-radius: 50%;
}

.eq-progress-topline span {
    margin-left: auto;
    color: #8993a7;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.eq-progress-streak {
    padding: 18px 0 15px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.eq-progress-streak > span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #ff7c5c, #f44336);
    border-radius: 14px;
    box-shadow: 0 12px 25px rgba(244, 67, 54, 0.24);
    font-size: 22px;
    font-weight: 900;
}

.eq-progress-streak strong,
.eq-progress-streak small {
    display: block;
}

.eq-progress-streak strong {
    font-size: 15px;
}

.eq-progress-streak small {
    margin-top: 2px;
    color: #8a94a8;
    font-size: 10px;
}

.eq-progress-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.eq-progress-days i {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    color: #9ba4b5;
    background: #f1f3f7;
    border-radius: 7px;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
}

.eq-progress-days .is-done {
    color: #fff;
    background: #477bf5;
}

.eq-progress-days .is-today {
    color: #1d5df3;
    background: #eaf0ff;
    outline: 2px solid #6b92f2;
}

.eq-progress-row {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 31px;
    align-items: center;
    gap: 10px;
    color: #6e7890;
    font-size: 9px;
    font-weight: 800;
}

.eq-progress-row > i {
    height: 6px;
    overflow: hidden;
    display: block;
    background: #edf0f5;
    border-radius: 999px;
}

.eq-progress-row b {
    height: 100%;
    display: block;
    background: #1d5df3;
    border-radius: inherit;
}

.eq-progress-row strong {
    color: #3c4861;
    text-align: right;
}

.eq-progress-badge {
    position: absolute;
    z-index: 3;
    right: 24px;
    bottom: 42px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #cbd7f4;
    background: #0b1630;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 13px;
    box-shadow: 0 16px 35px rgba(2, 8, 23, 0.36);
    font-size: 9px;
    font-weight: 800;
}

.eq-progress-badge b {
    color: #8fb0ff;
    font-size: 16px;
}

.eq-home-grammar {
    background: linear-gradient(135deg, #fff 0%, #eef3ff 100%);
}

.eq-home-grammar-visual {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 36px;
    background:
        linear-gradient(rgba(29, 93, 243, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 93, 243, 0.045) 1px, transparent 1px);
    background-size: 28px 28px;
}

.eq-grammar-chip {
    width: max-content;
    padding: 7px 10px;
    color: #194dc2;
    background: #dce7ff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.eq-grammar-sentence {
    padding: 21px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    color: #27334c;
    background: #fff;
    border: 1px solid #dce4f6;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(42, 68, 125, 0.12);
    font-size: clamp(17px, 1.8vw, 22px);
    font-style: normal;
}

.eq-grammar-sentence b {
    color: #7e55db;
}

.eq-grammar-sentence i {
    color: #bc6b00;
    font-style: normal;
}

.eq-grammar-sentence strong {
    color: #1d5df3;
}

.eq-grammar-legend {
    padding-inline: 12px;
    display: flex;
    gap: 20px;
    color: #8791a6;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.eq-grammar-legend span::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 5px;
    display: inline-block;
    background: currentColor;
    border-radius: 50%;
}

.eq-grammar-rule {
    width: max-content;
    margin: 5px 0 0 auto;
    padding: 9px 12px;
    color: #516079;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #dfe5f2;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
}

.eq-grammar-rule i {
    margin: 0 7px;
    color: var(--red);
    font-style: normal;
}

.eq-home-listen {
    color: #f5fffb;
    border-color: #244c43;
    background: linear-gradient(135deg, #0f2b26 0%, #19443b 100%);
}

.eq-home-practice .eq-home-card-copy {
    order: 2;
}

.eq-home-listen .eq-home-card-number {
    color: #8fdec5;
}

.eq-home-listen .eq-home-card-copy > p:not(.eq-home-card-number) {
    color: #bcd5cd;
}

.eq-home-listen .eq-home-card-link {
    color: #9de6cf;
}

.eq-home-listen-visual {
    display: grid;
    place-items: center;
    isolation: isolate;
    background: radial-gradient(circle, rgba(90, 225, 182, 0.15), transparent 58%);
}

.eq-headphones {
    position: relative;
    width: 160px;
    height: 160px;
    border: 14px solid #9de6cf;
    border-bottom-color: transparent;
    border-radius: 50%;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.22));
}

.eq-headphones::before,
.eq-headphones::after {
    content: "";
    position: absolute;
    top: 76px;
    width: 38px;
    height: 66px;
    background: #eafff8;
    border: 7px solid #63c9aa;
    border-radius: 15px;
}

.eq-headphones::before {
    left: -28px;
    transform: rotate(-7deg);
}

.eq-headphones::after {
    right: -28px;
    transform: rotate(7deg);
}

.eq-waveform {
    position: absolute;
    z-index: -1;
    right: 10%;
    bottom: 17%;
    left: 10%;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.eq-waveform i {
    width: 4px;
    height: 18%;
    display: block;
    background: #70d3b5;
    border-radius: 999px;
}

.eq-waveform i:nth-child(3n) { height: 72%; }
.eq-waveform i:nth-child(4n) { height: 100%; }
.eq-waveform i:nth-child(5n) { height: 48%; }

.eq-play-button {
    position: absolute;
    bottom: 26%;
    left: 50%;
    width: 44px;
    height: 44px;
    padding-left: 4px;
    display: grid;
    place-items: center;
    color: #12332c;
    background: #9de6cf;
    border: 5px solid #19443b;
    border-radius: 50%;
    transform: translateX(-50%);
}

.eq-home-listen-visual small {
    position: absolute;
    right: 13%;
    bottom: 12%;
    color: #8cc9b6;
    font-size: 9px;
    font-weight: 800;
}

.eq-home-practice {
    background: linear-gradient(135deg, #fff 0%, #fff2ee 100%);
}

.eq-home-practice .eq-home-card-number {
    color: #cf4f40;
}

.eq-home-sentence-visual {
    padding: 36px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
}

.eq-sentence-prompt {
    width: 86%;
    margin-bottom: 12px;
    padding: 11px 14px;
    color: #6d7180;
    background: #f0f1f5;
    border-radius: 13px 13px 13px 3px;
    font-size: 12px;
    font-weight: 800;
}

.eq-home-sentence-visual > div {
    padding: 22px 20px;
    color: #263149;
    background: #fff;
    border: 1px solid #edd9d3;
    border-radius: 4px 18px 18px 18px;
    box-shadow: 0 20px 45px rgba(105, 51, 41, 0.12);
    font: 800 clamp(17px, 1.8vw, 21px)/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.eq-home-sentence-visual > div b {
    padding: 2px 4px;
    color: #087650;
    background: #d9f8e9;
    border-radius: 5px;
}

.eq-home-sentence-visual > div strong {
    color: #1d5df3;
    border-bottom: 3px solid #a9bfff;
}

.eq-home-sentence-visual > p {
    width: max-content;
    margin: 12px 0 0 auto;
    padding: 9px 13px;
    color: #087650;
    background: #dcf7eb;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
}

.eq-home-sentence-visual > p i {
    margin-right: 5px;
    font-style: normal;
}

.eq-home-read {
    background: linear-gradient(135deg, #fff 0%, #f2effc 100%);
}

.eq-home-read .eq-home-card-copy {
    order: 2;
}

.eq-home-read .eq-home-card-number {
    color: #7657d9;
}

.eq-home-reading-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 900px;
}

.eq-book-page {
    position: relative;
    width: 135px;
    height: 180px;
    padding: 33px 18px;
    display: grid;
    align-content: start;
    gap: 11px;
    background: #fffefa;
    border: 1px solid #ded8ed;
    box-shadow: 0 24px 45px rgba(58, 43, 99, 0.16);
}

.eq-book-left {
    border-radius: 14px 2px 2px 14px;
    transform: rotateY(8deg);
}

.eq-book-right {
    border-radius: 2px 14px 14px 2px;
    transform: rotateY(-8deg);
}

.eq-book-page::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 16px;
    background: linear-gradient(90deg, rgba(43, 35, 66, 0.12), transparent);
}

.eq-book-left::after { right: 0; transform: scaleX(-1); }
.eq-book-right::after { left: 0; }

.eq-book-page i {
    height: 5px;
    display: block;
    background: #d9d6df;
    border-radius: 999px;
}

.eq-book-page i:nth-child(2n) { width: 78%; }
.eq-book-page i:nth-child(3n) { width: 90%; }
.eq-book-page .is-highlighted {
    width: 88%;
    height: 10px;
    background: #f4d97a;
}

.eq-word-note {
    position: absolute;
    right: 8%;
    bottom: 16%;
    padding: 10px 12px;
    color: #45356f;
    background: #fff;
    border: 1px solid #ded5f5;
    border-radius: 12px;
    box-shadow: 0 16px 35px rgba(62, 44, 109, 0.15);
    transform: rotate(3deg);
}

.eq-word-note b,
.eq-word-note small {
    display: block;
}

.eq-word-note b {
    font-size: 13px;
}

.eq-word-note small {
    margin-top: 2px;
    color: #8c81a7;
    font-size: 9px;
}

.eq-home-roadmap-cta {
    margin-top: 18px;
    padding: 30px 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    color: #fff;
    background: #1d5df3;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(29, 93, 243, 0.19);
}

.eq-home-roadmap-cta .eq-home-card-number {
    color: #c9d7ff;
}

.eq-home-roadmap-cta h2 {
    margin: 8px 0 0;
    font-size: clamp(24px, 2.5vw, 32px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.eq-home-roadmap-cta > a {
    padding: 12px 15px;
    flex: 0 0 auto;
    color: #18336f;
    background: #fff;
    border-radius: 10px;
    font-size: 13px;
}

@media (max-width: 960px) {
    .eq-home-card {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    }

    .eq-home-card-copy {
        padding: 36px;
    }

    .eq-home-grammar-visual,
    .eq-home-sentence-visual {
        padding: 30px;
    }

    .eq-home-progress-visual {
        padding-right: 28px;
    }
}

@media (max-width: 760px) {
    .eq-home-hero {
        padding: 40px 0 44px;
    }

    .eq-home-hero h1 {
        font-size: clamp(35px, 6vw, 44px);
    }

    .eq-home-hero > p:last-of-type {
        max-width: 610px;
        white-space: normal;
    }

    .eq-home-card {
        min-height: 0;
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .eq-home-card-copy,
    .eq-home-practice .eq-home-card-copy,
    .eq-home-read .eq-home-card-copy {
        order: 1;
    }

    .eq-home-card-copy {
        padding: 34px 30px 26px;
    }

    .eq-home-card-copy h2 {
        font-size: clamp(28px, 5vw, 34px);
    }

    .eq-home-visual {
        min-height: 250px;
        order: 2;
    }

    .eq-home-progress-visual {
        padding: 18px 36px 36px;
    }

    .eq-progress-badge {
        right: 24px;
        bottom: 24px;
    }

    .eq-home-roadmap-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .eq-home {
        width: calc(100% - 28px);
        padding-bottom: 44px;
    }

    .eq-home-hero {
        padding: 32px 0 36px;
    }

    .eq-home-hero h1 {
        margin-bottom: 14px;
        font-size: clamp(31px, 9vw, 37px);
    }

    .eq-home-hero > p:last-of-type {
        font-size: 15px;
    }

    .eq-home-card {
        border-radius: 17px;
    }

    .eq-home-card-copy {
        padding: 30px 22px 22px;
    }

    .eq-home-card-copy h2 {
        font-size: 28px;
    }

    .eq-home-card-copy > p:not(.eq-home-card-number) {
        font-size: 14px;
    }

    .eq-home-benefits {
        font-size: 12px;
    }

.eq-home-visual {
        min-height: 220px;
    }

    .eq-home-progress-visual,
    .eq-home-grammar-visual,
    .eq-home-sentence-visual {
        padding: 18px;
    }

    .eq-progress-window {
        padding: 18px;
    }

.eq-progress-badge {
        right: 14px;
        bottom: 14px;
    }

    .eq-home-grammar-visual {
        align-content: center;
    }

.eq-headphones {
        width: 132px;
        height: 132px;
    }

    .eq-headphones::before,
    .eq-headphones::after {
        top: 61px;
        width: 34px;
        height: 56px;
    }

    .eq-home-sentence-visual > div {
        padding: 22px 18px;
        font-size: 17px;
    }

.eq-book-page {
        width: 105px;
        height: 145px;
        padding: 28px 14px;
    }

    .eq-word-note {
        right: 3%;
        bottom: 10%;
    }

.eq-home-roadmap-cta {
        padding: 28px 23px;
        border-radius: 17px;
    }

    .eq-home-roadmap-cta > a {
        width: 100%;
        justify-content: center;
    }

}

/* Dictation practice - intentionally follows the Sentences practice layout. */
.dictation-page .sentences-hero {
    grid-template-columns: minmax(0, 1fr) 230px;
}

.dictation-page .sentences-hero .practice-title-accent {
    color: #b66b00;
}

.dictation-card-header {
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: start;
}

.dictation-card-header > div:first-child {
    min-height: 64px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.dictation-audio-id,
.dictation-level,
.sentence-db-id,
.sentence-level-text,
.context-db-id,
.context-level-text {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
}

.dictation-audio-id {
    color: #4d5870;
}

.dictation-level,
.sentence-level-text,
.context-level-text {
    color: #778197;
    font-weight: 400;
}

.sentence-db-id {
    color: #4d5870;
}

.context-db-id {
    color: #4d5870;
}

.sentence-card-header.sentence-practice-card-header {
    grid-template-columns: 110px minmax(0, 1fr);
}

.sentence-card-header.context-practice-card-header {
    grid-template-columns: 110px minmax(0, 1fr);
}

.sentence-card-header .sentence-meta-copy {
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.sentence-card-header .context-meta-copy {
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.dictation-audio-panel {
    min-width: 0;
    width: 100%;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
}

.dictation-audio-panel audio {
    width: 100%;
    min-width: 0;
    accent-color: #7657d9;
}

.dictation-replay-hint {
    align-self: flex-end;
    color: #8993a7;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.4;
}


@media (max-width: 650px) {
    .dictation-page .sentences-hero {
        grid-template-columns: 1fr;
    }

    .dictation-card-header {
        grid-template-columns: 1fr;
    }

    .sentence-card-header.sentence-practice-card-header {
        grid-template-columns: 1fr;
    }

    .sentence-card-header.context-practice-card-header {
        grid-template-columns: 1fr;
    }

    .dictation-card-header > div:first-child {
        min-height: 0;
    }

    .dictation-audio-panel {
        width: 100%;
    }

    .dictation-replay-hint {
        align-self: flex-start;
    }

}

/* Video catalog and player */
.videos-filter-group + .videos-filter-group {
    margin-top: 30px;
}

.video-author-dot {
    width: 8px;
    height: 8px;
    margin-left: 9px;
    flex: 0 0 auto;
    background: #ff3b30;
    border-radius: 50%;
}

.video-card .video-card-inner {
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 220ms ease;
}

.video-card-inner:hover .video-thumbnail img {
    transform: scale(1.035);
}

.video-play {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 48px;
    height: 34px;
    display: grid;
    place-items: center;
    background: rgba(255, 0, 0, 0.92);
    border-radius: 9px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    transform: translate(-50%, -50%);
}

.video-play i {
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #fff;
}

.video-card-copy {
    min-height: 99px;
    padding: 16px 16px 8px;
}

.video-card-copy .note-title {
    margin: 0;
    color: #17223b;
    display: -webkit-box;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.video-card-copy .guide-note-topic {
    margin-bottom: 0;
}

.video-card-inner .guide-note-footer {
    margin: 0 16px 16px;
}

.video-hero h1 {
    max-width: 900px;
}

.video-watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: start;
    gap: 24px;
}

.video-author-card {
    position: sticky;
    top: 92px;
    padding: 20px;
    border: 1px solid #cbd8ff;
    background: #f3f6ff;
    border-radius: 12px;
    transition: border-color 180ms ease, background 180ms ease;
}

.video-author-card.is-completed {
    border-color: #b8dfce;
    background: #f1faf6;
}

.video-author-card.is-completed .panel-kicker {
    color: #147d5b;
}

.video-author-card h2 {
    margin: 3px 0 8px;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.35;
}

.video-author-card > p:last-of-type {
    margin: 0;
    color: #56627b;
    font-size: 12px;
    line-height: 1.6;
}

.video-author-card > a {
    width: 100%;
    min-height: 38px;
    margin-top: 16px;
    padding: 9px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: #ff2f2f;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 7px 18px rgba(226, 31, 31, 0.17);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.video-author-card > a:hover {
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(226, 31, 31, 0.24);
}

.video-player-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(31, 49, 88, 0.045);
}

.video-player-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #101522;
    border-radius: 8px;
}

.video-player-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-youtube-link {
    margin-top: 12px;
    padding: 4px 2px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
}

.video-card-progress {
    color: #68748b;
    font-size: 10px;
    font-weight: 900;
}

.video-progress {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #cbd8ff;
}

.video-progress-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #59647c;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.video-progress-heading strong {
    color: var(--blue);
    font-size: 11px;
}

.video-progress-steps {
    margin: 9px 0 12px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.video-progress-steps i {
    height: 5px;
    background: #d8e0f4;
    border-radius: 999px;
}

.video-progress-steps i.is-filled {
    background: var(--blue);
}

.video-next-view {
    margin: 0 0 10px;
    color: #68748b;
    font-size: 10px;
    line-height: 1.45;
}

.video-next-view span,
.video-next-view time {
    display: block;
}

.video-next-view time {
    margin-top: 2px;
    color: #3f4b63;
    font-weight: 900;
}

.video-progress button {
    width: 100%;
    min-height: 38px;
    border: 0;
    padding: 9px 12px;
    color: #fff;
    background: var(--blue);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.video-progress button:disabled {
    color: #7a859b;
    background: #dfe4ef;
    cursor: default;
}

.video-completed-state {
    min-height: 38px;
    padding: 8px 11px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #147d5b;
    background: #fff;
    border: 1px solid #b8dfce;
    border-radius: 8px;
    font-size: 12px;
}

.video-completed-state > span {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: #199b70;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
}

.video-progress-message {
    margin: 9px 0 0;
    color: #087650;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.45;
}

.video-progress-message.is-error {
    color: #b52925;
}

@media (max-width: 850px) {
    .video-watch-layout {
        grid-template-columns: 1fr;
    }

    .video-author-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .videos-sidebar {
        display: flex;
        gap: 18px;
    }

    .videos-filter-group {
        min-width: max-content;
    }

    .videos-filter-group + .videos-filter-group {
        margin-top: 0;
    }

    .videos-author-filter .group-list {
        display: flex;
        gap: 7px;
    }
}

@media (max-width: 650px) {
    .video-player-card {
        padding: 8px;
        border-radius: 10px;
    }

    .video-author-card {
        border-radius: 10px;
    }
}

/* Guide article catalog - adapted from the note-library layout. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.guide-page {
    width: min(1120px, calc(100% - 40px));
    min-height: calc(100vh - 158px);
    margin: 0 auto;
    padding: 34px 0 92px;
}

.guide-header-filter {
    width: 230px;
}

.guide-level-select {
    position: relative;
}

.guide-level-select select {
    width: 100%;
    min-height: 38px;
    border: 1px solid #d7deeb;
    padding: 0 36px 0 13px;
    outline: none;
    appearance: none;
    color: #263149;
    background: #fff;
    border-radius: 8px;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.guide-level-select select:hover,
.guide-level-select select:focus {
    border-color: #9eb7f8;
    box-shadow: 0 0 0 4px rgba(29, 93, 243, 0.08);
}

.guide-level-select .chevron {
    position: absolute;
    top: 50%;
    right: 14px;
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.guide-articles {
    min-width: 0;
}

.guide-section-heading {
    margin: 0 2px 14px;
}

.guide-section-heading h2 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}

.guide-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 19px;
}

.guide-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(31, 49, 88, 0.075);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.guide-card:hover {
    border-color: #c7d5f8;
    box-shadow: 0 15px 34px rgba(31, 49, 88, 0.11);
    transform: translateY(-2px);
}

.guide-card > a {
    height: 100%;
    display: block;
}

.guide-card-header {
    padding: 24px 30px 22px;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    align-items: center;
    gap: 23px;
    border-bottom: 1px solid #edf0f6;
    background: linear-gradient(135deg, #fbfcff, #f4f7ff);
}

.guide-card-badges {
    display: flex;
    align-items: center;
    gap: 7px;
}

.guide-topic {
    margin: 0 0 3px;
    color: var(--blue);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.guide-card h3 {
    margin: 0;
    color: #28344c;
    font-size: clamp(19px, 2.2vw, 24px);
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.guide-card-time {
    color: #8b95aa;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.guide-card-body {
    padding: 21px 30px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
}

.guide-summary {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.guide-read-link {
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
}

.guide-read-link i {
    margin-left: 4px;
    font-style: normal;
    transition: margin-left 150ms ease;
}

.guide-card:hover .guide-read-link i {
    margin-left: 8px;
}

.guide-empty {
    min-height: 360px;
    border: 1px solid var(--line);
    display: grid;
    place-content: center;
    color: var(--muted);
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(31, 49, 88, 0.075);
    text-align: center;
}

.guide-empty h2 {
    margin: 0 0 8px;
    color: var(--ink);
}

.guide-empty p {
    margin: 0;
}

@media (max-width: 650px) {
    .guide-page {
        width: calc(100% - 28px);
        padding: 28px 0 65px;
    }

    .guide-header-filter {
        width: min(100%, 300px);
    }

    .guide-card,
    .guide-empty {
        border-radius: 17px;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    .guide-card-header,
    .guide-card-body {
        padding: 20px;
    }

    .guide-card-header {
        grid-template-columns: 1fr auto;
        gap: 14px;
    }

    .guide-card-badges {
        grid-column: 1;
    }

    .guide-card-title {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .guide-card-time {
        grid-column: 2;
        grid-row: 1;
    }

    .guide-card-body {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Guide notes layout */
.guide-header-search {
    width: 230px;
}

.guide-search {
    position: relative;
    display: block;
}

.guide-search input {
    width: 100%;
    min-height: 38px;
    border: 1px solid #d7deeb;
    padding: 0 13px 0 39px;
    outline: none;
    color: #263149;
    background: #fff;
    border-radius: 8px;
    font: 700 0.82rem/1 "Nunito", system-ui, sans-serif;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.guide-search input:focus {
    border-color: #9eb7f8;
    box-shadow: 0 0 0 4px rgba(29, 93, 243, 0.08);
}

.guide-search-icon {
    position: absolute;
    z-index: 1;
    top: 11px;
    left: 14px;
    width: 13px;
    height: 13px;
    border: 2px solid #8b96ad;
    border-radius: 50%;
}

.guide-search-icon::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: -4px;
    width: 7px;
    height: 2px;
    background: #8b96ad;
    border-radius: 2px;
    transform: rotate(45deg);
}

.guide-notes-app {
    position: relative;
    display: flex;
    align-items: flex-start;
}

.guide-notes-sidebar {
    width: 210px;
    max-width: 210px;
    padding-right: 15px;
    flex: 0 0 210px;
}

.guide-notes-sidebar .list-actions {
    width: 100%;
    min-height: 40px;
    border: 0;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    color: #3b465e;
    background: transparent;
    border-radius: 0 8px 8px 0;
    text-align: left;
    font: 700 13px/1.3 "Nunito", system-ui, sans-serif;
    cursor: pointer;
}

.guide-notes-sidebar .list-actions:hover {
    background: #f1f3f8;
}

.guide-notes-sidebar .list-actions.active {
    border-left: 3px solid var(--blue);
    padding-left: 7px;
    color: var(--blue);
    background: var(--blue-soft);
}

.guide-notes-sidebar .list-actions b {
    min-width: 23px;
    padding: 3px 6px;
    color: #68748b;
    background: #edf0f6;
    border-radius: 999px;
    text-align: center;
    font-size: 9px;
}

.guide-notes-sidebar .list-actions.active b {
    color: var(--blue);
    background: #fff;
}

.guide-notes-sidebar .group-section {
    margin: 0 0 12px;
    padding: 0 12px;
    color: #7a859b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guide-level-dot {
    width: 8px;
    height: 8px;
    margin-left: 9px;
    display: block;
    background: var(--blue);
    border-radius: 50%;
}

.guide-level-list .list-actions:nth-child(2) .guide-level-dot {
    background: #7657d9;
}

.guide-level-list .list-actions:nth-child(3) .guide-level-dot {
    background: #d68a1d;
}

.guide-level-list .list-actions:nth-child(4) .guide-level-dot {
    background: #14946d;
}

.guide-level-list .list-actions:nth-child(5) .guide-level-dot {
    background: var(--red);
}

.guide-notes-main {
    min-width: 0;
    flex: 1;
}

.guide-note-grid {
    padding-left: 15px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.guide-note-card {
    min-width: 0;
}

.guide-note-inner {
    min-height: 205px;
    border: 1px solid #dfe4ed;
    padding: 16px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(31, 49, 88, 0.045);
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.guide-note-inner:hover {
    border-color: #b9caf7;
    box-shadow: 0 14px 30px rgba(31, 49, 88, 0.1);
    transform: translateY(-2px);
}

.guide-note-card.is-completed .guide-note-inner {
    border-color: #c9ddd1;
    background: #f4f8f5;
    box-shadow: none;
}

.guide-note-card.is-completed .guide-note-inner:hover {
    border-color: #a9cbb7;
    box-shadow: 0 10px 24px rgba(40, 105, 69, 0.08);
    transform: translateY(-1px);
}

.guide-note-card.is-completed .guide-note-heading .note-title {
    color: #647269;
}

.guide-note-card.is-completed .guide-note-topic,
.guide-note-card.is-completed .guide-note-description {
    color: #7b8980;
}

.guide-note-content {
    min-height: 135px;
    margin-bottom: 14px;
}

.guide-note-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.guide-note-heading .note-title {
    margin: 0;
    color: #17223b;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.guide-note-heading .meta-time {
    flex: 0 0 auto;
    color: #7b869b;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.guide-note-topic {
    margin: 8px 0 11px;
    color: var(--blue);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.guide-note-description {
    margin: 0;
    color: #59647c;
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.guide-note-footer {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #edf0f5;
}

.guide-note-level,
.guide-note-read,
.guide-note-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 900;
}

.guide-note-level {
    color: #667188;
}

.guide-note-level i {
    width: 8px;
    height: 8px;
    background: var(--blue);
    border-radius: 50%;
}

.guide-note-read {
    color: var(--blue);
}

.guide-note-status {
    padding: 4px 8px;
    color: #18794e;
    background: #dff2e7;
    border-radius: 999px;
}

.guide-note-status i {
    font-style: normal;
}

.guide-note-card.is-completed .guide-note-level i {
    background: #37a86b;
}

.guide-note-read i {
    font-style: normal;
}

@media (max-width: 1050px) {
    .guide-note-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .guide-notes-app {
        display: block;
    }

    .guide-notes-sidebar {
        width: 100%;
        max-width: none;
        margin-bottom: 20px;
        padding: 0;
        display: flex;
        gap: 7px;
        overflow-x: auto;
    }

    .guide-notes-sidebar .group-section {
        display: none;
    }

    .guide-level-list {
        display: flex;
        gap: 7px;
    }

    .guide-notes-sidebar .list-actions {
        width: auto;
        min-width: max-content;
        border-radius: 8px;
    }

    .guide-note-grid {
        padding-left: 0;
    }

}

@media (max-width: 575px) {
    .guide-header-search {
        width: min(100%, 300px);
    }

    .guide-note-grid {
        grid-template-columns: 1fr;
    }
}

/* Context practice */
.context-page {
    width: min(1120px, calc(100% - 40px));
    min-height: calc(100vh - 158px);
    margin: 0 auto;
    padding: 34px 0 92px;
}

.context-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: center;
    gap: 28px;
    margin-bottom: 24px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--line);
}

.context-hero h1 {
    max-width: 720px;
    margin: 5px 0 7px;
    color: var(--ink);
    font-size: clamp(1.55rem, 2.4vw, 1.9rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.practice-title-accent {
    font-style: normal;
    font-weight: 760;
    letter-spacing: -0.035em;
}

.context-hero .practice-title-accent {
    color: #7657d9;
}

.context-hero-copy > p:last-child {
    max-width: 760px;
    margin: 0;
    color: #59647c;
    font-size: 0.86rem;
    line-height: 1.55;
}

.context-level-filter {
    padding: 0;
}

.context-level-filter label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.context-level-filter label strong {
    color: #7657d9;
    font-size: 0.68rem;
}

.context-level-select {
    position: relative;
}

.context-level-select select {
    width: 100%;
    min-height: 38px;
    padding: 0 40px 0 13px;
    border: 1px solid #d7cfef;
    border-radius: 8px;
    outline: none;
    appearance: none;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.context-level-select select:focus {
    border-color: #7657d9;
    box-shadow: 0 0 0 4px rgba(118, 87, 217, 0.12);
}

.context-level-select select:disabled {
    cursor: wait;
    opacity: 0.65;
}

.context-level-select .chevron {
    position: absolute;
    top: 50%;
    right: 14px;
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.context-loading,
.context-reading-card,
.context-questions-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 49, 88, 0.045);
}

.context-loading {
    padding: 42px;
}

.context-skeleton {
    height: 18px;
    margin-top: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #edf0f5 25%, #f8f9fb 50%, #edf0f5 75%);
    background-size: 200% 100%;
    animation: sentence-loading 1.35s linear infinite;
}

.context-skeleton-title {
    width: 48%;
    height: 34px;
    margin-top: 0;
}

.context-skeleton-short {
    width: 68%;
}

.context-reading-card {
    overflow: hidden;
}

.context-prose {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 46px 78px;
    border-top: 1px solid #ece8f8;
    border-bottom: 1px solid #ece8f8;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.context-prose::before {
    content: "";
    position: absolute;
    top: 36px;
    bottom: 36px;
    left: 52px;
    width: 4px;
    border-radius: 999px;
    background: #9d87df;
}

.context-prose p {
    margin: 0;
    color: #27324a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.12rem, 1.8vw, 1.28rem);
    line-height: 1.85;
    letter-spacing: 0.006em;
    text-wrap: pretty;
}

.context-glossary {
    margin: 28px 34px 30px;
    padding: 24px 28px;
    border: 1px solid #ddd7f4;
    border-radius: 12px;
    background: #faf9ff;
}

.context-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.context-section-heading h2 {
    margin: 5px 0 0;
    color: var(--ink);
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}

.context-glossary dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e5e0f4;
    border-radius: 12px;
    background: #e5e0f4;
}

.context-glossary dl > div {
    display: grid;
    grid-template-columns: minmax(120px, 0.75fr) minmax(0, 1.25fr);
    align-items: baseline;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
}

.context-glossary dt {
    color: var(--ink);
    font-weight: 800;
}

.context-glossary dd {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.context-reading-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 34px 30px;
}

.context-reading-action > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.context-reading-action strong {
    color: var(--ink);
    font-size: 0.92rem;
}

.context-reading-action span {
    color: var(--muted);
    font-size: 0.8rem;
}

.context-primary-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #7657d9;
    box-shadow: 0 7px 18px rgba(118, 87, 217, 0.18);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.context-primary-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(118, 87, 217, 0.24);
}

.context-primary-button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    box-shadow: none;
}

.context-primary-button > span[aria-hidden="true"] {
    color: inherit;
    font-size: 1.1rem;
}

.context-questions-card {
    padding: 30px 34px 34px;
}

.context-questions-header {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr) auto;
    align-items: start;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.context-questions-header > button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    color: #7657d9;
    background: transparent;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
}

.context-questions-header h2 {
    margin: 5px 0 7px;
    color: var(--ink);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    letter-spacing: -0.03em;
}

.context-questions-header div > p:last-child {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.55;
}

.context-questions-header > span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #7657d9;
    background: #f0ecff;
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}

.context-result-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 24px 0 4px;
    padding: 20px 22px;
    border: 1px solid #cce9dd;
    border-radius: 12px;
    background: #f2fbf7;
}

.context-score-ring {
    --context-score: 0;
    display: grid;
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle closest-side, #fff 77%, transparent 78% 99%, #fff 0),
        conic-gradient(#199b70 calc(var(--context-score) * 1%), #dceae5 0);
}

.context-score-ring strong {
    color: #147d5b;
    font-size: 1.12rem;
}

.context-result-summary h3 {
    margin: 5px 0 5px;
    color: var(--ink);
    font-size: 1.2rem;
}

.context-result-summary div > p:last-child {
    margin: 0;
    color: var(--muted);
}

.context-question-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.context-question {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.context-question fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.context-question legend {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    width: 100%;
    margin-bottom: 15px;
}

.context-question legend > span {
    display: inline-flex;
    width: 34px;
    height: 26px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #7657d9;
    background: #f0ecff;
    font-size: 0.73rem;
    font-weight: 900;
}

.context-question legend strong {
    color: var(--ink);
    font-size: 0.96rem;
    line-height: 1.5;
}

.context-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding-left: 47px;
}

.context-options label {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 9px 13px;
    border: 1px solid #dfe3ea;
    border-radius: 9px;
    color: #374158;
    background: #fff;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease, opacity 150ms ease;
}

.context-options label:hover:not(.is-muted) {
    border-color: #bcb0e6;
    background: #faf9ff;
}

.context-options input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.context-option-marker {
    width: 20px;
    height: 20px;
    border: 2px solid #c6cad3;
    border-radius: 50%;
    box-shadow: inset 0 0 0 4px #fff;
}

.context-options label.is-selected {
    border-color: #7657d9;
    background: #faf9ff;
}

.context-options label.is-selected .context-option-marker {
    border-color: #7657d9;
    background: #7657d9;
}

.context-options label.is-correct {
    border-color: #70c39f;
    color: #166c50;
    background: #effaf5;
}

.context-options label.is-correct .context-option-marker {
    border-color: #199b70;
    background: #199b70;
}

.context-options label.is-incorrect {
    border-color: #e6a3ae;
    color: #9b3145;
    background: #fff4f5;
}

.context-options label.is-incorrect .context-option-marker {
    border-color: #d8556b;
    background: #d8556b;
}

.context-options label.is-muted {
    cursor: default;
    opacity: 0.58;
}

.context-options label small {
    font-size: 0.67rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.context-submit-row {
    display: flex;
    justify-content: flex-end;
    padding-top: 24px;
}

@media (max-width: 900px) {
    .context-glossary dl {
        grid-template-columns: 1fr;
    }

    .context-questions-header {
        grid-template-columns: 1fr auto;
    }

    .context-questions-header > button {
        grid-column: 1 / -1;
    }

    .context-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .context-page {
        width: min(100% - 28px, 1120px);
        padding: 28px 0 72px;
    }

    .context-hero {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .context-hero h1 {
        font-size: 1.5rem;
    }

    .context-level-filter {
        width: min(100%, 300px);
    }

    .context-loading,
    .context-questions-card {
        padding: 24px 20px;
    }

    .context-prose {
        margin: 0;
        padding: 32px 34px;
    }

    .context-prose::before {
        top: 24px;
        bottom: 24px;
        left: 14px;
        width: 3px;
    }

    .context-prose p {
        font-size: 1.08rem;
        line-height: 1.8;
    }

    .context-glossary {
        margin: 20px 14px 24px;
        padding: 20px 16px;
    }

    .context-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .context-glossary dl > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .context-reading-action {
        align-items: stretch;
        flex-direction: column;
        padding: 0 22px 26px;
    }

    .context-primary-button {
        width: 100%;
    }

    .context-questions-header {
        grid-template-columns: 1fr;
    }

    .context-questions-header > span {
        justify-self: start;
    }

    .context-result-summary {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .context-question legend {
        flex-direction: column;
        gap: 10px;
    }

    .context-options {
        padding-left: 0;
    }

    .context-options label {
        grid-template-columns: 22px minmax(0, 1fr);
    }

    .context-options label small {
        grid-column: 2;
    }

    .context-submit-row {
        align-items: stretch;
    }
}

* {
    box-sizing: border-box;
}

[x-cloak] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--background);
    font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    color: #fff;
    background: var(--blue);
    border-radius: 8px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(230, 234, 242, 0.9);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 40px));
    height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 52px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.brand img {
    width: 136px;
    height: auto;
    object-fit: contain;
}

.desktop-nav {
    display: flex;
    align-self: stretch;
    align-items: center;
    gap: 8px;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link,
.nav-trigger {
    position: relative;
    border: 0;
    padding: 12px 14px;
    color: #4d5770;
    background: transparent;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active,
.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] {
    color: var(--blue);
    background: var(--blue-soft);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    right: 13px;
    bottom: 6px;
    left: 13px;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
}

.chevron {
    width: 7px;
    height: 7px;
    margin: 0 0 3px 7px;
    display: inline-block;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 160ms ease;
}

.chevron.is-open {
    transform: translateY(3px) rotate(225deg);
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 17px;
}

.sign-in {
    color: #4d5770;
    font-weight: 700;
}

.sign-in:hover {
    color: var(--blue);
}

.account-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.account-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid #cdd9f5;
    padding: 0;
    display: block;
    color: var(--blue);
    background: var(--blue-soft);
    border-radius: 50%;
    box-shadow: 0 7px 18px rgba(29, 93, 243, 0.14);
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.account-avatar:hover,
.account-avatar[aria-expanded="true"] {
    border-color: var(--blue);
    background: #dfe8ff;
    box-shadow: 0 9px 22px rgba(29, 93, 243, 0.2);
    transform: translateY(-1px);
}

.account-avatar:focus-visible {
    outline: 3px solid rgba(29, 93, 243, 0.24);
    outline-offset: 2px;
}

.account-avatar-head,
.account-avatar-body {
    position: absolute;
    left: 50%;
    display: block;
    background: currentColor;
    transform: translateX(-50%);
}

.account-avatar-image {
	position: absolute;
	inset: -1px;
	width: 42px;
	height: 42px;
	object-fit: cover;
	border-radius: 50%;
}

.account-avatar-head {
    top: 9px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.account-avatar-body {
    bottom: 8px;
    width: 19px;
    height: 10px;
    border-radius: 12px 12px 7px 7px;
}

.account-dropdown {
    position: absolute;
    z-index: 90;
    top: calc(100% + 11px);
    right: 0;
    width: 210px;
    border: 1px solid var(--line);
    padding: 8px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(31, 49, 88, 0.17);
}

.account-dropdown[hidden] {
    display: none;
}

.account-dropdown a,
.account-dropdown button {
    width: 100%;
    min-height: 43px;
    border: 0;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #4d5770;
    background: transparent;
    border-radius: 9px;
    text-align: left;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.account-dropdown a:hover,
.account-dropdown a:focus-visible,
.account-dropdown button:hover,
.account-dropdown button:focus-visible {
    color: var(--blue);
    background: var(--blue-soft);
    outline: none;
}

.account-menu-icon {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--blue);
    background: #edf2ff;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 900;
}

.account-progress-icon {
    align-items: flex-end;
    gap: 2px;
    padding: 6px;
}

.account-progress-icon i {
    width: 3px;
    display: block;
    background: currentColor;
    border-radius: 2px;
}

.account-progress-icon i:nth-child(1) {
    height: 5px;
}

.account-progress-icon i:nth-child(2) {
    height: 9px;
}

.account-progress-icon i:nth-child(3) {
    height: 13px;
}

.account-settings-icon {
    font-family: "Segoe UI Symbol", sans-serif;
}

.account-dropdown .account-logout {
    margin-top: 6px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 9px 9px;
    color: #a43a36;
}

.account-dropdown .account-logout .account-menu-icon {
    color: #c03b35;
    background: #fff0ef;
}

.account-dropdown .account-logout:hover,
.account-dropdown .account-logout:focus-visible {
    color: #a52621;
    background: #fff0ef;
}

.account-dropdown .account-logout:disabled {
    cursor: wait;
    opacity: 0.55;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--blue);
    border-radius: 11px;
    box-shadow: 0 10px 24px rgba(29, 93, 243, 0.22);
    font-weight: 800;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover {
    background: var(--blue-dark);
    box-shadow: 0 13px 28px rgba(29, 93, 243, 0.29);
    transform: translateY(-2px);
}

.dropdown {
    position: absolute;
    z-index: 60;
    top: calc(100% - 4px);
    left: 0;
    padding: 12px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.compact-dropdown {
    width: 350px;
}

.compact-dropdown > a {
    padding: 11px;
    display: flex;
    gap: 12px;
    border-radius: 11px;
}

.compact-dropdown > a:hover {
    background: #f6f8fc;
}

.compact-dropdown strong,
.compact-dropdown small {
    display: block;
}

.compact-dropdown strong {
    margin-bottom: 2px;
    font-size: 14px;
}

.compact-dropdown small {
    color: var(--muted);
    font-size: 12px;
}

.menu-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 10px;
    font-weight: 900;
}

.icon-blue {
    color: var(--blue);
    background: var(--blue-soft);
}

.icon-red {
    color: var(--red);
    background: #fff0ef;
}

.icon-violet {
    color: #8158e8;
    background: #f1edff;
}

.icon-amber {
    color: #b66b00;
    background: #fff4dc;
}

.icon-green {
    color: #167555;
    background: #e5f7f0;
    font-size: 12px;
}

.mobile-toggle,
.mobile-nav {
    display: none;
}

.map-hero {
    position: relative;
    width: min(1180px, calc(100% - 40px));
    min-height: 550px;
    margin: 0 auto;
    padding: 78px 0 88px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    align-items: center;
    gap: 92px;
}

.map-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -130px;
    right: -210px;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(29, 93, 243, 0.10), rgba(29, 93, 243, 0) 68%);
}

.eyebrow {
    margin: 0 0 17px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow span {
    width: 22px;
    height: 3px;
    background: var(--red);
    border-radius: 3px;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(49px, 5.3vw, 72px);
    line-height: 0.99;
    letter-spacing: -0.045em;
}

.hero-copy h1 em {
    position: relative;
    color: var(--blue);
    font-style: normal;
}

.hero-copy h1 em::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 1px;
    left: 2px;
    height: 5px;
    background: var(--red);
    border-radius: 100%;
    transform: rotate(-1deg);
    opacity: 0.85;
}

.hero-lead {
    max-width: 610px;
    margin: 27px 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.primary-button {
    min-height: 54px;
    padding: 0 22px;
    gap: 14px;
}

.hero-note {
    max-width: 210px;
    color: #8a93a7;
    font-size: 11px;
    line-height: 1.5;
}

.progress-cta {
    position: relative;
    padding: 32px;
    overflow: hidden;
    border: 1px solid #d9e2f7;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), #f4f7ff);
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(31, 51, 92, 0.15);
}

.progress-cta::before {
    content: "";
    position: absolute;
    top: -105px;
    right: -78px;
    width: 245px;
    height: 245px;
    background: rgba(29, 93, 243, 0.09);
    border-radius: 50%;
}

.panel-kicker {
    position: relative;
    margin: 0 0 4px;
    color: var(--blue);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.progress-cta h2 {
    position: relative;
    max-width: 360px;
    margin: 6px 0 13px;
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.progress-cta-lead {
    position: relative;
    margin: 0;
    max-width: 410px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.progress-benefits {
    position: relative;
    margin: 22px 0;
    padding: 0;
    list-style: none;
}

.progress-benefits li {
    padding: 9px 0;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #46516a;
    font-size: 12px;
    font-weight: 800;
}

.progress-benefits li > span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #167555;
    background: #e5f7f0;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
}

.progress-preview {
    position: relative;
    padding: 16px;
    border: 1px solid #e0e6f2;
    background: #fff;
    border-radius: 14px;
}

.progress-preview > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 11px;
}

.progress-preview > div strong {
    font-size: 12px;
}

.progress-preview > div span,
.progress-preview small {
    color: var(--muted);
    font-weight: 700;
}

.progress-preview > i {
    height: 8px;
    margin: 12px 0 8px;
    display: block;
    overflow: hidden;
    background: #e9edf5;
    border-radius: 999px;
}

.progress-preview > i > b {
    width: 57%;
    height: 100%;
    display: block;
    background: linear-gradient(90deg, var(--blue), #5a82f8);
    border-radius: inherit;
}

.progress-preview small {
    font-size: 10px;
}

.progress-cta-actions {
    position: relative;
    margin-top: 20px;
    display: grid;
    gap: 11px;
}

.progress-cta-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--blue);
    border-radius: 11px;
    box-shadow: 0 11px 24px rgba(29, 93, 243, 0.22);
    font-size: 13px;
    font-weight: 900;
    transition: background 150ms ease, transform 150ms ease;
}

.progress-cta-button:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.progress-sign-in {
    color: #68738a;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
}

.progress-sign-in:hover {
    color: var(--blue);
}

/* Personal learning program ------------------------------------------------ */
.progress-page {
    width: min(1120px, calc(100% - 40px));
    min-height: calc(100vh - 158px);
    margin: 0 auto;
    padding: 34px 0 92px;
}

.progress-hero {
    margin-bottom: 24px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--line);
}

.progress-hero h1 {
    max-width: 720px;
    margin: 5px 0 7px;
    color: var(--ink);
    font-size: clamp(1.55rem, 2.4vw, 1.9rem);
    line-height: 1.2;
    letter-spacing: -.03em;
}

.progress-hero > div > p:last-child {
    max-width: 760px;
    margin: 0;
    color: #59647c;
    font-size: .86rem;
    line-height: 1.55;
}

.progress-page-error {
    margin: 20px 0;
    padding: 17px 19px;
    color: #a52621;
    border: 1px solid #f2c7c4;
    border-radius: 14px;
    background: #fff5f4;
    font-weight: 750;
}

.level-onboarding {
    border: 1px solid #d7e2f7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 49, 88, .055);
    overflow: hidden;
}

.level-onboarding-intro {
    padding: 26px 28px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    background:
        radial-gradient(circle at 95% 0%, rgba(29, 93, 243, .12), transparent 34%),
        linear-gradient(145deg, #fff, #f7f9ff);
}

.level-onboarding-mark {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(145deg, #173b91, #1d5df3);
    box-shadow: 0 10px 22px rgba(29, 93, 243, .2);
    font-size: 19px;
    font-weight: 950;
    letter-spacing: -.04em;
}

.level-onboarding h2,
.learning-program-body h2,
.progress-section-heading h2 {
    margin: 0;
    color: var(--ink);
    letter-spacing: -.035em;
}

.level-onboarding h2 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
.level-onboarding-intro p:not(.page-eyebrow) { max-width: 700px; margin: 8px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }

.progress-page .profile-primary-button {
    min-height: 40px;
    padding: 0 15px;
    color: #fff;
    border: 0;
    border-radius: 8px;
    background: var(--blue);
    box-shadow: 0 7px 16px rgba(29, 93, 243, .18);
    cursor: pointer;
    font: inherit;
    font-size: .75rem;
    font-weight: 900;
}

.progress-page .profile-primary-button:hover { background: var(--blue-dark); }
.progress-page .profile-primary-button:disabled { cursor: wait; opacity: .58; }

.self-assessment-form { padding: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; border-top: 1px solid var(--line); }
.self-assessment-question { min-width: 0; margin: 0; padding: 18px; border: 1px solid #dce3ef; border-radius: 12px; background: #fbfcff; }
.self-assessment-question legend { padding: 0 5px; color: var(--ink); font-size: .92rem; font-weight: 900; letter-spacing: -.02em; }
.self-assessment-question legend > span { width: 26px; height: 26px; margin-right: 7px; display: inline-grid; place-items: center; color: #fff; border-radius: 8px; background: var(--blue); font-size: 11px; vertical-align: middle; }
.self-assessment-question > p { margin: 4px 0 15px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.self-assessment-options { display: grid; gap: 7px; }
.self-assessment-options label { padding: 10px 11px; display: grid; grid-template-columns: 17px minmax(0, 1fr); align-items: start; gap: 9px; border: 1px solid #e2e7f0; border-radius: 10px; background: #fff; cursor: pointer; transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease; }
.self-assessment-options label:hover { border-color: #a9bff2; background: #f6f9ff; }
.self-assessment-options label:has(input:checked) { border-color: var(--blue); background: #eff4ff; box-shadow: 0 0 0 2px rgba(29, 93, 243, .08); }
.self-assessment-options input { width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--blue); }
.self-assessment-options span { color: #3e4b63; font-size: 11px; font-weight: 700; line-height: 1.45; }
.self-assessment-options-compact, .self-assessment-usage-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.self-assessment-actions { grid-column: 1 / -1; padding: 20px 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 22px; border: 1px solid #cfdcf8; border-radius: 15px; background: #f3f7ff; }
.self-assessment-actions strong, .self-assessment-actions > div > span { display: block; }
.self-assessment-actions strong { color: var(--ink); font-size: 14px; }
.self-assessment-actions > div > span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.self-assessment-actions > [role="status"] { grid-column: 1 / -1; color: #a43a36; font-size: 11px; font-weight: 750; }
.program-actions { margin-top: 20px; display: flex; align-items: center; gap: 15px; }
.program-actions > span { color: var(--muted); font-size: 12px; font-weight: 700; }

.learning-program {
    border: 1px solid #d6e1f7;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(38, 56, 95, .08);
    overflow: hidden;
}

.learning-program > summary {
    padding: 20px 22px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    list-style: none;
}

.learning-program > summary::-webkit-details-marker { display: none; }
.program-summary-icon { width: 43px; height: 43px; display: grid; place-items: center; color: #fff; border-radius: 12px; background: var(--blue); font-weight: 900; }
.learning-program summary > span:nth-child(2) { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 11px; }
.learning-program summary small { grid-column: 1 / -1; color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.learning-program summary strong { color: var(--ink); font-size: 18px; }
.learning-program summary em { color: var(--muted); font-size: 12px; font-style: normal; font-weight: 650; }
.learning-program summary > i { width: 11px; height: 11px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform 160ms ease; }
.learning-program[open] summary > i { transform: rotate(225deg); }
.learning-program-body { padding: 26px; border-top: 1px solid var(--line); background: #fafbfe; }
.learning-program-body h2 { font-size: 24px; }
.learning-program-body > div:first-child > p { margin: 7px 0 20px; color: var(--muted); font-size: 13px; }
.intensity-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.intensity-options label { position: relative; cursor: pointer; }
.intensity-options input { position: absolute; opacity: 0; pointer-events: none; }
.intensity-options label > span { min-height: 135px; padding: 16px; display: flex; flex-direction: column; border: 1px solid #d9e0ed; border-radius: 13px; background: #fff; transition: border 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
.intensity-options input:checked + span { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 93, 243, .1); transform: translateY(-2px); }
.intensity-options input:focus-visible + span { outline: 3px solid rgba(29, 93, 243, .22); outline-offset: 2px; }
.intensity-options strong { color: var(--ink); font-size: 15px; }
.intensity-options em { margin-top: 4px; color: var(--blue); font-size: 11px; font-style: normal; font-weight: 850; }
.intensity-options small { margin-top: auto; padding-top: 17px; color: var(--muted); line-height: 1.45; }
.program-review-option { margin-top: 16px; padding: 14px 16px; display: flex; align-items: flex-start; gap: 11px; border: 1px solid #d9e0ed; border-radius: 13px; background: #fff; cursor: pointer; }
.program-review-option input { width: 17px; height: 17px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--blue); }
.program-review-option span { display: grid; gap: 3px; }
.program-review-option strong { color: var(--ink); font-size: 13px; }
.program-review-option small { color: var(--muted); font-size: 11px; line-height: 1.45; }

.progress-recalculation { padding: 13px 16px; display: flex; align-items: center; gap: 10px; color: #284a94; border: 1px solid #cddafa; border-radius: 12px; background: #f2f6ff; font-size: 12px; font-weight: 750; }
.progress-recalculation > span { width: 14px; height: 14px; border: 2px solid #b7c8ee; border-top-color: var(--blue); border-radius: 50%; animation: progress-spin .8s linear infinite; }
@keyframes progress-spin { to { transform: rotate(360deg); } }

.progress-level-overview { display: grid; grid-template-columns: 310px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 12px 16px; }
.current-level-card, .level-progress-card, .progress-statistics, .learning-calendar, .weak-topics { border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 12px 35px rgba(40, 57, 94, .065); }
.current-level-card { padding: 25px; grid-row: 1 / span 2; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; color: #dce8ff; border: 0; background: linear-gradient(145deg, #173b91, #1d5df3); }
.current-level-card .page-eyebrow { color: #b9ceff; }
.current-level-line { margin-top: 17px; }
.current-level-line strong { color: #fff; font-size: 70px; line-height: .95; letter-spacing: -.075em; }
.current-level-skills { margin: 21px 0 0; display: grid; align-content: start; }
.current-level-skills div { padding: 8px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255, 255, 255, .16); }
.current-level-skills dt { font-size: 11px; font-weight: 750; }
.current-level-skills dd { margin: 0; color: #fff; font-size: 14px; font-weight: 900; }
.current-level-card a { width: fit-content; margin-top: 25px; align-self: end; display: inline-block; color: #fff; text-decoration: none; font-size: 12px; font-weight: 850; }
.level-progress-card { padding: 18px 22px; display: grid; grid-template-rows: auto auto; }
.level-progress-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.level-progress-card h2 { margin: 0; color: var(--ink); font-size: 21px; letter-spacing: -.03em; }
.level-progress-card header > span { padding: 7px 10px; color: var(--blue); border-radius: 9px; background: var(--blue-soft); font-size: 11px; font-weight: 900; white-space: nowrap; }
.level-progress-body { margin-top: 13px; display: grid; }
.level-progress-meter { display: grid; gap: 9px; }
.level-progress-track { --level-progress: 0%; height: 11px; overflow: hidden; border-radius: 10px; background: #e8edf6; }
.level-progress-track i { width: var(--level-progress); height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #5c88f8); transition: width 350ms ease; }
.level-progress-forecast { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; text-align: center; }

.progress-statistics, .learning-calendar, .weak-topics { padding: 26px; }
.progress-section-heading { margin-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; }
.progress-section-heading h2 { font-size: 26px; }
.progress-section-heading > p { max-width: 420px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; text-align: right; }
.progress-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.progress-stat-grid article { min-height: 126px; padding: 18px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fcfdff; }
.progress-stat-grid article:nth-child(3n) { border-right: 0; }
.progress-stat-grid article:nth-last-child(-n+3) { border-bottom: 0; }
.progress-stat-grid article > span { color: var(--muted); font-size: 11px; font-weight: 800; }
.progress-stat-value { margin-top: 9px; display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; }
.progress-stat-grid strong { color: var(--ink); font-size: 31px; letter-spacing: -.045em; }
.progress-stat-grid .progress-stat-delta { color: #278b67; font-size: 11px; font-weight: 850; letter-spacing: 0; white-space: nowrap; }
.progress-stat-grid small { margin-top: auto; color: #8c96aa; font-size: 10px; }
.progress-level-overview .progress-statistics { padding: 17px 20px; }
.progress-level-overview .progress-section-heading { margin-bottom: 10px; }
.progress-level-overview .progress-section-heading h2 { font-size: 20px; }
.progress-level-overview .progress-stat-grid article { min-height: 82px; padding: 11px 13px; }
.progress-level-overview .progress-stat-value { margin-top: 5px; }
.progress-level-overview .progress-stat-grid strong { font-size: 25px; }
.progress-level-overview .progress-stat-grid small { font-size: 9px; }

.calendar-empty, .weak-topics-empty { padding: 25px; color: var(--muted); border: 1px dashed #cad4e8; border-radius: 13px; background: #fafbfe; text-align: center; font-size: 13px; }
.calendar-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.calendar-day { min-width: 0; border: 1px solid #dce3ef; border-radius: 14px; overflow: hidden; }
.calendar-day.is-today { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 93, 243, .12), 0 12px 25px rgba(29, 93, 243, .11); }
.calendar-day.is-today > header { background: #edf3ff; }
.calendar-day.is-today header > span { color: #fff; background: var(--blue); }
.calendar-day > header { padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #e4e9f2; background: #f8faff; }
.calendar-day time { display: flex; align-items: baseline; gap: 6px; }
.calendar-day time strong { color: var(--ink); font-size: 13px; }
.calendar-day time span { color: var(--muted); font-size: 11px; }
.calendar-day header > span { padding: 5px 7px; color: #5d6a82; border-radius: 7px; background: #e9edf5; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.calendar-day.status-fire header > span { color: #a95813; background: #fff0db; }
.calendar-day.status-regular header > span { color: #176847; background: #e5f6ef; }
.calendar-day.status-missed header > span { color: #a43a36; background: #fff0ef; }
.calendar-day.is-complete-day { border-color: #75bd9f; background: #f7fcfa; box-shadow: 0 0 0 2px rgba(44, 152, 113, .08); }
.calendar-day.is-complete-day > header { border-bottom-color: #cce8dc; background: #eaf8f2; }
.calendar-day.is-complete-day header > span { color: #fff; background: #278b67; }
.calendar-day.is-incomplete-day { border-color: #e1a19b; background: #fffafa; box-shadow: 0 0 0 2px rgba(180, 65, 57, .07); }
.calendar-day.is-incomplete-day > header { border-bottom-color: #efd0cd; background: #fff0ef; }
.calendar-day.is-incomplete-day header > span { color: #fff; background: #b54b43; }
.calendar-day ul { margin: 0; padding: 10px; display: grid; gap: 3px; list-style: none; }
.calendar-day li { padding: 7px; display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 7px; border-radius: 7px; }
.calendar-day li:hover { background: #f7f9fc; }
.calendar-day li i { width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid #cbd4e4; border-radius: 5px; color: #fff; font-size: 10px; font-style: normal; }
.calendar-day li.is-complete i { border-color: #2c9871; background: #2c9871; }
.calendar-day li.is-complete a { color: #8590a2; text-decoration: line-through; }
.calendar-day a, .calendar-day li > span { min-width: 0; color: var(--ink); text-decoration: none; font-size: 11px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calendar-day li > span { color: var(--muted); }

.weak-topic-list { display: grid; gap: 10px; }
.weak-topic-list article { padding: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 15px; border: 1px solid #ecd9d5; border-radius: 13px; background: #fffafa; }
.weak-topic-list article > div { min-width: 220px; flex: 1 1 320px; display: grid; gap: 3px; }
.weak-topic-list span { color: #ae5148; font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.weak-topic-list strong { color: var(--ink); font-size: 15px; }
.weak-topic-list small { color: var(--muted); }
.weak-topic-list a { padding: 9px 12px; color: #a43a36; border: 1px solid #ecc6c2; border-radius: 9px; text-decoration: none; font-size: 11px; font-weight: 900; white-space: nowrap; }

@media (max-width: 900px) {
    .level-onboarding-intro { grid-template-columns: auto 1fr; }
    .intensity-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .progress-level-overview { grid-template-columns: 1fr; }
    .current-level-card { grid-row: auto; }
    .calendar-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
    .progress-page { width: calc(100% - 28px); padding: 28px 0 65px; }
    .progress-hero { margin-bottom: 20px; padding-bottom: 16px; }
    .progress-hero h1 { font-size: 1.5rem; }
    .progress-lock { grid-template-columns: 1fr; }
    .progress-lock > a { width: 100%; box-sizing: border-box; text-align: center; white-space: normal; }
    .level-onboarding-intro { padding: 22px 20px; grid-template-columns: 1fr; gap: 14px; }
    .level-onboarding-mark { width: 48px; height: 48px; border-radius: 14px; font-size: 17px; }
    .self-assessment-form { padding: 20px; }
    .self-assessment-form, .intensity-options, .progress-stat-grid, .calendar-days { grid-template-columns: 1fr; }
    .self-assessment-options-compact, .self-assessment-usage-options { grid-template-columns: 1fr; }
    .self-assessment-actions { grid-column: 1; grid-template-columns: 1fr; }
    .self-assessment-actions .profile-primary-button { justify-self: start; }
    .progress-stat-grid article { border-right: 0; }
    .progress-stat-grid article:not(:last-child) { border-bottom: 1px solid var(--line); }
    .learning-program summary > span:nth-child(2) { grid-template-columns: 1fr; }
    .learning-program summary em { margin-top: 4px; }
    .progress-section-heading { align-items: flex-start; flex-direction: column; }
    .progress-section-heading > p { text-align: left; }
    .program-actions { align-items: flex-start; flex-direction: column; }
    .weak-topic-list article > div { min-width: 0; flex-basis: 100%; }
    .weak-topic-list a { max-width: 100%; white-space: normal; }
}

.map-intro {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 45px;
    border-bottom: 1px solid var(--line);
}

.map-intro .eyebrow {
    margin-bottom: 0;
}

.map-intro h2 {
    max-width: 720px;
    margin: 5px 0 7px;
    font-size: clamp(1.55rem, 2.4vw, 1.9rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.map-intro > div > p:last-child {
    max-width: 760px;
    margin: 0;
    color: #59647c;
    font-size: 0.86rem;
    line-height: 1.55;
}

.map-summary {
    margin: 0;
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 13px;
}

.map-summary div {
    min-width: 100px;
    padding: 12px 16px;
    border-left: 1px solid var(--line);
    text-align: center;
}

.map-summary div:first-child {
    border-left: 0;
}

.map-summary dt {
    color: var(--blue);
    font-size: 17px;
    font-weight: 900;
}

.map-summary dd {
    margin: 1px 0 0;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.roadmap-shell {
    position: relative;
    padding: 26px max(20px, calc((100% - 1180px) / 2)) 90px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(47, 191, 143, 0.05), transparent 26%),
        radial-gradient(circle at 88% 52%, rgba(118, 87, 232, 0.05), transparent 28%),
        #fff;
}

.roadmap-loading {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
}

.roadmap-loading span {
    width: 10px;
    height: 10px;
    background: var(--blue);
    border-radius: 50%;
    animation: bounce 900ms infinite alternate;
}

.roadmap-loading span:nth-child(2) {
    animation-delay: 150ms;
}

.roadmap-loading span:nth-child(3) {
    animation-delay: 300ms;
}

.roadmap-loading p {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 700;
}

@keyframes bounce {
    to {
        transform: translateY(-8px);
        opacity: 0.4;
    }
}

.roadmap-error,
.noscript-roadmap {
    max-width: 680px;
    margin: 40px auto;
    padding: 28px;
    border: 1px solid #ffd5d1;
    background: #fff6f5;
    border-radius: 16px;
    text-align: center;
}

.roadmap-error p {
    margin-bottom: 0;
    color: var(--muted);
}

.roadmap-tree {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 5px;
}

.roadmap-tree::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 38px;
    bottom: 80px;
    left: 45px;
    width: 5px;
    background: linear-gradient(#26a77c 0 19%, #2d74ee 21% 39%, #7657e8 41% 59%, #ee9d39 61% 79%, #df4f72 81% 100%);
    border-radius: 6px;
    opacity: 0.75;
}

.tree-start {
    position: relative;
    z-index: 2;
    margin: 0 0 25px 4px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tree-start span {
    padding: 7px 12px;
    color: #107554;
    background: #e1f8ef;
    border: 1px solid #bdebdc;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.level-block {
    --level-color: #1d5df3;
    --level-soft: #eaf0ff;
    --level-border: #c8d5f7;
    position: relative;
    z-index: 1;
    margin-bottom: 88px;
    scroll-margin-top: 105px;
}

.level-block:not(:last-of-type) {
    margin-bottom: 8px;
}

.level-mint {
    --level-color: #199b70;
    --level-soft: #e2f8f0;
    --level-border: #bce9d9;
}

.level-blue {
    --level-color: #1d5df3;
    --level-soft: #e9f0ff;
    --level-border: #c6d5fc;
}

.level-violet {
    --level-color: #7657d9;
    --level-soft: #f0ecff;
    --level-border: #d8cff9;
}

.level-amber {
    --level-color: #c47a1d;
    --level-soft: #fff1dc;
    --level-border: #f5d8aa;
}

.level-rose {
    --level-color: #ca4566;
    --level-soft: #ffeaf0;
    --level-border: #f4c9d5;
}

.level-block.is-current-level .level-title {
    border-width: 2px;
    box-shadow: 0 14px 36px color-mix(in srgb, var(--level-color) 16%, transparent);
}

.vocabulary-target .current-level-flag {
    margin-bottom: 3px;
    padding: 3px 6px;
    justify-self: end;
    color: #fff;
    border-radius: 5px;
    background: var(--level-color);
    letter-spacing: .05em;
}

.level-heading {
    position: relative;
    z-index: 3;
    margin-left: 9.5px;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
}

.level-medallion {
    position: relative;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--level-color);
    border: 8px solid #fff;
    border-radius: 50%;
    box-shadow: 0 10px 26px color-mix(in srgb, var(--level-color) 27%, transparent);
}

.level-medallion::before {
    content: "";
    position: absolute;
    inset: -13px;
    z-index: -1;
    border: 2px solid var(--level-border);
    border-radius: 50%;
    background: var(--level-soft);
}

.level-medallion span {
    font-size: 20px;
    font-weight: 900;
}

.level-title {
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid var(--level-border);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 17px;
    box-shadow: 0 12px 32px rgba(33, 49, 84, 0.07);
}

.level-label {
    color: var(--level-color);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.level-title h3 {
    margin: 3px 0 2px;
    font-size: 22px;
    letter-spacing: -0.015em;
}

.level-title p {
    max-width: 690px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.vocabulary-target {
    min-width: 176px;
    padding: 10px 13px;
    display: grid;
    border: 1px solid var(--level-border);
    background: var(--level-soft);
    border-radius: 11px;
    text-align: right;
}

.vocabulary-target > span {
    color: var(--level-color);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.vocabulary-target strong {
    margin: 1px 0;
    font-size: 15px;
}

.vocabulary-target small {
    color: #8a93a6;
    font-size: 8px;
}

.level-stages {
    position: relative;
    margin-left: 92px;
    padding-top: 25px;
}

.level-stages::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 38px;
    left: 31px;
    width: 2px;
    background: var(--level-border);
}

.study-stage {
    position: relative;
    padding: 18px 0 30px 76px;
}

.study-stage::before {
    content: "";
    position: absolute;
    box-sizing: border-box;
    top: 34px;
    left: 24px;
    width: 16px;
    height: 16px;
    background: var(--level-color);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--level-border);
}

.study-stage::after {
    content: "";
    position: absolute;
    top: 41px;
    left: 42px;
    width: 34px;
    height: 2px;
    background: var(--level-border);
}

.stage-heading {
    min-height: 48px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stage-order {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--level-color);
    background: var(--level-soft);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 900;
}

.stage-heading small,
.stage-heading h4 {
    display: block;
}

.stage-heading small {
    color: #9aa2b3;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.stage-heading h4 {
    margin: 1px 0 0;
    font-size: 16px;
}

.relation-label {
    margin-left: auto;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--level-color);
    background: var(--level-soft);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
}

.relation-label i {
    width: 18px;
    height: 2px;
    display: block;
    background: var(--level-color);
    box-shadow: -3px -3px 0 -1px var(--level-color), 3px 3px 0 -1px var(--level-color);
}

.stage-topics {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
}

.stage-topics::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -8px;
    right: calc(16.666667% - 4.666667px);
    left: calc(16.666667% - 4.666667px);
    height: 2px;
    background: var(--level-border);
}

.topic-card {
    position: relative;
}

.topic-card::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    width: 2px;
    height: 8px;
    background: var(--level-border);
}

.topic-card:hover {
    z-index: 3;
}

.topic-card:hover > button {
    box-shadow: 0 17px 37px rgba(29, 45, 79, 0.12);
    transform: translateY(-3px);
}

.topic-card.is-expanded {
    z-index: 3;
}

.topic-card.is-expanded > button {
    border-color: var(--level-color);
    box-shadow: 0 13px 31px color-mix(in srgb, var(--level-color) 13%, transparent);
}

.topic-card > button {
    width: 100%;
    padding: 16px;
    display: grid;
    grid-template-columns: 41px minmax(0, 1fr) 19px;
    align-items: center;
    gap: 10px;
    position: relative;
    border: 1px solid var(--level-border);
    color: inherit;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(29, 45, 79, 0.06);
    text-align: left;
    cursor: pointer;
    transition: transform 170ms ease, box-shadow 170ms ease;
}

.topic-card.is-user-position { scroll-margin-top: 180px; }

.roadmap-user-marker {
    position: absolute;
    z-index: 4;
    top: -12px;
    left: 11px;
    padding: 4px 7px;
    color: #fff;
    border-radius: 6px;
    background: var(--level-color);
    box-shadow: 0 5px 11px color-mix(in srgb, var(--level-color) 24%, transparent);
    font-size: 7px;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.roadmap-topic-status {
    position: absolute;
    right: 9px;
    bottom: 5px;
    color: #7b8496;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.topic-symbol {
    width: 41px;
    height: 41px;
    display: grid;
    place-items: center;
    color: var(--level-color);
    background: var(--level-soft);
    border-radius: 11px;
    font-size: 11px;
    font-weight: 900;
}

.topic-copy {
    min-width: 0;
}

.topic-copy small,
.topic-copy strong {
    display: block;
}

.topic-copy small {
    margin-bottom: 2px;
    color: #969eb0;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.topic-copy strong {
    font-size: 12px;
    line-height: 1.3;
}

.topic-state {
    color: var(--level-color);
    font-size: 17px;
    font-weight: 700;
    text-align: right;
}

.stage-detail-stack {
    position: relative;
}

.stage-detail-shell {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    opacity: 0;
    transform: translateY(-5px);
    transition:
        grid-template-rows 280ms cubic-bezier(0.22, 1, 0.36, 1),
        margin-top 280ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 180ms ease,
        transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.stage-detail-shell.is-open {
    grid-template-rows: 1fr;
    margin-top: 14px;
    opacity: 1;
    transform: translateY(0);
}

.stage-detail-clip {
    min-height: 0;
    overflow: hidden;
}

.topic-details {
    padding: 18px;
    border: 1px solid var(--level-border);
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 14px 34px rgba(29, 45, 79, 0.08);
}

.topic-detail-heading {
    display: grid;
    grid-template-columns: 41px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 11px;
}

.topic-detail-heading small,
.topic-detail-heading strong {
    display: block;
}

.topic-detail-heading small {
    color: var(--level-color);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.topic-detail-heading strong {
    margin-top: 2px;
    font-size: 14px;
}

.topic-detail-heading > button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    color: #8490a5;
    background: #f1f3f7;
    border-radius: 9px;
    font-size: 17px;
    cursor: pointer;
}

.topic-detail-heading > button:hover {
    color: var(--level-color);
    background: var(--level-soft);
}

.topic-details > p {
    margin: 14px 0 11px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.atomic-map {
    margin: 13px 0 16px;
    padding: 15px;
    border: 1px solid var(--level-border);
    background: color-mix(in srgb, var(--level-soft) 38%, #fff);
    border-radius: 12px;
}

.atomic-map > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.atomic-map > header > span {
    color: var(--level-color);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.atomic-map > header > strong {
    color: #7d879c;
    font-size: 9px;
}

.atomic-map ol {
    position: relative;
    margin: 12px 0 0;
    padding: 27px 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    list-style: none;
}

.atomic-map ol::before {
    content: "";
    position: absolute;
    top: 12px;
    right: calc(16.666667% - 3.333333px);
    left: calc(16.666667% - 3.333333px);
    height: 2px;
    background: var(--level-border);
}

.atomic-map ol::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 13px;
    background: var(--level-border);
}

.atomic-node {
    position: relative;
    padding: 12px;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    border: 1px solid var(--level-border);
    background: color-mix(in srgb, var(--level-soft) 24%, #fff);
    border-radius: 10px;
}

.roadmap-tree.is-guest .atomic-node {
    border-color: var(--level-border);
    background: color-mix(in srgb, var(--level-soft) 24%, #fff);
}

.roadmap-tree.is-guest .atomic-index {
    color: var(--level-color);
    background: var(--level-soft);
}

.atomic-node::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    width: 2px;
    height: 15px;
    background: var(--level-border);
}

.atomic-progress {
    float: right;
    margin: 0 0 4px 8px;
    padding: 3px 6px;
    color: #0b684a;
    border: 1px solid #b8dfce;
    background: #e4f6ee;
    border-radius: 999px;
    font-size: 7px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.atomic-index {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    color: var(--level-color);
    background: var(--level-soft);
    border-radius: 8px;
    font-size: 8px;
    font-weight: 900;
}

.atomic-node > div > strong {
    display: block;
    font-size: 10px;
    line-height: 1.35;
}

.atomic-node > div > p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.45;
}

.atomic-read-link {
    width: fit-content;
    margin-top: 9px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--level-color);
    font-size: 9px;
    font-weight: 900;
}

.atomic-read-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.american-note {
    margin-top: 8px;
    padding: 7px 8px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    border: 1px solid #cbd9ff;
    background: #f2f6ff;
    border-radius: 7px;
}

.american-note > span {
    min-width: 22px;
    padding: 2px 4px;
    color: #fff;
    background: var(--blue);
    border-radius: 4px;
    font-size: 7px;
    font-weight: 900;
    text-align: center;
}

.american-note > p {
    margin: 0;
    color: #52698d;
    font-size: 8px;
    line-height: 1.45;
}

.prerequisites {
    margin-bottom: 12px;
}

.prerequisites > small {
    display: block;
    margin-bottom: 5px;
    color: #9aa2b4;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.prerequisites div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.prerequisites span {
    padding: 4px 6px;
    color: #657087;
    background: #f1f3f7;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 700;
}

.topic-details > a {
    color: var(--level-color);
    font-size: 10px;
    font-weight: 900;
}

.tree-finish {
    position: relative;
    z-index: 3;
    width: 295px;
    margin: -10px auto 0;
    padding: 21px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #d84668, #ee718f);
    border: 7px solid #fff;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(202, 69, 102, 0.25);
    text-align: center;
}

.tree-finish i {
    width: 34px;
    height: 34px;
    margin-bottom: 7px;
    display: grid;
    place-items: center;
    color: #d34465;
    background: #fff;
    border-radius: 50%;
    font-style: normal;
}

.tree-finish strong {
    font-size: 16px;
}

.tree-finish span {
    margin-top: 3px;
    opacity: 0.82;
    font-size: 9px;
}

.method-note {
    max-width: 700px;
    margin: 45px auto 0;
    color: #929aad;
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

.site-footer {
    width: min(1180px, calc(100% - 40px));
    min-height: 110px;
    margin: 0 auto;
    border-top: 1px solid #e0e4ec;
    display: flex;
    align-items: center;
    gap: 34px;
    color: var(--muted);
    font-size: 12px;
}

.footer-brand {
    color: var(--ink);
    font-size: 14px;
}

.footer-brand img {
    width: 116px;
}

.site-footer p:last-child {
    margin-left: auto;
}

@media (max-width: 1060px) {
    .header-inner {
        gap: 24px;
    }

    .nav-link,
    .nav-trigger {
        padding-inline: 9px;
    }

    .map-hero {
        gap: 48px;
    }

    .level-stages {
        margin-left: 70px;
    }

    .stage-topics {
        grid-template-columns: 1fr;
    }

    .stage-topics::before,
    .topic-card::before {
        display: none;
    }
}

@media (max-width: 900px) {
    .desktop-nav,
    .header-actions > .sign-in {
        display: none;
    }

    .mobile-toggle {
        width: 42px;
        height: 42px;
        padding: 10px;
        display: grid;
        place-content: center;
        gap: 4px;
        border: 1px solid var(--line);
        background: #fff;
        border-radius: 10px;
    }

    .mobile-toggle span {
        width: 19px;
        height: 2px;
        display: block;
        background: var(--ink);
        border-radius: 2px;
    }

    .mobile-nav {
        max-height: calc(100vh - 78px);
        padding: 12px 20px 22px;
        display: block;
        overflow-y: auto;
        border-top: 1px solid var(--line);
        background: #fff;
    }

    .mobile-nav > a,
    .mobile-nav summary {
        padding: 14px 4px;
        display: block;
        border-bottom: 1px solid var(--line);
        font-weight: 800;
    }

    .mobile-nav summary {
        cursor: pointer;
    }

    .mobile-nav details > a {
        padding: 9px 14px;
        display: block;
        color: var(--muted);
        font-size: 14px;
        font-weight: 700;
    }

    .mobile-nav details > .mobile-practice-link {
        padding-block: 10px;
    }

    .mobile-practice-link strong,
    .mobile-practice-link small {
        display: block;
    }

    .mobile-practice-link strong {
        color: #4d5770;
        font-size: 14px;
    }

    .mobile-practice-link small {
        margin-top: 2px;
        color: #929bad;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.4;
    }

    .mobile-nav details p {
        margin: 14px 14px 6px;
        color: #9aa2b4;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .mobile-actions {
        padding-top: 18px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 20px;
        font-weight: 800;
    }

    .map-hero {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-copy .eyebrow,
    .hero-actions {
        justify-content: center;
    }

    .hero-lead {
        margin-inline: auto;
    }

    .progress-cta {
        width: min(520px, 100%);
        margin: 0 auto;
    }

    .map-intro {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 650px) {
    .header-inner {
        width: calc(100% - 28px);
        height: 70px;
    }

    .brand {
        font-size: 15px;
    }

    .brand img {
        width: 120px;
        height: auto;
    }

    .map-hero {
        width: calc(100% - 28px);
        padding: 58px 0 66px;
    }

    .hero-copy h1 {
        font-size: clamp(43px, 13vw, 58px);
    }

    .hero-lead {
        font-size: 16px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-note {
        max-width: none;
    }

    .progress-cta {
        padding: 22px;
    }

    .map-intro {
        width: calc(100% - 28px);
        padding-top: 28px;
    }

    .map-intro h2 {
        font-size: 30px;
    }

    .map-summary {
        width: 100%;
    }

    .map-summary div {
        min-width: 0;
        flex: 1;
        padding-inline: 8px;
    }

    .roadmap-shell {
        padding-inline: 14px;
    }

    .roadmap-tree::before {
        left: 37px;
    }

    .level-block {
        margin-bottom: 72px;
    }

    .level-block:not(:last-of-type) {
        margin-bottom: 8px;
    }

    .level-heading {
        margin-left: 11px;
        grid-template-columns: 65px minmax(0, 1fr);
    }

    .level-medallion {
        width: 57px;
        height: 57px;
        border-width: 6px;
    }

    .level-medallion::before {
        inset: -9px;
    }

    .level-medallion span {
        font-size: 16px;
    }

    .level-title {
        padding: 15px;
        align-items: flex-start;
        flex-direction: column;
    }

    .level-title h3 {
        font-size: 17px;
    }

    .level-title p {
        font-size: 10px;
    }

    .vocabulary-target {
        width: 100%;
        min-width: 0;
        text-align: left;
    }

    .level-stages {
        margin-left: 37px;
        padding-top: 16px;
    }

    .level-stages::before {
        left: 0;
    }

    .study-stage {
        padding: 16px 0 25px 24px;
    }

    .study-stage::before {
        top: 25px;
        left: -7px;
    }

    .study-stage::after {
        top: 32px;
        left: 11px;
        width: 13px;
    }

    .stage-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .stage-order {
        width: 34px;
        height: 34px;
    }

    .relation-label {
        width: 100%;
        margin-left: 46px;
        justify-content: center;
    }

    .topic-card > button {
        padding: 14px;
    }

    .atomic-map ol {
        padding: 0 0 0 24px;
        grid-template-columns: 1fr;
    }

    .atomic-map ol::before {
        top: 14px;
        bottom: 14px;
        left: 8px;
        width: 2px;
        height: auto;
    }

    .atomic-map ol::after {
        display: none;
    }

    .atomic-node::before {
        top: 17px;
        left: -16px;
        width: 16px;
        height: 2px;
    }

    .tree-finish {
        width: calc(100% - 70px);
        margin-left: 70px;
    }

    .site-footer {
        padding: 24px 0;
        flex-wrap: wrap;
        gap: 10px 22px;
    }

    .site-footer p {
        margin: 0;
    }

    .site-footer p:last-child {
        width: 100%;
        margin-left: 0;
    }
}

/* Authentication cover */
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(480px, 1.05fr) minmax(520px, 0.95fr);
    background: #fff;
}

.auth-cover-panel {
    position: relative;
    min-height: 100vh;
    padding: 46px clamp(42px, 6vw, 92px);
    display: flex;
    overflow: hidden;
    flex-direction: column;
    color: #fff;
    background:
        radial-gradient(circle at 84% 14%, rgba(255, 255, 255, 0.18) 0 2px, transparent 3px),
        radial-gradient(circle at 13% 77%, rgba(255, 255, 255, 0.16) 0 3px, transparent 4px),
        linear-gradient(145deg, #0f3da9 0%, #1d5df3 53%, #547fff 100%);
}

.auth-cover-panel::before,
.auth-cover-panel::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
}

.auth-cover-panel::before {
    right: -180px;
    bottom: -210px;
    width: 580px;
    height: 580px;
}

.auth-cover-panel::after {
    right: -68px;
    bottom: -95px;
    width: 340px;
    height: 340px;
    background: rgba(255, 255, 255, 0.04);
}

.auth-cover-brand,
.auth-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.auth-cover-brand {
    position: relative;
    z-index: 2;
    align-self: flex-start;
}

.auth-cover-brand img,
.auth-mobile-brand img {
    object-fit: contain;
}

.auth-cover-brand img {
    padding: 4px;
    background: #fff;
    border-radius: 13px;
}

.auth-cover-copy {
    position: relative;
    z-index: 2;
    max-width: 620px;
    margin: auto 0 42px;
}

.auth-kicker,
.auth-step {
    margin: 0 0 15px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-kicker {
    color: #dbe6ff;
}

.auth-cover-copy h1 {
    margin: 0;
    font-size: clamp(54px, 6vw, 88px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.auth-cover-copy h1 em {
    color: #ffdd72;
    font-style: normal;
}

.auth-cover-copy > p:last-child {
    max-width: 530px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.7;
}

.auth-level-path {
    position: relative;
    z-index: 2;
    max-width: 590px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
}

.auth-level-path span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
}

.auth-level-path span.is-active {
    color: var(--blue);
    background: #fff;
    box-shadow: 0 9px 25px rgba(6, 35, 109, 0.24);
}

.auth-level-path i {
    height: 1px;
    flex: 1;
    background: rgba(255, 255, 255, 0.28);
}

.auth-cover-card {
    position: relative;
    z-index: 2;
    max-width: 590px;
    padding: 20px 23px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(10, 39, 112, 0.2);
    border-radius: 17px;
    backdrop-filter: blur(14px);
}

.auth-cover-card span,
.auth-cover-card strong {
    display: block;
}

.auth-cover-card span {
    margin-bottom: 6px;
    color: #cbd9ff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.auth-cover-card strong {
    font-size: 17px;
    line-height: 1.45;
}

.auth-form-panel {
    min-height: 100vh;
    padding: 38px clamp(34px, 6vw, 92px);
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 100% 0, #edf3ff 0, transparent 29%),
        #fff;
}

.auth-form-wrap {
    width: min(100%, 460px);
}

.auth-back-link {
    margin-bottom: 50px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #6b7690;
    font-size: 13px;
    font-weight: 800;
}

.auth-back-link:hover,
.auth-label-row a:hover,
.auth-switch a:hover {
    color: var(--blue-dark);
}

.auth-mobile-brand {
    margin-bottom: 38px;
    display: none;
}

.auth-heading {
    margin-bottom: 30px;
}

.auth-step {
    color: var(--blue);
}

.auth-heading h2,
.auth-result h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(32px, 4vw, 43px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.auth-heading > p:last-child,
.auth-result > p {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.auth-form {
    display: grid;
    gap: 19px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field label,
.auth-label-row a {
    font-size: 13px;
    font-weight: 800;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-label-row a {
    color: var(--blue);
}

.auth-label-row > small {
    color: #8a94a8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-field input {
    width: 100%;
    height: 52px;
    border: 1px solid #dfe4ee;
    padding: 0 16px;
    color: var(--ink);
    background: #fff;
    border-radius: 11px;
    outline: none;
    font: inherit;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.auth-field input::placeholder {
    color: #a0a8ba;
}

.auth-field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(29, 93, 243, 0.1);
}

.auth-captcha-control {
    min-height: 52px;
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr);
    align-items: stretch;
    gap: 9px;
}

.auth-captcha-image-button {
    width: 156px;
    height: 52px;
    border: 1px solid #dbe3f2;
    padding: 4px;
    background: #f7f9fe;
    border-radius: 11px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.auth-captcha-image-button:hover {
    border-color: #b9c8e8;
    background: #f1f5ff;
}

.auth-captcha-image-button:focus-visible {
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 0 4px rgba(29, 93, 243, 0.1);
}

.auth-captcha-image {
    width: 100%;
    height: 42px;
    display: block;
    object-fit: contain;
    background: #eef3ff;
    border-radius: 7px;
    filter: saturate(0.68) contrast(1.06);
}

.auth-captcha-control > input {
    min-width: 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.auth-captcha-control > input::placeholder {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.auth-field input:disabled {
    color: #9199aa;
    background: #f4f5f8;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 67px;
}

.password-field > button {
    position: absolute;
    top: 50%;
    right: 9px;
    border: 0;
    padding: 7px 8px;
    color: var(--blue);
    background: transparent;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-field > button:hover {
    background: var(--blue-soft);
}

.auth-submit {
    min-height: 52px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--blue);
    border-radius: 11px;
    box-shadow: 0 12px 26px rgba(29, 93, 243, 0.22);
    font-weight: 900;
    cursor: pointer;
    transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.auth-submit:hover:not(:disabled) {
    background: var(--blue-dark);
    box-shadow: 0 15px 30px rgba(29, 93, 243, 0.28);
    transform: translateY(-1px);
}

.auth-submit:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.auth-text-action {
    width: max-content;
    border: 0;
    margin: -7px 0 0;
    padding: 0;
    color: var(--blue);
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.auth-text-action:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

.auth-text-action:disabled {
    cursor: wait;
    opacity: 0.55;
}

.auth-message {
    min-height: 0;
    display: none;
    position: relative;
    border: 1px solid transparent;
    padding: 11px 13px 11px 38px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.auth-message:not(:empty) {
    display: block;
}

.auth-message.is-error {
    color: #a52621;
    border-color: #ffd5d1;
    background: #fff0ef;
}

.auth-message.is-success {
    color: #12633f;
    border-color: #c9eedc;
    background: #eaf9f2;
}

.auth-message::before {
    content: "!";
    position: absolute;
    top: 12px;
    left: 13px;
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #d84c45;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.auth-message.is-success::before {
    content: "✓";
    background: #25875e;
}

.auth-help-links {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.auth-help-links a {
    min-height: 45px;
    border: 1px solid #e0e5ef;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #536079;
    background: #fafbfe;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.auth-help-links a:hover {
    color: var(--blue-dark);
    border-color: #c8d5f2;
    background: #f3f6ff;
}

.auth-help-links svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-divider {
    position: relative;
    margin: 29px 0 23px;
    color: #929bad;
    text-align: center;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-divider::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--line);
}

.auth-divider span {
    position: relative;
    z-index: 1;
    padding: 0 13px;
    background: #fff;
}

.auth-providers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-providers a,
.auth-providers button {
    min-height: 49px;
    border: 1px solid #dfe4ee;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 900;
	color: var(--ink);
	font-family: inherit;
	cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease;
}

.auth-providers a:hover,
.auth-providers button:hover:not(:disabled) {
    border-color: #bfc9dc;
    background: #f8faff;
}

.auth-providers button:disabled {
	opacity: .45;
	cursor: not-allowed;
}

.auth-social-consent {
	margin-bottom: 16px;
}

.auth-providers b {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.provider-google {
    color: #3155c6;
    border: 1px solid #d7def5;
    background: #fff;
}

.provider-apple {
    color: #fff;
    background: #111;
}

.auth-switch {
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.auth-switch {
    margin: 27px 0 0;
    font-weight: 700;
}

.auth-switch a {
    color: var(--blue);
    font-weight: 900;
}

.auth-result {
    text-align: center;
}

.auth-result .auth-step {
    margin-top: 24px;
}

.auth-result > p {
    margin-right: auto;
    margin-left: auto;
    max-width: 390px;
}

.auth-result > .auth-result-confirmation {
    max-width: 420px;
    text-wrap: pretty;
}

.auth-result > .auth-result-note {
    max-width: 420px;
    text-wrap: pretty;
}

.auth-result > .auth-result-confirmation strong {
    overflow-wrap: break-word;
    word-break: normal;
}

.auth-result .auth-submit {
    width: 100%;
    margin-top: 28px;
}

.auth-result .auth-text-action {
    margin: 16px auto 0;
}

.auth-result-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--blue);
    border-radius: 50%;
    box-shadow: 0 14px 34px rgba(29, 93, 243, 0.24);
    font-size: 28px;
    font-weight: 900;
}

.auth-result.is-error .auth-result-icon {
    background: var(--red);
    box-shadow: 0 14px 34px rgba(244, 67, 54, 0.2);
}

@media (max-width: 1050px) {
    .auth-shell {
        grid-template-columns: minmax(390px, 0.85fr) minmax(480px, 1.15fr);
    }

    .auth-cover-panel {
        padding: 38px;
    }

    .auth-cover-copy h1 {
        font-size: 57px;
    }

    .auth-cover-copy > p:last-child {
        font-size: 16px;
    }
}

@media (max-width: 840px) {
    .auth-shell {
        display: block;
        background: #fff;
    }

    .auth-cover-panel {
        display: none;
    }

    .auth-form-panel {
        min-height: 100vh;
        padding: 28px 24px 42px;
    }

    .auth-form-wrap {
        width: min(100%, 480px);
    }

    .auth-mobile-brand {
        display: inline-flex;
    }

    .auth-back-link {
        margin-bottom: 28px;
    }
}

@media (max-width: 480px) {
    .auth-form-panel {
        padding: 22px 18px 34px;
        place-items: start center;
    }

    .auth-heading h2,
    .auth-result h2 {
        font-size: 33px;
    }

    .auth-providers {
        grid-template-columns: 1fr;
    }

    .auth-captcha-control {
        grid-template-columns: 132px minmax(0, 1fr);
    }

    .auth-captcha-image-button {
        width: 132px;
    }

    .auth-help-links {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Article reader */
.article-page {
    width: min(1120px, calc(100% - 40px));
    min-height: calc(100vh - 158px);
    margin: 0 auto;
    padding: 34px 0 92px;
}

.article-breadcrumbs {
    margin: 0 0 18px;
}

.article-breadcrumbs ol {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    color: #7a859b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.025em;
}

.article-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.article-breadcrumbs li:not(:first-child)::before {
    content: "›";
    color: #a7afbf;
    font-size: 14px;
    font-weight: 700;
}

.article-breadcrumbs a {
    color: #59647c;
}

.article-breadcrumbs a:hover {
    color: var(--blue);
}

.article-breadcrumbs [aria-current="page"] {
    color: #929bad;
}

.article-hero {
    margin-bottom: 24px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--line);
}

.article-hero h1 {
    max-width: 820px;
    margin: 5px 0 7px;
    color: var(--ink);
    font-size: clamp(1.55rem, 2.4vw, 1.9rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.article-intro {
    max-width: 760px;
    margin: 0;
    color: #59647c;
    font-size: 0.86rem;
    line-height: 1.55;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: 24px;
}

.article-copy {
    padding: 30px 34px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(31, 49, 88, 0.045);
}

.article-copy p {
    margin: 0 0 1.35em;
    color: #303b53;
    font-size: 15px;
    line-height: 1.75;
    white-space: pre-line;
}

.article-copy p:last-child {
    margin-bottom: 0;
}

.article-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 14px;
}

.trainer-note {
    padding: 20px;
    border: 1px solid #cbd8ff;
    background: #f3f6ff;
    border-radius: 12px;
    transition: border-color 180ms ease, background 180ms ease;
}

.trainer-note.is-completed {
    border-color: #b8dfce;
    background: #f1faf6;
}

.trainer-note.is-completed .panel-kicker {
    color: #147d5b;
}

.trainer-note.is-locked {
    border-color: #d9dde5;
    background: #f4f5f7;
}

.trainer-note.is-locked .panel-kicker {
    color: #7d8797;
}

.trainer-note h2 {
    margin: 2px 0 8px;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.3;
}

.trainer-note > p:not(.panel-kicker) {
    margin: 0;
    color: #56627b;
    font-size: 12px;
    line-height: 1.6;
}

.article-completion {
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid #cbd8ff;
}

.article-completion button {
    width: 100%;
    border: 0;
    min-height: 38px;
    padding: 9px 12px;
    color: #fff;
    background: var(--blue);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.article-completion button:disabled {
    opacity: 0.72;
    cursor: default;
}

.article-practice-link,
.article-progress-link {
    width: 100%;
    min-height: 38px;
    margin-top: 14px;
    padding: 9px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff;
    background: var(--blue);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 7px 18px rgba(34, 102, 255, 0.17);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.article-practice-link:hover,
.article-progress-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(34, 102, 255, 0.23);
}

.article-completion p {
    margin: 9px 0 0;
    color: #087650;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.45;
}

.article-completion p.is-error {
    color: #b52925;
}

.article-completion .article-progress-status {
    padding-top: 9px;
    border-top: 1px solid #cde6dc;
    color: #39715f;
    font-weight: 750;
}

@media (max-width: 850px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 650px) {
    .article-page {
        width: calc(100% - 28px);
        padding: 28px 0 65px;
    }

    .article-hero h1 {
        font-size: 1.5rem;
    }

    .article-copy {
        padding: 24px 20px;
        border-radius: 10px;
    }

    .article-copy p {
        font-size: 14px;
        line-height: 1.7;
    }

}

/* Sentence practice */
.compact-dropdown > .practice-current {
    background: var(--blue-soft);
}

.sentences-page {
    width: min(1120px, calc(100% - 40px));
    min-height: calc(100vh - 158px);
    margin: 0 auto;
    padding: 34px 0 92px;
}

.sentences-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: center;
    gap: 28px;
    margin-bottom: 24px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--line);
}

.sentences-hero h1 {
    max-width: 720px;
    margin: 5px 0 7px;
    font-size: clamp(1.55rem, 2.4vw, 1.9rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.sentences-hero .practice-title-accent {
    color: var(--blue);
}

.sentences-hero-copy > p:last-child {
    max-width: 760px;
    margin: 0;
    color: #59647c;
    font-size: 0.86rem;
    line-height: 1.55;
}

.sentences-topic-header-filter {
    position: relative;
    z-index: 20;
    padding: 0;
}

.sentences-topic-header-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sentences-topic-header-label strong {
    color: var(--blue);
    font-size: 0.68rem;
}

.sentence-topic-select {
    position: relative;
}

.sentence-topic-select-trigger {
    width: 100%;
    min-height: 38px;
    border: 1px solid #d7deeb;
    padding: 0 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #263149;
    background: #fff;
    border-radius: 8px;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.sentence-topic-select-trigger:hover,
.sentence-topic-select-trigger[aria-expanded="true"] {
    border-color: #9eb9fa;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(29, 93, 243, 0.08);
}

.sentence-topic-select-trigger:disabled {
    opacity: 0.62;
    cursor: wait;
}

.sentence-topic-select-trigger > span:first-child {
    min-width: 0;
}

.sentence-topic-select-trigger strong {
    overflow: hidden;
    display: block;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sentence-topic-select-dropdown {
    position: absolute;
    z-index: 30;
    top: calc(100% + 9px);
    right: 0;
    width: min(520px, calc(100vw - 40px));
    border: 1px solid #d8dfec;
    padding: 12px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 22px 55px rgba(25, 42, 79, 0.18);
}

.sentence-topic-options {
    max-height: 520px;
    padding-right: 7px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    overflow-y: auto;
    scrollbar-color: #c8d1e2 transparent;
    scrollbar-width: thin;
}

.sentence-topic-option {
    display: grid;
    gap: 6px;
}

.sentence-topic-group-label {
    margin: 9px 3px 1px;
    color: #66738a;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.09em;
    line-height: 1.2;
    text-transform: uppercase;
}

.sentence-topic-option:first-child .sentence-topic-group-label {
    margin-top: 2px;
}

.sentence-topic-options label {
    border: 1px solid #e1e6f0;
    padding: 10px 13px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fbfcff;
    border-radius: 11px;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease, opacity 150ms ease;
}

.sentence-topic-options label:hover:not(.is-unavailable) {
    border-color: #b9c8e8;
    background: #f5f8ff;
}

.sentence-topic-options label:has(input:checked) {
    border-color: #9eb9fa;
    background: var(--blue-soft);
}

.sentence-topic-options label.is-completed {
    border-color: #e0e5ed;
    background: #f8f9fb;
}

.sentence-topic-options label.is-not-studied {
    border-color: #e4e8ef;
    background: #fafbfc;
    opacity: 0.78;
}

.sentence-topic-options label.is-not-studied:hover,
.sentence-topic-options label.is-not-studied:has(input:checked) {
    opacity: 1;
}

.sentence-topic-options label.is-unavailable {
    opacity: 0.45;
    cursor: not-allowed;
}

.sentence-topic-options input {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    flex: 0 0 auto;
    accent-color: var(--blue);
}

.sentence-topic-options label > span {
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.sentence-topic-options strong {
    min-width: 0;
    color: #4d5870;
    font-size: 12px;
    line-height: 1.35;
}

.sentence-topic-options .is-completed strong {
    color: #465267;
    font-weight: 900;
}

.sentence-topic-options .is-not-studied strong {
    color: #667085;
}

.sentence-topic-options small {
    flex: 0 0 auto;
    color: #929bad;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.35;
}

.sentence-topic-filter-actions {
    margin-top: 12px;
    border-top: 1px solid #e8ecf3;
    padding: 12px 3px 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.sentence-topic-filter-actions button {
    font-family: inherit;
    cursor: pointer;
}

.sentence-topic-filter-actions > small {
    margin-right: auto;
    color: #929bad;
    font-size: 9px;
    font-weight: 700;
}

.sentence-topic-filter-actions .sentence-topic-filter-clear {
    border: 0;
    padding: 10px 0;
    color: #778197;
    background: transparent;
    font-size: 11px;
    font-weight: 800;
}

.sentence-topic-filter-actions .sentence-topic-filter-apply {
    border: 0;
    padding: 10px 16px;
    color: #fff;
    background: var(--blue);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.sentence-topic-filter-actions button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.sentences-state,
.sentence-list {
    display: grid;
    gap: 19px;
}

.sentence-skeleton {
    min-height: 265px;
    border: 1px solid #edf0f6;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent),
        #eef1f7;
    background-size: 220px 100%, 100% 100%;
    border-radius: 12px;
    animation: sentence-loading 1.35s linear infinite;
}

@keyframes sentence-loading {
    from {
        background-position: -240px 0, 0 0;
    }
    to {
        background-position: calc(100% + 240px) 0, 0 0;
    }
}

.sentences-message {
    min-height: 270px;
    border: 1px solid var(--line);
    padding: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(31, 49, 88, 0.045);
}

.sentences-message.is-error {
    border-color: #ffd3cf;
}

.sentences-message-icon {
    width: 56px;
    height: 56px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: var(--blue);
    border-radius: 50%;
    font-size: 23px;
    font-weight: 900;
}

.sentences-message.is-error .sentences-message-icon {
    background: var(--red);
}

.sentences-message h2 {
    margin: 3px 0 8px;
    font-size: 27px;
}

.sentences-message p:not(.panel-kicker) {
    margin: 0 0 20px;
    color: var(--muted);
}

.secondary-button {
    border: 1px solid #ccd5e8;
    padding: 11px 17px;
    color: #4d5770;
    background: #fff;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
}

.sentence-card {
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(31, 49, 88, 0.045);
}

.sentence-card-header {
    min-width: 0;
    padding: 24px 34px 20px;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
    border-bottom: 1px solid #edf0f6;
    background: #fff;
}

.sentence-card-header > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.sentence-number,
.sentence-level {
    min-width: 34px;
    padding: 5px 7px;
    display: inline-grid;
    place-items: center;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 900;
}

.sentence-number {
    color: #7b8599;
    background: #fff;
    border: 1px solid #e2e7f1;
}

.sentence-level {
    color: #fff;
    background: var(--blue);
}

.sentence-card-header p,
.context-card-title {
    margin: -2px 0 0;
    color: #28344c;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 800;
    line-height: 1.45;
}

.sentence-vocabulary {
    margin: 0 34px 30px;
    padding: 24px 28px;
    border: 1px solid #ddd7f4;
    border-radius: 12px;
    background: #faf9ff;
}

.sentence-vocabulary-divider {
    height: 1px;
    margin: 0 34px 24px;
    background: #edf0f6;
}

.sentence-vocabulary-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.sentence-vocabulary h2,
.sentence-vocabulary p {
    margin: 0;
}

.sentence-vocabulary h2 {
    margin-top: 5px;
    color: var(--ink);
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}

.sentence-vocabulary-heading div > p:last-child {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.82rem;
}

.sentence-vocabulary dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e5e0f4;
    border-radius: 14px;
    background: #e5e0f4;
}

.sentence-vocabulary dl > div {
    display: grid;
    grid-template-columns: minmax(105px, 0.8fr) minmax(0, 1.2fr);
    align-items: baseline;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
}

.sentence-vocabulary dt {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ink);
    font-weight: 800;
}

.sentence-vocabulary dd {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.sentence-vocabulary dt small {
    padding: 2px 5px;
    color: #6746cf;
    background: #eee9ff;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sentence-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
}

.sentence-answer {
    min-width: 0;
    padding: 24px 34px 30px;
    background: #fff;
}

.sentence-answer label,
.sentence-result-label {
    margin: 0 0 9px;
    display: block;
    color: #6e7890;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sentence-answer textarea {
    width: 100%;
    min-height: 118px;
    border: 1px solid #d7deeb;
    padding: 16px 17px;
    display: block;
    resize: vertical;
    color: #263149;
    background: #fbfcff;
    border-radius: 8px;
    outline: none;
    font: 600 16px/1.65 "Nunito", system-ui, sans-serif;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.sentence-answer textarea:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(29, 93, 243, 0.1);
}

.sentence-answer textarea:disabled {
    opacity: 0.68;
}

.sentence-form-actions {
    margin-top: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sentence-form-actions small {
    color: #929bad;
    font-size: 11px;
}

.check-answer-button,
.next-sentence-button {
    border: 0;
    padding: 11px 17px;
    color: #fff;
    background: var(--blue);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: background 150ms ease, transform 150ms ease;
}

.check-answer-button:hover,
.next-sentence-button:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.check-answer-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.sentence-inline-error {
    margin: 12px 0 0;
    color: #c63530;
    font-size: 13px;
    font-weight: 700;
}

.sentence-history {
    border-left: 1px solid #cbd8ff;
    padding: 20px;
    background: #f3f6ff;
}

.sentence-history h2 {
    margin: 2px 0 14px;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

.sentence-history-empty {
    margin: 0;
    color: #99a2b4;
    font-size: 12px;
    line-height: 1.6;
}

.sentence-history ol {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
    list-style: none;
}

.sentence-history li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sentence-history li span {
    min-width: 61px;
    padding: 6px 8px;
    color: #a34540;
    background: #fff0ef;
    border-radius: 999px;
    text-align: center;
    font-size: 11px;
    font-weight: 900;
}

.sentence-history li span.is-perfect {
    color: #087650;
    background: #dcf7eb;
}

.sentence-history time {
    color: #98a1b3;
    font-size: 10px;
    font-weight: 700;
}

.sentence-result {
    min-height: 179px;
    display: flex;
    flex-direction: column;
}

.sentence-diff {
    min-height: 105px;
    border: 1px solid #dce3ef;
    padding: 17px;
    color: #263149;
    background: #fbfcff;
    border-radius: 12px;
    font: 700 17px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.diff-equal {
    color: #263149;
}

.diff-delete {
    padding: 1px 2px;
    color: #b52925;
    background: #ffe3e1;
    border-radius: 4px;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.diff-insert {
    padding: 1px 2px;
    color: #087650;
    background: #d9f8e9;
    border-bottom: 2px solid #25a878;
    border-radius: 4px;
}

.sentence-result-footer {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.sentence-result-footer > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.sentence-result-footer strong {
    color: var(--blue);
    font-size: 25px;
    line-height: 1;
}

.sentence-result-footer small {
    color: #8993a7;
    font-size: 11px;
}

.sentence-result-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.next-sentence-button {
    min-width: 138px;
}

.sentence-rules {
    margin: 0 34px 30px;
    border: 1px solid #dfe5ef;
    background: #fff;
    border-radius: 12px;
}

.sentence-rules-toggle {
    width: 100%;
    border: 0;
    padding: 14px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #2f3a52;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.sentence-rules-toggle > span:first-child {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.sentence-rules-toggle strong {
    font-size: 12px;
}

.sentence-rules-toggle small {
    color: #919aac;
    font-size: 10px;
    font-weight: 700;
}

.sentence-rules-content {
    border-top: 1px solid #e8ebf2;
    padding: 3px 15px 15px;
}

.sentence-rules-content article {
    padding: 13px 0 0;
}

.sentence-rules-content article + article {
    margin-top: 15px;
    border-top: 1px solid #d8dee9;
    padding-top: 15px;
}

.sentence-rules-content h3 {
    margin: 0;
    color: #39455d;
    font-size: 12px;
}

.sentence-rule-heading {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sentence-rule-heading a {
    flex: 0 0 auto;
    border: 1px solid #cfdaf2;
    padding: 6px 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    background: #f5f8ff;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
    transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.sentence-rule-heading a:hover {
    color: var(--blue-dark);
    border-color: #aebfe7;
    background: #eaf0ff;
    text-decoration: none;
    transform: translateY(-1px);
}

.sentence-rule-heading a span {
    margin-left: 2px;
}

.sentence-rules-content p {
    margin: 0;
    color: #69758c;
    font-size: 12px;
    line-height: 1.65;
}

@media (max-width: 850px) {
    .sentence-workspace {
        grid-template-columns: 1fr;
    }

    .sentence-history {
        border-top: 1px solid #cbd8ff;
        border-left: 0;
    }

    .sentence-history ol {
        display: flex;
        flex-wrap: wrap;
    }

    .sentence-history li {
        min-width: 105px;
    }
}

@media (max-width: 650px) {
    .sentences-page {
        width: calc(100% - 28px);
        padding: 28px 0 65px;
    }

    .sentences-hero {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .sentences-hero h1 {
        font-size: 1.5rem;
    }

    .sentences-topic-header-filter {
        width: min(100%, 300px);
    }

    .sentence-card,
    .sentences-message {
        border-radius: 10px;
    }

    .sentence-card-header {
        padding: 22px 20px 18px;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sentence-vocabulary {
        margin: 0 14px 18px;
        padding: 22px 16px;
    }

    .sentence-vocabulary-divider {
        margin: 0 14px 18px;
    }

    .sentence-vocabulary-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .sentence-vocabulary dl {
        grid-template-columns: 1fr;
    }

    .sentence-vocabulary dl > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .sentence-rules {
        margin: 0 14px 18px;
    }

    .sentence-rule-heading {
        align-items: center;
    }

    .sentence-answer,
    .sentence-history {
        padding: 22px 20px;
    }

    .sentence-form-actions,
    .sentence-result-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .sentence-form-actions small {
        order: 2;
    }

    .check-answer-button,
    .next-sentence-button {
        width: 100%;
    }

    .sentence-result-footer > div:first-child {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .sentence-result-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .sentence-topic-options {
        max-height: 420px;
        grid-template-columns: 1fr;
    }

    .sentences-topic-header-filter .sentence-topic-select-dropdown {
        right: auto;
        left: 0;
        width: calc(100vw - 28px);
    }

    .sentence-topic-options label > span {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .sentence-topic-options small {
        flex: none;
    }

    .sentence-topic-filter-actions {
        align-items: stretch;
        flex-direction: column-reverse;
        text-align: center;
    }

    .sentences-message {
        padding: 30px 23px;
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Dialogue session - follows the Sentences practice layout */
.dialogue-page {
    width: min(1120px, calc(100% - 40px));
    min-height: calc(100vh - 158px);
    padding: 34px 0 92px;
}

.dialogue-practice-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    margin-bottom: 24px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--line);
}

.dialogue-practice-hero h1 {
    max-width: 720px;
    margin: 5px 0 7px;
    font-size: clamp(1.55rem, 2.4vw, 1.9rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.dialogue-practice-hero .practice-title-accent {
    color: #167555;
}

.dialogue-practice-hero-copy > p:last-child {
    max-width: 760px;
    margin: 0;
    color: #59647c;
    font-size: 0.86rem;
    line-height: 1.55;
}

.dialogue-page-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.dialogue-page-controls .secondary-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    color: #4d5770;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.dialogue-page-controls button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.dialogue-brief,
.dialogue-messenger,
.dialogue-evaluation {
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(31, 49, 88, 0.045);
}

.dialogue-ready-screen {
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.dialogue-brief-title {
    min-width: 0;
    padding: 24px 34px 20px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
    border-bottom: 1px solid #edf0f6;
    background: #fff;
}

.dialogue-situation-number {
    width: 38px;
    min-width: 38px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    border-radius: 7px;
    background: var(--blue);
}

.dialogue-brief-title h2 {
    margin: 3px 0 0;
    color: #28344c;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.35;
}

.dialogue-brief-body {
    padding: 26px 34px 30px;
}

.dialogue-brief-body > p:first-child {
    margin: 0 0 22px;
    color: #485671;
    font-size: 0.96rem;
    line-height: 1.65;
}

.dialogue-ready-actions {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.dialogue-ready-actions small {
    color: var(--muted);
}

.dialogue-ready-button {
    width: auto;
    min-width: 150px;
    margin: 0;
    padding: 12px 18px;
    border-radius: 9px;
}

.dialogue-messenger {
    min-height: 640px;
    box-shadow: 0 8px 24px rgba(31, 49, 88, 0.045);
}

.dialogue-composer {
    position: relative;
    padding: 12px 12px 12px 16px;
}

.dialogue-composer textarea {
    min-height: 104px;
    padding-right: 66px;
    resize: none;
}

.dialogue-character-count {
    position: absolute;
    right: 70px;
    bottom: 25px;
    color: #8a94a8;
    font-size: 0.68rem;
    pointer-events: none;
}

@media (max-width: 760px) {
    .dialogue-practice-hero {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 16px;
    }

    .dialogue-page-controls {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .dialogue-page {
        width: calc(100% - 28px);
        padding: 28px 0 65px;
    }

    .dialogue-practice-hero h1 {
        font-size: 1.5rem;
    }

    .dialogue-page-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .dialogue-brief-title {
        padding: 22px 20px 18px;
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
    }

    .dialogue-brief-body {
        padding: 22px 20px 24px;
    }

    .dialogue-ready-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .dialogue-ready-button {
        width: 100%;
    }
}
