/* PrivilegeFans v32.10-RC8 — cabecera + responsive global consolidado */
html,body,#app,.app-shell{max-width:100%}
.app-shell{overflow-x:clip}
.topbar{overflow:visible}
.topbar-inner,.brand,.search,.top-actions,.top-action,.role-pill,.account-head,.mobile-head-actions,.mobile-head-btn{min-width:0}
.brand{justify-content:flex-start}
.brand img{display:block;width:auto;object-fit:contain;object-position:left center}
.brand-word{display:none}
.top-action small,.role-pill span{max-width:100%}
.account-head .avatar-mini,.mobile-head-btn .avatar-mini{aspect-ratio:1/1!important;object-fit:cover!important;object-position:center!important;border-radius:50%!important;flex:0 0 auto}
.mobile-head-btn{position:relative}
.mobile-head-actions .badge{top:1px;right:1px;transform:none}

@media (min-width:1500px){
  .topbar{height:76px;min-height:76px}
  .topbar-inner{width:min(1540px,calc(100% - 64px));min-height:76px;padding:0;grid-template-columns:200px minmax(360px,540px) minmax(0,1fr);column-gap:20px}
  .brand{width:200px;max-width:200px;overflow:visible}.brand img{height:52px;max-width:200px}
  .search{display:flex!important;width:100%;max-width:540px;height:44px}
  .top-actions{display:grid!important;width:100%;grid-template-columns:62px 62px 64px 56px 68px 92px 76px 1px minmax(112px,124px) 60px;column-gap:7px;align-items:center;justify-content:end}
  .top-action,.top-action[data-route="notificaciones"],.diamond-nav{width:100%;height:58px;padding:4px}
  .top-action small{font-size:10px;line-height:1.1;white-space:nowrap}
  .header-divider{display:block;width:1px;height:34px;margin:0;justify-self:center;background:var(--line)}
  .role-pill{display:flex!important;min-width:112px;max-width:124px;height:38px;justify-content:center;padding:0 10px}
  .account-head{display:flex!important;width:60px;min-width:60px;height:50px;padding:0;align-items:center;justify-content:center}.account-head>i{display:none}
  .account-head .avatar-mini{width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important;min-height:42px!important;max-height:42px!important}
  .mobile-head-actions{display:none!important}
}

@media (min-width:1200px) and (max-width:1499px){
  .topbar{height:72px;min-height:72px}
  .topbar-inner{width:calc(100% - 28px);min-height:72px;padding:0;grid-template-columns:170px minmax(220px,1fr) auto;column-gap:10px}
  .brand{width:170px;max-width:170px;overflow:visible}.brand img{height:47px;max-width:170px}
  .search{display:flex!important;width:100%;max-width:none;height:42px}
  .top-actions{display:grid!important;grid-template-columns:50px 54px 56px 48px 62px 84px 70px 1px 108px 52px;column-gap:4px;align-items:center;justify-content:end}
  .top-action,.top-action[data-route="notificaciones"],.diamond-nav{width:100%;height:56px;min-width:0;padding:3px 2px}
  .top-action i{font-size:18px}.top-action small{font-size:8.8px;line-height:1.1;white-space:nowrap}.top-action[data-route="notificaciones"] small{font-size:8.2px}
  .header-divider{display:block;width:1px;height:32px;margin:0;justify-self:center;background:var(--line)}
  .role-pill{display:flex!important;min-width:108px;max-width:108px;height:36px;padding:0 8px;justify-content:center}
  .account-head{display:flex!important;width:52px;min-width:52px;height:46px;padding:0;align-items:center;justify-content:center}.account-head>i{display:none}
  .account-head .avatar-mini{width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important;min-height:38px!important;max-height:38px!important}
  .mobile-head-actions{display:none!important}
}

@media (min-width:1001px) and (max-width:1199px){
  .topbar{height:68px;min-height:68px}
  .topbar-inner{width:100%;min-height:68px;padding:0 14px;grid-template-columns:150px minmax(160px,1fr) auto;column-gap:8px}
  .brand{width:150px;max-width:150px;overflow:visible}.brand img{height:43px;max-width:150px}
  .search{display:flex!important;height:40px;max-width:none}
  .top-actions{display:grid!important;grid-template-columns:44px 46px 48px 44px 58px 76px 66px 1px 50px;column-gap:4px;align-items:center;justify-content:end}
  .top-action,.top-action[data-route="notificaciones"],.diamond-nav{width:100%;height:52px;min-width:0;padding:2px}
  .top-action i{font-size:17px}.top-action small{font-size:8.3px;line-height:1.05;white-space:nowrap}.top-action[data-route="notificaciones"] small{font-size:7.8px}
  .header-divider{display:block!important;width:1px;height:30px;margin:0;justify-self:center;background:var(--line)}
  .role-pill{display:none!important}
  .account-head{display:flex!important;width:50px;min-width:50px;height:44px;padding:0;align-items:center;justify-content:center}.account-head>i{display:none}
  .account-head .avatar-mini{width:36px!important;height:36px!important;min-width:36px!important;max-width:36px!important;min-height:36px!important;max-height:36px!important}
  .mobile-head-actions{display:none!important}
}

@media (min-width:721px) and (max-width:1000px){
  .topbar{height:64px;min-height:64px}
  .topbar-inner{width:100%;min-height:64px;padding:0 14px;grid-template-columns:minmax(145px,185px) minmax(180px,1fr) auto;column-gap:10px}
  .brand{width:100%;max-width:185px;overflow:hidden}.brand img{height:43px;max-width:100%}
  .search{display:flex!important;width:100%;height:40px}
  .top-actions{display:none!important}
  .mobile-head-actions{display:flex!important;align-items:center;justify-content:flex-end;gap:3px;min-width:0}
  .mobile-head-btn{width:38px;height:38px;flex:0 0 38px}.mobile-head-btn .avatar-mini{width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;min-height:32px!important;max-height:32px!important}
  .mobile-head-chat{display:grid!important}
}

@media (max-width:720px){
  .topbar{height:58px;min-height:58px}
  .topbar-inner{width:100%;min-height:58px;padding:0 12px;grid-template-columns:minmax(0,1fr) auto;gap:6px;position:relative}
  .brand{width:auto;max-width:calc(100vw - 194px);overflow:hidden}.brand img{height:42px;max-width:100%}
  .top-actions{display:none!important}
  .mobile-head-actions{display:flex!important;align-items:center;justify-content:flex-end;gap:3px}
  .mobile-head-btn{width:38px;height:38px;flex:0 0 38px}.mobile-head-chat{display:none!important}
  .mobile-head-btn .avatar-mini{width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;min-height:32px!important;max-height:32px!important}
  .search{display:none!important}
  .search.mobile-search-open{display:flex!important;position:absolute;left:12px;right:12px;top:60px;width:auto;height:42px;z-index:90;background:var(--ice, #fff);box-shadow:0 10px 30px rgba(15,54,84,.16);border-color:#d6e2ec}
  .main,.profile-inner,.profile-tabs,.cover,.hero,.profile-panel{max-width:100%;min-width:0}.main{overflow-x:hidden}
}

@media (max-width:390px){
  .topbar-inner{padding-left:9px;padding-right:9px;gap:3px}
  .brand{max-width:calc(100vw - 176px)}.brand img{height:38px}
  .mobile-head-actions{gap:1px}.mobile-head-btn{width:36px;height:36px;flex-basis:36px}
  .mobile-head-btn .avatar-mini{width:30px!important;height:30px!important;min-width:30px!important;max-width:30px!important;min-height:30px!important;max-height:30px!important}
  .search.mobile-search-open{left:9px;right:9px}
}
