.profile-page{--profile-line:#e1eaf2;--profile-muted:#71889d;--profile-blue:#286cae;--profile-soft:#f2f7fc;max-width:1160px;margin:0 auto 28px;color:#243f58}
.profile-page *{box-sizing:border-box}
.profile-shell{display:grid;grid-template-columns:210px minmax(0,1fr);align-items:start;gap:18px}
.profile-sidebar,.profile-main{min-width:0;background:#fff;border:1px solid var(--profile-line);border-radius:13px}
.profile-shell-overview{grid-template-columns:minmax(0,1fr)}
.profile-sidebar{padding:10px;position:sticky;top:78px}
.profile-sidebar nav{display:grid;gap:2px}
.profile-nav-group{padding-top:11px;margin-top:9px;border-top:1px solid #edf2f6}
.profile-nav-group h3{margin:0 10px 4px;color:#8197aa;font-size:10px;font-weight:600}
.profile-nav-link{display:flex;align-items:center;gap:9px;min-height:38px;padding:8px 10px;border-radius:8px;color:#526d84;font-size:11px;text-decoration:none;transition:background .18s,color .18s}
.profile-nav-link>.icon{width:16px;height:16px;flex:none;color:#809bb3}
.profile-nav-link>span{min-width:0;flex:1}
.profile-nav-link .profile-nav-arrow{width:13px;height:13px;opacity:0}
.profile-nav-link:hover,.profile-nav-link:focus-visible{background:#f3f8fc;color:#286cae}
.profile-nav-link:hover .profile-nav-arrow,.profile-nav-link:focus-visible .profile-nav-arrow{opacity:1}
.profile-nav-link.active{background:#eaf3fb;color:#1f659f;font-weight:700}
.profile-nav-link.active>.icon{color:#286cae}
.profile-main{padding:22px;min-height:370px}
.profile-back{display:inline-flex;align-items:center;gap:7px;min-height:44px;margin-bottom:8px;color:#286cae;font-size:12px;font-weight:650;text-decoration:none}
.profile-back .icon{width:16px;height:16px}
.profile-identity{display:flex;align-items:center;gap:14px;padding-bottom:20px;border-bottom:1px solid #edf2f6}
.profile-avatar{display:grid;place-items:center;flex:none;width:50px;height:50px;border-radius:14px;background:#eaf3fb;color:#286cae;font-size:18px;font-weight:750}
.profile-identity h2{margin:3px 0 1px;font-size:17px;font-weight:750;line-height:1.5}
.profile-identity p{margin:0;color:var(--profile-muted);font-size:11px}
.profile-eyebrow{display:inline-flex;align-items:center;gap:6px;color:#7590a7;font-size:10px}
.profile-eyebrow i{width:3px;height:3px;border-radius:50%;background:#a4b5c3}
.profile-completion{padding:17px 0 13px}
.profile-completion>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
.profile-completion strong{font-size:12px}
.profile-completion span,.profile-completion small{color:var(--profile-muted);font-size:10px}
.profile-completion progress{display:block;width:100%;height:5px;margin:10px 0 6px;border:0;border-radius:10px;appearance:none;overflow:hidden;background:#e9f0f6}
.profile-completion progress::-webkit-progress-bar{background:#e9f0f6;border-radius:10px}
.profile-completion progress::-webkit-progress-value{background:#4485bd;border-radius:10px}
.profile-completion progress::-moz-progress-bar{background:#4485bd;border-radius:10px}
.profile-directory{padding-top:13px}
.profile-directory>header{margin-bottom:16px}
.profile-directory>header h2{margin:0;font-size:14px;font-weight:750}
.profile-directory>header p{margin:4px 0 0;color:var(--profile-muted);font-size:11px}
.profile-directory-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.profile-directory-group{min-width:0}
.profile-directory-group>h3{margin:0 0 7px;color:#6e879b;font-size:11px;font-weight:600}
.profile-directory-group>div{border:1px solid var(--profile-line);border-radius:10px;overflow:hidden}
.profile-directory-link{display:flex;align-items:center;gap:9px;min-height:62px;padding:11px 12px;border-bottom:1px solid #eaf0f5;background:#fff;color:#294b67;text-decoration:none;transition:background .18s}
.profile-directory-link:last-child{border-bottom:0}
.profile-directory-link:hover{background:#f4f9fd}
.profile-directory-icon,.profile-section-icon,.profile-info-icon{display:grid;place-items:center;flex:none;background:#edf5fc;color:#2d76b3;border-radius:9px}
.profile-directory-icon{width:30px;height:30px}
.profile-directory-icon .icon{width:16px;height:16px}
.profile-directory-copy{flex:1;min-width:0;display:grid;gap:4px}
.profile-directory-copy strong{font-size:12px;font-weight:650;line-height:1.5}
.profile-directory-copy small{color:var(--profile-muted);font-size:10px;line-height:1.7}
.profile-directory-link>.icon{width:13px;height:13px;flex:none;color:#8ba8bd}
.profile-directory-state{flex:none;background:#fff5e8;color:#94632d;border-radius:5px;padding:3px 5px;font-size:9px;white-space:nowrap}
.profile-directory-state.complete{background:#eaf5f2;color:#317767}
.profile-section-head{display:flex;align-items:flex-start;gap:11px;padding-bottom:20px;border-bottom:1px solid #eaf0f5}
.profile-section-icon{width:36px;height:36px}
.profile-section-icon .icon{width:19px;height:19px}
.profile-section-head small{color:#8298aa;font-size:10px}
.profile-section-head h2{margin:2px 0 3px;font-size:16px;font-weight:750}
.profile-section-head p{margin:0;color:var(--profile-muted);font-size:11px;line-height:1.9}
.profile-form{padding-top:19px}
.profile-form-block{grid-column:1/-1;min-width:0;margin:0;padding:0 0 19px;border:0;border-bottom:1px solid #edf2f6}
.profile-form-block:last-child{padding-bottom:0;border-bottom:0}
.profile-form-block>legend{padding:0;margin-bottom:6px;color:#345875;font-size:12px;font-weight:750}
.profile-form-block>p{margin:0 0 14px;color:#72899c;font-size:10px;line-height:1.9}
.profile-save-actions{display:flex;gap:7px;flex:none}
.profile-inline-action,.profile-inline-links{grid-column:1/-1;display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.profile-inline-action .btn{min-height:36px;padding:7px 10px;font-size:10px}
.profile-inline-action small{font-size:10px;color:#7b91a3}
.profile-inline-links a,.profile-data-tools>a{display:inline-flex;align-items:center;gap:5px;min-height:38px;padding:5px 0;color:#286cae;font-size:11px}
.profile-inline-links .icon,.profile-data-tools>a .icon{width:13px;height:13px}
.profile-inline-links{gap:20px}
.profile-bank-summary{grid-column:1/-1;display:grid;gap:9px;padding:13px 15px;border:1px solid #dfeaf4;border-radius:9px;background:#f7fafd}
.profile-bank-summary>span{display:flex;align-items:center;gap:7px;font-size:11px;color:#64829b}
.profile-bank-summary .icon{width:16px;height:16px}
.profile-bank-summary strong{justify-self:start;color:#305976;font-size:15px;letter-spacing:1px}
.profile-bank-summary small{color:#7890a3;font-size:10px}
.profile-status-row{display:flex;align-items:flex-start;gap:10px;margin:18px 0 5px;padding:13px;background:#f5f9fc;border:1px solid #e4ecf3;border-radius:9px}
.profile-status-row>.icon{width:20px;height:20px;flex:none;color:#6791b3}
.profile-status-row strong{display:block;font-size:12px;color:#486b86}
.profile-status-row small{display:block;margin-top:5px;color:#70899d;font-size:11px;line-height:1.9}
.profile-contract-topics{margin-top:15px;border:1px solid #e4ecf3;border-radius:9px}
.profile-contract-topics details{border-bottom:1px solid #e9eff4;padding:0 12px}
.profile-contract-topics details:last-child{border-bottom:0}
.profile-contract-topics summary{display:flex;align-items:center;justify-content:space-between;min-height:43px;gap:12px;list-style:none;cursor:pointer;font-size:11px;color:#486b86}
.profile-contract-topics summary::-webkit-details-marker{display:none}
.profile-contract-topics summary .icon{width:13px;height:13px;color:#8ba3b5}
.profile-contract-topics details[open] summary .icon{transform:rotate(180deg)}
.profile-contract-topics p{margin:0 0 13px;font-size:11px;line-height:2;color:#71889a}
.profile-contract-topics summary:focus-visible{outline:2px solid #286cae;outline-offset:2px}
.profile-preference{grid-column:1/-1;display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border:1px solid #e3ecf4;border-radius:9px;cursor:pointer}
.profile-preference input{width:17px;height:17px;margin:2px 0 0;accent-color:#286cae;flex:none}
.profile-preference strong{display:block;color:#466984;font-size:12px;font-weight:650}
.profile-preference small{display:block;margin-top:5px;color:#7a91a3;font-size:10px;line-height:1.9}
.profile-data-tools{margin-top:22px;padding-top:17px;border-top:1px solid #e8eff5}
.profile-data-tools h3{margin:0 0 6px;font-size:12px;color:#345875}
.profile-data-tools p{margin:0 0 12px;color:#7890a3;font-size:11px;line-height:1.9}
.profile-data-tools .btn{min-height:38px;font-size:11px;margin-inline-end:13px}
.profile-document-list{margin-top:16px}
.profile-document-row{display:flex;align-items:flex-start;gap:10px;padding:13px 0;border-bottom:1px solid #e6eef5;min-width:0}
.profile-document-row>div:first-of-type{min-width:0;flex:1}
.profile-document-row strong{display:block;overflow-wrap:anywhere;font-size:12px;color:#3d607c}
.profile-document-row small{display:block;margin-top:4px;font-size:10px;color:#7a91a3;overflow-wrap:anywhere}
.profile-document-actions{display:flex;align-items:center;gap:5px;flex:none}
.profile-document-actions .btn{min-height:34px;padding:5px 9px;font-size:10px}
.profile-local-tag{display:inline-block;margin-top:6px;padding:2px 6px;background:#edf5fb;color:#6285a1;border-radius:4px;font-size:9px}
.profile-inline-empty{padding:18px 12px;border:1px dashed #d9e5ee;border-radius:8px;background:#fafcfe;color:#7e94a5;font-size:11px;text-align:center}
.profile-document-undo{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0;padding:9px 12px;background:#eef6fb;border-radius:8px;color:#597d99;font-size:11px}
.profile-document-undo .btn{min-height:34px;padding:5px 10px;font-size:10px}
.profile-field input[type=file]{font-size:11px;min-width:0;overflow:hidden}
.profile-field input[type=file]::file-selector-button{padding:6px 10px;margin-inline-end:10px;border:1px solid #d7e6f2;border-radius:6px;background:#f1f7fc;color:#286cae;font:inherit;cursor:pointer}
.profile-context{display:flex;align-items:flex-start;gap:8px;margin:0 0 19px;padding:11px 12px;background:#f4f8fc;border:1px solid #e3edf5;border-radius:8px;color:#56748e;font-size:11px;line-height:1.9}
.profile-context .icon{width:15px;height:15px;flex:none;margin-top:2px}
.profile-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 14px}
.profile-field,.profile-form-grid .field{display:flex;flex-direction:column;gap:7px;min-width:0;margin:0}
.profile-field.wide,.profile-form-grid .field.full{grid-column:1/-1}
.profile-field>span,.profile-form-grid .field>span{color:#425f77;font-size:11px;font-weight:650}
.profile-field>span em{color:#ab6549;font-style:normal}
.profile-field input,.profile-field textarea,.profile-form-grid .field select,.profile-form-grid .select-trigger{width:100%;min-height:42px;padding:10px 12px;border:1px solid #d9e5ef;border-radius:8px;background:#fff;color:#28445e;font:inherit;font-size:12px;line-height:1.6;outline:0}
.profile-field textarea{min-height:82px;resize:vertical}
.profile-field input[dir=ltr]{text-align:left}
.profile-field small{color:var(--profile-muted);font-size:10px;line-height:1.7}
.profile-field input:focus-visible,.profile-field textarea:focus-visible,.profile-form-grid .field select:focus-visible,.profile-form-grid .select-trigger:focus-visible{border-color:#2874b6;box-shadow:0 0 0 3px #286cae22;outline:2px solid transparent}
.profile-form-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:24px;padding-top:16px;border-top:1px solid #eaf0f5}
.profile-form-footer small{display:flex;align-items:center;gap:6px;max-width:350px;color:#71889d;font-size:10px;line-height:1.7}
.profile-form-footer small .icon{width:14px;height:14px;flex:none}
.profile-form-footer .btn{min-height:40px;border-radius:8px;font-size:11px;white-space:nowrap}
.profile-form-footer .btn .icon{width:15px;height:15px}
.profile-info-panel{max-width:620px;padding:25px 0}
.profile-info-icon{width:40px;height:40px;margin-bottom:13px}
.profile-info-icon .icon{width:20px;height:20px}
.profile-info-panel h3{margin:0 0 7px;font-size:14px}
.profile-info-panel p{margin:0 0 17px;color:#607b91;font-size:11px;line-height:2}
.profile-info-panel .btn{min-height:40px}
.profile-file-button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px 14px;border:1px solid #c8ddeb;border-radius:8px;background:#f5f9fd;color:#236ea8;font-size:11px;font-weight:650;cursor:pointer}
.profile-file-button>.icon{width:16px;height:16px}
.profile-file-button:focus-within{outline:2px solid #286cae;outline-offset:2px}
.profile-file-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.profile-info-panel>small{display:block;margin-top:10px;color:var(--profile-muted);font-size:10px}
.profile-facts{max-width:540px;margin:0;border:1px solid var(--profile-line);border-radius:9px;overflow:hidden}
.profile-facts>div{display:flex;justify-content:space-between;gap:15px;padding:11px 13px;border-bottom:1px solid var(--profile-line);font-size:11px}
.profile-facts>div:last-child{border-bottom:0}
.profile-facts dt{color:var(--profile-muted)}
.profile-facts dd{margin:0;color:#36536d;text-align:end}
.profile-page a:focus-visible{outline:2px solid #286cae;outline-offset:-2px}
@media(max-width:1100px){.profile-directory-groups{grid-template-columns:1fr;gap:17px}}
@media(max-width:767px){
 .profile-page{margin-bottom:12px}
 .profile-shell{display:block}
 .profile-sidebar{display:none}
 .profile-main{padding:17px 15px;min-height:0}
 .profile-identity{padding-bottom:13px}
 .profile-completion{padding:13px 0 6px}
 .profile-directory{padding-top:11px}
 .profile-directory>header{margin-bottom:14px}
 .profile-directory-link{min-height:58px;padding:10px}
 .profile-form-grid{gap:15px}
 .profile-field input,.profile-field textarea,.profile-form-grid .field select,.profile-form-grid .select-trigger{min-height:44px;font-size:16px}
}
@media(max-width:480px){
 .profile-form-grid{grid-template-columns:1fr}
 .profile-directory-link{flex-wrap:wrap}
 .profile-directory-copy{flex-basis:calc(100% - 70px)}
 .profile-directory-state{margin-inline-start:39px;order:1}
 .profile-completion>div{align-items:flex-start}
 .profile-completion span{white-space:nowrap}
 .profile-form-footer{align-items:stretch;flex-direction:column}
 .profile-form-footer .btn{width:100%;min-height:44px}
 .profile-save-actions{width:100%}
 .profile-save-actions .btn{width:auto;flex:1}
 .profile-document-row{flex-wrap:wrap}
 .profile-document-actions{margin-inline-start:40px}
}
@media(prefers-reduced-motion:reduce){.profile-page *{transition:none!important}}

/* Consistent profile rows and section headers at every screen size. */
.profile-directory-link{display:grid;grid-template-columns:30px minmax(0,1fr) auto 13px;gap:9px;align-items:center}
.profile-directory-copy{grid-column:2;min-width:0;flex-basis:auto}
.profile-directory-state{grid-column:3;grid-row:1;order:0;margin:0}
.profile-directory-link>.icon{grid-column:4;grid-row:1}
.profile-directory-link>.profile-directory-icon{grid-column:1;grid-row:1}
.profile-section-head{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center}
.profile-section-head>div{min-width:0}
@media(max-width:767px){
 .profile-page .profile-field input,.profile-page .profile-field textarea,.profile-page .profile-form-grid .field select,.profile-page .profile-form-grid .select-trigger{font-size:14px}
 .profile-page input::placeholder,.profile-page textarea::placeholder{font-size:13px;color:#8495a3;opacity:1}
}

.profile-page .profile-field :is(input,textarea):placeholder-shown{text-align:right;direction:rtl}
.profile-page .profile-field :is(input,textarea)::placeholder{text-align:right;direction:rtl;unicode-bidi:plaintext}

/* Give mobile profile settings a clear reading order without hiding fields. */
@media(max-width:767px){
 #main-content .profile-section-head{align-items:start;gap:10px;padding-bottom:16px}
 #main-content .profile-section-head>.profile-section-icon{margin-top:4px}
 #main-content .profile-section-head h2{margin:4px 0 6px;font-size:16px;line-height:1.7}
 #main-content .profile-section-head p{font-size:12px;line-height:1.9}
 #main-content .profile-form{padding-top:16px}
 #main-content .profile-context{margin:0 0 18px;padding:10px;line-height:1.9}
 #main-content .profile-form>.profile-form-grid{gap:20px}
 #main-content .profile-form-block,#main-content .profile-form-block:last-child{padding:10px 12px 14px;border:1px solid #e0e9f1;border-radius:10px;background:#f8fafc}
 #main-content .profile-form-block>legend{padding:0 5px;margin:0;color:#284f70;font-size:13px;line-height:1.8}
 #main-content .profile-form-block>p{margin:0 0 14px;font-size:11px;line-height:1.9}
 #main-content .profile-form-block>.profile-form-grid{gap:14px}
 #main-content .profile-form-grid .field>span,#main-content .profile-field>span{font-size:12px;line-height:1.8}
 #main-content .profile-field small{font-size:11px;line-height:1.9}
 #main-content .profile-inline-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-top:4px}
 #main-content .profile-inline-links>a{display:flex;justify-content:space-between;gap:4px;min-width:0;min-height:40px;padding:7px 8px;border:1px solid #dce8f3;border-radius:7px;background:#fff;font-size:11px;line-height:1.8;box-sizing:border-box}
 #main-content .profile-inline-links>a>.icon{flex:none}
 #main-content .profile-form-footer{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-top:20px;padding-top:14px}
 #main-content .profile-form-footer>small{font-size:11px;max-width:none}
 #main-content .profile-save-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
 #main-content .profile-save-actions>.btn{width:100%;min-width:0;min-height:44px;padding:8px 6px;white-space:normal}
}

.profile-document-picker{position:relative;display:flex;align-items:center;gap:12px;padding:7px;border:1px solid #d9e5ef;border-radius:8px;background:#fff;min-width:0}
.profile-document-choose{flex:none;padding:8px 12px;border-radius:6px;background:#edf5fc;color:#286cae;font-size:12px}
.profile-document-filename{min-width:0;overflow-wrap:anywhere;font-size:12px;color:#71889d;font-weight:400}
.profile-page .profile-document-picker>input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0}
.profile-document-picker:focus-within{outline:2px solid #2874b6;outline-offset:2px}
@media(min-width:768px){
 .profile-directory-groups>.profile-directory-group:nth-child(3){order:-1}
 .profile-data-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px 13px}
 .profile-data-tools>h3,.profile-data-tools>p{flex-basis:100%;margin:0}
 .profile-data-tools>p{margin-bottom:2px}
 .profile-data-tools>.btn,.profile-data-tools>a{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:40px;margin:0;line-height:1.8;padding:8px 12px;font-size:11px}
}
