/* AuraViva R3 / catalog publico curado - visual mobile-first and isolated. */
:is(#personalAvatarEditor,[data-view="avatars:creator"]) .r3-public-owner{margin-top:14px;padding:12px;background:#f5fbfd;border:1px solid #c9e3e9;border-radius:14px}
:is(#personalAvatarEditor,[data-view="avatars:creator"]) .r3-public-owner>summary{font-size:16px;font-weight:700;color:#184a5c}
:is(#personalAvatarEditor,[data-view="avatars:creator"]) .r3-public-owner[hidden]{display:none!important}
:is(#personalAvatarEditor,[data-view="avatars:creator"]) .r3-form-fields input,:is(#personalAvatarEditor,[data-view="avatars:creator"]) .r3-code-section input{display:block;width:100%;min-height:44px;margin:5px 0 12px;padding:10px 12px;border:1px solid #a8c8d4;border-radius:10px;background:white;color:#193e55;font:inherit}
:is(#personalAvatarEditor,[data-view="avatars:creator"]) .r3-form-fields label{font-weight:600}
:is(#personalAvatarEditor,[data-view="avatars:creator"]) .r3-check{display:flex;align-items:flex-start;gap:8px;margin:10px 0;line-height:1.5}
:is(#personalAvatarEditor,[data-view="avatars:creator"]) .r3-check>input{width:20px;height:20px;min-width:20px;flex:none;margin-top:1px}
:is(#personalAvatarEditor,[data-view="avatars:creator"]) .r3-note,.r3-public-catalog .r3-note{color:#54717d;font-size:12px;line-height:1.6}
:is(#personalAvatarEditor,[data-view="avatars:creator"]) .r3-docs{display:flex;flex-direction:column;border:1px solid #d9e5e8;padding:8px 12px;border-radius:12px;background:#fff}
:is(#personalAvatarEditor,[data-view="avatars:creator"]) .r3-status{min-height:24px;font-size:13px;overflow-wrap:anywhere}
:is(#personalAvatarEditor,[data-view="avatars:creator"]) .r3-button,.r3-public-catalog .r3-button,#avPublicTalk .r3-button{min-height:44px;border-radius:10px;padding:10px 14px;font:600 13px system-ui;background:#d8edf0;border:1px solid #96bdc5;color:#1b4d59;cursor:pointer}
:is(#personalAvatarEditor,[data-view="avatars:creator"]) .r3-button:disabled,#avPublicTalk .r3-button:disabled{opacity:.5;cursor:default}
:is(#personalAvatarEditor,[data-view="avatars:creator"]) .r3-danger{margin-top:12px;background:#f9e6e4;color:#80382c;border-color:#d4ada9}
:is(#personalAvatarEditor,[data-view="avatars:creator"]) .r3-review-video,:is(#personalAvatarEditor,[data-view="avatars:creator"]) .r3-review-speaking{width:100%;max-height:400px;object-fit:contain;display:block;border-radius:12px;background:#1e2b31}
:is(#personalAvatarEditor,[data-view="avatars:creator"]) .r3-code-section,:is(#personalAvatarEditor,[data-view="avatars:creator"]) .r3-review-section{margin:12px 0;padding:10px;border:1px solid #d6e4e7;border-radius:10px}
:is(#personalAvatarEditor,[data-view="avatars:creator"]) .r3-public-owner [data-error=true]{color:#ad3c33}
.r3-public-catalog{margin:14px 0;padding:12px 0;border-top:1px solid #dde1e4;color:#304955}
.r3-public-catalog h3{font:700 18px/1.25 system-ui;margin:5px 0}
.r3-public-catalog p{font-size:13px;line-height:1.6}
.r3-catalog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:12px}
.r3-card{padding:8px;border:1px solid #d5e2e7;border-radius:14px;background:white;color:#294756;min-width:0}
.r3-card-video,.r3-card-image{display:block;width:100%;height:190px;object-fit:contain;background:#eef3f6;border-radius:10px}
.r3-card-info{padding:7px 4px;overflow-wrap:anywhere;display:grid;gap:5px}
.r3-card-info b{font-size:14px}.r3-card-info p{margin:0}.r3-card-info small{font-size:11px;color:#677c8a}
#avPublicTalk{box-sizing:border-box;width:min(480px,calc(100% - 14px));max-height:90dvh;overflow:auto;background:#fff;border:1px solid #d2e0e7;border-radius:18px;padding:14px;color:#243e51}
#avPublicTalk::backdrop{background:#17263799}
#avPublicTalk .r3-talk-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
#avPublicTalk .r3-talk-head h3{font:700 20px system-ui;margin:0}
#avPublicTalk .r3-talk-close{min-width:44px;min-height:44px}
#avPublicTalk .r3-talk-video,#avPublicTalk .r3-talk-speaking,#avPublicTalk .r3-talk-poster{max-height:42vh;max-width:100%;width:100%;object-fit:contain;background:#eaf0f4;border-radius:14px}
#avPublicTalk .r3-actions{display:flex;gap:10px;flex-wrap:wrap}
#avPublicTalk .r3-actions button{flex:1;min-width:110px}
#avPublicTalk .r3-check{display:flex;gap:8px;align-items:flex-start;font-size:13px;margin:10px 0}
#avPublicTalk .r3-check input{min-width:19px;min-height:19px}
#avPublicTalk [data-error=true],.r3-public-catalog [data-error=true]{color:#ad3c33}
#avPublicTalk [hidden],.r3-public-catalog [hidden],:is(#personalAvatarEditor,[data-view="avatars:creator"]) .r3-public-owner [hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){.r3-card video,#avPublicTalk video{visibility:hidden}}

/* R3 product gate: disabled is visibly grey, enabled only after complete Caja Negra and consents. */
:is(#personalAvatarEditor,[data-view="avatars:creator"]) .r3-public-owner .r3-submit:disabled{background:#e5e9ed;border-color:#bdc5ca;color:#79838d;opacity:1;cursor:not-allowed}
:is(#personalAvatarEditor,[data-view="avatars:creator"]) .r3-public-owner .r3-submit:not(:disabled){background:#176f8b;border-color:#176f8b;color:#fff;opacity:1}
:is(#personalAvatarEditor,[data-view="avatars:creator"]) .r3-ready-note{padding:8px 10px;border-radius:10px;background:#eef1f3;color:#4b6573;font-size:12px;line-height:1.5}
:is(#personalAvatarEditor,[data-view="avatars:creator"]) .r3-ready-note[data-ready=true]{background:#e5f5ed;color:#185b41}

/* Audited entry: two separate actions; deletion keeps its confirmation. */
#personalAvatarEditor .r3-entry-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}
#personalAvatarEditor .r3-entry-actions button{min-height:48px;white-space:normal;overflow-wrap:anywhere;margin:0}
#personalAvatarEditor #r3-entry-note{font-size:13px;line-height:1.45}
[data-view="avatars:creator"] .r3-public-owner{background:#f5fbfd;color:#193e55;padding:12px;border-radius:14px}
[data-view="avatars:creator"] .r3-public-owner summary{font-size:17px;font-weight:700}
