.notification-center { position: relative; flex: 0 0 auto; }
.notification-center [hidden] { display: none !important; }
.notification-center .notification-button > [data-notification-count] { min-width: 18px; width: auto; padding-inline: 3px; }
.notification-inbox, .notification-previews { position: absolute; top: calc(100% + 10px); right: 0; width: min(390px, calc(100vw - 24px)); z-index: 80; color: #17284a; }
.notification-inbox { overflow: auto; max-height: min(620px, calc(100dvh - 100px)); background: #fff; border: 1px solid #dce3ef; border-radius: 12px; box-shadow: 0 14px 42px #15274526; }
.notification-inbox-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid #e8edf5; }
.notification-inbox-header h2 { margin: 0; flex: 1; font-size: 16px; font-weight: 750; }
.notification-inbox button, .notification-preview button { font: inherit; cursor: pointer; }
.notification-inbox button:disabled { cursor: default; opacity: .5; }
.notification-inbox-header [data-notification-clear] { border: 0; border-radius: 5px; padding: 6px; background: transparent; color: #0759c7; font-size: 12px; font-weight: 600; white-space: nowrap; }
.notification-inbox .notification-close, .notification-inbox .notification-dismiss, .notification-preview .notification-preview-close { width: 30px; height: 30px; min-height: 30px; flex: 0 0 30px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #50627e; font-size: 22px; line-height: 1; box-shadow: none; }
.notification-inbox .notification-close:hover, .notification-inbox .notification-dismiss:hover, .notification-preview-close:hover { background: #eef3fa; }
.notification-inbox-status { margin: 0; padding: 10px 16px; font-size: 12px; line-height: 1.4; color: #62718b; }
.notification-inbox-status.is-error { color: #a22b39; }
.notification-inbox-list { margin: 0; padding: 0; list-style: none; }
.notification-entry { display: flex; align-items: flex-start; gap: 4px; margin: 0; padding: 10px 12px 10px 16px; border-top: 1px solid #edf0f6; }
.notification-entry:hover { background: #f7faff; }
.notification-entry-link { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 4px; padding: 2px 0; text-decoration: none; color: inherit; overflow-wrap: anywhere; }
.notification-kind { color: #1861b3; font-size: 11px; font-weight: 650; }
.notification-title { color: #17284a; font-size: 13px; line-height: 1.35; font-weight: 650; }
.notification-detail { color: #5c6a83; font-size: 12px; line-height: 1.4; white-space: pre-wrap; }
.notification-inbox .notification-more, .notification-inbox .notification-refresh { display: block; width: calc(100% - 32px); margin: 10px 16px 14px; padding: 9px; border: 1px solid #d3def1; border-radius: 6px; background: #f6f9ff; color: #1452a7; font-size: 12px; }
.notification-previews { display: grid; gap: 8px; pointer-events: none; }
.notification-preview { display: flex; align-items: flex-start; gap: 8px; padding: 13px 12px 13px 16px; background: #fff; border: 1px solid #d2dff2; border-left: 3px solid #256bdc; border-radius: 10px; box-shadow: 0 10px 28px #15274524; pointer-events: auto; transition: opacity .2s ease, transform .2s ease; transform-origin: top right; }
.notification-preview.is-retiring { opacity: 0; transform: translateY(-12px) scale(.96); pointer-events: none; }
.notification-center :is(a, button):focus-visible, .notification-inbox-header h2:focus-visible { outline: 2px solid #286cde; outline-offset: 2px; }
@media (max-width: 650px) {
    .notification-inbox, .notification-previews { position: fixed; top: 72px; right: 12px; left: 12px; width: auto; }
    .notification-inbox { max-height: calc(100dvh - 88px); }
    .notification-inbox .notification-dismiss, .notification-preview .notification-preview-close, .notification-inbox .notification-close { width: 38px; height: 38px; flex-basis: 38px; }
}
@media (prefers-reduced-motion: reduce) { .notification-preview { transition: none; } }
