#norma-messages-anchor{position:sticky;top:0;align-self:flex-end;width:0;height:0;flex:0 0 0;z-index:70}
#norma-messages-toggle{position:absolute;top:8px;right:16px;width:28px;height:28px;border:0;border-radius:50%;background:#da4b3f;color:#fff;font-size:12px;font-weight:700;line-height:28px;text-align:center;cursor:pointer}
#norma-messages-toggle:focus-visible,.norma-messages-popover button:focus-visible,.norma-message-switch:focus-visible{outline:2px solid #333;outline-offset:3px}
#autosave-toast{right:56px}
.norma-messages-popover{position:fixed;z-index:90;width:380px;max-width:calc(100vw - 24px);max-height:calc(100vh - 72px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #e5e7eb;border-radius:8px;background:#fff;color:#333;box-shadow:0 8px 28px #0002}
.norma-messages-popover header,.norma-message-preferences-modal header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #e5e7eb}
.norma-messages-popover h2,.norma-message-preferences-modal h2{font-size:14px;font-weight:700;margin:0;letter-spacing:0}
.norma-messages-popover header div{display:flex;gap:4px}
.norma-messages-popover header button,.norma-message-preferences-modal header button{width:28px;height:28px;border:0;background:transparent;color:#6b7280;cursor:pointer}
.norma-message-list{overflow:auto;min-height:0}
.norma-message-row{display:flex;width:100%;flex-direction:column;gap:6px;padding:12px 16px;text-align:left;border:0;border-bottom:1px solid #f3f4f6;background:#fff;font-size:13px;color:#333;overflow-wrap:anywhere;cursor:pointer}
.norma-message-row:hover{background:#f9fafb}
.norma-message-row time{font-size:11px;color:#9ca3af}
.norma-message-empty{padding:20px 16px;font-size:13px;color:#6b7280;overflow-wrap:anywhere}
.norma-message-more{padding:10px;border:0;border-top:1px solid #e5e7eb;background:white;color:#2563eb;font-size:12px;font-weight:600;cursor:pointer}
.norma-message-more[hidden]{display:none}
.norma-message-preference{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #f3f4f6;font-size:14px;color:#374151}
.norma-message-preference>span{min-width:0;overflow-wrap:anywhere}
.norma-message-switch{position:relative;flex-shrink:0;width:44px;height:24px;border:0;border-radius:12px;background:#d1d5db;cursor:pointer}
.norma-message-switch>span{position:absolute;left:2px;top:2px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0002;transition:left .15s}
.norma-message-switch[aria-checked=true]{background:#2563eb}
.norma-message-switch[aria-checked=true]>span{left:22px}
.norma-message-switch:disabled{opacity:.5;cursor:wait}
.norma-message-preferences-modal{position:fixed;inset:0;z-index:110;background:#11182766;display:flex;align-items:center;justify-content:center;padding:16px}
.norma-message-preferences-modal>section{width:520px;max-width:100%;max-height:90vh;overflow:auto;border-radius:8px;background:#fff;box-shadow:0 12px 32px #0003}
.norma-message-preferences-modal [data-message-preferences]{padding:4px 24px 20px}
