/* Xmarts · Comunidad de accesorios: solo el panel Personalizar mi escritorio. */
#deskCustomizeModal .desk-community-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 14px}
#deskCustomizeModal .desk-community-card{min-width:0;display:flex;flex-direction:column;gap:7px;padding:10px;border:1px solid #444b45;border-radius:13px;background:var(--vo-light-surface,#282c2a)}
#deskCustomizeModal .desk-community-thumb{height:105px;border-radius:9px;background:var(--vo-light-surface,#232724);display:grid;place-items:center;overflow:hidden}
#deskCustomizeModal .desk-community-thumb img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
#deskCustomizeModal .desk-community-card b{font-size:0.75rem;line-height:1.3;color:var(--vo-light-primary,#edf0eb);overflow-wrap:anywhere}
#deskCustomizeModal .desk-community-card small{font-size:0.625rem;line-height:1.4;color:var(--vo-light-secondary,#a7afa5)}
#deskCustomizeModal .desk-community-card button,
#deskCustomizeModal .desk-community-share-action{min-height:34px;padding:7px 10px;border:1px solid #789e61;border-radius:9px;background:var(--vo-light-card,#2e3c2c);color:var(--vo-light-primary,#b8df9c);cursor:pointer;font-size:0.6875rem;font-weight:800}
#deskCustomizeModal .desk-community-card button:hover,
#deskCustomizeModal .desk-community-share-action:hover{background:var(--vo-light-hover,#3a4e35)}
#deskCustomizeModal .desk-community-card button.desk-community-remove{background:var(--vo-light-card,#333632);border-color:var(--vo-light-border,#61685d);color:var(--vo-light-primary,#d3d8d1)}
#deskCustomizeModal .desk-community-share-action{display:block;width:100%;margin-top:8px}
#deskCustomizeModal .desk-community-media-share{grid-column:1/-1}
#deskCustomizeModal .desk-community-card button:disabled,
#deskCustomizeModal .desk-community-share-action:disabled{opacity:var(--vo-light-disabled-opacity,.5);cursor:wait}
#deskCustomizeModal .desk-customize-tab[data-desk-category=community]{border-color:var(--vo-light-border,#70925e)}
@media(max-width:420px){#deskCustomizeModal .desk-community-grid{grid-template-columns:1fr}}

#deskCustomizeModal .desk-community-owned{min-width:0;display:flex;flex-direction:column;gap:5px}
#deskCustomizeModal .desk-community-owned>.desk-my-card{width:100%;box-sizing:border-box}
#deskCustomizeModal .desk-community-owned>.desk-community-share-action{margin-top:0}
#deskCustomizeModal .desk-selected-card>.desk-community-share-action{grid-column:1/-1;margin-top:0}

/* Navegación compacta: ocho pestañas visibles sin desplazar la barra lateral. */
#deskCustomizeModal .desk-customize-workspace .desk-customize-tabs{
  gap:5px;
  padding:8px 8px;
}
#deskCustomizeModal .desk-customize-tabs .desk-customize-tab{
  height:61px;
  min-height:61px;
  gap:3px;
  padding:6px 3px;
  font-size:0.5625rem;
  line-height:1.15;
}
#deskCustomizeModal .desk-customize-tabs .desk-customize-tab .desk-nav-icon{
  width:18px;
  height:18px;
}
@media(max-width:520px){
  #deskCustomizeModal .desk-customize-workspace .desk-customize-tabs{gap:4px;padding:6px 4px}
  #deskCustomizeModal .desk-customize-tabs .desk-customize-tab{
    height:51px;min-height:51px;gap:2px;padding:4px 2px;font-size:0.5rem;
  }
  #deskCustomizeModal .desk-customize-tabs .desk-customize-tab .desk-nav-icon{
    width:16px;height:16px;
  }
}

/* La carga sigue accesible mientras navegamos la biblioteca personal. */
#deskCustomizeModal #deskCustomizeCategoryBody .desk-upload-box{
  position:sticky;
  top:0;
  z-index:4;
  background:var(--desk-ui-surface,#292c2b);
  border-color:var(--desk-ui-line,#3d423e);
  box-shadow:0 5px 14px rgba(0,0,0,.22);
}
#deskCustomizeModal #deskCustomizeCategoryBody .desk-upload-main:disabled{
  cursor:not-allowed;
  opacity:var(--vo-light-disabled-opacity,.78);
}

/* GIF y PNG: encajados siempre en su tarjeta, sin ensanchar la cuadrícula. */
#deskCustomizeModal .desk-media-library,
#deskCustomizeModal .desk-media-library-grid{
  width:100%;max-width:100%;min-width:0;box-sizing:border-box;
}
#deskCustomizeModal .desk-media-library-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
}
#deskCustomizeModal .desk-media-library-grid .desk-media-card{
  width:100%;min-width:0;max-width:100%;box-sizing:border-box;
  overflow:hidden;grid-template-columns:minmax(0,1fr);
  grid-template-rows:82px auto auto;
  align-content:start;
}
#deskCustomizeModal .desk-media-card > *{min-width:0;max-width:100%}
#deskCustomizeModal .desk-media-card .desk-media-thumb{
  display:grid;place-items:center;
  width:100%;height:82px;max-width:100%;min-width:0;
  overflow:hidden;box-sizing:border-box;
}
#deskCustomizeModal .desk-media-card .desk-media-thumb img{
  display:block;width:100%;height:100%;
  max-width:100%;max-height:100%;
  min-width:0;min-height:0;object-fit:contain;
}
#deskCustomizeModal .desk-media-card .desk-media-name{
  width:100%;min-width:0;max-width:100%;
  white-space:nowrap;text-overflow:ellipsis;overflow:hidden;
}
#deskCustomizeModal .desk-media-card .desk-media-meta{
  min-width:0;max-width:100%;overflow-wrap:anywhere;
}
#deskCustomizeModal .desk-media-card .desk-media-actions{
  display:grid;grid-template-columns:minmax(0,1fr) 30px;
  gap:5px;width:100%;min-width:0;max-width:100%;box-sizing:border-box;
}
#deskCustomizeModal .desk-media-card .desk-media-actions > .add{
  min-width:0;width:100%;max-width:100%;
}
#deskCustomizeModal .desk-media-card .desk-media-actions > .delete{
  display:grid!important;place-items:center;
  width:30px!important;min-width:30px!important;max-width:30px!important;
  min-height:28px;justify-self:end;position:relative;z-index:1;
  font-size:0.8125rem!important;line-height:1;
  opacity:1;
}
#deskCustomizeModal .desk-media-card .desk-media-actions > .delete:disabled{
  opacity:var(--vo-light-disabled-opacity,.5)!important;
}
#deskCustomizeModal .desk-community-sharing{
  display:flex;flex-direction:column;gap:5px;
  min-width:0;max-width:100%;width:100%;box-sizing:border-box;
}
#deskCustomizeModal .desk-media-actions > .desk-community-sharing{
  grid-column:1/-1;
}
#deskCustomizeModal .desk-community-sharing .desk-community-share-action{
  display:block;width:100%;min-width:0;max-width:100%;
  box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;
  text-align:center;margin:0;
}
#deskCustomizeModal .desk-community-sharing .desk-community-shared-status{
  display:block;text-align:center;min-width:0;max-width:100%;
  padding:5px 3px;box-sizing:border-box;
  color:var(--desk-ui-green,#a0cf69);
  font-size:0.625rem;font-weight:750;line-height:1.25;
}
#deskCustomizeModal .desk-community-sharing .desk-community-unshare{
  border-color:var(--vo-light-border,#686e65);background:var(--vo-light-surface,#303532);color:var(--vo-light-primary,#d2d8cf);
}
#deskCustomizeModal .desk-community-sharing .desk-community-unshare:hover{
  background:var(--vo-light-hover,#394039);
}
