: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 */
/* En móvil, el header no debe crear un bloque contenedor ni un contexto de
   apilamiento para el offcanvas: el menú debe posicionarse contra el viewport. */
.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); }
.site-navigation { --bs-offcanvas-width: min(400px, 100vw); }
.account-support { max-width: 760px; }
.account-support .card-body { min-width: 0; overflow-wrap: anywhere; }
.completion-page { max-width: 940px; }
.completion-page .card { min-width: 0; }
.completion-page .errorlist { padding-left: 1.2rem; color: #b42318; }
.completion-page label { display: inline-block; margin-bottom: .35rem; font-weight: 600; }
.completion-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .completion-page select, .completion-page textarea { max-width: 100%; }
.application-status--pendiente_estudiante { background: #fff3cd; color: #664d03; }
.record-status--pendiente_estudiante { background: #fff3cd; color: #664d03; }
.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; }

/* Surface variants */
.surface-inverse {
    background: linear-gradient(180deg, #0e2e63 0%, #12376f 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg, 1rem);
}

.surface-inverse .eyebrow,
.surface-inverse .eyebrow--light {
    color: #a9e1d7 !important;
}

.surface-inverse .page-title,
.surface-inverse h1,
.surface-inverse h2,
.surface-inverse h3,
.surface-inverse h4,
.surface-inverse strong {
    color: #ffffff !important;
}

.surface-inverse .page-subtitle,
.surface-inverse .muted,
.surface-inverse .text-muted,
.surface-inverse .text-secondary,
.surface-inverse p,
.surface-inverse span:not(.badge):not(.btn) {
    color: rgba(255, 255, 255, 0.88) !important;
}

.surface-inverse .btn-outline-secondary,
.surface-inverse .btn-outline-light {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    background: transparent !important;
}

.surface-inverse .btn-outline-secondary:hover,
.surface-inverse .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.surface-default {
    background: #ffffff;
    color: var(--ink);
    border-radius: var(--radius-lg, 1rem);
}

/* 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); }
.auth-flow-icon { display: grid; width: 3.2rem; aspect-ratio: 1; margin-top: 1rem; place-items: center; border-radius: 1rem; background: #e8f7f3; color: #177c66; font-size: 1.45rem; }
.auth-flow-icon--warning { background: #fff4dc; color: #9b6500; }
.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__filename { overflow: hidden; color: #40536b !important; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.documents-list__statuses { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.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__pending { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid #d7e0ea; background: #f4f7fa; color: #5d6f84; font-size: .71rem; font-weight: 700; }
.documents-list__expired { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid #f0c4c0; background: #fff1f0; color: #a63c35; 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; }
.document-section { margin-top: 1.25rem; padding: 1.25rem; border: 1px solid #dbe5f0; border-radius: .9rem; background: #fff; }
.document-section__heading { display: flex; align-items: flex-start; gap: .8rem; }
.document-section__heading > span { display: grid; width: 2.5rem; aspect-ratio: 1; flex: 0 0 auto; place-items: center; border-radius: .7rem; background: #e8eff7; color: var(--blue); }
.document-section__heading h3 { margin: .1rem 0 .2rem; color: var(--blue-900); font-size: 1.05rem; }
.document-section__heading p { margin: 0; color: var(--muted); font-size: .82rem; }
.identity-document-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: .8rem; margin-top: 1rem; padding: .85rem 1rem; border-radius: .7rem; background: #f5f8fc; }
.identity-document-data div { display: flex; min-width: 0; flex-direction: column; }
.identity-document-data span { color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.identity-document-data strong { overflow-wrap: anywhere; color: var(--ink); font-size: .9rem; }
.identity-document-data a { font-size: .8rem; font-weight: 800; }
.document-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: .8rem; }
.document-slot { display: flex; min-width: 0; flex-direction: column; gap: .15rem; padding: .85rem 1rem; border: 1px solid #dce5ef; border-radius: .7rem; background: #f8fafc; }
.document-slot strong, .document-current strong { color: var(--ink); font-size: .85rem; }
.document-slot span, .document-current span { overflow: hidden; color: #40536b; font-size: .78rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.document-slot small { color: var(--muted); font-size: .72rem; }
.document-slot a, .document-current a { align-self: flex-start; margin-top: .25rem; font-size: .78rem; font-weight: 800; }
.document-slot__missing { color: #9a5a13 !important; font-weight: 700; }
.document-section__legacy { display: flex; gap: .45rem; margin: .8rem 0 0; padding: .7rem .8rem; border-radius: .6rem; background: #fff8e7; color: #775711; font-size: .8rem; }
.document-current { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: .85rem 1rem; border-radius: .7rem; background: #eaf7f2; }
.document-current div { display: flex; min-width: 0; flex-direction: column; }
.document-upload__actions { align-items: center; justify-content: space-between; gap: 1rem; }
.document-upload__actions > span { color: var(--muted); font-size: .75rem; }
.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-header { position: sticky; top: 0; z-index: 1020; }
    .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__statuses { width: 100%; justify-content: flex-start; margin-left: 3.05rem; }
    .documents-list__link { margin-left: auto; }
    .document-upload__header { flex-direction: column; }
    .document-upload__actions { align-items: stretch; flex-direction: column; }
    .document-upload__actions .btn { width: 100%; }
    .identity-document-data { grid-template-columns: 1fr; align-items: start; }
    .document-slots { grid-template-columns: 1fr; }
    .document-current { align-items: flex-start; flex-direction: column; }
    .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; }
}

/* BACKOFFICE PREINSCRIPTION DETAIL */
.preinscription-record-page { background: var(--surface); }
.record-page { min-height: calc(100vh - 154px); background: linear-gradient(180deg, var(--blue-900) 0, var(--blue) 10rem, var(--surface) 10rem); }
.record-back { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1.25rem; color: rgba(255, 255, 255, .86); font-size: .88rem; font-weight: 800; text-decoration: none; }
.record-back:hover, .record-back:focus { color: #fff; text-decoration: underline; }
.record-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
    background: #fff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}
.record-hero__main h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: #0f172a;
}
.record-hero__badges {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.record-type, .record-status {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}
.record-type {
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.record-status {
    background: #eff6ff;
    color: #2563eb;
}
.record-status--admitida { background: #dcfce7; color: #166534; }
.record-status--rechazada { background: #fee2e2; color: #991b1b; }
.record-status--en_revision { background: #fef3c7; color: #92400e; }
.record-hero__eyebrow {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 700;
    margin: 0;
}
.record-hero__proposal {
    font-size: 1.125rem;
    color: #334155;
    margin: 0;
}
.record-hero__proposal span {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}
.record-hero__meta {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.75rem;
    min-width: 280px;
    margin: 0;
}
.record-hero__meta div {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}
.record-hero__meta div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.record-hero__meta dt {
    color: #64748b;
    font-weight: 500;
}
.record-hero__meta dd {
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}
.record-completeness {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}
.record-completeness--complete { color: #16a34a; }
.record-completeness--pending { color: #ea580c; }

.record-journey {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    background: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}
.record-journey__intro {
    padding-right: 1.5rem;
    border-right: 1px solid #e2e8f0;
}
.record-journey__intro span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.record-journey__intro strong {
    font-size: 0.875rem;
    color: #0f172a;
}
.record-journey ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.record-journey li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}
.record-journey li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.75rem;
}
.record-journey li strong {
    color: #475569;
}

.record-step {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}
.record-step__heading {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.record-step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: #0f172a;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 0.5rem;
    flex-shrink: 0;
}
.record-step__heading p {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.05em;
    margin: 0 0 0.25rem;
}
.record-step__heading h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
}
.record-step__heading span {
    font-size: 0.875rem;
    color: #475569;
}

.record-groups {
    padding: 2rem;
}
.record-group {
    margin-bottom: 2.5rem;
}
.record-group:last-child {
    margin-bottom: 0;
}
.record-group > header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.record-group > header span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    flex: 0 0 auto;
}
.record-group > header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 0.25rem;
}
.record-group > header p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.record-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 0;
}
.record-field dt {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.375rem;
}
.record-field dd {
    font-size: 1rem;
    color: #0f172a;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.record-field--empty dd {
    color: #94a3b8;
    font-style: italic;
    font-weight: 400;
}

.record-documents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}
.record-document {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #f8fafc;
}
.record-document__icon {
    font-size: 1.5rem;
    color: #64748b;
}
.record-document__copy {
    flex: 1;
    min-width: 0;
}
.record-document__copy strong {
    display: block;
    font-size: 0.875rem;
    color: #0f172a;
}
.record-document__copy span {
    display: block;
    font-size: 0.875rem;
    color: #3b82f6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.record-document__copy small {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}
.record-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    text-align: center;
}
.record-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #94a3b8;
}
.record-warning {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 0.5rem;
    margin: 2rem;
}
.record-warning i {
    font-size: 1.5rem;
    color: #ea580c;
}
.record-warning strong {
    display: block;
    color: #9a3412;
    margin-bottom: 0.25rem;
}
.record-warning p {
    margin: 0;
    color: #c2410c;
    font-size: 0.875rem;
}

.record-secondary-documents {
    margin: 0 2rem 2rem;
    background: #f1f5f9;
    border-radius: 0.5rem;
}
.record-secondary-documents summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    list-style: none;
}
.record-secondary-documents summary::-webkit-details-marker {
    display: none;
}
.record-secondary-documents summary span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.record-secondary-documents p {
    padding: 0 1.5rem 1rem;
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}
.record-secondary-documents .record-documents {
    padding: 0 1.5rem 1.5rem;
}
.record-document--secondary {
    background: #fff;
    border-color: #cbd5e1;
}

.record-step--confirmation .record-confirmation {
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.record-confirmation > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    font-size: 1.5rem;
}
.record-confirmation strong {
    display: block;
    font-size: 1.125rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
}
.record-confirmation p {
    margin: 0;
    color: #475569;
}

.record-technical {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}
.record-technical summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    list-style: none;
    border-bottom: 1px solid transparent;
}
.record-technical[open] summary {
    border-bottom-color: #e2e8f0;
}
.record-technical summary::-webkit-details-marker {
    display: none;
}
.record-technical summary span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.record-technical dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    margin: 0;
    background: #f8fafc;
}
.record-technical dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.25rem;
}
.record-technical dd {
    font-family: monospace;
    font-size: 0.875rem;
    color: #0f172a;
    margin: 0;
}
.record-technical pre {
    margin: 0;
    padding: 2rem;
    background: #0f172a;
    color: #f8fafc;
    font-size: 0.875rem;
    overflow-x: auto;
}

.record-management {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: sticky;
    top: 92px;
}
.record-management header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.record-management header span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 0.5rem;
    font-size: 1.25rem;
}
.record-management header p {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.05em;
    margin: 0 0 0.25rem;
}
.record-management header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.record-management__help {
    font-size: 0.875rem;
    color: #64748b;
    margin: -0.25rem 0 0.75rem;
}
.record-drive {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.record-drive:hover {
    background: #fff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgb(0 0 0 / 0.05);
}
.record-drive > i:first-child {
    font-size: 1.5rem;
    color: #ea4335;
}
.record-drive span {
    flex: 1;
}
.record-drive strong {
    display: block;
    color: #0f172a;
    font-size: 0.875rem;
}
.record-drive small {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
}
.record-drive > i:last-child {
    color: #94a3b8;
}

.record-danger {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #fecaca;
    padding: 2rem;
}
.record-danger > div {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.record-danger > div > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 0.5rem;
    font-size: 1.25rem;
}
.record-danger h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #991b1b;
    margin: 0 0 0.25rem;
}
.record-danger p {
    font-size: 0.875rem;
    color: #b91c1c;
    margin: 0;
}

@media (max-width: 1199.98px) {
    .record-management { position: static; }
}

@media (max-width: 767.98px) {
    .record-page { background: linear-gradient(180deg, var(--blue-900) 0, var(--blue) 7rem, var(--surface) 7rem); }
    .record-hero { gap: 1.25rem; padding: 1.35rem; }
    .record-hero__main h1 { font-size: 1.75rem; }
    .record-hero__meta { width: 100%; min-width: 0; padding: .85rem 1rem; }
    .record-hero__meta div { align-items: flex-start; gap: 1rem; }
    .record-hero__meta dd { max-width: 62%; overflow-wrap: anywhere; text-align: right; }
    .record-journey { align-items: stretch; flex-direction: column; gap: 1rem; padding: 1rem; }
    .record-journey__intro { padding-right: 0; padding-bottom: .85rem; border-right: 0; border-bottom: 1px solid var(--line); }
    .record-journey ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .record-journey li { align-items: flex-start; }
    .record-journey li strong { font-size: .78rem; line-height: 1.25; }
    .record-step__heading { padding: 1.25rem; }
    .record-step__number { width: 2.5rem; height: 2.5rem; font-size: 1rem; }
    .record-groups { padding: 1.25rem; }
    .record-group { margin-bottom: 2rem; }
    .record-fields, .record-documents { grid-template-columns: 1fr; gap: 1rem; }
    .record-document { align-items: flex-start; flex-wrap: wrap; }
    .record-document .btn { margin-left: 2.5rem; }
    .record-warning { margin: 1.25rem; padding: 1rem; }
    .record-secondary-documents { margin: 0 1.25rem 1.25rem; }
    .record-step--confirmation .record-confirmation { padding: 1.25rem; }
    .record-technical summary { padding: 1.25rem; }
    .record-technical dl, .record-technical pre { padding: 1.25rem; }
    .record-management, .record-danger { padding: 1.35rem; }
}

.staff-page { max-width: 1120px; }
.staff-page .card { min-width: 0; }
.staff-page .errorlist { color: #b42318; padding-left: 1.25rem; }
.staff-assignments { max-height: 22rem; overflow-y: auto; overflow-wrap: anywhere; }
.staff-assignments label { display: block; padding: .5rem .25rem; }
.staff-assignments input { margin-right: .5rem; accent-color: #173e70; }
