:root {
    --navy-950: #263a59;
    --navy-900: #334765;
    --navy-800: #415777;
    --green: #6bc399;
    --green-soft: #edf8f3;
    --violet: #8b7db3;
    --violet-soft: #f3f0f8;
    --surface: #ffffff;
    --background: #f5f7fa;
    --text: #172338;
    --muted: #687386;
    --border: #dce2e9;
    --danger: #a92f26;
    --shadow: 0 24px 70px rgb(38 58 89 / 14%);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Roboto", sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

.login-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(360px, 44fr) minmax(520px, 56fr);
}

.login-introduction {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: flex-start;
    padding: clamp(36px, 5vw, 76px);
    background:
        linear-gradient(150deg, rgb(29 47 72 / 84%) 0%, rgb(45 66 96 / 65%) 52%, rgb(98 84 137 / 50%) 100%),
        linear-gradient(90deg, transparent 76%, rgb(255 255 255 / 7%) 100%),
        url("../images/alumnos-bg.jpg") center center / cover no-repeat;
    color: #fff;
}

.login-introduction::after {
    content: none;
}

.introduction-copy {
    max-width: 435px;
    margin: auto 0;
    padding: 58px 0;
}

.eyebrow,
.card-kicker {
    margin: 0 0 14px;
    color: var(--violet);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.login-introduction .eyebrow {
    color: rgb(255 255 255 / 76%);
}

.introduction-copy h1 {
    max-width: 16ch;
    margin: 0;
    font-size: clamp(1.85rem, 2.7vw, 2.85rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.introduction-copy h1,
.login-card h2,
.dashboard-heading h1,
.dashboard-card > h1,
.dashboard-card h2,
.information-heading h1,
.information-section h2,
.eyebrow,
.card-kicker,
.primary-button,
.logout-button,
.field label,
.topbar-actions > a,
.information-access strong {
    font-family: "Nunito", sans-serif;
}

.login-page,
.login-page input,
.login-page label,
.login-page .alert,
.login-card header > p:last-child {
    font-family: "Nunito", sans-serif;
}

.login-page .eyebrow,
.login-page h1,
.login-page h2,
.login-page .primary-button {
    font-family: "Montserrat", sans-serif;
}

.introduction-copy > p:last-child {
    max-width: 40ch;
    margin: 20px 0 0;
    color: rgb(255 255 255 / 78%);
    font-size: 0.98rem;
    line-height: 1.65;
}

.login-panel {
    display: grid;
    align-items: start;
    grid-template-rows: minmax(0, 1fr) auto;
    padding: clamp(58px, 9.5vh, 104px) clamp(40px, 7vw, 112px) 30px;
    background: var(--surface);
    justify-items: center;
}

.login-card {
    width: min(100%, 505px);
}

.login-logo {
    display: block;
    width: 110px;
    height: auto;
    margin: 0 0 26px;
    mix-blend-mode: multiply;
}

.login-card h2 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(1.95rem, 2.7vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.login-card header > p:last-child {
    max-width: 49ch;
    margin: 11px 0 0;
    color: var(--muted);
    line-height: 1.62;
}

.login-card form {
    margin-top: 26px;
}

.field + .field {
    margin-top: 18px;
}

.field label {
    display: block;
    margin-bottom: 9px;
    color: var(--text);
    font-size: 0.91rem;
    font-weight: 700;
}

.field input {
    width: 100%;
    min-height: 56px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--text);
    padding: 0 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:hover {
    border-color: #b6c0cc;
}

.field input:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgb(139 125 179 / 14%);
}

.login-page .field input {
    min-height: 53px;
    border-radius: 11px;
    background: #fdfdfd;
}

.password-control {
    position: relative;
}

.password-control input {
    padding-right: 54px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    display: grid;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #7b8492;
    cursor: pointer;
    padding: 8px;
    place-items: center;
    transform: translateY(-50%);
}

.password-toggle:hover {
    background: #f2f3f6;
    color: var(--navy-800);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 1px;
}

.password-toggle svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.primary-button,
.logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 750;
}

.primary-button {
    width: 100%;
    min-height: 56px;
    gap: 12px;
    margin-top: 28px;
    background: linear-gradient(110deg, var(--navy-800), #665b8f);
    color: #fff;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.primary-button:hover {
    box-shadow: 0 12px 24px rgb(65 87 119 / 20%);
    transform: translateY(-1px);
}

.login-page .primary-button {
    min-height: 53px;
    margin-top: 22px;
    border-radius: 11px;
    background: linear-gradient(110deg, #405575 0%, #685f8d 100%);
    box-shadow: 0 4px 12px rgb(65 87 119 / 9%);
    font-weight: 700;
}

.login-page .primary-button:hover {
    background: linear-gradient(110deg, #3a4f6f 0%, #615783 100%);
    box-shadow: 0 7px 16px rgb(65 87 119 / 14%);
}

.login-help {
    margin: 16px 0 0;
    color: #858d99;
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
}

.login-help strong {
    color: #667184;
    font-weight: 700;
}

.login-footer {
    width: min(100%, 505px);
    margin-top: 44px;
    color: #9aa1ab;
    font-family: "Nunito", sans-serif;
    font-size: 0.72rem;
    text-align: left;
}

.forgot-password {
    display: block;
    width: fit-content;
    margin: 10px 0 -4px auto;
    color: #665b8f;
    font-family: "Nunito", sans-serif;
    font-size: 0.79rem;
    font-weight: 700;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.forgot-password:focus-visible,
.back-link:focus-visible,
.public-auth-logo:focus-visible {
    outline: 3px solid rgb(139 125 179 / 25%);
    outline-offset: 3px;
}

.primary-button:focus-visible,
.logout-button:focus-visible {
    outline: 3px solid rgb(139 125 179 / 28%);
    outline-offset: 3px;
}

.alert {
    margin-top: 26px;
    border: 1px solid #ecc5c1;
    border-radius: 9px;
    background: #fff5f4;
    color: var(--danger);
    padding: 14px 16px;
    font-size: 0.88rem;
}

.topbar {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    background: rgb(255 255 255 / 94%);
    padding: 14px clamp(22px, 5vw, 72px);
}

.topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--navy-950);
    text-decoration: none;
}

.topbar-brand img {
    width: 76px;
    height: auto;
    border-radius: 7px;
}

.topbar-brand span {
    display: grid;
}

.topbar-brand small {
    color: var(--muted);
    font-family: "Nunito", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
}

.logout-button {
    min-height: 42px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--navy-900);
    padding: 0 18px;
}

.logout-button:hover {
    border-color: var(--violet);
    color: #665b8f;
}

.dashboard-shell {
    width: min(1120px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(54px, 8vw, 96px) 0;
}

.dashboard-heading {
    max-width: 760px;
}

.dashboard-heading h1,
.dashboard-card > h1 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(2.35rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.dashboard-heading > p:last-child,
.dashboard-card > p:last-child {
    margin: 16px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.dashboard-card {
    display: grid;
    margin-top: 42px;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
    gap: 52px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: clamp(28px, 5vw, 52px);
}

.dashboard-card h2 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.3;
}

.student-summary {
    display: grid;
    margin: 0;
    gap: 20px;
}

.student-summary > div {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.student-summary > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.student-summary dt {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.student-summary dd {
    margin: 0;
    color: var(--text);
    font-weight: 650;
    line-height: 1.55;
}

.status-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.78rem;
    font-weight: 800;
}

.status-badge--preregistered {
    background: var(--violet-soft);
    color: #675b8e;
}

.status-badge--active {
    background: var(--green-soft);
    color: #347a5b;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-actions > a {
    color: var(--navy-800);
    font-size: 0.86rem;
    font-weight: 750;
    text-decoration: none;
}

.topbar-actions > a:hover {
    color: #665b8f;
}

.profile-progress {
    display: grid;
    max-width: 280px;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
}

.profile-progress strong {
    color: var(--navy-900);
    font-size: 1.08rem;
}

.progress-track {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: #e7eaf0;
}

.progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--violet));
}

.information-access {
    display: flex;
    margin-top: 24px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--navy-900);
    padding: 22px 26px;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.information-access:hover {
    border-color: #b9b0cf;
    box-shadow: 0 12px 32px rgb(38 58 89 / 9%);
    transform: translateY(-1px);
}

.information-access > span:first-child {
    display: grid;
    gap: 5px;
}

.information-access small {
    color: var(--muted);
    line-height: 1.5;
}

.information-access > span:last-child {
    color: var(--violet);
    font-size: 1.45rem;
}

.grades-shell {
    width: min(1240px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(50px, 7vw, 82px) 0 96px;
}

.grades-heading h1 {
    margin: 0;
    color: var(--navy-950);
    font-family: "Nunito", sans-serif;
    font-size: clamp(2.25rem, 4vw, 2.75rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.grades-heading .grades-student-name {
    margin: 10px 0 0;
    color: var(--navy-800);
    font-family: "Nunito", sans-serif;
    font-size: clamp(1.35rem, 2.5vw, 1.6rem);
    font-weight: 700;
    line-height: 1.25;
}

.grades-heading > p:last-child {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.grades-card,
.grades-empty {
    margin-top: 34px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 14px 38px rgb(38 58 89 / 6%);
}

.grades-card {
    overflow: hidden;
}

.grades-evaluation-notice {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 18px 20px;
    border: 1px solid #e4dfef;
    border-radius: 10px;
    background: #faf9fd;
    color: var(--muted);
    padding: 12px 15px;
    font-size: 0.82rem;
    line-height: 1.55;
}

.grades-evaluation-notice > span {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 50%;
    background: var(--violet-soft);
    color: var(--violet);
    font-family: "Nunito", sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    place-items: center;
}

.grades-evaluation-notice p {
    margin: 0;
}

.grades-table-scroll {
    overflow-x: auto;
    outline: none;
}

.grades-table-scroll:focus-visible {
    box-shadow: inset 0 0 0 3px rgb(139 125 179 / 22%);
}

.grades-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
    color: var(--text);
    font-size: 0.88rem;
}

.grades-table th,
.grades-table td {
    border-bottom: 1px solid #e8ebf0;
    padding: 17px 18px;
    text-align: left;
    vertical-align: middle;
}

.grades-table thead th {
    background: #f7f8fa;
    color: var(--muted);
    font-family: "Nunito", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.grades-table tbody th {
    min-width: 280px;
    color: var(--navy-900);
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    line-height: 1.45;
}

.grades-table tbody tr:last-child th,
.grades-table tbody tr:last-child td {
    border-bottom: 0;
}

.grades-table tbody tr:hover {
    background: #fbfcfd;
}

.grades-table time {
    white-space: nowrap;
}

.grade-value {
    display: inline-flex;
    min-width: 52px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: "Nunito", sans-serif;
    font-size: 0.94rem;
    font-weight: 800;
}

.grade-value--passing {
    border-color: #cce8db;
    background: var(--green-soft);
    color: #347a5b;
}

.grade-value--not-passing {
    border-color: #ecd8d5;
    background: #fff6f5;
    color: #9b453e;
}

.teacher-evaluation-link,
.evaluation-complete {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: "Nunito", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.teacher-evaluation-link {
    border: 1px solid #cfc7e2;
    background: #fff;
    color: #675b8e;
    padding: 0 13px;
    text-decoration: none;
}

.teacher-evaluation-link:hover {
    border-color: var(--violet);
    background: var(--violet-soft);
}

.teacher-evaluation-link:focus-visible {
    outline: 3px solid rgb(139 125 179 / 24%);
    outline-offset: 2px;
}

.evaluation-complete {
    gap: 6px;
    color: #347a5b;
}

.evaluation-complete > span {
    display: grid;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--green-soft);
    place-items: center;
}

.kardex-average {
    display: flex;
    width: min(100%, 330px);
    margin: 22px 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgb(38 58 89 / 5%);
    padding: 18px 20px;
}

.kardex-average span {
    color: var(--muted);
    font-family: "Nunito", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.kardex-average strong {
    color: var(--navy-900);
    font-family: "Nunito", sans-serif;
    font-size: 1.55rem;
}

.grades-scroll-hint {
    display: none;
    margin: 0;
    border-top: 1px solid var(--border);
    background: #fbfcfd;
    color: var(--muted);
    padding: 12px 18px;
    font-size: 0.75rem;
}

.grades-empty {
    padding: clamp(34px, 6vw, 58px);
    text-align: center;
}

.grades-empty > span {
    display: grid;
    width: 46px;
    height: 46px;
    margin: 0 auto 18px;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--green-soft), var(--violet-soft));
    color: var(--navy-800);
    font-weight: 800;
    place-items: center;
}

.grades-empty h2 {
    font-size: 1.25rem;
}

.grades-empty p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.evaluation-shell {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(42px, 6vw, 70px) 0 96px;
}

.evaluation-heading h1,
.evaluation-unavailable h1 {
    margin: 0;
    color: var(--navy-950);
    font-family: "Nunito", sans-serif;
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.evaluation-heading dl {
    display: grid;
    margin: 26px 0 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.evaluation-heading dl > div {
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    padding: 15px 17px;
}

.evaluation-heading dt {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.evaluation-heading dd {
    margin: 0;
    color: var(--navy-900);
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    line-height: 1.45;
}

.evaluation-form {
    margin-top: 28px;
}

.evaluation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.evaluation-question {
    min-width: 0;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
    box-shadow: 0 7px 22px rgb(38 58 89 / 4%);
    padding: 20px;
}

.evaluation-question--error {
    border-color: #e1aaa5;
}

.evaluation-question legend {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 10px;
    color: var(--navy-950);
    font-family: "Nunito", sans-serif;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.45;
    padding: 0;
}

.evaluation-question legend > span,
.evaluation-comment > label > span {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    border-radius: 7px;
    background: linear-gradient(145deg, var(--green-soft), var(--violet-soft));
    color: var(--navy-800);
    font-size: 0.68rem;
    place-items: center;
}

.evaluation-options {
    display: grid;
    margin-top: 16px;
    gap: 8px;
}

.evaluation-options label {
    position: relative;
    display: flex;
    min-height: 42px;
    align-items: center;
    border: 1px solid #e2e6eb;
    border-radius: 8px;
    cursor: pointer;
    padding: 9px 12px;
}

.evaluation-options label:hover {
    border-color: #c7bfdc;
    background: #fbfafd;
}

.evaluation-options input {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    margin: 0 10px 0 0;
    accent-color: #74679b;
}

.evaluation-options span {
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1.4;
}

.evaluation-comment {
    grid-column: 1 / -1;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
    padding: 22px;
}

.evaluation-comment > label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy-950);
    font-family: "Nunito", sans-serif;
    font-weight: 800;
}

.evaluation-comment > label small {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.evaluation-comment textarea {
    width: 100%;
    margin-top: 15px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    color: var(--text);
    padding: 13px 14px;
    resize: vertical;
}

.evaluation-comment textarea:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgb(139 125 179 / 14%);
}

.evaluation-actions {
    display: flex;
    margin-top: 22px;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.evaluation-actions p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.evaluation-unavailable {
    max-width: 720px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: clamp(28px, 5vw, 46px);
}

.evaluation-unavailable > p:last-of-type {
    margin: 13px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.information-shell {
    width: min(1120px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(50px, 7vw, 88px) 0 100px;
}

.information-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
}

.information-heading h1 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.information-heading > div:first-child > p:last-child {
    margin: 15px 0 0;
    color: var(--muted);
}

.completion-summary {
    width: min(100%, 270px);
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    padding: 18px 20px;
}

.completion-summary strong {
    display: block;
    color: var(--navy-900);
    font-size: 1.55rem;
}

.completion-summary > span {
    display: block;
    margin: 2px 0 12px;
    color: var(--muted);
    font-size: 0.77rem;
}

.success-alert {
    margin-top: 28px;
    border: 1px solid #b8dfcb;
    border-radius: 10px;
    background: var(--green-soft);
    color: #347a5b;
    padding: 14px 17px;
    font-size: 0.9rem;
    font-weight: 650;
}

.information-form {
    display: grid;
    margin-top: 34px;
    gap: 24px;
}

.information-section {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 14px 38px rgb(38 58 89 / 6%);
    padding: clamp(24px, 4vw, 40px);
}

.information-section > header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.information-section > header > span {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--green-soft), var(--violet-soft));
    color: var(--navy-800);
    font-size: 0.78rem;
    font-weight: 800;
    place-items: center;
}

.information-section h2 {
    margin: 1px 0 0;
    color: var(--navy-950);
    font-size: 1.35rem;
}

.information-section header p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.readonly-grid,
.editable-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.readonly-grid {
    margin: 0 0 28px;
}

.readonly-grid > div {
    min-width: 0;
    border-radius: 10px;
    background: #f5f7fa;
    padding: 14px 16px;
}

.readonly-grid .wide,
.editable-grid .wide {
    grid-column: 1 / -1;
}

.readonly-grid--single {
    grid-template-columns: 1fr;
}

.readonly-grid dt {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.readonly-grid dd {
    overflow-wrap: anywhere;
    margin: 0;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 650;
}

.readonly-grid dd span {
    color: #929ba8;
    font-weight: 500;
}

.information-section .field label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.information-section .field label small {
    color: var(--muted);
    font-weight: 500;
}

.field-control {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--text);
    padding: 0 15px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

select.field-control {
    padding-right: 40px;
}

.field-control--textarea {
    min-height: 128px;
    padding-top: 13px;
    resize: vertical;
}

.field-control:hover {
    border-color: #b6c0cc;
}

.field-control:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgb(139 125 179 / 14%);
}

.field-control--error {
    border-color: var(--danger);
    background: #fffafa;
}

.field-error {
    margin: 7px 0 0;
    color: var(--danger);
    font-size: 0.78rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.primary-button--fit {
    width: auto;
    min-width: 220px;
    margin-top: 0;
    padding: 0 24px;
}

.dashboard-card--message {
    display: block;
    max-width: 760px;
    margin: 0;
}

.public-auth-page {
    background: #f6f7fa;
    font-family: "Nunito", sans-serif;
}

.public-auth-page h1,
.public-auth-page .eyebrow,
.public-auth-page .primary-button {
    font-family: "Montserrat", sans-serif;
}

.public-auth-shell {
    width: min(100% - 40px, 520px);
    margin: 0 auto;
    padding: clamp(46px, 8vw, 82px) 0 64px;
}

.public-auth-logo {
    display: block;
    width: fit-content;
    margin-bottom: 38px;
}

.public-auth-logo img {
    display: block;
    width: 108px;
    height: auto;
    mix-blend-mode: multiply;
}

.public-auth-content {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 16px 42px rgb(38 58 89 / 8%);
    padding: clamp(26px, 5vw, 42px);
}

.public-auth-content h1 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(1.85rem, 5vw, 2.45rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.public-auth-content > p:not(.eyebrow) {
    margin: 13px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.public-auth-content form {
    margin-top: 28px;
}

.public-auth-content .primary-button {
    border-radius: 11px;
    background: linear-gradient(110deg, #405575 0%, #685f8d 100%);
}

.public-auth-content .alert,
.public-auth-content .success-alert {
    margin-top: 24px;
}

.back-link {
    display: inline-block;
    margin-top: 24px;
    color: #665b8f;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.settings-shell {
    width: min(760px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(52px, 8vw, 88px) 0 96px;
}

.settings-heading h1 {
    margin: 0;
    color: var(--navy-950);
    font-family: "Nunito", sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.settings-heading > p:last-child {
    max-width: 600px;
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.settings-shell > .alert,
.settings-shell > .success-alert {
    margin-top: 26px;
}

.settings-form {
    margin-top: 30px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 14px 38px rgb(38 58 89 / 6%);
    padding: clamp(24px, 5vw, 40px);
}

.settings-form .primary-button {
    margin-top: 26px;
}

.recovery-page .public-auth-shell {
    display: grid;
    width: min(100% - 44px, 600px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 42px 0 max(58px, 9vh);
    place-items: center;
}

.recovery-page .public-auth-content {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgb(38 58 89 / 6%);
    padding: 34px 38px 32px;
    text-align: left;
}

.recovery-page .public-auth-logo {
    width: fit-content;
    margin: 0 auto 22px;
}

.recovery-page .public-auth-logo img {
    width: 148px;
}

.recovery-page .public-auth-content > .eyebrow {
    margin-bottom: 10px;
    text-align: center;
}

.recovery-page .public-auth-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.15rem);
    line-height: 1.2;
    text-align: center;
}

.recovery-page .public-auth-content > p:not(.eyebrow) {
    max-width: 47ch;
    margin: 11px auto 0;
    font-size: 0.92rem;
    line-height: 1.58;
    text-align: center;
}

.recovery-page .public-auth-content form {
    margin-top: 24px;
}

.recovery-page .field input {
    min-height: 53px;
    border-radius: 11px;
    background: #fdfdfd;
}

.recovery-page .public-auth-content .primary-button {
    min-height: 53px;
    margin-top: 20px;
    border-radius: 11px;
    box-shadow: 0 4px 12px rgb(65 87 119 / 9%);
}

.recovery-page .public-auth-content .primary-button:hover {
    box-shadow: 0 7px 16px rgb(65 87 119 / 14%);
}

.recovery-page .back-link {
    display: block;
    width: fit-content;
    margin: 18px auto 0;
    font-size: 0.8rem;
    font-weight: 700;
}

.recovery-page .public-auth-content .alert,
.recovery-page .public-auth-content .success-alert {
    margin-top: 20px;
    border-radius: 9px;
    padding: 12px 14px;
    font-size: 0.82rem;
    line-height: 1.5;
}

.information-page {
    font-family: "Nunito", sans-serif;
}

.information-page .information-heading h1,
.information-page .information-section h2,
.information-page .eyebrow,
.information-page .primary-button,
.information-page .topbar-actions > a {
    font-family: "Montserrat", sans-serif;
}

.information-page .information-shell {
    width: min(1240px, calc(100% - 40px));
    padding: clamp(34px, 5vw, 58px) 0 72px;
}

.information-page .information-heading {
    align-items: center;
    gap: 36px;
}

.information-page .information-heading h1 {
    font-size: clamp(2.2rem, 4vw, 3.25rem);
}

.information-page .information-heading > div:first-child > p:last-child {
    margin-top: 10px;
    font-size: 0.9rem;
}

.information-page .completion-summary {
    width: 230px;
    border-radius: 10px;
    padding: 11px 14px;
}

.information-page .completion-summary strong {
    font-size: 1.3rem;
}

.information-page .completion-summary > span {
    margin: 0 0 8px;
    font-size: 0.7rem;
}

.information-page .information-form {
    margin-top: 24px;
    gap: 16px;
}

.information-page .information-section {
    border-radius: 12px;
    box-shadow: 0 6px 18px rgb(38 58 89 / 4%);
    padding: 21px 22px;
}

.information-page .information-section > header {
    gap: 11px;
    margin-bottom: 16px;
}

.information-page .information-section > header > span {
    width: 29px;
    height: 29px;
    border-radius: 7px;
    font-size: 0.68rem;
}

.information-page .information-section h2 {
    margin-top: 0;
    font-size: 1.05rem;
}

.information-page .information-section header p {
    margin-top: 3px;
    font-size: 0.76rem;
}

.information-page .form-grid-row {
    display: grid;
    align-items: start;
    column-gap: 16px;
    row-gap: 6px;
    margin-bottom: 14px;
}

.information-page .form-grid-row:last-child {
    margin-bottom: 0;
}

.information-page .form-grid-row--one {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "label1"
        "control1";
}

.information-page .form-grid-row--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "label1 label2"
        "control1 control2";
}

.information-page .form-grid-row--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
        "label1 label2 label3"
        "control1 control2 control3";
}

.information-page .form-grid-label--1 {
    grid-area: label1;
}

.information-page .form-grid-label--2 {
    grid-area: label2;
}

.information-page .form-grid-label--3 {
    grid-area: label3;
}

.information-page .form-grid-control--1 {
    grid-area: control1;
}

.information-page .form-grid-control--2 {
    grid-area: control2;
}

.information-page .form-grid-control--3 {
    grid-area: control3;
}

.information-page .readonly-value {
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    border-radius: 7px;
    background: var(--background);
    padding: 8px 12px;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.4;
}

.information-page .readonly-value span {
    color: #929ba8;
    font-weight: 500;
}

.information-page .form-grid-control {
    min-width: 0;
}

.information-page .form-grid-label {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.information-page .form-grid-label label {
    display: block;
    margin: 0;
}

.information-page .form-grid-label--readonly {
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.information-page .field-status {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    margin-top: 0.3em;
    border-radius: 50%;
}

.information-page .field-status--complete {
    background: #67b58f;
}

.information-page .field-status--pending {
    background: #d39a52;
}

.information-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.information-page .field-control {
    height: 44px;
    min-height: 44px;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 0.88rem;
}

.information-page select.field-control {
    padding-right: 36px;
}

.information-page .field-control--textarea {
    height: auto;
    min-height: 82px;
    padding-top: 10px;
}

.information-page .field-error {
    margin-top: 4px;
    font-size: 0.72rem;
}

.information-page .previous-degree {
    display: inline-grid;
    gap: 3px;
    margin-top: 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: linear-gradient(145deg, var(--background), var(--violet-soft));
    padding: 9px 13px;
}

.information-page .education-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}

.information-page .education-heading .previous-degree {
    justify-self: end;
    margin-top: 0;
}

.information-page .previous-degree small {
    color: var(--muted);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.information-page .previous-degree strong {
    color: var(--navy-950);
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

.information-page .form-actions {
    align-items: center;
    border: 0;
    background: transparent;
    padding: 2px 0 0;
}

.information-page .primary-button--fit {
    min-width: 190px;
    min-height: 44px;
    border-radius: 8px;
    padding: 0 20px;
    font-size: 0.82rem;
}

@media (max-width: 700px) {
    .evaluation-grid,
    .evaluation-heading dl {
        grid-template-columns: 1fr;
    }

    .evaluation-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .evaluation-actions .primary-button {
        width: 100%;
    }

    .grades-evaluation-notice {
        align-items: flex-start;
        margin: 14px;
        padding: 12px 13px;
    }

    .grades-scroll-hint {
        display: block;
    }

    .information-page .education-heading {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .information-page .education-heading .previous-degree {
        grid-column: 2;
        justify-self: start;
        margin-top: 10px;
    }

    .information-page .form-grid-row--two,
    .information-page .form-grid-row--three {
        grid-template-columns: 1fr;
    }

    .information-page .form-grid-row--two {
        grid-template-areas:
            "label1"
            "control1"
            "label2"
            "control2";
    }

    .information-page .form-grid-row--three {
        grid-template-areas:
            "label1"
            "control1"
            "label2"
            "control2"
            "label3"
            "control3";
    }

    .information-page .form-grid-row {
        row-gap: 6px;
    }

    .information-page .form-grid-row--two .form-grid-control--1,
    .information-page .form-grid-row--three .form-grid-control--1,
    .information-page .form-grid-row--three .form-grid-control--2 {
        margin-bottom: 8px;
    }
}

@media (max-width: 900px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-introduction {
        min-height: 340px;
        padding: 30px clamp(22px, 7vw, 64px);
    }

    .introduction-copy {
        padding: 52px 0 24px;
    }

    .introduction-copy h1 {
        max-width: 15ch;
        font-size: clamp(1.85rem, 5vw, 2.5rem);
    }

    .login-panel {
        padding: 64px clamp(32px, 9vw, 88px) 76px;
    }

    .dashboard-card {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .information-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 26px;
    }

    .completion-summary {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .login-shell {
        display: block;
    }

    .login-introduction {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        padding: 48px 24px 56px;
    }

    .login-logo {
        width: 100px;
        margin-bottom: 24px;
    }

    .login-footer {
        margin-top: 38px;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .login-introduction {
        min-height: 310px;
    }

    .introduction-copy h1 {
        font-size: 2.35rem;
    }

    .introduction-copy > p:last-child {
        font-size: 0.93rem;
    }

    .login-panel {
        padding-top: 40px;
    }

    .login-card h2 {
        font-size: 2.1rem;
    }

    .topbar {
        min-height: 72px;
        flex-wrap: wrap;
        padding: 12px 18px;
    }

    .topbar-brand small {
        display: none;
    }

    .logout-button {
        padding: 0 13px;
        font-size: 0.8rem;
    }

    .topbar-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px 14px;
        justify-content: flex-end;
    }

    .topbar-actions > a {
        font-size: 0.76rem;
    }

    .dashboard-shell {
        width: min(100% - 36px, 1120px);
        padding: 48px 0;
    }

    .grades-shell {
        width: min(100% - 28px, 1240px);
        padding: 42px 0 68px;
    }

    .evaluation-shell {
        width: min(100% - 28px, 1180px);
        padding: 36px 0 68px;
    }

    .evaluation-question,
    .evaluation-comment {
        border-radius: 11px;
        padding: 18px 16px;
    }

    .grades-card,
    .grades-empty {
        margin-top: 26px;
        border-radius: 14px;
    }

    .grades-empty {
        padding: 34px 22px;
    }

    .dashboard-card {
        margin-top: 32px;
        border-radius: 14px;
        padding: 26px 22px;
    }

    .information-shell {
        width: min(100% - 32px, 1120px);
        padding: 44px 0 70px;
    }

    .information-section {
        border-radius: 14px;
        padding: 24px 20px;
    }

    .readonly-grid,
    .editable-grid {
        grid-template-columns: 1fr;
    }

    .readonly-grid .wide,
    .editable-grid .wide {
        grid-column: auto;
    }

    .form-actions,
    .primary-button--fit {
        width: 100%;
    }

    .public-auth-shell {
        width: min(100% - 32px, 520px);
        padding: 38px 0 50px;
    }

    .public-auth-logo {
        margin-bottom: 28px;
    }

    .public-auth-content {
        border-radius: 14px;
        padding: 26px 22px;
    }

    .settings-shell {
        width: min(100% - 32px, 760px);
        padding: 44px 0 68px;
    }

    .settings-form {
        border-radius: 14px;
        padding: 26px 22px;
    }

    .recovery-page .public-auth-shell {
        width: min(100% - 40px, 600px);
        padding: 28px 0 38px;
    }

    .recovery-page .public-auth-content {
        border-radius: 13px;
        padding: 28px 22px 26px;
    }

    .recovery-page .public-auth-logo {
        margin-bottom: 18px;
    }

    .recovery-page .public-auth-logo img {
        width: 126px;
    }

    .recovery-page .public-auth-content h1 {
        font-size: 1.75rem;
    }

    .information-page .information-shell {
        width: min(100% - 28px, 1240px);
        padding: 30px 0 58px;
    }

    .information-page .information-heading {
        gap: 18px;
    }

    .information-page .completion-summary {
        width: 100%;
    }

    .information-page .information-form {
        margin-top: 18px;
        gap: 13px;
    }

    .information-page .information-section {
        border-radius: 10px;
        padding: 18px 16px;
    }

    .information-page .field-control {
        height: 44px;
        min-height: 44px;
    }

    .information-page .field-control--textarea {
        height: auto;
    }

    .information-page .form-actions {
        padding-top: 2px;
    }
}

/* Portal de Alumnos: navegación, inicio y perfil */
.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    min-height: 78px;
    box-shadow: 0 8px 30px rgb(38 58 89 / 4%);
}

.topbar-brand img {
    width: 88px;
    border-radius: 0;
}

.topbar-actions {
    gap: 6px;
}

.topbar-actions > a,
.logout-button {
    min-height: 40px;
    border-radius: 9px;
    padding: 0 14px;
}

.topbar-actions > a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.topbar-actions > a[aria-current="page"] {
    background: var(--violet-soft);
    color: #665b8f;
}

.topbar-profile-link {
    gap: 8px;
}

.student-avatar {
    display: inline-grid;
    overflow: hidden;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--green), var(--violet));
    color: #fff;
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-avatar--navigation {
    width: 30px;
    height: 30px;
    font-size: 0.66rem;
}

.dashboard-shell {
    width: min(1180px, calc(100% - 44px));
    padding: clamp(38px, 6vw, 68px) 0 86px;
}

.dashboard-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: linear-gradient(120deg, #fff 45%, #f7f4fb 100%);
    box-shadow: 0 18px 46px rgb(38 58 89 / 7%);
    padding: clamp(25px, 4vw, 38px);
}

.student-avatar--dashboard {
    width: clamp(76px, 9vw, 100px);
    height: clamp(76px, 9vw, 100px);
    font-size: 1.65rem;
    box-shadow: 0 10px 28px rgb(91 78 133 / 18%);
}

.dashboard-hero h1 {
    margin: 2px 0 5px;
    color: var(--navy-950);
    font-family: "Nunito", sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.65rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.dashboard-program {
    margin: 0;
    color: var(--navy-800);
    font-family: "Nunito", sans-serif;
    font-size: clamp(0.92rem, 1.6vw, 1.08rem);
    font-weight: 700;
    line-height: 1.5;
}

.dashboard-generation {
    display: inline-flex;
    margin-top: 10px;
    border-radius: 999px;
    background: var(--green-soft);
    color: #347a5b;
    padding: 5px 10px;
    font-size: 0.74rem;
    font-weight: 800;
}

.student-registration-number,
.student-generation {
    display: inline-flex;
    margin: 10px 0 0;
    border: 1px solid #dfe3ea;
    border-radius: 999px;
    background: #fff;
    color: var(--navy-800);
    padding: 4px 10px;
    font-family: "Nunito", sans-serif;
    font-size: 0.74rem;
    font-weight: 800;
}

.grades-heading .student-registration-number {
    margin-left: 0;
}

.grades-heading .student-generation {
    margin-left: 6px;
}

.dashboard-metrics {
    display: grid;
    margin-top: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.metric-card {
    display: flex;
    min-height: 150px;
    align-items: flex-start;
    gap: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgb(38 58 89 / 5%);
    padding: 22px;
}

.metric-card--attention {
    border-color: #d8cfea;
    background: #fcfaff;
}

.metric-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    background: var(--violet-soft);
    color: var(--violet);
    font-weight: 800;
    place-items: center;
}

.metric-icon--green,
.metric-card--complete .metric-icon {
    background: var(--green-soft);
    color: #347a5b;
}

.metric-card p {
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 0.77rem;
    font-weight: 700;
}

.metric-card strong {
    display: block;
    color: var(--navy-950);
    font-family: "Nunito", sans-serif;
    font-size: 2rem;
    line-height: 1;
}

.metric-card small {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    line-height: 1.4;
}

.dashboard-secondary-grid {
    display: grid;
    margin-top: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-average-card,
.dashboard-progress-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    padding: 24px;
}

.dashboard-average-card h2,
.dashboard-progress-card h2 {
    margin: 4px 0 8px;
    color: var(--navy-950);
    font-family: "Nunito", sans-serif;
    font-size: 1.3rem;
}

.dashboard-average-card > strong {
    display: block;
    margin-top: 4px;
    color: var(--navy-950);
    font-family: "Nunito", sans-serif;
    font-size: 2.8rem;
    line-height: 1;
}

.dashboard-average-card > p,
.dashboard-progress-card > p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.55;
}

.dashboard-average-card a,
.dashboard-progress-card a {
    display: inline-flex;
    margin-top: 18px;
    gap: 8px;
    color: #675b8e;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-progress-card .profile-progress {
    display: block;
    max-width: none;
    margin-top: 18px;
}

.dashboard-evaluation-callout {
    display: flex;
    margin-top: 16px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #d8cfea;
    border-radius: 14px;
    background: #f9f7fd;
    color: var(--navy-900);
    padding: 18px 22px;
    text-decoration: none;
}

.dashboard-evaluation-callout > span:first-child {
    display: grid;
    gap: 4px;
}

.dashboard-evaluation-callout small {
    color: var(--muted);
    line-height: 1.5;
}

.profile-shell {
    width: min(1120px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(42px, 6vw, 70px) 0 88px;
}

.profile-heading h1 {
    margin: 0;
    color: var(--navy-950);
    font-family: "Nunito", sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -0.04em;
}

.profile-heading > p:last-child {
    margin: 10px 0 0;
    color: var(--muted);
}

.profile-shell > .alert,
.profile-shell > .success-alert {
    margin-top: 22px;
}

.profile-layout {
    display: grid;
    margin-top: 28px;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: 20px;
    align-items: start;
}

.profile-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 14px 38px rgb(38 58 89 / 6%);
    padding: clamp(24px, 4vw, 34px);
}

.profile-photo-card {
    text-align: center;
}

.student-avatar--profile {
    width: 116px;
    height: 116px;
    margin: 0 auto 18px;
    font-size: 2rem;
}

.profile-identity h2,
.profile-section-heading h2 {
    margin: 0;
    color: var(--navy-950);
    font-family: "Nunito", sans-serif;
    font-size: 1.35rem;
}

.profile-identity p,
.profile-section-heading > p:last-child,
.profile-photo-help {
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.55;
}

.profile-photo-card form {
    display: grid;
    margin-top: 22px;
    gap: 0;
    justify-items: center;
}

.profile-file-input {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.profile-file-input:focus-visible + .file-picker {
    outline: 3px solid rgb(139 125 179 / 25%);
    outline-offset: 3px;
}

.file-picker {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    border: 1px solid #cfc7e2;
    border-radius: 9px;
    background: #fff;
    color: #675b8e;
    padding: 0 16px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.profile-photo-help {
    margin: 8px 0 18px;
}

.profile-file-name {
    width: 100%;
    margin-top: 12px;
    overflow-wrap: anywhere;
    color: var(--navy-800);
    font-size: 0.78rem;
    line-height: 1.45;
}

.profile-remove-photo {
    border: 0;
    background: transparent;
    color: var(--danger);
    padding: 5px;
    font-size: 0.8rem;
    font-weight: 700;
}

.profile-password-card .settings-form {
    margin-top: 22px;
    border: 0;
    box-shadow: none;
    padding: 0;
}

@media (max-width: 820px) {
    .topbar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 11px 18px 9px;
    }

    .topbar-brand img {
        width: 76px;
    }

    .topbar-actions {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 3px;
        scrollbar-width: thin;
    }

    .topbar-actions > a,
    .logout-button {
        min-height: 38px;
        flex: 0 0 auto;
        padding: 0 12px;
        font-size: 0.78rem;
    }

    .topbar-actions form {
        flex: 0 0 auto;
    }

    .dashboard-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-metrics .metric-card:last-child {
        grid-column: 1 / -1;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .dashboard-shell,
    .profile-shell {
        width: min(100% - 28px, 1180px);
        padding: 30px 0 60px;
    }

    .dashboard-hero {
        align-items: flex-start;
        border-radius: 16px;
        padding: 22px 18px;
    }

    .student-avatar--dashboard {
        width: 64px;
        height: 64px;
        font-size: 1.2rem;
    }

    .dashboard-metrics,
    .dashboard-secondary-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-metrics .metric-card:last-child {
        grid-column: auto;
    }

    .metric-card {
        min-height: 0;
    }

    .dashboard-evaluation-callout {
        align-items: flex-start;
        padding: 16px 18px;
    }

    .profile-card {
        border-radius: 14px;
        padding: 23px 18px;
    }

    .file-picker,
    .profile-photo-card .primary-button {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
