.mentor-profile .profile-step-nav{grid-template-columns:repeat(5,minmax(0,1fr))}.mentor-profile .profile-step-nav button{font-size:13px}.mentor-profile fieldset[hidden]{display:none}.mentor-checkbox-grid{display:flex;gap:12px 24px;flex-wrap:wrap}.mentor-checkbox-grid label,.mentor-consents label{display:flex;align-items:flex-start;gap:10px}.mentor-consents{display:grid;gap:16px;padding:20px;background:#f7f3fd;border-radius:14px}.mentor-slot{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:12px;align-items:end;margin-bottom:16px}.mentor-photo-preview{width:160px;height:160px;object-fit:cover;border-radius:16px;margin-top:16px}.mentor-profile .required-mark,.mentor-profile .text-danger{color:#b42318}.mentor-profile select[multiple]{min-height:150px}.mentor-profile .otp-controls small{display:block;margin-top:8px}.mentor-profile input[type=checkbox]{accent-color:#831de2;min-width:17px;height:17px}.mentor-profile .profile-step-nav button.active{background:#831de2;color:white}.mentor-profile .form-hint{display:block;margin-top:6px}@media(max-width:900px){.mentor-profile .profile-step-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.mentor-slot{grid-template-columns:1fr 1fr}.mentor-slot>div:first-child{grid-column:1/-1}}
#photo-crop{max-width:320px;margin-top:16px}#photo-canvas{width:100%;height:auto;border-radius:16px}#photo-zoom{width:100%}

/* Consistent form proportions inside the mentor workspace. */
.mentor-profile{max-width:1180px}.mentor-profile .profile-step-nav{display:grid;gap:10px}.mentor-profile .profile-step-nav button{padding:12px;line-height:1.4;min-height:64px}.mentor-profile .profile-step-nav button.active>span{background:#fff;color:#831de2}.mentor-profile .profile-field-grid{gap:24px;align-items:start}.mentor-profile .profile-field-grid>div{min-width:0}.mentor-profile .profile-field-grid label{line-height:1.4;min-height:21px;font-size:14px}.mentor-profile .form-control,.mentor-profile .form-select{width:100%;min-height:46px;border:1px solid #ded6e7;border-radius:10px;font-size:15px;padding:11px 13px;background-color:white}.mentor-profile textarea.form-control{min-height:170px;resize:vertical}.mentor-profile input[readonly]{background:#f8f6fb;color:#64546e}.mentor-profile input[type=file]{padding:9px 12px}.mentor-profile .form-control:focus,.mentor-profile .form-select:focus{border-color:#831de2;box-shadow:0 0 0 3px #831de21a}.mentor-profile .form-hint{font-size:12px;line-height:1.6;color:#766582}.mentor-profile .text-danger{font-size:13px;display:block;margin-top:5px}.mentor-profile .otp-controls .d-flex{flex-wrap:wrap}.mentor-profile .otp-controls input{flex:1;min-width:100px;width:0}.mentor-profile .otp-controls .btn{min-height:46px;padding:10px 14px}.mentor-profile #email-status{margin-top:10px}.mentor-profile .profile-wizard-actions{margin-top:28px}.location-attribution{margin-top:-10px;color:#83728e}.expertise-picker{padding:16px;border:1px solid #ded6e7;border-radius:12px;background:#fcfaff}.expertise-selected{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.expertise-selected:empty{display:none}.expertise-chip{display:flex;gap:8px;align-items:center;background:#efe2fc;color:#67229b;border:0;border-radius:20px;padding:7px 12px;font-size:13px}.expertise-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:240px;overflow-y:auto;gap:4px 12px;margin-top:12px}.mentor-profile .expertise-option{display:flex;align-items:center;gap:10px;padding:10px;margin:0;border-radius:8px;font-weight:500;cursor:pointer;min-height:44px}.expertise-option:hover{background:#f1eafa}.expertise-option:has(input:checked){background:#eee1fa;color:#662497}.expertise-option[hidden]{display:none!important}.expertise-option small{font-size:11px;color:#766582}#photo-crop{max-width:360px;padding:16px;background:#f8f4fc;border:1px solid #e6d9f2;border-radius:16px}#photo-canvas{cursor:grab;touch-action:none;user-select:none}#photo-canvas:active{cursor:grabbing}#photo-crop input[type=range]{display:block;width:100%;margin:4px 0 16px;accent-color:#831de2}#photo-crop label{font-size:13px;margin:0}.mentor-profile .mentor-checkbox-grid label{margin:0;display:flex;align-items:center;min-height:40px;padding:7px 10px;border:1px solid #e5dceb;border-radius:8px;font-weight:500}.mentor-profile .mentor-consents label{min-height:0;margin:0;line-height:1.7;font-weight:500}.mentor-profile .mentor-slot label{font-size:13px}.mentor-profile .mentor-slot .btn{min-height:46px}.mentor-profile [hidden]{display:none!important}@media(max-width:767px){.mentor-profile .profile-field-grid{grid-template-columns:1fr}.mentor-profile .profile-step-nav{grid-template-columns:1fr 1fr}.mentor-profile .expertise-options{grid-template-columns:1fr}.mentor-profile .profile-wizard-actions>div{width:100%;gap:8px}.mentor-profile .profile-wizard-actions .btn{flex:1}.mentor-profile .profile-step-nav button{font-size:12px}.mentor-profile .profile-step legend{font-size:21px}} 

.mentor-profile .profile-field-grid{gap:18px 24px;margin-top:18px}.contact-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start}.mentor-profile .contact-input-row .btn{height:46px;min-width:82px;padding:10px 16px;margin:0!important}.contact-verification-field .form-hint{margin-top:5px}.contact-otp-panel{padding:18px;background:#f8f3fd;border:1px solid #e7d9f3;border-radius:12px}.contact-otp-heading{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:12px}.contact-otp-heading h2{font-size:17px;font-weight:700;margin:0 0 5px}.contact-otp-heading p{font-size:13px;margin:0;overflow-wrap:anywhere}.contact-otp-row{display:grid;grid-template-columns:minmax(130px,250px) auto auto;gap:10px;justify-content:start;align-items:start}.mentor-profile .contact-otp-panel .text-danger{margin-top:8px}.contact-otp-row .btn{min-height:46px}.mentor-profile .location-attribution{margin:0}.mentor-profile .profile-field-grid label{margin-bottom:6px}@media(max-width:767px){.contact-otp-row{grid-template-columns:1fr 1fr}.contact-otp-row input{grid-column:1/-1}.contact-otp-heading{gap:8px}.contact-otp-heading h2{font-size:16px}.mentor-profile .profile-field-grid{gap:18px}.contact-input-row{grid-template-columns:minmax(0,1fr) auto}}

.mentor-profile .verification-status.is-verified{color:#24734a;font-weight:600}.verification-status.is-verified::before{content:"\2713";display:inline-block;margin-right:5px;}

.mentor-profile>small.location-attribution{display:block;font-size:11px;line-height:1.5;margin-top:10px;}

.mentor-profile .label-inline-hint{display:inline;font-size:11px;font-weight:400;line-height:1.4;color:#766582;}

.mentor-save-status{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;padding:14px;background:#f6f0fc;border-radius:12px}.mentor-save-status>span{font-size:13px;color:#654778}.mentor-review .admin-card{margin-top:20px}.mentor-review h2{display:flex;align-items:center;justify-content:space-between;gap:12px}.mentor-wallet-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.mentor-wallet-summary>div{padding:20px;border:1px solid #e4d9ef;border-radius:14px;background:#fff}.mentor-wallet-summary span{display:block;font-size:13px;color:#786487;margin-bottom:10px}.mentor-wallet-summary strong{display:block;font-size:26px;color:#6324a0}@media(max-width:767px){.mentor-save-status{align-items:flex-start;flex-direction:column}.mentor-wallet-summary{grid-template-columns:1fr}.mentor-review h2{flex-wrap:wrap}}/* Keep controls aligned; only meaningful help and errors take up space. */
.mentor-profile .profile-field-grid>div{min-width:0}
.mentor-profile .profile-field-grid{align-items:start}
.mentor-profile .contact-input-row{grid-template-columns:minmax(0,1fr)}
.mentor-profile .contact-input-row:has(>.btn:not([hidden])){grid-template-columns:minmax(0,1fr) auto}
.mentor-profile .international-phone-code select{color:transparent!important;text-shadow:none}
.mentor-profile .international-phone-code select option{color:#392747}
.mentor-profile .international-phone-code-value{background:#fff;z-index:1}
.mentor-profile .international-phone-code::after{z-index:2}
.mentor-profile .international-phone-input [data-phone-hint]{display:none}
.mentor-profile .profile-field-grid .field-validation-valid:empty,.mentor-profile .profile-field-grid .text-danger:empty{display:none}
.mentor-profile .language-picker>.language-results{margin-top:0}
.mentor-profile .language-picker>.language-results:not(:empty){margin-top:8px}
.mentor-profile .language-picker>small:empty{display:none}
.mentor-profile .contact-input-row .form-control,.mentor-profile .contact-input-row .form-select,.mentor-profile .contact-input-row .btn,.mentor-profile .international-phone-code{height:48px;min-height:48px}
.mentor-profile .verification-status{line-height:1.6}
.mentor-profile .profile-field-grid .step-field-error{line-height:1.5;overflow-wrap:anywhere}
.mentor-profile .language-picker>.language-selected:empty{display:none!important}
.mentor-profile .language-selected:not(:empty){margin-top:8px}
.mentor-profile .profile-completion-card{position:static}
/* Search suggestions overlay the form instead of stretching one grid column. */
.mentor-profile .language-picker{position:relative}
.mentor-profile .language-picker>.language-results:not(:empty){position:absolute;z-index:20;top:48px;left:0;right:0;max-height:220px;overflow-y:auto;padding:8px;margin-top:4px;border:1px solid #ded6e7;border-radius:10px;background:#fff;box-shadow:0 10px 28px #38224e18}
.teaching-setup-tip{padding:12px 16px;border:1px solid #e4def2;border-radius:12px;background:#f8f6fc;color:#65577c}
.teaching-setup-list{display:grid;gap:14px;margin:20px 0}
.mentor-profile .teaching-setup-option{display:flex;align-items:flex-start;gap:14px;padding:20px;border:1px solid #ded6ed;border-radius:14px;background:#fff;cursor:pointer;transition:background .15s,border-color .15s}
.mentor-profile .teaching-setup-option:has(input:checked){background:#f6f2fc;border-color:#8a64bd}
.mentor-profile .teaching-setup-option:focus-within{outline:3px solid #c9b5e7;outline-offset:2px}
.mentor-profile .teaching-setup-option input{width:18px;height:18px;flex:0 0 18px;margin-top:3px;accent-color:#6c3b9f}
.teaching-setup-title{display:block;font-weight:700;color:#302042}
.teaching-setup-title small{display:inline-block;font-size:11px;text-transform:uppercase;color:#7145a0;margin-left:8px}
.teaching-setup-description{display:block;margin-top:5px;color:#6e6679;font-size:14px;font-weight:400}
@media(max-width:575px){.mentor-profile .teaching-setup-option{padding:16px;gap:10px}.teaching-setup-title small{display:block;margin:4px 0 0}}

.mentor-profile .profile-step-nav{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:767px){.mentor-profile .profile-step-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Weekly teaching availability calendar. */
.requirements-slot-calendar>p{font-size:14px;line-height:1.6}
.requirements-slot-scroll{overflow-x:auto;max-width:100%;border:1px solid #e5d9ef;border-radius:10px}
.requirements-slot-calendar table{width:100%;min-width:490px;border-collapse:collapse;background:#fff;table-layout:fixed}
.requirements-slot-calendar th{font-size:11px;padding:9px 5px;text-align:center;background:#faf7ff;color:#655276}
.requirements-slot-calendar th:first-child{width:105px;white-space:nowrap}
.requirements-slot-calendar td{padding:3px;border-top:1px solid #f0e8f7;text-align:center}
.requirements-slot-calendar td label{display:block;position:relative;margin:0;height:32px;cursor:pointer}
.requirements-slot-calendar td input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.requirements-slot-calendar td span{display:grid;place-items:center;height:100%;border:1px solid #e6dcef;border-radius:6px;background:#fff;color:transparent}
.requirements-slot-calendar td input:checked+span{background:#4c0abb;color:#fff;border-color:#4c0abb}
.requirements-slot-calendar td input:focus-visible+span{outline:3px solid #bd94f3;outline-offset:1px}
.requirements-slot-calendar th:first-child{position:sticky;left:0;z-index:1;background:#faf7ff}
.requirements-slot-calendar th .requirements-slot-toggle{display:flex;align-items:center;justify-content:center;gap:5px;margin:0;font-size:11px;cursor:pointer}
.requirements-slot-calendar th .requirements-slot-toggle input{position:static;width:15px;height:15px;min-height:0;flex:0 0 15px;margin:0;accent-color:#6414e8;cursor:pointer}
.requirements-slot-calendar th .requirements-slot-toggle input:focus-visible{outline:2px solid #8d45d0;outline-offset:2px}
.mentor-calendar-presets{margin:20px 0}.mentor-calendar-presets small{display:block}.mentor-profile .requirements-slot-calendar{border:0;min-width:0;padding:0;margin:16px 0}.mentor-profile #availability-slots[hidden]{display:none!important}
/* Profile sections share the portal font and a consistent four/eight-pixel spacing scale. */
.mentor-profile{--profile-heading:24px;--profile-section:22px;--profile-label:14px;--profile-control:15px;--profile-help:13px;font-family:var(--body);font-size:16px;line-height:1.6}
.mentor-profile.profile-settings{padding-top:8px;padding-bottom:32px}
.mentor-profile .profile-settings-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:8px}
.mentor-profile .profile-settings-heading h1{font-family:var(--head);font-size:var(--profile-heading);font-weight:700;line-height:1.25;margin:0;letter-spacing:-.025em}
.mentor-profile .profile-completion-card{width:240px;flex:0 0 auto;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.mentor-profile .profile-completion-card>div:first-child{gap:8px;margin-bottom:4px;align-items:center}
.mentor-profile .profile-completion-card strong{font-size:var(--profile-help);font-weight:400}
.mentor-profile .profile-completion-card #profile-completion-value{font-size:var(--profile-label);font-weight:700}
.mentor-profile .profile-completion-card .profile-progress{height:4px}
.mentor-profile .profile-wizard{padding:12px 20px}
.mentor-profile .profile-step-nav{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;max-width:100%;margin:0 0 8px;padding:0 0 8px;scrollbar-width:thin;scroll-snap-type:x proximity}
.mentor-profile .profile-step-nav button{font-family:inherit;font-size:var(--profile-help);font-weight:600;line-height:1.4;flex:1 0 120px;min-width:0;min-height:40px;padding:8px;gap:8px;white-space:nowrap;scroll-snap-align:start}
.mentor-profile .profile-step-nav button>span{width:24px;height:24px;flex-shrink:0;font-size:var(--profile-help)}
.mentor-profile .profile-step-label{font:inherit}
.mentor-profile .profile-step{margin:0}
.mentor-profile .profile-step legend{font-family:var(--head);font-size:var(--profile-section);font-weight:700;line-height:1.3;letter-spacing:-.025em;margin:0}
.mentor-profile .profile-step>p{font-size:16px;line-height:1.6;margin:8px 0 0}
.mentor-profile .profile-step h2{font-family:var(--head);font-size:18px;line-height:1.4;margin:0 0 8px}
.mentor-profile .profile-field-grid{gap:20px 24px;margin-top:16px;align-items:start}
.mentor-profile .profile-field-grid label{font-family:inherit;font-size:var(--profile-label);line-height:1.5;font-weight:600;margin-bottom:8px;min-height:21px}
.mentor-profile .form-control,.mentor-profile .form-select{font-family:inherit;font-size:var(--profile-control);line-height:1.5;min-height:48px;padding:12px}
.mentor-profile .form-hint,.mentor-profile .text-danger,.mentor-profile .label-inline-hint,.mentor-profile .verification-status,.mentor-profile #video-upload-status{font-family:inherit;font-size:var(--profile-help);font-weight:400;line-height:1.5;margin-top:8px}
.mentor-profile .mentor-checkbox-grid{gap:12px}
.mentor-profile .mentor-checkbox-grid label,.mentor-profile .mentor-consents label{font-weight:400;margin-bottom:0;line-height:1.6}
.mentor-profile .mentor-consents{gap:16px;padding:16px}
.mentor-profile .teaching-setup-list{gap:16px;margin:16px 0 0}
.mentor-profile .teaching-setup-option{gap:12px;padding:16px;margin:0;font-weight:400}
.mentor-profile .teaching-setup-title{font-size:var(--profile-control);line-height:1.5;font-weight:600}
.mentor-profile .teaching-setup-title small{font-size:12px;line-height:1.5}
.mentor-profile .teaching-setup-description{font-size:var(--profile-help);line-height:1.5;margin-top:4px}
.mentor-profile .mentor-save-status{flex-direction:row;align-items:center;gap:16px;margin:24px 0 0;padding:0;background:transparent}
.mentor-profile .mentor-save-status>span,.mentor-profile #mentor-step-counter{font-family:inherit;font-size:var(--profile-help);line-height:1.5}
.mentor-profile .mentor-save-status .btn{flex-shrink:0}
.mentor-profile .mentor-review-help{margin-top:16px;font-size:var(--profile-help);line-height:1.5;color:var(--muted)}
.mentor-profile .mentor-review-help summary{cursor:pointer}
.mentor-profile .mentor-review-help .alert{margin:8px 0 0;padding:12px;font-size:var(--profile-help)}
.mentor-profile .profile-wizard-actions{gap:16px;margin-top:16px;padding-top:16px}
.mentor-profile .profile-wizard-actions>div{gap:12px}
.mentor-profile .profile-wizard-actions .btn{font-family:inherit;font-size:16px;line-height:1.5;min-height:48px}
.mentor-profile .btn.btn-sm{font-family:inherit;font-size:var(--profile-label);line-height:1.5;min-height:40px}
.mentor-profile .location-attribution{display:block;margin:16px 0 0;font-size:12px;line-height:1.5}
@media(max-width:767px){.mentor-profile .profile-settings-heading{flex-direction:row;align-items:center;gap:12px}.mentor-profile .profile-settings-heading h1{font-size:22px;min-width:0}.mentor-profile .profile-completion-card{width:88px;flex:0 0 88px}.mentor-profile .profile-completion-card #profile-completion-heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.mentor-profile .profile-completion-card>div:first-child{justify-content:flex-end}.mentor-profile .profile-wizard{padding:12px}.mentor-profile .profile-field-grid{gap:20px}.mentor-profile .profile-step-nav button{flex:1 0 120px}.mentor-profile .profile-wizard-actions>div{gap:12px}}
@media(max-width:360px){.mentor-profile .profile-settings-heading h1{font-size:20px;white-space:nowrap}.mentor-profile .mentor-save-status{gap:8px}.mentor-profile .mentor-save-status .btn{padding-inline:10px}}
.mentor-profile .requirements-slot-calendar th,.mentor-profile .requirements-slot-calendar th .requirements-slot-toggle{font-family:inherit;font-size:var(--profile-help);line-height:1.5}
/* Title rhythm and compact language selections use the profile's shared theme sizes. */
.mentor-profile.profile-settings{padding-top:16px}
.mentor-profile .profile-settings-heading{margin-bottom:16px}
.mentor-profile .language-selected:not(:empty){margin:8px 0 0!important}
.mentor-profile .language-selected>button.btn{min-height:28px;padding:4px 10px;border-radius:8px;font-family:inherit;font-size:var(--profile-help);font-weight:500;line-height:18px;letter-spacing:0;box-shadow:none;background:#f3ecfc;border-color:#d9c8ee;color:#6425a0;max-width:100%;white-space:normal}
.mentor-profile .language-selected>button.btn:hover{background:#eaddfa;border-color:#b896df}
.mentor-profile .language-results>button.btn{min-height:32px;padding:6px 10px;border-radius:8px;font-family:inherit;font-size:var(--profile-help);font-weight:400;line-height:18px}
@media(max-width:767px){.mentor-profile.profile-settings{padding-top:12px}.mentor-profile .profile-settings-heading{margin-bottom:12px}}
.mentor-profile .language-picker>.language-results:not(:empty){top:calc(100% + 4px);margin-top:0}
/* Give every step heading the same separation from the tabs and its first content. */
.mentor-profile .profile-step-nav{margin-bottom:16px}
.mentor-profile .profile-step{padding:0}
.mentor-profile .profile-step>legend{float:none;display:block;width:100%;padding:0;margin:0 0 16px;line-height:1.3}
.mentor-profile .profile-step>.profile-field-grid{margin-top:0}
.mentor-profile .profile-step>p{margin:0 0 16px}
.mentor-profile .profile-step>legend+*{margin-top:0}
/* Tabs provide the visible step title; retain legends only as accessible group names. */
.mentor-profile .profile-step>legend.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
/* Separate the step tabs from the first visible form field. */
.mentor-profile .profile-step-nav{margin-bottom:24px}

/* Play and remove controls stay on the uploaded demo preview. */
.mentor-profile .mentor-video-preview{position:relative;margin-top:12px;overflow:hidden;border:1px solid #ded7ef;border-radius:12px;background:#171322;aspect-ratio:16/9}
.mentor-profile .mentor-video-preview[hidden]{display:none}
.mentor-profile .mentor-video-preview video{display:block;width:100%;height:100%;object-fit:contain}
.mentor-profile .mentor-video-remove,.mentor-profile .mentor-video-play{position:absolute;display:grid;place-items:center;padding:0;border:0;cursor:pointer;color:#fff;box-shadow:0 2px 10px #0004}
.mentor-profile .mentor-video-remove{top:10px;right:10px;width:34px;height:34px;border-radius:50%;background:#251947e6;font-size:26px;line-height:1;z-index:2}
.mentor-profile .mentor-video-play{top:50%;left:50%;transform:translate(-50%,-50%);width:56px;height:56px;border-radius:50%;background:var(--brand,#5200d4)}
.mentor-profile .mentor-video-play svg{width:30px;height:30px;fill:currentColor}
.mentor-profile .mentor-video-preview button[hidden]{display:none}
.mentor-profile .mentor-video-preview button:focus-visible{outline:3px solid #b99aff;outline-offset:3px}

.mentor-profile .mentor-photo-media{position:relative;width:160px;max-width:100%;margin-top:16px}

.mentor-profile .mentor-photo-media:not(:has(#photo-preview:not([hidden]),#photo-crop[open])){display:none}
.mentor-profile .mentor-photo-media .mentor-photo-preview,.mentor-profile .mentor-photo-media #photo-crop{margin-top:0}
.mentor-profile .mentor-photo-remove{position:absolute;top:8px;right:8px;z-index:2;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:#251947e6;color:#fff;font-size:25px;line-height:1;cursor:pointer;box-shadow:0 2px 8px #0003}

.mentor-profile .mentor-photo-remove:focus-visible{outline:3px solid #b99aff;outline-offset:3px}

.mentor-profile .identity-remove-all{display:none!important}
.mentor-profile .identity-file-previews{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}
.mentor-profile .identity-file-card{position:relative;width:190px;max-width:100%;padding:8px;border:1px solid #ded7ef;border-radius:12px;background:#faf7ff;overflow:hidden}
.mentor-profile .identity-file-card img,.mentor-profile .identity-file-card iframe{display:block;width:100%;height:150px;object-fit:contain;background:white;border:0;border-radius:8px}
.mentor-profile .identity-file-card>span{display:block;font-size:13px;overflow-wrap:anywhere;margin-top:8px}
.mentor-profile .identity-file-card>a{font-size:13px}
.mentor-profile .identity-file-remove{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:#251947ed;color:white;font-size:24px;cursor:pointer}
.mentor-profile .identity-file-remove:disabled{opacity:.65;cursor:not-allowed}

.mentor-profile .identity-pdf-preview{display:grid;place-items:center;height:150px;background:#eee6fb;color:#5200a0;font-size:30px;font-weight:600;border-radius:8px}

.mentor-profile .mentor-photo-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px;margin-top:12px}
.mentor-profile .mentor-photo-row>input[type=file]{width:100%;min-width:0}
.mentor-profile .mentor-photo-row .mentor-photo-media{width:100%;max-width:360px;margin-top:0}
.mentor-profile .mentor-photo-row .mentor-photo-preview{margin-top:0}
@media(max-width:767px){.mentor-profile .mentor-photo-row{grid-template-columns:1fr}.mentor-profile .mentor-photo-row .mentor-photo-media{max-width:100%}}
.mentor-profile .mentor-photo-row .mentor-photo-media{width:160px;max-width:100%}

.mentor-profile .identity-file-previews{display:grid;gap:8px}
.mentor-profile .identity-file-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;width:100%;max-width:100%;padding:10px 12px;border-radius:10px;background:#faf7ff}
.mentor-profile .identity-file-card>span{margin:0;font-size:14px;font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mentor-profile .identity-file-card>a{font-size:13px;white-space:nowrap}
.mentor-profile .identity-file-remove{position:static;display:inline-flex;width:auto;height:auto;padding:5px 8px;border-radius:7px;background:transparent;color:#a52b35;font-size:13px;box-shadow:none;white-space:nowrap}
.mentor-profile .identity-file-remove:hover{background:#fcebee}
@media(max-width:480px){.mentor-profile .identity-file-card{grid-template-columns:minmax(0,1fr) auto;gap:6px 10px}.mentor-profile .identity-file-card>span{grid-column:1/-1}}

/* Consistent upload controls and readable document previews. */
.mentor-profile .identity-file-card{grid-template-columns:80px minmax(0,1fr) auto auto;gap:12px}
.mentor-profile .identity-file-card .identity-document-thumbnail,.mentor-profile .identity-file-card .identity-pdf-preview{grid-column:1;grid-row:1;width:80px;height:80px;object-fit:contain;background:#fff;border:1px solid #ded7ef;border-radius:7px}
.mentor-profile .identity-file-card>span{white-space:normal;overflow-wrap:anywhere}
.mentor-profile #photo-save{margin-left:8px}
@media(max-width:480px){.mentor-profile .identity-file-card{grid-template-columns:64px minmax(0,1fr) auto}.mentor-profile .identity-file-card .identity-document-thumbnail,.mentor-profile .identity-file-card .identity-pdf-preview{width:64px;height:64px;grid-row:1/3}.mentor-profile .identity-file-card>span{grid-column:2/-1}.mentor-profile .identity-file-card>a{grid-column:2}}
#photo-crop h2{padding-inline-end:42px}
#photo-crop .photo-crop-close{position:absolute;inset-block-start:12px;inset-inline-end:12px;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #e8e1ef;border-radius:9px;background:#fff;color:#5425a6;font-size:24px;line-height:1}
#photo-crop .photo-crop-close:hover{background:#f4edff}
#photo-crop .image-crop-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
#photo-crop .image-crop-actions>.btn{width:100%;white-space:normal}
