.shell .profile-area .inbox-open {
  display: inline-grid; place-items: center; position: relative; width: 36px; min-width: 36px; height: 36px;
  padding: 0; border: 0; border-radius: 10px; background: transparent; color: #526074; box-shadow: none;
}
.shell .profile-area .inbox-open:hover { background: #f2f5fd; color: #425bd0; }
.inbox-open .inbox-dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: #5169e9; box-shadow: 0 0 0 2px white; }
dialog.messages-dialog { width: min(398px, calc(100% - 32px)); max-height: min(570px, 82vh); padding: 22px; border: 0; border-radius: 18px; background: white; color: #202733; box-shadow: 0 16px 52px #15274c26; }
dialog.messages-dialog::backdrop { background: rgb(28 38 56 / 27%); }
.messages-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.messages-dialog header h2 { margin: 0; font-size: 19px; line-height: 1.4; }
.messages-dialog header .close { position: static; }
.messages-dialog #messages-empty, .messages-dialog #messages-denied { color: #657080; font-size: 13px; }
.messages-dialog #messages-empty { margin: 24px 0; }
.messages-dialog ul { margin: 0; padding: 0; list-style: none; max-height: 52vh; overflow: auto; }
.messages-dialog li + li { border-top: 1px solid #e8ecf2; }
.messages-dialog .message-row { display: block; position: relative; width: 100%; text-align: start; padding: 11px 14px 11px 16px; border: 0; border-radius: 8px; color: #273142; background: transparent; box-shadow: none; font-size: 14px; font-weight: 500; }
.messages-dialog .message-row:hover { background: #f4f6fb; }
.message-row.unread::before { content: ''; position: absolute; left: 3px; top: 18px; width: 6px; height: 6px; border-radius: 100%; background: #536de0; }
.message-row time { display: block; margin-top: 3px; font-size: 11px; font-weight: 400; color: #657080; }
.messages-dialog footer { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid #e8ecf2; }
.messages-dialog #messages-permission { padding: 6px 0; font-size: 13px; background: transparent; box-shadow: none; }
#messages-open[hidden], #messages-dialog [hidden] { display: none !important; }

.messages-dialog #messages-types { margin: 0 0 2px; font-size: 12px; color: #657080; }
