dialog.nomi-avatar-crop{box-sizing:border-box;width:min(94vw,440px);max-height:94dvh;overflow:auto;margin:auto;padding:18px;border:1px solid #806295;border-radius:18px;background:#291d39;color:#f7efff;z-index:2147483647}
.nomi-avatar-crop::backdrop{background:#10091bcc}
.nomi-avatar-crop h3{margin:0 0 8px}.nomi-avatar-crop p{font-size:14px;line-height:1.45}
.nomi-avatar-crop canvas{display:block;width:min(100%,320px);height:auto;margin:12px auto;border-radius:50%;touch-action:none;cursor:grab;background:#17111f;outline:2px solid #bca2d3}
.nomi-avatar-crop label{display:grid;gap:8px}.nomi-avatar-crop input{width:100%;min-height:36px}.nomi-avatar-crop>div{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.nomi-avatar-crop button{font:inherit;padding:10px 14px;border:1px solid #9876ad;border-radius:10px;background:#50336c;color:white;cursor:pointer}
html #nomiTopActions .nomi-top-icon{border-color:#72518b!important;box-shadow:none!important;animation:none!important}
html[data-nomi-theme="light"] #nomiTopActions .nomi-top-icon{border-color:var(--nomi-site-border)!important}
html #nomiTopActions .nomi-top-count{background:#23724e;color:#fff;border:0;box-shadow:none;animation:none}
html #nomiAlertsPanel .nomi-alert-card,html #nomiAlertsPanel .nomi-alert-card.is-unread{border:1px solid #4e3569;background:#2c1d40;box-shadow:none}
html[data-nomi-theme="light"] #nomiAlertsPanel .nomi-alert-card,html[data-nomi-theme="light"] #nomiAlertsPanel .nomi-alert-card.is-unread{background:var(--nomi-site-surface);border-color:var(--nomi-site-border)}
html #nomiAlertsPanel .nomi-alert-state.is-unread,html[data-nomi-theme="light"] #nomiAlertsPanel .nomi-alert-state.is-unread{background:#246547;border-color:#69b38b;color:#f0fff6;box-shadow:0 0 5px #4ba87333}
html #nomiAlertsPanel .nomi-alert-state:not(.is-unread){background:transparent;border-color:#71617f;color:#bbaaca;box-shadow:none}
html #nomiChatList .nomi-chat-item.is-unread{box-shadow:none}
html #nomiChatList .nomi-chat-unread-count{background:#23724e;color:#fff}





/* Chat-only: keep settings inside the visible conversation viewport. */
#nomiMessenger #nomiThread{position:relative;min-width:0}
#nomiMessenger #nomiThreadMenu:not([hidden]){
 position:absolute!important;z-index:150!important;right:8px!important;left:auto!important;
 top:52px!important;width:min(460px,calc(100% - 16px))!important;
 max-width:calc(100% - 16px)!important;max-height:calc(100% - 64px)!important;
 box-sizing:border-box!important;overflow-y:auto!important;overflow-x:hidden!important;
 overscroll-behavior:contain!important;margin:0!important;
}
#nomiMessenger #nomiThreadMenu *,#nomiMessenger #nomiThreadMenu *::before,#nomiMessenger #nomiThreadMenu *::after{box-sizing:border-box;min-width:0}
#nomiMessenger #nomiThreadMenu #nomiChatCustomizer{width:100%!important;max-width:100%!important}
#nomiMessenger #nomiThreadMenu .nomi-chat-style-controls{width:100%!important;min-width:0!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
#nomiMessenger #nomiThreadMenu .nomi-chat-style-controls label{width:100%!important;min-width:0!important;overflow-wrap:anywhere}
#nomiMessenger #nomiThreadMenu select{width:100%!important;max-width:100%!important;min-width:0!important}
#nomiMessenger #nomiThreadMenu button{max-width:100%;white-space:normal;overflow-wrap:anywhere}

/* NOMI chat settings: prevent clipped flex children and make all selectable themes real. */
#nomiMessenger #nomiThreadMenu:not([hidden]){position:absolute!important;top:calc(100% + 4px)!important;right:0!important;left:auto!important;width:min(440px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;max-height:min(72dvh,650px)!important;overflow:auto!important;z-index:300!important;contain:layout style!important}
#nomiMessenger #nomiThread{position:relative!important}
#nomiMessenger #nomiThreadMenu #nomiChatCustomizer{display:block!important;width:100%!important;min-width:0!important;overflow:visible!important}
#nomiMessenger #nomiThreadMenu #nomiChatCustomizer[open]>.nomi-chat-style-controls{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;width:100%!important;min-width:0!important;align-items:stretch!important}
#nomiMessenger #nomiThreadMenu .nomi-chat-style-controls>label{display:flex!important;flex-direction:column!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;white-space:normal!important}
#nomiMessenger #nomiThreadMenu .nomi-chat-style-controls select{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important}
#nomiMessenger #nomiThreadMenu #nomiChatBlockButton{display:block!important;width:100%!important;white-space:normal!important}
#nomiMessenger[data-theme="violet"]{--nomi-own:#583479!important;--nomi-other:#302443!important}
#nomiMessenger[data-theme="rose"]{--nomi-own:#9c407e!important;--nomi-other:#49334e!important}
#nomiMessenger[data-theme="blue"]{--nomi-own:#275f95!important;--nomi-other:#263a56!important}
#nomiMessenger[data-theme="dark"]{--nomi-own:#424153!important;--nomi-other:#272336!important}
#nomiMessenger[data-theme="emerald"]{--nomi-own:#136f59!important;--nomi-other:#184c45!important}
#nomiMessenger[data-theme="burgundy"]{--nomi-own:#79324a!important;--nomi-other:#432634!important}
#nomiMessenger[data-theme="teal"]{--nomi-own:#147f87!important;--nomi-other:#204d59!important}
#nomiMessenger[data-theme="amber"]{--nomi-own:#98651e!important;--nomi-other:#594325!important}
#nomiMessenger[data-theme="plum"]{--nomi-own:#73437e!important;--nomi-other:#3e2b4b!important}
#nomiMessenger[data-theme="graphite"]{--nomi-own:#3a4b61!important;--nomi-other:#202d40!important}
#nomiMessenger[data-theme="sapphire"]{--nomi-own:#2557a5!important;--nomi-other:#1d385e!important}
#nomiMessenger[data-theme="coral"]{--nomi-own:#ae5260!important;--nomi-other:#613c49!important}
#nomiMessenger[data-theme="indigo"]{--nomi-own:#4c4e9e!important;--nomi-other:#2b315d!important}
#nomiMessenger[data-theme="forest"]{--nomi-own:#2c6a4b!important;--nomi-other:#1e4035!important}
#nomiMessenger[data-theme="copper"]{--nomi-own:#966244!important;--nomi-other:#563e32!important}

/* Chat settings anchored below header, independently scrollable, never a flex item. */
#nomiMessenger #nomiThread #nomiThreadMenu:not([hidden]){position:absolute!important;inset:50px 8px auto auto!important;top:50px!important;bottom:auto!important;left:auto!important;right:8px!important;width:min(440px,calc(100% - 16px))!important;max-width:calc(100% - 16px)!important;max-height:min(68dvh,600px)!important;overflow-y:auto!important;overflow-x:hidden!important;z-index:999!important;display:block!important;flex:none!important;contain:none!important;}
#nomiMessenger #nomiThread #nomiThreadMenu .nomi-chat-style-controls{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;gap:9px!important;width:100%!important;min-width:0!important;}
#nomiMessenger #nomiThread #nomiThreadMenu .nomi-chat-style-controls>label{display:flex!important;flex-direction:column!important;flex:0 0 auto!important;min-width:0!important;width:100%!important;max-width:100%!important;}
#nomiMessenger #nomiThread #nomiThreadMenu #nomiChatCustomizer{display:block!important;flex:none!important;width:100%!important;max-width:100%!important;min-width:0!important;}

