.avatar-settings{border-top:1px solid #ddd;margin-top:20px;padding-top:16px;display:grid;gap:12px;max-width:100%;overflow-wrap:anywhere}.avatar-settings input[type=file]{max-width:100%}.avatar-preview{width:96px;height:96px;object-fit:contain}.avatar-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}.avatar-gallery article{display:grid;gap:8px;padding:10px;border:1px solid #ddd;border-radius:10px}.avatar-gallery img{width:64px;height:64px;object-fit:contain}.dialogue-avatar img{width:100%;height:100%;object-fit:contain;border-radius:inherit}.personal-preferences{max-height:90dvh;overflow:auto}
.avatar-settings>*{min-width:0}.avatar-settings select{max-width:100%;min-width:0}.avatar-settings input[type=checkbox]{width:18px;min-height:18px;height:18px;margin-right:8px}

/* Public media controls share the workbench form system. */
.avatar-settings{gap:14px;border-color:#dce5df;margin-top:24px;padding-top:24px;font-size:13px;line-height:1.7;color:#526357}.avatar-settings h3{font-size:16px;color:#263b31;margin:0}.avatar-settings p{margin:0}.avatar-settings>button{justify-self:start}.avatar-settings button{font:inherit;font-size:12px;border:1px solid #cbd9d0;background:#f7faf8;color:#355b44;border-radius:6px;padding:8px 12px;min-height:36px;line-height:1.5}.avatar-settings button:hover:not(:disabled){background:#e8f0eb;border-color:#9fb8a8}.avatar-settings button:disabled{opacity:1;background:#f1f4f2;color:#6b786f;border-color:#dce5df;cursor:not-allowed}.avatar-settings input[type=file]{padding:10px;border:1px dashed #a8bdaf;border-radius:6px;background:#f8faf8;font-size:12px}.avatar-settings input::file-selector-button{font:inherit;color:#355b44;background:#fff;border:1px solid #cbd9d0;border-radius:4px;padding:7px 10px;margin-right:12px;cursor:pointer}.avatar-settings>label{display:flex;align-items:center;line-height:1.6}.avatar-settings input[type=checkbox]{flex-shrink:0;accent-color:#356b50}.avatar-preview{border:1px solid #dce5df;border-radius:8px;padding:8px;background:#f5f8f6}.avatar-gallery article{border-color:#dce5df;border-radius:6px;padding:12px;background:#f9fbf9}.avatar-gallery img{margin:auto}.avatar-gallery small{font-size:12px;text-align:center;color:#596b60}.assistant-avatar-settings{display:grid;gap:12px;border-top:1px solid #dce5df;padding-top:20px;margin-top:8px}.assistant-avatar-settings>button{justify-self:start}.assistant-avatar-settings label{display:grid;gap:6px;font-size:12px}.avatar-settings [role=alert]{color:#8b3e2f;background:#fff2ee;padding:10px 12px;border-radius:5px}.avatar-settings [role=status]{background:#edf5ef;padding:10px 12px;color:#315f42}
@media(max-width:760px){.avatar-settings button{min-height:44px}.avatar-settings input[type=file],.avatar-settings select{font-size:16px}.avatar-settings input::file-selector-button{min-height:44px}.avatar-settings>label{min-height:44px}}
/* Keep the close action reachable while the long preferences dialog scrolls. */
.personal-preferences{scroll-padding-top:80px}.personal-preferences .project-modal-head{position:sticky;top:0;z-index:2;background:#fff;padding:8px 0 12px;box-shadow:0 6px 0 #fff;border-bottom:1px solid #e2e9e4}
