.mg-acervo-retrato { position: relative; isolation: isolate; }
.mg-acervo-camadas { position: absolute; inset: 0; pointer-events: none; }
.mg-acervo-camadas > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.mg-acervo-camadas .mg-acervo-fundo { z-index: -1; opacity: .65; object-fit: cover; border-radius: 50%; }
.mg-acervo-camadas .mg-acervo-avatar { z-index: 1; inset: 11%; width: 78% !important; height: 78%; border-radius: 50%; }
.mg-acervo-camadas .mg-acervo-moldura { z-index: 2; }
.mg-acervo-camadas .mg-acervo-efeito { z-index: 3; }
.mg-acervo-camadas ge-cosmetico::part(imagem) { height: 100%; object-fit: cover; }
.mg-acervo-retrato > .mg-acervo-camadas { display: contents; }
.mg-acervo-retrato:has(.mg-acervo-fundo:not([hidden])) > img:not(.mg-acervo-fundo) { width: 78%; height: 78%; }
.mg-acervo-camadas [hidden],.mg-acervo-item [hidden] { display: none !important; }
#pCosmeticos[hidden] { display: none; }
.mg-acervo-editor { border-block: 1px solid var(--line); padding-block: 12px; margin-block: 6px; min-width: 0; }
.mg-acervo-editor summary { cursor: pointer; color: var(--ink); font-weight: 600; min-height: 44px; align-content: center; }
.mg-acervo-painel { display: grid; gap: 12px; }
.mg-acervo-previa { display: grid; place-items: center; min-height: 112px; position: relative; isolation: isolate; overflow: hidden; border-radius: 12px; background: var(--hover); }
.mg-acervo-capa { position: absolute; inset: 0; z-index: -1; }
.mg-acervo-capa img { width: 100%; height: 100%; object-fit: cover; }
.mg-acervo-previa .prof-av { width: 72px; height: 72px; }
.mg-acervo-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mg-acervo-tools select { width: auto; min-height: 44px; max-width: 100%; }
.mg-acervo-tools button { min-height: 44px; }
.mg-acervo-itens { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 106px), 1fr)); gap: 8px; }
.mg-acervo-item { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--card, var(--bg)); color: var(--ink); font: inherit; cursor: pointer; min-width: 0; overflow-wrap: anywhere; }
.mg-acervo-item:hover,.mg-acervo-item[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-weak, var(--hover)); }
.mg-acervo-item small { color: var(--ink-soft); }
.mg-acervo-item ge-cosmetico { min-height: 58px; }
.mg-acervo-item:focus-visible,.mg-acervo-editor summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mg-acervo-status { color: var(--ink-soft); font-size: 13px; }
