:root {
    --blue: #163970;
    --blue-700: #12325f;
    --blue-800: #0f2c57;
    --blue-900: #0a2349;
    --teal: #28786e;
    --ink: #1f2f46;
    --muted: #66758a;
    --line: #dce5ef;
    --surface: #f5f8fc;
    --surface-strong: #eef3f9;
    --white: #fff;
    --success: #19715f;
    --shadow-sm: 0 8px 22px rgba(10, 35, 73, .08);
    --shadow-md: 0 18px 42px rgba(10, 35, 73, .14);
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --bs-primary: #163970;
    --bs-primary-rgb: 22, 57, 112;
    --bs-link-color: #163970;
    --bs-link-hover-color: #0f2c57;
    --bs-border-radius: .75rem;
    --bs-border-radius-lg: 1rem;
    --bs-font-sans-serif: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--blue-900); }
body { min-height: 100vh; margin: 0; background: var(--blue-900); color: var(--ink); font-family: "Manrope", "Segoe UI", sans-serif; }
a { color: inherit; }
main { min-height: calc(100vh - 154px); }
h1, h2, h3, .font-display { font-family: "Sora", "Manrope", sans-serif; }

/* Header */
.site-header { border-bottom: 1px solid rgba(255, 255, 255, .12); background: rgba(10, 35, 73, .96); box-shadow: 0 8px 24px rgba(3, 17, 38, .14); backdrop-filter: blur(14px); }
.site-header .navbar { min-height: 68px; padding: .5rem 0; }
.brand { display: inline-flex; align-items: center; gap: .65rem; margin-right: .75rem; text-decoration: none; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; }
.brand-mark img { display: block; width: 112px; height: auto; filter: brightness(0) invert(1); }
.brand-mark--large { padding: .55rem .8rem; border-radius: .8rem; }
.brand-mark--large img { width: 158px; }
.brand-product { color: rgba(255, 255, 255, .92); font-family: "Sora", sans-serif; font-size: .88rem; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.site-header .navbar-toggler { border-color: rgba(255, 255, 255, .32); }
.site-header .nav-link { padding: .52rem .72rem !important; border-radius: .65rem; color: rgba(255, 255, 255, .78); font-size: .88rem; font-weight: 700; transition: color .15s ease, background .15s ease; }
.site-header .nav-link:hover, .site-header .nav-link:focus { background: rgba(255, 255, 255, .08); color: #fff; }
.site-header .nav-link.active { background: rgba(255, 255, 255, .14); color: #fff; }
.account-menu__toggle { display: inline-flex; align-items: center; border-color: #fff; color: var(--blue-900); font-weight: 700; }
.account-menu__items { min-width: 240px; padding: .5rem; border-color: #dce5ef; border-radius: .85rem; }
.account-menu__identity { padding: .45rem .65rem; color: var(--ink); }
.account-menu__identity strong, .account-menu__identity span { display: block; }
.account-menu__identity span { margin-top: .15rem; color: var(--muted); font-size: .75rem; }
.account-menu__logout { color: #a72c25; }
.account-menu__logout:hover, .account-menu__logout:focus { background: #fff1f0; color: #8b221d; }

/* Shared hero and catalog */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, .08); background: radial-gradient(circle at 88% 20%, rgba(73, 155, 181, .24), transparent 25rem), linear-gradient(135deg, var(--blue-900), var(--blue) 58%, #174b78); color: #fff; }
.page-hero::after { position: absolute; right: -9rem; bottom: -13rem; width: 30rem; height: 30rem; border: 1px solid rgba(255, 255, 255, .08); border-radius: 50%; content: ""; pointer-events: none; }
.page-hero__inner { position: relative; z-index: 1; padding-top: clamp(3rem, 6vw, 5.25rem); padding-bottom: clamp(3rem, 6vw, 5.25rem); }
.eyebrow { display: inline-block; margin-bottom: .8rem; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow--light { color: #a9e1d7; }
.page-hero h1 { max-width: 820px; margin: 0; color: #fff; font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 600; letter-spacing: -.055em; line-height: 1.04; }
.page-hero p { max-width: 670px; margin: 1rem 0 0; color: rgba(255, 255, 255, .72); font-size: 1.02rem; line-height: 1.65; }
.catalog-search { position: relative; }
.catalog-search > i { position: absolute; z-index: 2; top: 50%; left: 1rem; color: #6d7d92; transform: translateY(-50%); }
.catalog-search .form-control { min-height: 52px; padding-left: 2.75rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: .9rem; background: rgba(255, 255, 255, .98); box-shadow: 0 12px 26px rgba(3, 17, 38, .18); }
.catalog-search .form-control:focus { border-color: #8fb0d1; box-shadow: 0 0 0 .25rem rgba(255, 255, 255, .12); }
.catalog-shell { min-height: 55vh; background: var(--surface); }
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2.25rem; }
.catalog-filter { padding: .62rem .9rem; border: 1px solid #d6e0eb; border-radius: 999px; background: #fff; color: #53657b; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; transition: .15s ease; }
.catalog-filter:hover { border-color: #a9bad0; color: var(--blue); }
.catalog-filter.active { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 6px 15px rgba(22, 57, 112, .18); }
.catalog-group + .catalog-group { margin-top: 3.5rem; padding-top: 3.5rem; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 1.35rem; }
.section-heading h2 { margin: .2rem 0 0; color: var(--blue-900); font-size: clamp(1.45rem, 2.8vw, 2rem); font-weight: 600; letter-spacing: -.035em; }
.section-kicker { color: var(--muted); font-size: .73rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* Proposal cards */
.proposal-card { position: relative; overflow: hidden; border: 1px solid #dfe7f0; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.proposal-card:hover { z-index: 2; border-color: #c4d2e1; box-shadow: var(--shadow-md); transform: translateY(-5px); }
.proposal-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #e7edf5; }
.proposal-card__image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.proposal-card:hover .proposal-card__image { transform: scale(1.025); }
.proposal-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(145deg, #dfe8f2, #f4f7fb); color: #9aacc1; font-size: 3rem; }
.proposal-card__status { position: absolute; top: .85rem; left: .85rem; z-index: 2; }
.status-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .66rem; border: 1px solid rgba(255, 255, 255, .65); border-radius: 999px; background: rgba(255, 255, 255, .93); box-shadow: 0 6px 16px rgba(12, 30, 57, .13); color: #58697d; font-size: .69rem; font-weight: 800; backdrop-filter: blur(8px); }
.status-badge--open { background: rgba(237, 252, 247, .96); color: #16614f; }
.status-badge--open .bi-circle-fill { font-size: .45rem; }
.status-badge--seminar { background: rgba(235, 250, 247, .96); color: #22675f; }
.proposal-card__type { display: block; margin-bottom: .55rem; color: var(--blue); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.proposal-card__type--seminar { color: var(--teal); }
.proposal-card h3 { margin-bottom: .8rem; color: var(--blue-900); font-weight: 600; letter-spacing: -.025em; line-height: 1.4; }
.proposal-card h3 a { color: inherit; }
.proposal-card__meta { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.empty-state { padding: 1.5rem; border: 1px dashed #c8d4e2; border-radius: .9rem; background: #fff; color: var(--muted); text-align: center; }

/* Detail pages */
.detail-page { min-height: 70vh; background: linear-gradient(to bottom, var(--blue-900) 0, var(--blue) 12rem, var(--surface) 12rem, var(--surface) 100%); }
.detail-back { display: inline-flex; align-items: center; margin-bottom: 1.25rem; color: rgba(255, 255, 255, .85); font-size: .88rem; font-weight: 700; text-decoration: none; }
.detail-back:hover { color: #fff; }
.detail-copy { padding: clamp(1.6rem, 4vw, 2.5rem); border: 1px solid #dfe7f0; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-md); }
.detail-copy h1 { max-width: 780px; margin: 0; color: var(--blue-900); font-size: clamp(2rem, 4.5vw, 3.35rem); font-weight: 600; letter-spacing: -.055em; line-height: 1.08; }
.detail-lead { margin: 1rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.detail-pill { display: inline-flex; align-items: center; padding: .42rem .68rem; border-radius: 999px; background: #edf2f8; color: #53657b; font-size: .69rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.detail-pill--open { background: #e7f6f1; color: #17624f; }
.detail-pill--open .bi-circle-fill { font-size: .45rem; }
.detail-pill--seminar { background: #e6f4f1; color: #20675f; }
.detail-pill--muted { background: #f0f2f5; color: #778598; }
.detail-information { margin-top: 2rem; }
.detail-meta { height: 100%; padding: 1rem; border: 1px solid #dde6f0; border-radius: .85rem; background: #f8fafc; }
.detail-meta span { display: block; margin-bottom: .32rem; color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.detail-meta strong { color: var(--ink); font-size: .9rem; font-weight: 700; line-height: 1.45; }
.detail-actions-card { display: flex; flex-direction: column; gap: 1.15rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.detail-actions-card__eyebrow { color: var(--blue); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.detail-actions-card h2 { max-width: 560px; margin: .25rem 0 0; color: var(--blue-900); font-size: 1.2rem; font-weight: 600; letter-spacing: -.025em; }
.detail-aside { position: sticky; top: 104px; }
.proposal-image { overflow: hidden; width: 100%; aspect-ratio: 4 / 5; border: 5px solid rgba(255, 255, 255, .95); border-radius: var(--radius-lg); background: #e7edf5; box-shadow: 0 22px 50px rgba(3, 17, 38, .22); }
.proposal-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.proposal-image--placeholder { display: grid; place-items: center; color: #9aacc1; font-size: 4rem; }

/* Home dashboard */
.home-page { min-height: 100vh; background: var(--blue-900); }
.home-page main { min-height: 100vh; }
.home-dashboard { position: relative; min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 83% 12%, rgba(53, 139, 163, .25), transparent 27rem), radial-gradient(circle at 9% 84%, rgba(66, 133, 184, .18), transparent 32rem), linear-gradient(145deg, #081f43, #123565 48%, #164474); color: #fff; }
.home-dashboard::before, .home-dashboard::after { position: absolute; border: 1px solid rgba(255, 255, 255, .07); border-radius: 50%; content: ""; pointer-events: none; }
.home-dashboard::before { top: -17rem; right: -8rem; width: 40rem; height: 40rem; }
.home-dashboard::after { bottom: -23rem; left: -12rem; width: 48rem; height: 48rem; }
.home-dashboard__container { position: relative; z-index: 1; padding-top: clamp(1.25rem, 3vw, 2.2rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.home-dashboard__topbar { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.home-dashboard__brand { display: inline-flex; align-items: center; gap: .9rem; color: #fff; text-decoration: none; }
.home-dashboard__product { font-family: "Sora", sans-serif; font-size: .95rem; font-weight: 600; letter-spacing: -.02em; }
.home-dashboard__account { display: flex; align-items: center; gap: .7rem; padding: .42rem .65rem .42rem .45rem; border: 1px solid rgba(255, 255, 255, .13); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; backdrop-filter: blur(10px); }
.home-dashboard__account:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.home-dashboard__account strong, .home-dashboard__account small { display: block; line-height: 1.25; }
.home-dashboard__account strong { max-width: 180px; overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.home-dashboard__account small { margin-top: .08rem; color: rgba(255, 255, 255, .62); font-size: .65rem; }
.home-dashboard__avatar { display: grid; width: 36px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: #fff; color: var(--blue); }
.home-dashboard__intro { max-width: 760px; margin-top: clamp(4rem, 9vw, 7.5rem); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.home-dashboard__eyebrow { display: block; margin-bottom: .75rem; color: #a8ddd5; font-size: .73rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.home-dashboard__intro h1 { margin: 0; color: #fff; font-size: clamp(2.45rem, 6vw, 4.8rem); font-weight: 600; letter-spacing: -.065em; line-height: .98; }
.home-dashboard__intro p { max-width: 620px; margin: 1.25rem 0 0; color: rgba(255, 255, 255, .65); font-size: 1.03rem; line-height: 1.7; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.dashboard-card { position: relative; display: flex; min-height: 230px; flex-direction: column; padding: 1.35rem; border: 1px solid rgba(255, 255, 255, .17); border-radius: 1.25rem; background: rgba(255, 255, 255, .96); box-shadow: 0 18px 38px rgba(3, 17, 38, .2); color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.dashboard-card:hover { color: var(--ink); box-shadow: 0 25px 48px rgba(3, 17, 38, .3); transform: translateY(-5px); }
.dashboard-card__icon { display: grid; width: 48px; aspect-ratio: 1; place-items: center; border-radius: .9rem; background: #e9eff7; color: var(--blue); font-size: 1.35rem; }
.dashboard-card--seminars .dashboard-card__icon { background: #e7f3f0; color: var(--teal); }
.dashboard-card--profile .dashboard-card__icon { background: #edf0f5; color: #526b88; }
.dashboard-card--management { background: linear-gradient(145deg, #f8fbff, #eaf1f8); }
.dashboard-card--management .dashboard-card__icon { background: var(--blue); color: #fff; }
.dashboard-card__content { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; margin-top: 2.5rem; }
.dashboard-card__content small { color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.dashboard-card__content strong { display: block; margin-top: .3rem; color: var(--blue-900); font-family: "Sora", sans-serif; font-size: 1.22rem; font-weight: 600; letter-spacing: -.035em; }
.dashboard-card__content > span { display: block; margin-top: .5rem; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.dashboard-card__arrow { position: absolute; top: 1.35rem; right: 1.35rem; display: grid; width: 35px; aspect-ratio: 1; place-items: center; border: 1px solid #dce5ef; border-radius: 50%; color: #66809f; transition: .2s ease; }
.dashboard-card:hover .dashboard-card__arrow { border-color: var(--blue); background: var(--blue); color: #fff; transform: rotate(8deg); }

/* Auth, profile and shared forms */
.auth-page, .profile-page { background: linear-gradient(150deg, var(--blue-900), var(--blue) 24rem, var(--surface) 24rem); }
.auth-card, .profile-page .card, .pending-card { border: 1px solid #dce5ef; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-md); }
.auth-card { width: min(100%, 500px); }
.login-card, .pending-card { width: min(100%, 500px); margin: clamp(2.5rem, 8vw, 5rem) auto; padding: clamp(1.5rem, 5vw, 2.5rem); }
.auth-card form p, .profile-page form p, .login-card form p { margin-bottom: 1rem; }
.auth-card input, .profile-page input, .profile-page select, .profile-page textarea, .login-card input { display: block; width: 100%; margin-top: .35rem; padding: .68rem .78rem; border: 1px solid #cdd8e5; border-radius: .55rem; background: #fff; font: inherit; }
.auth-card label, .profile-page label { color: var(--ink); font-size: .88rem; font-weight: 700; }
.profile-page .errorlist { margin: .35rem 0 0; padding-left: 0; color: #b42318; font-size: .85rem; list-style: none; }
.formation-card { background: #f8fafc !important; }
.documents-card__heading { display: flex; align-items: flex-start; gap: 1rem; }
.documents-card__icon { display: grid; width: 2.75rem; aspect-ratio: 1; flex: 0 0 auto; place-items: center; border-radius: .8rem; background: #e7eef8; color: var(--blue); font-size: 1.2rem; }
.documents-card__notice { display: flex; gap: .55rem; margin-top: 1.4rem; padding: .8rem .95rem; border: 1px solid #dce7f4; border-radius: .7rem; background: #f5f8fc; color: #5a6d82; font-size: .86rem; line-height: 1.45; }
.documents-card__notice i { color: var(--blue); }
.documents-list { margin-top: 1.4rem; border-top: 1px solid var(--line); }
.documents-list__item { display: flex; align-items: center; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.documents-list__type { display: grid; width: 2.25rem; aspect-ratio: 1; flex: 0 0 auto; place-items: center; border-radius: .6rem; background: #eff4f9; color: #587393; }
.documents-list__content { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: .1rem; }
.documents-list__content strong { color: var(--ink); font-size: .9rem; }
.documents-list__content span { color: var(--muted); font-size: .78rem; }
.documents-list__verified { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid #b9e4d7; background: #eaf8f3; color: #16715a; font-size: .71rem; font-weight: 700; }
.documents-list__link { display: inline-flex; align-items: center; gap: .35rem; color: var(--blue); font-size: .82rem; font-weight: 700; text-decoration: none; }
.documents-list__link:hover { text-decoration: underline; }
.document-upload { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid #dbe5f0; border-radius: .9rem; background: #f8fafc; }
.document-upload__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.document-upload__header h3 { color: var(--blue-900); font-weight: 600; letter-spacing: -.02em; }
.document-upload__header p, .document-upload .form-text { color: var(--muted); font-size: .8rem; }
.document-upload__formats { flex: 0 0 auto; padding: .3rem .55rem; border-radius: 999px; background: #e8eff7; color: #58708e; font-size: .7rem; font-weight: 800; letter-spacing: .03em; }
.profile-page .document-upload input[type="file"] { padding: .42rem; background: #fff; }
.profile-page .document-upload input[type="file"]::file-selector-button { margin: -.42rem .75rem -.42rem -.42rem; padding: .42rem .78rem; border: 0; border-right: 1px solid #cdd8e5; background: #edf3f9; color: var(--blue-900); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.profile-page .document-upload input[type="file"]:hover::file-selector-button { background: #e3edf7; }
.document-upload__actions { display: flex; justify-content: flex-end; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #dce5ef; }
.message { padding: .75rem; border-radius: .6rem; background: #fff8db; color: #6d5400; font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Person profile and account */
.profile-page__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.profile-page__heading-copy { color: #fff; }
.profile-page__heading-copy .eyebrow { color: #b9e7df; }
.profile-page__heading-copy h1 { color: #fff; }
.profile-page__heading-copy p { color: rgba(255, 255, 255, .84); }
.person-summary__header { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.person-summary__avatar { display: grid; width: 3.5rem; aspect-ratio: 1; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.person-summary__header h3 { margin: 0 0 .25rem; color: var(--blue-900); font-size: 1.35rem; }
.person-summary__header p { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0; }
.verified-email { color: #14745b; font-size: .78rem; font-weight: 800; }
.person-summary__sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; padding: 1.6rem 0; }
.person-summary h4 { margin-bottom: .85rem; color: var(--blue-900); font-size: .82rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.person-summary__section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.person-summary__section-heading a { font-size: .76rem; font-weight: 800; text-decoration: none; }
.person-summary dl { display: grid; gap: .7rem; margin: 0; }
.person-summary dl div { display: grid; grid-template-columns: minmax(115px, .8fr) 1.2fr; gap: .75rem; }
.person-summary dt { color: var(--muted); font-size: .78rem; font-weight: 600; }
.person-summary dd { margin: 0; color: var(--ink); font-size: .86rem; font-weight: 700; overflow-wrap: anywhere; }
.person-summary__education { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.person-summary__education ul { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.person-summary__education li { display: flex; flex-direction: column; padding: .85rem 1rem; border-radius: .65rem; background: #f5f8fc; }
.person-summary__education span, .person-summary__education p { color: var(--muted); font-size: .8rem; }
.profile-account-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.profile-account-actions a { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 800; text-decoration: none; }
.account-email-notice { display: flex; gap: .7rem; padding: .9rem 1rem; border: 1px solid #cfe0f1; border-radius: .7rem; background: #f1f6fb; color: #526a84; font-size: .86rem; }
.profile-form-section + .profile-form-section { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.profile-form-section h3 { color: var(--blue-900); font-size: 1.1rem; }
.identity-section-heading { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1.25rem; }
.identity-section-heading__icon { display: grid; width: 2.7rem; aspect-ratio: 1; flex: 0 0 auto; place-items: center; border-radius: .75rem; background: #e8f0f8; color: var(--blue); font-size: 1.15rem; }
.identity-section-heading h3 { margin: .1rem 0 .2rem; }
.identity-section-heading p { margin: 0; color: var(--muted); font-size: .82rem; }
.profile-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.profile-fields-grid__wide { grid-column: 1 / -1; }
.profile-fields-grid .field { display: flex; flex-direction: column; }
.profile-fields-grid .field label { margin-bottom: .35rem; }
.profile-fields-grid .conditional { display: none; }
.profile-fields-grid .conditional.is-visible { display: flex; }
.profile-fields-grid .errorlist { margin: .35rem 0 0; padding: 0; color: #b42318; font-size: .78rem; list-style: none; }
.formation-document { margin-top: .25rem; padding: 1rem; border: 1px solid #cfe0f1; border-radius: .75rem; background: #f5f9fd; }
.formation-document__heading { display: flex; align-items: flex-start; gap: .75rem; }
.formation-document__heading > span { display: grid; width: 2.4rem; aspect-ratio: 1; flex: 0 0 auto; place-items: center; border-radius: .6rem; background: #dfeefa; color: var(--blue); }
.formation-document__heading strong, .formation-document__heading small { display: block; }
.formation-document__heading small { margin-top: .2rem; color: var(--muted); font-size: .78rem; }
.formation-document__current { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .85rem; padding: .7rem .8rem; border-radius: .55rem; background: #e6f5ef; color: #176b54; font-size: .8rem; }
.formation-document__current a { margin-left: auto; font-weight: 800; }
.formation-document__options { margin-top: 1rem; }
.formation-document-upload { padding: .42rem; }
.formation-document-upload::file-selector-button { margin: -.42rem .75rem -.42rem -.42rem; padding: .65rem .8rem; border: 0; border-right: 1px solid #cbd6e4; background: #e8f0f8; color: var(--blue-900); font: inherit; font-weight: 700; cursor: pointer; }
.education-document-link, .education-document-missing { align-self: flex-start; margin-top: .45rem; font-size: .76rem; font-weight: 800; }
.education-document-link { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; }
.education-document-missing { color: #9a5a13; }
.identity-live-field .form-control[aria-invalid="false"] { border-color: #63b79f; }
.identity-live-field .form-control[aria-invalid="true"] { border-color: #d8736b; }
.phone-field .iti { width: 100%; }
.phone-field .iti input { width: 100%; min-height: 46px; }
.field-live-status { display: flex; align-items: center; gap: .4rem; min-height: 1.25rem; margin-top: .4rem; color: var(--muted); font-size: .76rem; font-weight: 650; }
.field-live-status--valid { color: #14745b; }
.field-live-status--invalid { color: #a7362e; }
.field-live-status i { flex: 0 0 auto; }
.profile-form-actions { display: flex; justify-content: flex-end; gap: .7rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.documents-card__empty { margin: 1.25rem 0 0; color: var(--muted); font-size: .86rem; }
.account-change-card { width: min(100%, 560px); margin: 0 auto; padding: clamp(1.5rem, 5vw, 2.5rem); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-md); }
.account-change-card__back { display: inline-flex; gap: .4rem; margin-bottom: 1.5rem; font-size: .82rem; font-weight: 800; text-decoration: none; }
.account-change-card__icon { display: grid; width: 3.25rem; aspect-ratio: 1; place-items: center; border-radius: .9rem; background: #e8f0f8; color: var(--blue); font-size: 1.25rem; }
.account-change-card h1 { margin: 1rem 0 .5rem; color: var(--blue-900); font-size: 1.8rem; }
.account-change-card > p { color: var(--muted); }
.account-change-card input[type="email"] { display: block; width: 100%; padding: .7rem .8rem; border: 1px solid #cdd8e5; border-radius: .55rem; }
.account-email-current { display: flex; flex-direction: column; margin: 1.5rem 0; padding: 1rem; border-radius: .7rem; background: #f5f8fc; }
.account-email-current span { color: var(--muted); font-size: .75rem; }
.account-email-current small { color: #14745b; }
.account-email-pending { display: flex; gap: .8rem; margin-bottom: .7rem; padding: 1rem; border: 1px solid #f0d68a; border-radius: .7rem; background: #fff9e8; color: #6d5400; }
.account-email-pending p { margin: .2rem 0 0; font-size: .82rem; }
.account-email-pending__actions { display: flex; gap: .5rem; margin-bottom: 1.5rem; }

/* Student application history */
.my-applications-page { background: var(--surface); }
.my-applications-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0; background: linear-gradient(135deg, var(--blue-900), var(--blue)); color: #fff; }
.my-applications-hero .eyebrow { color: #c7d9eb; }
.my-applications-hero h1 { margin: .45rem 0 .6rem; font-size: clamp(2rem, 5vw, 3.4rem); }
.my-applications-hero p { max-width: 650px; margin: 0; color: rgba(255, 255, 255, .76); }
.application-group + .application-group { margin-top: 3.25rem; }
.application-group__heading, .application-group__heading > div { display: flex; align-items: center; gap: .75rem; }
.application-group__heading { justify-content: space-between; margin-bottom: 1.25rem; }
.application-group__heading h2 { margin: 0; color: var(--blue-900); font-size: 1.45rem; }
.application-group__heading > a { color: var(--blue); font-size: .9rem; font-weight: 700; text-decoration: none; }
.application-group__icon { display: grid; width: 2.5rem; aspect-ratio: 1; place-items: center; border-radius: .7rem; background: #e6eef7; color: var(--blue); }
.application-history-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.application-history-card { display: flex; min-height: 245px; flex-direction: column; padding: 1.35rem; border: 1px solid #dce5ef; border-radius: 1rem; background: #fff; box-shadow: 0 8px 24px rgba(28, 55, 87, .06); }
.application-history-card__topline { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.application-type { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.application-status { padding: .3rem .6rem; border-radius: 999px; background: #eaf1f8; color: var(--blue); font-size: .75rem; font-weight: 800; }
.application-status--admitida { background: #e5f7ef; color: #137158; }
.application-status--rechazada { background: #fff0ef; color: #a7362e; }
.application-status--en_revision { background: #fff7dc; color: #7a5c00; }
.application-history-card h3 { margin: 0 0 1.15rem; color: var(--ink); font-size: 1.1rem; line-height: 1.45; }
.application-summary { display: grid; gap: .65rem; margin: auto 0 1.15rem; }
.application-summary div { display: grid; grid-template-columns: 90px 1fr; gap: .65rem; }
.application-summary dt { color: var(--muted); font-size: .78rem; font-weight: 600; }
.application-summary dd { margin: 0; color: var(--ink); font-size: .82rem; font-weight: 700; }
.application-history-card__link { align-self: flex-start; color: var(--blue); font-size: .85rem; font-weight: 800; text-decoration: none; }
.application-history-card__link:hover { text-decoration: underline; }
.application-empty { padding: clamp(2rem, 7vw, 4rem); border: 1px dashed #cbd9e8; border-radius: 1rem; background: #fff; text-align: center; }
.application-empty > span { display: grid; width: 3.5rem; margin: 0 auto 1rem; aspect-ratio: 1; place-items: center; border-radius: 1rem; background: #eaf1f8; color: var(--blue); font-size: 1.45rem; }
.application-empty h2 { color: var(--blue-900); font-size: 1.4rem; }
.application-empty p { margin-bottom: 1.4rem; color: var(--muted); }
.application-empty--compact { padding: 1.25rem; color: var(--muted); font-size: .9rem; text-align: left; }

/* Footer */
.site-footer { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.4rem 0; background: var(--blue-900); color: rgba(255, 255, 255, .56); font-size: .8rem; }
.site-footer strong { color: rgba(255, 255, 255, .82); }

@media (min-width: 992px) {
    .site-navigation { position: static !important; z-index: auto !important; visibility: visible !important; width: auto !important; height: auto !important; border: 0 !important; background: transparent !important; transform: none !important; }
    .site-navigation .offcanvas-body { display: flex; overflow: visible; padding: 0; }
    .py-lg-6 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
}

@media (max-width: 991.98px) {
    .site-navigation { color: var(--ink); }
    .site-navigation .offcanvas-header { border-bottom: 1px solid var(--line); }
    .site-navigation .offcanvas-body { padding: 1rem; }
    .site-header .site-navigation .nav-link { padding: .72rem .8rem !important; color: var(--ink); }
    .site-header .site-navigation .nav-link:hover, .site-header .site-navigation .nav-link:focus { background: #edf2f8; color: var(--blue); }
    .site-header .site-navigation .nav-link.active { background: #e7eef7; color: var(--blue); }
    .account-menu__toggle { width: 100%; justify-content: center; border-color: #cfd9e6; }
    .account-menu__items { width: 100%; }
    .detail-aside { position: static; max-width: 520px; margin: 0 auto; }
    .detail-page { background: linear-gradient(to bottom, var(--blue-900) 0, var(--blue) 9rem, var(--surface) 9rem, var(--surface) 100%); }
}

@media (max-width: 575.98px) {
    .site-header .navbar { min-height: 60px; }
    .brand-mark img { width: 98px; }
    .brand-mark--large img { width: 128px; }
    .home-dashboard__product { display: none; }
    .home-dashboard__intro { margin-top: 4.5rem; }
    .home-dashboard__intro h1 { font-size: clamp(2.25rem, 13vw, 3.35rem); }
    .dashboard-card { min-height: 200px; }
    .page-hero__inner { padding-top: 2.7rem; padding-bottom: 2.7rem; }
    .catalog-toolbar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: none; }
    .catalog-toolbar::-webkit-scrollbar { display: none; }
    .catalog-filter { flex: 0 0 auto; }
    .proposal-card__media { aspect-ratio: 4 / 5; }
    .detail-copy { padding: 1.35rem; }
    .detail-actions-card .btn { width: 100%; }
    .documents-list__item { align-items: flex-start; flex-wrap: wrap; }
    .documents-list__content { min-width: calc(100% - 3.1rem); }
    .documents-list__verified { margin-left: 3.05rem; }
    .documents-list__link { margin-left: auto; }
    .document-upload__header { flex-direction: column; }
    .document-upload__actions .btn { width: 100%; }
    .profile-page__heading { align-items: stretch; flex-direction: column; }
    .person-summary__sections, .profile-fields-grid { grid-template-columns: 1fr; }
    .profile-fields-grid__wide { grid-column: auto; }
    .person-summary dl div { grid-template-columns: 1fr; gap: .15rem; }
    .profile-form-actions, .account-email-pending__actions { flex-direction: column; }
}
