.account-role-entry {
    --role-ink: var(--v2-ink, #111c19);
    --role-paper: var(--v2-surface, #fffdf8);
    --role-line: var(--v2-line, #d5d6cb);
    width: 100%;
    min-width: 0;
    margin: 0 0 clamp(28px, 4vw, 48px);
    color: var(--role-ink);
}

.account-role-entry-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 10px 24px;
    margin-bottom: 16px;
}

.account-role-entry-heading h2 { margin: 6px 0 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -.035em; }
.account-role-entry-heading .section-kicker { color: var(--role-ink); font-size: 10px; line-height: 1.5; }
.account-role-entry-heading > p { max-width: 400px; margin: 0; color: #53625b; font-size: 13px; line-height: 1.6; }
.account-role-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.account-role-choice { min-width: 0; border: 1px solid var(--role-line); border-radius: 14px; background: var(--role-paper); }
.account-role-choice.is-selected { border-color: var(--role-ink); background: var(--v2-lime-soft, #f0f8d7); box-shadow: inset 0 0 0 1px var(--role-ink); }
.account-role-choice:hover { border-color: var(--role-ink); }
.account-role-entry a { color: var(--role-ink); text-decoration: none; }
.account-role-entry .account-role-help { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; padding: 6px 0; font-size: 13px; font-weight: 700; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
.account-role-entry a:focus-visible { outline: 3px solid #4864d8; outline-offset: 3px; border-radius: 10px; }
.account-role-primary { display: grid; gap: 10px; padding: 20px 20px 12px; border-radius: 13px 13px 0 0; }
.account-role-symbol { display: flex; align-items: center; justify-content: space-between; min-height: 30px; }
.account-role-symbol > .ui-icon { width: 26px; height: 26px; }
.account-role-selected { display: inline-flex; align-items: center; padding: 5px; border-radius: 50%; background: var(--v2-lime, #e7ff86); }
.account-role-primary > strong { font-size: 23px; line-height: 1.2; letter-spacing: -.025em; }
.account-role-description { min-height: 3.2em; max-width: 280px; color: #53625b; font-size: 13px; line-height: 1.6; }
.account-role-action { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 800; }
.account-role-action .ui-icon { flex-shrink: 0; }
.account-role-primary:hover .account-role-action { text-decoration: underline; text-underline-offset: 3px; }
.account-role-secondary { display: flex; align-items: center; justify-content: center; min-height: 48px; margin: 0 16px 8px; padding: 8px 2px; border-top: 1px solid var(--role-line); font-size: 12px; font-weight: 700; line-height: 1.5; text-align: center; }
.account-role-secondary:hover { text-decoration: underline; text-underline-offset: 3px; }
.stakeholder-v2 .stakeholder-shell--auth .stakeholder-main:has(.account-role-entry) { padding-top: 28px; }
.account-role-form-summary { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px; border: 1px solid #d5d6cb; border-radius: 10px; background: #f0f8d7; }
.account-role-form-summary strong, .account-role-form-summary small { display: block; }
.account-role-form-summary small { margin-top: 3px; color: #53625b; font-size: 11px; line-height: 1.5; }

@media (max-width: 620px) {
    .account-role-entry-heading { gap: 8px; margin-bottom: 12px; }
    .account-role-entry-heading > p { font-size: 12px; }
    .account-role-choices { gap: 8px; }
    .account-role-choice { border-radius: 10px; }
    .account-role-primary { gap: 8px; padding: 12px 9px 2px; }
    .account-role-primary > strong { font-size: 18px; }
    .account-role-symbol > .ui-icon { width: 23px; height: 23px; }
    .account-role-selected { padding: 2px; }
    .account-role-selected .ui-icon { width: 15px; height: 15px; }
    .account-role-description { display: none; }
    .account-role-action { gap: 4px; font-size: 11px; line-height: 1.4; }
    .account-role-action .ui-icon { width: 13px; height: 13px; }
    .account-role-secondary { min-height: 52px; margin: 0 7px 4px; font-size: 11px; }

    /* On a phone, reaching the account form is the primary task. Keep the
       existing single form and logical heading order; the explanatory hero
       contains no interactive controls and follows the form visually. */
    .student-auth-page .student-auth-shell > .learning-main {
        display: flex;
        flex-direction: column;
    }
    .student-auth-page .learning-main > .breadcrumbs { order: 0; }
    .student-auth-page .learning-main > .account-role-entry { order: 1; margin-bottom: 22px; }
    .student-auth-page .learning-main > .student-auth-directory { order: 2; margin-bottom: 28px; }
    .student-auth-page .learning-main > .learning-detail-hero { order: 3; }
    .student-auth-page .student-auth-directory .catalog-section-heading h2 {
        font-size: 27px;
        line-height: 1.12;
    }
    .student-auth-page .student-auth-directory .catalog-section-heading {
        margin-bottom: 18px;
    }
    .student-auth-page .student-auth-section-heading > p { font-size: 12px; }
    .stakeholder-v2 .stakeholder-shell--auth .account-role-entry { margin-bottom: 22px; }
    .stakeholder-v2 .stakeholder-auth-grid > .stakeholder-auth-form-column { order: -1; }
}
