.notifications-menu { position: relative; }
.notification-detail-dialog { width: min(680px, calc(100vw - 32px)); }
.notification-detail { overflow-wrap: anywhere; }
.notification-detail h3 { margin: 22px 0 8px; font-size: 20px; line-height: 1.4; }
.notification-detail-meta { margin-bottom: 24px; color: var(--workspace-soft, #65748a); font-size: 12px; line-height: 1.6; }
.notification-detail-body { line-height: 1.7; }
.notification-detail-body p { margin: 0 0 14px; white-space: pre-line; }
.notification-detail-body a { color: var(--workspace-brand, #1e69af); text-decoration: underline; text-underline-offset: 3px; }
.notification-detail-body a:focus-visible { outline: 2px solid var(--workspace-brand, #1e69af); outline-offset: 3px; }
.notification-detail-body img { max-width: 100%; height: auto; }
.notification-detail-body pre { max-width: 100%; overflow-x: auto; }
.notification-toasts { display: grid; gap: 10px; pointer-events: none; }
.notification-toast { display: flex; align-items: flex-start; gap: 12px; padding: 16px 36px 16px 16px; position: relative; border: 1px solid var(--workspace-border, #e4e9ef); border-radius: 12px; background: var(--workspace-card, white); color: var(--workspace-foreground, #26354b); box-shadow: 0 8px 32px #1d365733; pointer-events: auto; animation: notification-arrive .2s ease-out; }
.notification-toast-avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #e0f3ec; color: #157a63; font-size: 20px; font-weight: 800; }
.notification-toast-link { display: grid; gap: 5px; min-width: 0; flex: 1; color: inherit; text-decoration: none; }
.notification-toast-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 11px; }
.notification-toast-heading strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-toast-heading time { flex: none; opacity: .6; font-size: 10px; }
.notification-toast-title, .notification-toast-message { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; }
.notification-toast-message { opacity: .75; }
.notification-toast-close { position: absolute; top: 8px; right: 6px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: inherit; opacity: .6; font-size: 21px; cursor: pointer; }
.notification-toast-close:hover { background: #8190a41a; opacity: 1; }
.notification-toast :is(a, button):focus-visible { outline: 2px solid #218c75; outline-offset: 2px; }
@keyframes notification-arrive { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .notification-toast { animation: none; } }

.notification-bell { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; color: #65748a; cursor: pointer; list-style: none; }
.notification-bell::-webkit-details-marker { display: none; }
.notification-bell:hover, .notifications-menu[open] .notification-bell { color: #218c75; background: #edf8f3; }
.notification-badge { position: absolute; top: -3px; right: -5px; min-width: 18px; padding: 2px 4px; border: 2px solid white; border-radius: 12px; background: #de5265; color: white; font-size: 9px; font-weight: 800; line-height: 1.2; text-align: center; }
.notification-panel { position: absolute; top: calc(100% + 12px); right: 0; z-index: 110; width: 400px; max-width: calc(100vw - 32px); overflow: hidden; border: 1px solid #e4e9ef; border-radius: 14px; background: white; box-shadow: 0 16px 48px #1d36572b; }
.notification-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 18px 12px; }
.notification-panel-heading h2 { margin: 0; font: 800 17px 'Manrope', sans-serif; }
.notification-read-all { border: 0; padding: 4px 0; background: transparent; color: #218c75; font-size: 11px; font-weight: 700; }
.notification-tabs { display: flex; gap: 8px; padding: 0 18px 12px; border-bottom: 1px solid #edf1f5; }
.notification-tabs > :is(button, a) { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 11px; border: 0; border-radius: 6px; background: transparent; color: #748398; font-size: 12px; font-weight: 700; }
.notification-tabs [aria-pressed=true], .notification-tabs [aria-current=page] { background: #e8f6ef; color: #218c75; }
.notification-list { list-style: none; margin: 0; padding: 0; }
.notification-panel .notification-list { max-height: min(55vh, 470px); overflow-y: auto; overscroll-behavior: contain; }
.notification-item { display: flex; align-items: flex-start; gap: 4px; padding: 4px 12px 4px 0; border-bottom: 1px solid #edf1f5; }
.notification-item.is-unread { background: #f1faf6; }
.notification-item:last-child { border-bottom: 0; }
.notification-ticket-link { display: grid; flex: 1; min-width: 0; gap: 6px; padding: 12px 12px 12px 18px; border-radius: 7px; }
.notification-ticket-link:hover { background: #e7f3ed; }
.notification-item-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #8190a4; font-size: 10px; font-weight: 700; }
.notification-item-meta > span:first-child { overflow-wrap: anywhere; }
.notification-unread-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #31b491; }
.notification-ticket-link strong { color: #26354b; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.notification-item-message { color: #65748a; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.notification-ticket-link time { color: #9aa6b5; font-size: 10px; }
.notification-toggle-read { display: grid; place-items: center; flex: none; width: 28px; height: 28px; margin-top: 12px; border: 0; border-radius: 6px; background: transparent; color: #7b8b9d; }
.notification-toggle-read svg { width: 16px; height: 16px; }
.notification-toggle-read:hover { color: #218c75; background: #dceee4; }
.notification-panel-footer { padding: 14px; border-top: 1px solid #edf1f5; text-align: center; }
.notification-panel-footer a { color: #218c75; font-size: 12px; font-weight: 700; }
.notification-empty { display: grid; justify-items: center; gap: 10px; padding: 36px 20px; color: #8190a4; font-size: 12px; text-align: center; }
.notification-empty svg { width: 32px; height: 32px; margin-bottom: 4px; color: #74bba4; }
.notification-empty strong { color: #46576c; font-size: 14px; }
.notification-feedback { margin: 0; padding: 0 18px; color: #a83e4c; font-size: 12px; }
.notification-feedback:empty { display: none; }
.notification-inbox-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.notification-inbox-heading h1 { margin: 10px 0; font: 800 28px 'Manrope', sans-serif; }
.notification-inbox-heading p { color: #748398; font-size: 13px; line-height: 1.6; }
.notification-inbox > .notification-tabs { padding-left: 0; }
.notification-inbox-list { margin-top: 16px; overflow: hidden; border: 1px solid #e4e9ef; border-radius: 12px; background: white; }
.notification-inbox .notification-ticket-link { padding: 16px 20px; }
.notification-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; color: #748398; font-size: 12px; }
.notifications-menu :is(summary, button, a):focus-visible, .notification-inbox :is(button, a):focus-visible { outline: 2px solid #218c75; outline-offset: 2px; }
:is(.notifications-menu, .notification-inbox) button:disabled { opacity: .5; cursor: default; }
@media (max-width: 650px) { .notification-panel { position: fixed; top: 110px; left: 16px; right: 16px; width: auto; max-width: none; max-height: calc(100dvh - 126px); }.notification-panel .notification-list { max-height: calc(100dvh - 290px); }.notification-inbox-heading { align-items: flex-start; flex-direction: column; }.notification-inbox-heading h1 { font-size: 24px; } }
.notification-attachments { margin: 24px 0; }
.notification-attachments h2 { font-size: 16px; }
.notification-attachment-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; max-width: 760px; }
.notification-attachment-card { padding: 12px; border: 1px solid #dce4ed; border-radius: 10px; background: #fff; min-width: 0; }
.notification-attachment-card > a { display: block; color: #157a63; font-size: 12px; }
.notification-attachment-card strong { display: block; margin: 8px 0; overflow-wrap: anywhere; }
.notification-attachment-card img { width: 100%; height: 140px; object-fit: contain; border-radius: 6px; background: #f7f9fc; }
.notification-attachment-icon { display: block; font-size: 30px; color: #68788e; }

.notification-rich-preview { padding: 16px; border: 1px solid #dce4ed; border-radius: 8px; background: #f7f9fc; overflow-wrap: anywhere; }
.notification-rich-preview h2 { margin: 0 0 12px; font-size: 14px; }
.notification-rich-preview [role="status"] { color: #68788e; font-size: 12px; }
.settings-form .ticket-text-editor > label.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
