/* LibraMed BuddyPress Profile UI v0.2 — presentation only. */
body.libramed-bp-profile-ui{--lm-navy:#0f2742;--lm-blue:#1677e8;--lm-cyan:#28bfd0;--lm-green:#28c99a;--lm-line:#e4edf6;--lm-muted:#64748b;--lm-bg:#f7fafc;--lm-card:#fff;background:var(--lm-bg)}
body.libramed-bp-profile-ui .site-content,body.libramed-bp-profile-ui #main-content{background:linear-gradient(180deg,#fff 0,#f7fafc 55%,#f7fafc 100%)}
body.libramed-bp-profile-ui #buddypress{max-width:1180px;margin:28px auto 64px;color:var(--lm-navy)}
body.libramed-bp-profile-ui #item-header.lm-profile-hero{position:relative;overflow:hidden;min-height:260px;border:0!important;border-radius:26px;padding:34px!important;background:linear-gradient(120deg,#d9f2ff 0%,#c9eff5 48%,#d8f8e9 100%)!important;box-shadow:0 18px 48px rgba(15,39,66,.09)}
body.libramed-bp-profile-ui #item-header.lm-profile-hero:before,body.libramed-bp-profile-ui #item-header.lm-profile-hero:after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.22);pointer-events:none}
body.libramed-bp-profile-ui #item-header.lm-profile-hero:before{width:340px;height:340px;right:-90px;top:-180px}body.libramed-bp-profile-ui #item-header.lm-profile-hero:after{width:240px;height:240px;left:-100px;bottom:-130px}
body.libramed-bp-profile-ui #item-header-avatar{position:relative;z-index:2;float:left!important;margin:90px 26px 0 0!important}
body.libramed-bp-profile-ui #item-header-avatar img.avatar{width:142px!important;height:142px!important;object-fit:cover;border-radius:22px!important;border:6px solid rgba(255,255,255,.92)!important;background:#fff;box-shadow:0 12px 30px rgba(15,39,66,.16)}
body.libramed-bp-profile-ui #item-header-content{position:relative;z-index:2;margin:96px 0 0 170px!important;padding:0!important;color:var(--lm-navy)}
body.libramed-bp-profile-ui #item-header-content h2,body.libramed-bp-profile-ui #item-header-content .user-nicename{margin:0 0 5px!important;color:var(--lm-navy)!important;font-size:34px!important;line-height:1.12!important;font-weight:800!important;letter-spacing:-.025em;text-shadow:none!important}
body.libramed-bp-profile-ui #item-header-content .activity{display:inline-block;margin-top:10px!important;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.82);color:#49647f!important;font-size:13px!important}
body.libramed-bp-profile-ui #item-header-content .generic-button a,body.libramed-bp-profile-ui #item-header-content .button{border:0!important;border-radius:10px!important;background:#102b50!important;color:#fff!important;padding:9px 14px!important;font-weight:700!important;box-shadow:none!important}
body.libramed-bp-profile-ui .lm-profile-badge{display:inline-flex;align-items:center;gap:7px;margin-top:12px;padding:7px 11px;border:1px solid rgba(255,255,255,.72);border-radius:999px;background:rgba(255,255,255,.58);font-size:12px;font-weight:700;color:#31506d}.lm-profile-badge span{width:8px;height:8px;border-radius:50%;background:#22b983}
body.libramed-bp-profile-ui .lm-profile-shell{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;margin-top:26px;align-items:start}
body.libramed-bp-profile-ui #item-nav.lm-profile-sidebar{margin:0!important;padding:12px!important;border:1px solid var(--lm-line)!important;border-radius:18px!important;background:#fff!important;box-shadow:0 10px 28px rgba(15,39,66,.05)}
body.libramed-bp-profile-ui #item-nav.lm-profile-sidebar ul{display:block!important;margin:0!important;padding:0!important;list-style:none!important}
body.libramed-bp-profile-ui #item-nav.lm-profile-sidebar li{float:none!important;display:block!important;margin:3px 0!important;width:100%!important;border:0!important}
body.libramed-bp-profile-ui #item-nav.lm-profile-sidebar li a{display:flex!important;align-items:center;min-height:44px;width:100%;box-sizing:border-box;padding:10px 13px!important;border:0!important;border-radius:11px!important;background:transparent!important;color:#334a62!important;font-size:14px!important;font-weight:650!important;text-decoration:none!important}
body.libramed-bp-profile-ui #item-nav.lm-profile-sidebar li.current a,body.libramed-bp-profile-ui #item-nav.lm-profile-sidebar li.selected a{background:#eaf4ff!important;color:#0877d1!important}
body.libramed-bp-profile-ui #item-nav.lm-profile-sidebar li a:hover{background:#f2f7fb!important;color:#0877d1!important}
body.libramed-bp-profile-ui #item-body.lm-profile-content{min-width:0;margin:0!important;padding:28px!important;border:1px solid var(--lm-line)!important;border-radius:18px!important;background:#fff!important;box-shadow:0 10px 28px rgba(15,39,66,.05)}
body.libramed-bp-profile-ui #item-body .item-list-tabs,body.libramed-bp-profile-ui #item-body .bp-navs{margin:-8px -8px 24px!important;padding:6px!important;border:0!important;border-bottom:1px solid var(--lm-line)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
body.libramed-bp-profile-ui #item-body .item-list-tabs ul,body.libramed-bp-profile-ui #item-body .bp-navs ul{display:flex!important;flex-wrap:wrap;gap:6px;margin:0!important;padding:0!important;list-style:none!important}
body.libramed-bp-profile-ui #item-body .item-list-tabs li,body.libramed-bp-profile-ui #item-body .bp-navs li{float:none!important;margin:0!important;border:0!important}
body.libramed-bp-profile-ui #item-body .item-list-tabs a,body.libramed-bp-profile-ui #item-body .bp-navs a{display:block;padding:9px 12px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#425b73!important;font-weight:650!important;text-decoration:none!important}
body.libramed-bp-profile-ui #item-body .item-list-tabs .current a,body.libramed-bp-profile-ui #item-body .item-list-tabs .selected a,body.libramed-bp-profile-ui #item-body .bp-navs .current a,body.libramed-bp-profile-ui #item-body .bp-navs .selected a{background:#eaf4ff!important;color:#0877d1!important}
body.libramed-bp-profile-ui #item-body h2,body.libramed-bp-profile-ui #item-body h3,body.libramed-bp-profile-ui #item-body h4{color:var(--lm-navy)!important;font-weight:800!important}
body.libramed-bp-profile-ui #item-body input[type=text],body.libramed-bp-profile-ui #item-body input[type=email],body.libramed-bp-profile-ui #item-body input[type=password],body.libramed-bp-profile-ui #item-body textarea,body.libramed-bp-profile-ui #item-body select{width:100%;max-width:760px;min-height:46px;box-sizing:border-box;padding:11px 14px;border:1px solid #d6e2ee;border-radius:11px;background:#fbfdff;box-shadow:none;color:#18324d}
body.libramed-bp-profile-ui #item-body input:focus,body.libramed-bp-profile-ui #item-body textarea:focus,body.libramed-bp-profile-ui #item-body select:focus{border-color:#75b7ef;outline:3px solid rgba(22,119,232,.10)}
body.libramed-bp-profile-ui #item-body label{color:#243d56;font-weight:700}body.libramed-bp-profile-ui #item-body input[type=submit],body.libramed-bp-profile-ui #item-body button,body.libramed-bp-profile-ui #item-body .button{border:0!important;border-radius:11px!important;background:var(--lm-blue)!important;color:#fff!important;padding:11px 17px!important;font-weight:750!important;box-shadow:0 8px 18px rgba(22,119,232,.17)}
body.libramed-bp-profile-ui #item-body .bp-feedback,body.libramed-bp-profile-ui #item-body .bp-template-notice,body.libramed-bp-profile-ui #item-body .info{border:0!important;border-radius:11px!important;background:#eaf6ff!important;color:#44627d!important;padding:12px 14px!important}
body.libramed-bp-profile-ui #item-body ul.item-list{padding:0!important}body.libramed-bp-profile-ui #item-body ul.item-list>li{border:1px solid var(--lm-line)!important;border-radius:13px!important;margin:10px 0!important;padding:16px!important;background:#fff!important}
@media(max-width:900px){body.libramed-bp-profile-ui #buddypress{margin:18px 12px 42px}.lm-profile-shell{grid-template-columns:1fr!important}body.libramed-bp-profile-ui #item-nav.lm-profile-sidebar ul{display:flex!important;overflow:auto;gap:5px}body.libramed-bp-profile-ui #item-nav.lm-profile-sidebar li{width:auto!important;white-space:nowrap}body.libramed-bp-profile-ui #item-header.lm-profile-hero{min-height:0;padding:24px!important}body.libramed-bp-profile-ui #item-header-avatar{float:none!important;margin:0 0 16px!important}body.libramed-bp-profile-ui #item-header-content{margin:0!important}body.libramed-bp-profile-ui #item-header-content h2,body.libramed-bp-profile-ui #item-header-content .user-nicename{font-size:28px!important}}
@media(max-width:600px){body.libramed-bp-profile-ui #item-header-avatar img.avatar{width:105px!important;height:105px!important}body.libramed-bp-profile-ui #item-body.lm-profile-content{padding:18px!important}body.libramed-bp-profile-ui #item-header-content h2,body.libramed-bp-profile-ui #item-header-content .user-nicename{font-size:24px!important}}


/* v0.2.4 SAFE — native BuddyPress/Eduma layout repair. No DOM re-parenting. */
body.libramed-bp-profile-ui #buddypress .lm-profile-shell{display:contents!important}
body.libramed-bp-profile-ui #buddypress .lm-profile-native-layout{display:grid!important;grid-template-columns:220px minmax(0,1fr)!important;column-gap:24px!important;align-items:start!important;width:100%!important;max-width:none!important;box-sizing:border-box!important}
body.libramed-bp-profile-ui #buddypress #item-nav.lm-profile-sidebar{grid-column:1!important;width:220px!important;min-width:220px!important;max-width:220px!important;float:none!important;clear:none!important;box-sizing:border-box!important}
body.libramed-bp-profile-ui #buddypress #item-body.lm-profile-content{grid-column:2!important;width:100%!important;min-width:0!important;max-width:none!important;float:none!important;clear:none!important;display:block!important;box-sizing:border-box!important;overflow:visible!important}
body.libramed-bp-profile-ui #buddypress #item-body.lm-profile-content > *{max-width:100%!important;box-sizing:border-box!important}
body.libramed-bp-profile-ui #buddypress #item-body .item-list-tabs,
body.libramed-bp-profile-ui #buddypress #item-body .bp-navs,
body.libramed-bp-profile-ui #buddypress #item-body #subnav,
body.libramed-bp-profile-ui #buddypress #item-body .groups-type-navs,
body.libramed-bp-profile-ui #buddypress #item-body .activity-type-tabs,
body.libramed-bp-profile-ui #buddypress #item-body .item-list-tabs#subnav{position:static!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;float:none!important;clear:both!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;box-sizing:border-box!important}
body.libramed-bp-profile-ui #buddypress #item-body .item-list-tabs ul,
body.libramed-bp-profile-ui #buddypress #item-body .bp-navs ul,
body.libramed-bp-profile-ui #buddypress #item-body #subnav ul{width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;box-sizing:border-box!important}
body.libramed-bp-profile-ui #buddypress #item-body .item-list-tabs li,
body.libramed-bp-profile-ui #buddypress #item-body .bp-navs li,
body.libramed-bp-profile-ui #buddypress #item-body #subnav li{position:static!important;float:none!important;clear:none!important;width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;display:block!important}
body.libramed-bp-profile-ui #buddypress #item-body .item-list-tabs li.last,
body.libramed-bp-profile-ui #buddypress #item-body .bp-navs li.last,
body.libramed-bp-profile-ui #buddypress #item-body #subnav li.last{margin-left:auto!important}
body.libramed-bp-profile-ui #buddypress #item-body .item-list-tabs select,
body.libramed-bp-profile-ui #buddypress #item-body .bp-navs select,
body.libramed-bp-profile-ui #buddypress #item-body #subnav select{width:auto!important;min-width:180px!important;max-width:100%!important}
body.libramed-bp-profile-ui #buddypress #item-body .bp-feedback,
body.libramed-bp-profile-ui #buddypress #item-body .bp-template-notice,
body.libramed-bp-profile-ui #buddypress #item-body .info,
body.libramed-bp-profile-ui #buddypress #item-body #groups-dir-list,
body.libramed-bp-profile-ui #buddypress #item-body #groups-list,
body.libramed-bp-profile-ui #buddypress #item-body .groups-dir-list,
body.libramed-bp-profile-ui #buddypress #item-body .item-list,
body.libramed-bp-profile-ui #buddypress #item-body .activity,
body.libramed-bp-profile-ui #buddypress #item-body #activity-stream{position:static!important;float:none!important;clear:both!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;box-sizing:border-box!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important}
body.libramed-bp-profile-ui #buddypress #item-body .bp-feedback p,
body.libramed-bp-profile-ui #buddypress #item-body .bp-template-notice p,
body.libramed-bp-profile-ui #buddypress #item-body .info p{display:block!important;width:100%!important;min-width:0!important;max-width:none!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;line-height:1.55!important}
/* Cleaner profile hero: technical username already hidden; remove low-value legacy status/actions. */
body.libramed-bp-profile-ui #item-header-content .activity,
body.libramed-bp-profile-ui #item-header-content .generic-button{display:none!important}
body.libramed-bp-profile-ui #item-header.lm-profile-hero{min-height:220px!important}
body.libramed-bp-profile-ui #item-header-avatar{margin-top:64px!important}
body.libramed-bp-profile-ui #item-header-content{margin-top:72px!important}
@media(max-width:900px){
 body.libramed-bp-profile-ui #buddypress .lm-profile-native-layout{display:block!important}
 body.libramed-bp-profile-ui #buddypress #item-nav.lm-profile-sidebar{width:100%!important;min-width:0!important;max-width:none!important;margin-bottom:16px!important}
 body.libramed-bp-profile-ui #buddypress #item-body.lm-profile-content{width:100%!important;min-width:0!important;max-width:none!important}
}

/* v0.2.5 — never expose the technical BuddyPress @user_nicename in the hero.
   JS replaces it with display_name where the legacy Eduma markup exposes the same node. */
.libramed-bp-profile-ui #item-header-content .user-nicename:not(.lm-display-name) {
  display: none !important;
}
.libramed-bp-profile-ui #item-header-content .lm-display-name {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  overflow-wrap: anywhere;
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 1.15;
  font-weight: 700;
  color: #0b315b;
  margin: 0 0 12px;
}


/* v0.2.7 SAFE — Clinical Intelligence animated hero.
   Presentation only. No BuddyPress/LearnPress data, URLs, permissions or templates are modified. */
body.libramed-bp-profile-ui #item-header.lm-profile-hero{
  isolation:isolate;
  background:
    radial-gradient(circle at 12% 28%,rgba(255,255,255,.88) 0 2px,transparent 3px),
    radial-gradient(circle at 78% 24%,rgba(15,39,66,.10) 0 1.5px,transparent 2.5px),
    radial-gradient(circle at 68% 72%,rgba(40,201,154,.20) 0 2px,transparent 3px),
    linear-gradient(118deg,#f8fdff 0%,#e8f8fc 34%,#dff8f4 67%,#f7fffd 100%)!important;
  background-size:140px 140px,180px 180px,220px 220px,200% 200%!important;
  animation:lmClinicalFlow 18s ease-in-out infinite!important;
  border:1px solid rgba(26,126,154,.10)!important;
  box-shadow:0 22px 58px rgba(15,39,66,.10)!important;
}
body.libramed-bp-profile-ui #item-header.lm-profile-hero:before{
  width:62%!important;height:180%!important;right:-16%!important;top:-42%!important;left:auto!important;bottom:auto!important;
  border-radius:42%!important;
  background:
    repeating-radial-gradient(circle at 50% 50%,transparent 0 18px,rgba(32,174,188,.055) 19px 20px,transparent 21px 38px)!important;
  opacity:.9;
  animation:lmClinicalOrbit 28s linear infinite!important;
}
body.libramed-bp-profile-ui #item-header.lm-profile-hero:after{
  width:54%!important;height:120%!important;left:-18%!important;bottom:-58%!important;top:auto!important;right:auto!important;
  border-radius:50%!important;
  background:radial-gradient(ellipse at center,rgba(37,190,208,.16),rgba(40,201,154,.08) 45%,transparent 70%)!important;
  filter:blur(2px);
  animation:lmClinicalPulse 10s ease-in-out infinite!important;
}
body.libramed-bp-profile-ui #item-header.lm-profile-hero > *{position:relative;z-index:2}
body.libramed-bp-profile-ui #item-header.lm-profile-hero .lm-clinical-wordmark{
  position:absolute!important;z-index:3!important;right:30px!important;top:25px!important;
  display:grid!important;grid-template-columns:auto auto!important;align-items:end!important;
  padding:9px 12px 7px!important;border:1px solid rgba(15,39,66,.08)!important;border-radius:12px!important;
  background:rgba(255,255,255,.72)!important;box-shadow:0 8px 24px rgba(15,39,66,.06)!important;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  font-family:Arial,sans-serif!important;font-size:15px!important;font-weight:800!important;line-height:1!important;
  letter-spacing:-.35px!important;pointer-events:none!important;
}
body.libramed-bp-profile-ui .lm-clinical-wordmark .lm-logo-libra{color:#0f2742!important}
body.libramed-bp-profile-ui .lm-clinical-wordmark .lm-logo-med{color:#27bf97!important}
body.libramed-bp-profile-ui .lm-clinical-wordmark small{
  grid-column:1/3!important;margin-top:3px!important;color:#5d7388!important;
  font-size:6px!important;font-weight:700!important;letter-spacing:2.2px!important;text-transform:uppercase!important;text-align:center!important;
}
@keyframes lmClinicalFlow{
  0%,100%{background-position:0 0,0 0,0 0,0% 50%}
  50%{background-position:18px -10px,-16px 12px,14px 18px,100% 50%}
}
@keyframes lmClinicalOrbit{
  from{transform:rotate(0deg) scale(1)}
  50%{transform:rotate(180deg) scale(1.035)}
  to{transform:rotate(360deg) scale(1)}
}
@keyframes lmClinicalPulse{
  0%,100%{transform:translate3d(0,0,0) scale(1);opacity:.72}
  50%{transform:translate3d(34px,-12px,0) scale(1.08);opacity:1}
}
@media(max-width:900px){
  body.libramed-bp-profile-ui #item-header.lm-profile-hero .lm-clinical-wordmark{right:18px!important;top:16px!important}
}
@media(max-width:600px){
  body.libramed-bp-profile-ui #item-header.lm-profile-hero .lm-clinical-wordmark{font-size:13px!important;padding:7px 9px 6px!important}
}
@media(prefers-reduced-motion:reduce){
  body.libramed-bp-profile-ui #item-header.lm-profile-hero,
  body.libramed-bp-profile-ui #item-header.lm-profile-hero:before,
  body.libramed-bp-profile-ui #item-header.lm-profile-hero:after{animation:none!important}
}
\n\n/* v0.2.8 SAFE — premium Clinical Intelligence placeholder cover.\n   Applied by JS only when BuddyPress does not expose a real user cover image. */\nbody.libramed-bp-profile-ui #item-header .lm-clinical-cover{\n  position:relative!important;\n  overflow:hidden!important;\n  background:\n    radial-gradient(circle at 14% 26%,rgba(255,255,255,.96) 0 2px,transparent 3px),\n    radial-gradient(circle at 70% 34%,rgba(33,189,197,.28) 0 1.5px,transparent 2.5px),\n    radial-gradient(circle at 86% 72%,rgba(38,199,153,.26) 0 2px,transparent 3px),\n    repeating-radial-gradient(circle at 78% 50%,transparent 0 31px,rgba(21,139,166,.07) 32px 33px,transparent 34px 63px),\n    linear-gradient(115deg,#fafdff 0%,#e7f8fc 34%,#dcf7f2 68%,#f8fffd 100%)!important;\n  background-size:130px 130px,170px 170px,210px 210px,auto,220% 220%!important;\n  border:1px solid rgba(25,126,154,.08)!important;\n  box-shadow:inset 0 0 0 1px rgba(255,255,255,.38)!important;\n  animation:lmClinicalCoverFlow 20s ease-in-out infinite!important;\n}\nbody.libramed-bp-profile-ui #item-header .lm-clinical-cover:before{\n  content:\"\"!important;position:absolute!important;inset:0!important;pointer-events:none!important;\n  background:\n    linear-gradient(90deg,transparent 0 7%,rgba(15,39,66,.035) 7.1% 7.25%,transparent 7.35% 100%),\n    linear-gradient(0deg,transparent 0 72%,rgba(40,191,208,.06) 72.1% 72.35%,transparent 72.45% 100%)!important;\n  opacity:.85!important;\n}\nbody.libramed-bp-profile-ui #item-header .lm-clinical-cover:after{\n  content:\"\"!important;position:absolute!important;width:38%!important;height:160%!important;right:-8%!important;top:-34%!important;pointer-events:none!important;\n  border-radius:50%!important;\n  background:radial-gradient(ellipse at center,rgba(40,201,154,.13),rgba(37,190,208,.07) 46%,transparent 70%)!important;\n  animation:lmClinicalCoverPulse 12s ease-in-out infinite!important;\n}\n@keyframes lmClinicalCoverFlow{\n  0%,100%{background-position:0 0,0 0,0 0,center,0% 50%}\n  50%{background-position:16px -9px,-12px 10px,12px 15px,center,100% 50%}\n}\n@keyframes lmClinicalCoverPulse{\n  0%,100%{transform:translate3d(0,0,0) scale(1);opacity:.72}\n  50%{transform:translate3d(-24px,8px,0) scale(1.08);opacity:1}\n}\n@media(prefers-reduced-motion:reduce){\n  body.libramed-bp-profile-ui #item-header .lm-clinical-cover,\n  body.libramed-bp-profile-ui #item-header .lm-clinical-cover:after{animation:none!important}\n}\n