.applicant-profile-page {
    --profile-navy: #0b2b63;
    --profile-teal: #16b9b0;
    --profile-teal-dark: #0d6e78;
    --profile-mint: #eaf9f7;
    --profile-surface: #ffffff;
    --profile-canvas: #f5f7fa;
    --profile-line: #e2e9f2;
    --profile-muted: #647184;
    background:
        radial-gradient(circle at 92% 10%, rgba(23, 103, 223, .08), transparent 25rem),
        radial-gradient(circle at 6% 20%, rgba(22, 185, 176, .07), transparent 22rem),
        var(--profile-canvas);
}

.applicant-profile-shell { max-width: 1380px; }

.applicant-profile-hero {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    overflow: hidden;
    padding: 2rem 2.25rem;
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 1.4rem;
    background:
        radial-gradient(circle at 88% 8%, rgba(47, 124, 255, .22), transparent 28%),
        linear-gradient(135deg, #0b2b63 0%, #15345e 58%, #0d6e78 130%);
    box-shadow: 0 22px 58px rgba(11, 43, 99, .17);
}

@media (min-width: 992px) {
    .applicant-profile-hero {
        position: sticky;
        top: var(--app-sticky-header-offset, 84px);
        z-index: 1010;
    }
}

.applicant-profile-hero::before,
.applicant-profile-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.applicant-profile-hero::before {
    width: 19rem;
    height: 19rem;
    inset: -11rem auto auto -5rem;
    background: rgba(22, 185, 176, .14);
}

.applicant-profile-hero::after {
    width: 12rem;
    height: 12rem;
    inset: auto 42% -9rem auto;
    border: 2rem solid rgba(255,255,255,.035);
}

.applicant-profile-hero__content,
.applicant-profile-hero__actions { position: relative; z-index: 1; }
.applicant-profile-hero__content { max-width: 790px; }
.applicant-profile-eyebrow {
    display: inline-flex;
    margin-bottom: .7rem;
    padding: .28rem .65rem;
    color: #c9fff9;
    border: 1px solid rgba(185, 244, 232, .25);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.applicant-profile-hero h1 { margin: 0 0 .55rem; font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 900; }
.applicant-profile-hero p { margin: 0; color: #dceafb; line-height: 1.9; }
.applicant-profile-hero__meta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.35rem; }
.applicant-profile-hero__meta span {
    display: grid;
    min-width: 145px;
    gap: .12rem;
    padding: .55rem .75rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .75rem;
    background: rgba(255,255,255,.055);
}
.applicant-profile-hero__meta small { color: #b7cce0; font-size: .7rem; }
.applicant-profile-hero__meta strong { color: #fff; font-size: .86rem; }
.applicant-profile-hero__actions { display: flex; flex-direction: column; min-width: 190px; gap: .65rem; }
.applicant-profile-save-button {
    color: #073e4d;
    border: 0;
    background: #8cebdc;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    font-weight: 900;
}
.applicant-profile-save-button:hover,
.applicant-profile-save-button:focus { color: #052f3b; background: #a6f3e8; transform: translateY(-1px); }
.applicant-profile-save-button:disabled,
.applicant-profile-save-button.disabled {
    color: #55706d;
    background: #c8d9d6;
    box-shadow: none;
    cursor: not-allowed;
    opacity: .7;
    transform: none;
}

.applicant-profile-progress {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(0, 2fr);
    gap: 1.5rem;
    padding: 1.2rem 1.35rem;
    border: 1px solid var(--profile-line);
    border-radius: 1.1rem;
    box-shadow: 0 12px 30px rgba(11, 43, 99, .07);
}
.applicant-profile-progress__summary { display: flex; align-items: center; gap: 1rem; padding-left: 1.25rem; border-left: 1px solid var(--profile-line); }
.applicant-profile-progress__summary strong { display: block; margin-bottom: .2rem; color: var(--profile-navy); }
.applicant-profile-progress__summary p { color: var(--profile-muted); font-size: .78rem; line-height: 1.75; }
.applicant-profile-progress__value {
    display: grid;
    place-items: center;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    color: var(--profile-teal-dark);
    border: 7px solid #c9eee7;
    border-radius: 50%;
    background: #f7fffd;
    font-size: 1.05rem;
    font-weight: 900;
}
.applicant-profile-progress .progress { height: .55rem; background: #e8eff2; }
.applicant-profile-progress .progress-bar { border-radius: 999px; background: linear-gradient(90deg, #1767df, var(--profile-teal)); }
.applicant-profile-progress .profile-section-chip { border-radius: .65rem; background: #fbfcfd; }

.applicant-profile-sidebar { position: sticky; top: 88px; }
.applicant-profile-page .card {
    border-color: var(--profile-line);
    border-radius: 1.1rem;
    box-shadow: 0 10px 30px rgba(11, 43, 99, .055);
}
.applicant-profile-photo-card { overflow: hidden; }
.applicant-profile-photo-card::before { content: ""; display: block; height: 5px; background: linear-gradient(90deg, #1767df, var(--profile-teal)); }
.applicant-profile-photo-card .profile-editor { flex-direction: column; align-items: stretch; text-align: center; }
.applicant-profile-photo-card .profile-photo-wrap { margin-inline: auto; }
.applicant-profile-photo-card .profile-photo {
    width: 116px;
    height: 116px;
    border: 5px solid #fff;
    border-radius: 1.25rem;
    box-shadow: 0 10px 24px rgba(11, 43, 99, .16);
}
.applicant-profile-photo-card .profile-photo-placeholder.applicant-profile-avatar-emoji {
    display: grid;
    place-items: center;
    color: #163f5f;
    background: linear-gradient(145deg, #e9f8f5, #edf3ff);
    font-size: 3.4rem;
    line-height: 1;
}
.applicant-profile-photo-copy h2 { color: var(--profile-navy); }
.applicant-profile-photo-copy .helper-text { font-size: .76rem; line-height: 1.75; }
.applicant-profile-photo-copy input[type="file"] { font-size: .76rem; text-align: right; }
.applicant-profile-photo-heading { display: flex; align-items: center; justify-content: center; gap: .55rem; }
.applicant-profile-photo-heading > span {
    padding: .18rem .5rem;
    color: #52677b;
    border: 1px solid #d8e3e9;
    border-radius: 999px;
    background: #f7fafb;
    font-size: .65rem;
    font-weight: 800;
}
.applicant-profile-photo-benefit {
    margin: .55rem 0 .35rem;
    padding: .65rem .7rem;
    color: #315064;
    border: 1px solid #cfe8e3;
    border-radius: .75rem;
    background: #f1fbf8;
    font-size: .74rem;
    line-height: 1.8;
}
.applicant-profile-photo-benefit strong { color: #0d6e78; }
.applicant-profile-avatar-picker {
    margin-top: .9rem;
    padding-top: .85rem;
    border-top: 1px solid var(--profile-line);
}
.applicant-profile-avatar-picker > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .45rem;
    color: var(--profile-navy);
    cursor: pointer;
    list-style: none;
    font-size: .76rem;
    font-weight: 850;
}
.applicant-profile-avatar-picker > summary::-webkit-details-marker { display: none; }
.applicant-profile-avatar-picker > summary b {
    padding: .25rem .45rem;
    color: var(--profile-teal-dark);
    border-radius: .55rem;
    background: var(--profile-mint);
    font-size: .65rem;
}
.applicant-profile-avatar-picker[open] > summary { margin-bottom: .55rem; }
.applicant-profile-avatar-picker__heading strong,
.applicant-profile-avatar-picker__heading small { display: block; }
.applicant-profile-avatar-picker__heading strong { color: var(--profile-navy); font-size: .8rem; }
.applicant-profile-avatar-picker__heading small { margin-top: .2rem; color: var(--profile-muted); font-size: .69rem; line-height: 1.7; }
.applicant-profile-avatar-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .45rem;
    margin-top: .65rem;
}
.applicant-profile-avatar-options button {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 58px;
    padding: .35rem .2rem;
    color: #365267;
    border: 1px solid #d8e4ea;
    border-radius: .7rem;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.applicant-profile-avatar-options button:hover,
.applicant-profile-avatar-options button:focus-visible { border-color: #68aaa3; background: #f5fcfa; box-shadow: 0 0 0 3px rgba(67, 166, 155, .12); transform: translateY(-1px); outline: none; }
.applicant-profile-avatar-options button.is-selected { border-color: var(--profile-teal-dark); background: var(--profile-mint); box-shadow: inset 0 0 0 1px var(--profile-teal-dark); }
.applicant-profile-avatar-options button > span { font-size: 1.45rem; line-height: 1.2; }
.applicant-profile-avatar-options button > small { overflow: hidden; width: 100%; margin-top: .18rem; font-size: .58rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }

.applicant-profile-nav .card-body { display: grid; gap: .25rem; padding: .8rem; }
.applicant-profile-nav__title { padding: .45rem .65rem .7rem; color: var(--profile-navy); font-size: .88rem; }
.applicant-profile-nav a {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .63rem .7rem;
    color: #40566a;
    border-radius: .7rem;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 700;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.applicant-profile-nav a span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: var(--profile-teal-dark);
    border-radius: .55rem;
    background: var(--profile-mint);
    font-size: .72rem;
}
.applicant-profile-nav a:hover,
.applicant-profile-nav a.is-active { color: #1257b6; background: #eef7ff; transform: translateX(-2px); }
.applicant-profile-nav a.is-active { box-shadow: inset -3px 0 0 var(--profile-teal); }
.applicant-profile-save-button.is-dirty::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .4rem; border-radius: 50%; background: #d97706; }

.applicant-profile-card { overflow: hidden; scroll-margin-top: 92px; }
.applicant-profile-card > .card-body { padding: clamp(1.1rem, 2.4vw, 1.7rem); }
.applicant-profile-section-heading { display: flex; align-items: center; gap: .85rem; scroll-margin-top: 92px; }
.applicant-profile-section-heading__icon,
.applicant-profile-subsection-heading > span {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    color: #fff;
    border-radius: .75rem;
    background: linear-gradient(145deg, #1767df, var(--profile-teal));
    box-shadow: 0 7px 16px rgba(23, 103, 223, .18);
    font-size: .82rem;
    font-weight: 900;
}
.applicant-profile-section-heading h2 { margin: 0 0 .2rem; color: var(--profile-navy); font-size: 1.04rem; font-weight: 900; }
.applicant-profile-section-heading p { margin: 0; color: var(--profile-muted); font-size: .78rem; line-height: 1.75; }
.applicant-profile-subsection-heading {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: .65rem 0 .15rem;
    padding: 1rem 0 .3rem;
    border-top: 1px solid var(--profile-line);
    scroll-margin-top: 92px;
}
.applicant-profile-subsection-heading > span { flex-basis: 32px; width: 32px; height: 32px; border-radius: .6rem; }
.applicant-profile-subsection-heading strong { display: block; color: var(--profile-navy); font-size: .9rem; }
.applicant-profile-subsection-heading small { display: block; margin-top: .12rem; color: var(--profile-muted); font-size: .73rem; }

.applicant-profile-page .form-label { margin-bottom: .38rem; color: #263f53; font-size: .8rem; font-weight: 800; }
.applicant-profile-page .form-control,
.applicant-profile-page .form-select {
    min-height: 44px;
    border-color: #d6e1e7;
    border-radius: .72rem;
    background-color: #fcfdfd;
}
.applicant-profile-page textarea.form-control { min-height: auto; }
.applicant-profile-page .form-control:focus,
.applicant-profile-page .form-select:focus {
    border-color: #78aaf2;
    background: #fff;
    box-shadow: 0 0 0 .2rem rgba(23, 103, 223, .11);
}
.applicant-profile-page .readonly-field,
.applicant-profile-page .form-control:disabled { color: #64748b; background: #f0f4f6; }
.applicant-profile-page .form-text { color: #82909e; font-size: .69rem; line-height: 1.6; }
.applicant-profile-page .form-check.form-switch { padding-block: .65rem; }
.applicant-profile-page .form-check-input:checked { border-color: var(--profile-teal); background-color: var(--profile-teal); }
.applicant-profile-page .relation-box { border-color: #d8e6ea; border-radius: .85rem; background: #f7fafb; }

.applicant-education-record {
    padding: 1rem;
    border: 1px solid #dce6eb;
    border-radius: .9rem;
    background: linear-gradient(180deg, #fff, #fbfcfd);
    transition: transform .15s ease, box-shadow .15s ease;
}
.applicant-education-record:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(11, 43, 99, .08); }
.applicant-profile-inline-form { margin-top: 1rem; padding: 1.1rem; border: 1px dashed #a9c9c6; border-radius: .9rem; background: #f5fbfa; }
.applicant-profile-inner-section {
    padding-top: 1.4rem;
    border-top: 1px solid var(--profile-line);
    scroll-margin-top: 92px;
}
.applicant-profile-inner-section .applicant-profile-section-heading { margin-bottom: 1rem; }
.applicant-profile-page .tag-picker { max-height: 240px; border-color: #d8e4e8; background: #f7fafb; }
.applicant-profile-page .tag-choice input:checked + span { border-color: var(--profile-teal); background: var(--profile-teal); }

.applicant-profile-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #cfe2df;
    border-radius: .9rem;
    background: #f2faf8;
}
.applicant-profile-form-footer strong { display: block; color: var(--profile-navy); font-size: .84rem; }
.applicant-profile-form-footer small { display: block; margin-top: .15rem; color: var(--profile-muted); font-size: .72rem; }

@media (max-width: 991.98px) {
    .applicant-profile-hero { align-items: stretch; flex-direction: column; }
    .applicant-profile-hero__actions { flex-direction: row; min-width: 0; }
    .applicant-profile-hero__actions .btn { flex: 1; }
    .applicant-profile-progress { grid-template-columns: 1fr; }
    .applicant-profile-progress__summary { padding: 0 0 1rem; border: 0; border-bottom: 1px solid var(--profile-line); }
    .applicant-profile-sidebar { position: static; }
    .applicant-profile-photo-card .profile-editor { flex-direction: row; text-align: right; }
    .applicant-profile-nav .card-body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .applicant-profile-nav__title { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
    .applicant-profile-shell { padding-inline: .75rem; }
    .applicant-profile-hero { padding: 1.3rem; border-radius: 1rem; }
    .applicant-profile-hero__meta { display: grid; grid-template-columns: 1fr 1fr; }
    .applicant-profile-hero__meta span { min-width: 0; }
    .applicant-profile-hero__meta span:first-child { grid-column: 1 / -1; }
    .applicant-profile-hero__actions { flex-direction: column; }
    .applicant-profile-progress { padding: 1rem; }
    .applicant-profile-progress__value { flex-basis: 62px; width: 62px; height: 62px; }
    .applicant-profile-photo-card .profile-editor { flex-direction: column; text-align: center; }
    .applicant-profile-avatar-options { grid-template-columns: repeat(4, minmax(56px, 1fr)); }
    .applicant-profile-nav .card-body { grid-template-columns: 1fr 1fr; }
    .applicant-profile-nav a { padding: .55rem; font-size: .75rem; }
    .applicant-profile-section-heading { align-items: flex-start; flex-wrap: wrap; }
    .applicant-profile-section-heading .btn { width: 100%; margin-top: .35rem; }
    .applicant-profile-form-footer { align-items: stretch; flex-direction: column; }
    .applicant-profile-form-footer .btn { width: 100%; }
}


/* مدارک زمینه‌ای؛ فایل‌ها کنار همان اطلاعاتی نمایش داده می‌شوند که به آن مربوط‌اند. */
.profile-inline-documents {
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid #cfe2ee;
    border-radius: 16px;
    background: #f8fcfe;
}
.profile-inline-documents__heading,
.profile-inline-documents__heading > div,
.profile-inline-document-requirement__title,
.profile-inline-document-file {
    display: flex;
    align-items: center;
}
.profile-inline-documents__heading {
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .85rem;
}
.profile-inline-documents__heading > div { gap: .55rem; flex-wrap: wrap; }
.profile-inline-documents__heading small {
    flex-basis: 100%;
    margin-inline-start: 2rem;
    color: #60788a;
}
.profile-inline-documents__icon {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9px;
    background: #e7f4fa;
}
.profile-inline-documents__count {
    white-space: nowrap;
    padding: .25rem .55rem;
    border-radius: 999px;
    color: #35657d;
    background: #e7f4fa;
    font-size: .78rem;
}
.profile-inline-documents__uploaded {
    display: grid;
    gap: .5rem;
    margin-bottom: .8rem;
}
.profile-inline-document-file {
    gap: .7rem;
    padding: .65rem .75rem;
    border: 1px solid #c9eadc;
    border-radius: 12px;
    background: #f2fbf7;
}
.profile-inline-document-file__check {
    display: grid;
    place-items: center;
    flex: 0 0 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    color: #fff;
    background: #41a77d;
    font-weight: 800;
}
.profile-inline-document-file__check.is-rejected,
.profile-inline-document-file__check.is-needs_correction { background: #c97a36; }
.profile-inline-document-file > div:nth-child(2) { min-width: 0; flex: 1; }
.profile-inline-document-file strong,
.profile-inline-document-file small { display: block; }
.profile-inline-document-file small { color: #5e7482; overflow-wrap: anywhere; }
.profile-inline-document-file p { margin: .25rem 0 0; color: #9a4f27; font-size: .8rem; }
.profile-inline-document-file__actions {
    display: flex;
    align-items: center;
    gap: .45rem;
}
.profile-inline-document-file__actions .btn { padding-inline: .25rem; text-decoration: none; }
.profile-inline-document-requirements { display: grid; gap: .55rem; }
.profile-inline-document-requirement {
    padding: .75rem;
    border: 1px solid #d9e5ec;
    border-radius: 12px;
    background: #fff;
}
.profile-inline-document-requirement.is-missing-required {
    border-color: #efcf78;
    background: #fff9e8;
}
.profile-inline-document-requirement.is-uploaded {
    border-color: #bfe4d4;
    background: #f5fcf8;
}
.profile-inline-document-requirement__title { gap: .55rem; }
.profile-inline-document-requirement__title > span {
    display: grid;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    color: #7b5b00;
    background: #ffe7a0;
    font-weight: 800;
}
.profile-inline-document-requirement.is-uploaded .profile-inline-document-requirement__title > span {
    color: #176c50;
    background: #d9f2e8;
}
.profile-inline-document-requirement__title > .profile-document-upload-icon {
    color: #286a82;
    background: #e3f1f5;
    box-shadow: inset 0 0 0 1px #c5e0e8;
}
.profile-inline-document-requirement__title > div { min-width: 0; flex: 1; }
.profile-inline-document-requirement__title strong,
.profile-inline-document-requirement__title small { display: block; }
.profile-inline-document-requirement__title small { color: #657985; margin-top: .12rem; }
.profile-inline-document-requirement__title em {
    padding: .2rem .5rem;
    border-radius: 999px;
    color: #765700;
    background: #ffe8a8;
    font-size: .74rem;
    font-style: normal;
    white-space: nowrap;
}
.profile-inline-document-requirement.is-uploaded .profile-inline-document-requirement__title em {
    color: #176c50;
    background: #d9f2e8;
}
.profile-inline-document-requirement__upload {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .55rem;
    margin-top: .65rem;
}
.profile-inline-documents__optional {
    margin-top: .75rem;
    padding-top: .7rem;
    border-top: 1px dashed #cbdce5;
}
.profile-inline-documents__optional summary {
    cursor: pointer;
    color: #315e74;
    font-weight: 700;
}
.profile-inline-documents__optional[open] summary { margin-bottom: .55rem; }
.profile-inline-documents__optional article + article { margin-top: .5rem; }

.profile-review-readiness {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #efcf78;
    border-radius: 14px;
    background: #fff9e8;
}
.profile-review-readiness.is-ready { border-color: #b8e0cf; background: #f0fbf6; }
.profile-review-readiness > span {
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    color: #765700;
    background: #ffe49a;
    font-weight: 900;
}
.profile-review-readiness.is-ready > span { color: #176c50; background: #d5f0e4; }
.profile-review-readiness strong,
.profile-review-readiness small { display: block; }
.profile-review-readiness small { margin-top: .15rem; color: #647984; }
.profile-document-requirement.is-uploaded { border-color: #bfe4d4; background: #f5fcf8; }
.profile-document-requirement.is-missing { border-color: #efcf78; background: #fff9e8; }
.profile-document-badge.is-uploaded { color: #176c50; background: #d9f2e8; }
.profile-document-stage-link {
    margin-inline-start: auto;
    color: #246783;
    font-size: .8rem;
    white-space: nowrap;
}
.profile-review-quick-upload {
    margin-top: 1rem;
    padding: .85rem 1rem;
    border: 1px dashed #b9d5e3;
    border-radius: 14px;
    background: #fbfdfe;
}
.profile-review-quick-upload summary { cursor: pointer; font-weight: 700; color: #285d76; }
.profile-review-quick-upload[open] summary { margin-bottom: .8rem; }
.profile-review-submit {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 14px;
    background: #f1f6f8;
}
.profile-review-submit ul { margin: .5rem 0 0; color: #725500; }
.profile-review-submit form { margin-inline-start: auto; }

@media (max-width: 767px) {
    .profile-inline-documents { padding: .8rem; }
    .profile-inline-documents__heading,
    .profile-inline-document-file,
    .profile-inline-document-requirement__title,
    .profile-review-submit { align-items: stretch; flex-direction: column; }
    .profile-inline-documents__heading small { margin-inline-start: 0; }
    .profile-inline-documents__count { align-self: flex-start; }
    .profile-inline-document-file__check { align-self: flex-start; }
    .profile-inline-document-file__actions { justify-content: flex-start; }
    .profile-inline-document-requirement__title em { align-self: flex-start; }
    .profile-inline-document-requirement__upload { grid-template-columns: 1fr; }
    .profile-document-stage-link { margin-inline-start: 0; }
    .profile-review-submit form,
    .profile-review-submit .btn { width: 100%; margin-inline-start: 0; }
}


/* Conditional sections must hide their heading, uploads and existing files together. */
.profile-inline-documents[hidden],
.profile-document-requirement[data-document-condition][hidden] {
    display: none !important;
}

/* Compact contextual document rows and neutral completed states. */
.profile-inline-documents {
    margin-top: .45rem;
    padding: .7rem;
    border-color: #d5e1e9;
    border-radius: 12px;
    background: #f8fbfd;
}
.profile-inline-documents__heading {
    margin-bottom: .5rem;
}
.profile-inline-documents__heading small {
    color: #6d8090;
    font-size: .72rem;
}
.profile-inline-documents__uploaded {
    gap: .25rem;
    margin-bottom: .3rem;
}
.profile-inline-document-file {
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .4rem;
    min-height: 0;
    padding: .32rem .45rem;
    border-color: #d7e3ea;
    border-radius: 8px;
    background: #fff;
}
.profile-inline-document-file__check {
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    min-width: 1.35rem;
    flex: 0 0 1.35rem;
    padding: 0;
    border-radius: 50%;
    color: #197257;
    background: #e2f3ec;
    font-family: Arial, sans-serif;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1;
}
.profile-inline-document-file__check.is-rejected {
    color: #b42318;
    background: #fee4e2;
}
.profile-inline-document-file__check.is-needs_correction {
    color: #a15c00;
    background: #fff0c2;
}
.profile-inline-document-file__content {
    min-width: 0;
    flex: 1;
}
.profile-inline-document-file__content strong {
    overflow: hidden;
    font-size: .78rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-inline-document-file__content small {
    overflow: hidden;
    color: #738695;
    font-size: .66rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-inline-document-file__actions {
    gap: .25rem;
    font-size: .68rem;
    white-space: nowrap;
}
.profile-inline-document-file__actions .btn {
    padding: 0 .15rem;
    font-size: .72rem;
}
.profile-inline-document-requirement {
    padding: .58rem;
    border-radius: 10px;
}
.profile-inline-document-requirement.is-uploaded {
    border-color: #d3e0e8;
    background: #fff;
}
.profile-inline-document-requirement.is-capacity-complete {
    padding: .42rem .55rem;
}
.profile-inline-document-requirement.is-capacity-complete .profile-inline-document-requirement__title small:not(.d-block) {
    display: none;
}
.profile-inline-document-requirement.is-capacity-complete .profile-inline-document-requirement__title > span {
    width: 1.35rem;
    height: 1.35rem;
    color: #197257;
    background: #e2f3ec;
    font-size: .72rem;
}
.profile-inline-document-requirement.is-capacity-complete .profile-inline-document-requirement__title em {
    color: #36566f;
    background: #edf3f7;
}
.profile-review-readiness.is-pending[role="button"] {
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.profile-review-readiness.is-pending[role="button"]:hover,
.profile-review-readiness.is-pending[role="button"]:focus-visible {
    border-color: #d99b16;
    box-shadow: 0 7px 18px rgba(129, 91, 10, .1);
    transform: translateY(-1px);
    outline: none;
}
.profile-review-missing-link {
    color: #654600;
}

.education-document-notice {
    display: grid;
    gap: .25rem;
    margin-top: 1rem;
    padding: .7rem .85rem;
    border: 1px solid #e9c877;
    border-right: 4px solid #ba7a15;
    border-radius: 8px;
    color: #68440d;
    background: #fff9eb;
    font-size: .82rem;
}
.education-document-notice span { color: #695943; line-height: 1.7; }
.profile-inline-documents { border-radius: 8px; background: #fff; }
.profile-inline-documents__heading { align-items: start; padding-bottom: .55rem; border-bottom: 1px solid #e3eaf0; }
.profile-inline-documents__heading > div { display: grid; gap: .08rem; }
.profile-inline-documents__heading strong { color: #1f4252; font-size: .9rem; }
.profile-inline-documents__heading small { margin: 0; font-size: .72rem; }
.profile-inline-documents__guidance { margin: .25rem 0 .65rem; color: #526979; font-size: .76rem; }
.profile-inline-document-requirement { border-radius: 8px; }
.profile-inline-document-requirement.is-missing-required { border-right: 3px solid #c2851e; }
.profile-inline-document-requirement__title em { border-radius: 5px; }
.profile-inline-documents__uploaded {
    margin: .8rem 0 0;
    padding-top: .65rem;
    border-top: 1px solid #e3eaf0;
}
.profile-inline-documents__uploaded h3 { margin: 0 0 .35rem; color: #375467; font-size: .8rem; font-weight: 800; }
.profile-inline-document-file { border-radius: 8px; }
.profile-inline-documents__optional summary { font-size: .79rem; }

@media (max-width: 767px) {
    .profile-inline-documents {
        padding: .6rem;
    }
    .profile-inline-document-file {
        grid-template-columns: 1.25rem minmax(0, 1fr) auto;
    }
    .profile-inline-document-file__check {
        align-self: center;
    }
    .profile-inline-document-file__actions {
        justify-content: flex-start;
    }
}
