#personal-notifications {
  box-sizing: border-box;
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(420px, 100%);
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-inline-start: 1px solid var(--bos-line);
  border-radius: 0;
  background: var(--bos-surface);
  box-shadow: -12px 0 50px #0005;
  color: var(--bos-text);
  font: 14px/1.5 var(--bos-font);
}
#personal-notifications[open] {
  display: flex;
  flex-direction: column;
  animation: notifications-in var(--bos-reflow) var(--bos-ease);
}
html:has(#personal-notifications[open]) { overflow: hidden; }
#personal-notifications::backdrop { background: rgb(0 0 0 / .44); }
@keyframes notifications-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
#personal-notifications header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: max(env(safe-area-inset-top), 24px) 22px 18px;
  border-bottom: 1px solid var(--bos-line);
}
#personal-notifications h2 { margin: 0; font: 600 24px/1.25 var(--bos-font); letter-spacing: -.035em; }
#personal-notifications [data-summary] { margin: 4px 0 0; color: var(--bos-muted); }
#personal-notifications [data-summary]:empty, #personal-notifications [data-error]:empty { display: none; }
#personal-notifications button { font: inherit; color: var(--bos-text); border-radius: 9px; }
#personal-notifications [data-close] {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  min-height: 44px;
  padding: 0;
  background: var(--bos-layer);
  border: 1px solid var(--bos-line);
}
#personal-notifications :is(button,a):focus-visible { outline: 2px solid var(--bos-focus); outline-offset: 2px; }
#personal-notifications .notifications-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 22px max(16px, env(safe-area-inset-bottom)); }
#personal-notifications ul { list-style: none; margin: 0; padding: 0; }
#personal-notifications li { padding: 16px 0; border-bottom: 1px solid var(--bos-line); }
#personal-notifications li:last-child { border-bottom: 0; }
#personal-notifications .notification-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; color: var(--bos-muted); font-size: 12px; }
#personal-notifications .unread .notification-meta span { color: var(--bos-gold-text); }
#personal-notifications .unread .notification-meta span::before { content: ""; display: inline-block; vertical-align: .12em; width: 6px; height: 6px; margin-inline-end: 7px; border-radius: 50%; background: currentColor; }
#personal-notifications li :is(a,strong) { display: block; width: fit-content; margin: 5px 0; color: var(--bos-text); text-decoration: none; font-size: 16px; font-weight: 550; overflow-wrap: anywhere; }
#personal-notifications li a:hover, #personal-notifications [data-read]:hover { text-decoration: underline; }
#personal-notifications .notification-state { color: var(--bos-muted); font-size: 12px; }
#personal-notifications [data-read] { min-height: 32px; margin-inline-start: -4px; padding: 4px; background: transparent; border: 0; color: var(--bos-gold-text); }
#personal-notifications [data-read][aria-disabled=true] { opacity: .65; cursor: progress; }
#personal-notifications [data-error] { margin-top: 16px; color: var(--bos-danger); }
#personal-notifications [data-retry] { margin-top: 8px; }
@media (pointer: coarse) { #personal-notifications [data-read] { min-height: 44px; } }
