.country-flag-image,.card .country-flag-image { display:inline-block !important; width:28px !important; height:21px !important; min-height:0 !important; max-height:21px !important; object-fit:contain !important; flex:0 0 28px !important; border-radius:2px !important; margin:0 0 0 2px !important; padding:0 !important; box-shadow:none !important; filter:none !important; background:transparent !important; vertical-align:middle; }
.card-country,.modal-country { flex-wrap:wrap; align-items:center; gap:7px; }
.shell .card h3,.profile-modal .modal-info #modalName,.directory-result strong { color:var(--name-text-color,#ffffff) !important; text-shadow:0 0 2px #d3a7ff,0 0 10px #b65cffbb,0 0 24px #9539ff88; }
.profile-modal .main-extra-copy { color:var(--main-extra-text-color,#f4eaff) !important; }
.main-under-copy[hidden],.modal-copy[hidden] { display:none !important; }
.profile-modal .modal-role,.profile-modal .modal-copy,.profile-modal .main-under-copy { white-space:pre-wrap !important; overflow-wrap:anywhere; }
#editMainExtra { width:100%; min-height:170px; margin:8px 0 12px; padding:14px; border:1px solid #856b96; border-radius:10px; background:#110d19; color:#f4eaff; font:inherit; line-height:1.75; resize:vertical; white-space:pre-wrap; }
#editMainExtraColor { width:100%; height:38px; }
.admin-panel { max-height:92vh; overflow-y:auto; }
.profile-directory { min-width:0; padding:0 0 24px; }
.profile-directory h2 { font-size:20px; margin:0 0 14px; color:#f4eaff; text-shadow:0 0 12px #ab59f088; }
.profile-directory input { box-sizing:border-box; width:100%; min-width:0; padding:13px; border:1px solid #826299; border-radius:12px; background:#15101e; color:#fff; font:inherit; font-size:15px; }
.directory-regions { display:grid; grid-template-columns:1fr; gap:7px; margin:14px 0; }
.directory-regions button { width:100%; padding:10px 12px; font-size:14px; border:1px solid #544267; border-radius:10px; background:#20182c; color:#f4eaff; cursor:pointer; }
.directory-regions button[aria-pressed=true] { background:#493060; border-color:#cba0fa; }
.directory-result-count { font-size:14px; opacity:.8; }
.directory-results { display:grid; gap:12px; }
.directory-result { display:flex; gap:12px; align-items:center; text-align:left; width:100%; padding:8px; border:1px solid #42304f; border-radius:14px; background:#17111f; color:#eee; cursor:pointer; }
.directory-result img { width:72px; height:88px; object-fit:cover; border-radius:10px; }
.directory-result span { min-width:0; }
.directory-result strong { display:block; font-size:19px; overflow-wrap:anywhere; }
.directory-result small { display:block; margin-top:6px; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.directory-result:hover { border-color:#b181d4; }
body:not(.is-admin) .banner-setup { display:none; }
.migration-editor { border-top:1px solid #665076; padding-top:18px; margin-top:18px; }
.migration-editor p { white-space:pre-wrap; line-height:1.6; }
.migration-editor input[type=file] { width:100%; }
@media(min-width:1550px){
  .profile-modal .modal-card { grid-template-columns:minmax(0,680px) 500px minmax(250px,1fr) !important; }
  .profile-directory { grid-column:3; grid-row:1; }
}
@media(min-width:761px) and (max-width:1549px){
  .profile-modal .modal-card { grid-template-columns:minmax(0,680px) minmax(280px,500px) !important; }
  .profile-modal .modal-info,.profile-modal .modal-info .below-gallery { width:100% !important; }
  .profile-modal .modal-info .below-gallery { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
  .profile-directory { grid-column:2; grid-row:2; }
}
@media(max-width:760px){ .profile-directory { margin-top:26px; } .profile-modal .modal-info { margin-top:24px; } }
