.notification-dialog{width:min(600px,calc(100% - 32px))}
.notification-status{font-weight:600;line-height:1.7;margin:4px 0 12px;overflow-wrap:anywhere}
.notification-help{margin:20px 0;font-size:13px;line-height:1.8}
.notification-help summary{cursor:pointer;font-weight:600;min-height:44px;padding:10px 0}
.notification-help ol{padding-left:22px;margin:8px 0}
.notification-help p{margin-top:10px}
.notification-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.notification-actions .button{min-height:44px;white-space:normal}
.notification-result{font-size:13px;line-height:1.8;margin-top:18px;overflow-wrap:anywhere}
.integration-guide{font-size:13px;line-height:1.8;overflow-wrap:anywhere;margin:20px 0}
.integration-guide h3{font-size:15px;margin:18px 0 8px}
.integration-guide h4{font-size:13px;margin:14px 0 6px}
.integration-guide ol,.integration-guide ul{padding-left:22px;margin:10px 0}
.integration-guide li{padding-left:3px;margin:10px 0}
.integration-guide a{text-decoration:underline;text-underline-offset:3px;color:var(--bronze,#806034)}
.integration-guide dt{font-weight:600;margin:12px 0 3px}
.integration-guide dd{margin:0}
.integration-guide details{margin-top:16px}
.integration-guide summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:600}
.integration-guide code{font-size:12px;white-space:normal;overflow-wrap:anywhere}
.integration-guide-date{font-size:11px;color:var(--muted);margin-top:12px}
.integration-tools{border-top:1px solid var(--line);padding-top:20px;margin-top:22px}
.integration-tools .button{min-height:44px;white-space:normal;margin-top:12px}
.integration-tool-feedback{font-size:13px;line-height:1.8;margin-top:12px}
@media(max-width:650px){
  .page-head{flex-wrap:wrap;row-gap:12px}
  .head-actions{margin-left:auto;max-width:100%;flex-wrap:wrap}
  .head-actions>[data-action="notifications"]{display:inline-flex;min-width:44px;min-height:44px}
  .notification-dialog .notification-actions .button{flex:1 1 100%;font-size:13px}
  .notification-dialog .macro-dialog-head h2{font-size:18px;line-height:1.5;overflow-wrap:anywhere}
}
.notification-tools{display:flex;gap:4px;margin-left:auto}
.notification-dialog .macro-dialog-head{gap:8px;align-items:center;flex-wrap:wrap}
.notification-dialog .macro-dialog-head h2{flex:1 1 220px;margin-right:auto}
.notification-dialog [data-notification-body]{max-height:65vh;overflow-y:auto;overscroll-behavior:contain;padding:2px 4px}
.notification-list-help{font-size:13px;line-height:1.7;color:var(--muted);margin:0 0 16px}
.notification-list{list-style:none;margin:0;padding:0}
.notification-item{display:flex;gap:12px;align-items:flex-start;border-top:1px solid var(--line);padding:18px 0}
.notification-item-icon{color:var(--bronze);padding-top:3px;flex:none}
.notification-item-copy{flex:1;min-width:0;overflow-wrap:anywhere}
.notification-item h3,.notification-title{font-family:inherit;font-size:14px;line-height:1.6;font-weight:600;margin:0;color:var(--ink,#2b302d)}
.notification-title{appearance:none;border:0;background:transparent;text-align:left;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px;min-height:44px}
.notification-item p{font-size:13px;line-height:1.7;margin:4px 0}
.notification-item time{display:block;font-size:12px;color:var(--muted);margin-top:8px}
.notification-item .notification-delivery-note{font-size:12px;color:var(--muted)}
.notification-item>.icon-button{flex:none}
.notification-empty{padding:28px 8px;text-align:center;font-size:13px;line-height:1.8}
.notification-empty>.icon{width:32px;height:32px;color:var(--bronze)}
.notification-empty h3{font-size:16px;margin:12px 0 6px}
.notification-empty p{margin:0 0 20px}
.notification-feed-error{font-size:13px;line-height:1.7;color:var(--red,#9b3f32)}
.notification-new{background:#f5f1e9}
.conversation.notification-target{box-shadow:inset 4px 0 var(--bronze);background:#f5f1e9}
.detail.notification-target{outline:2px solid var(--bronze);outline-offset:-2px}
.notification-target-label{font-size:12px;font-weight:600;color:var(--bronze);background:#f5f1e9;padding:12px 18px;margin:0}
@media(max-width:650px){.notification-dialog .macro-dialog-head h2{flex-basis:100%}.notification-dialog [data-notification-body]{max-height:60vh}.notification-tools{margin-left:0;margin-right:auto}}
.notification-tools .icon-button[data-tooltip]::after{left:0;right:auto;bottom:auto;top:calc(100% + 7px);max-width:min(220px,calc(100vw - 96px))}
/* Notification dropdown: anchored to the header bell, without a modal backdrop. */
.notification-dialog[open]{display:flex;flex-direction:column;position:fixed;inset:auto;z-index:100;margin:0;padding:18px 20px;width:min(440px,calc(100vw - 24px));max-width:calc(100vw - 24px);overflow:visible;box-shadow:0 10px 32px #10221424;border-radius:12px}
.notification-dialog[open]::before{content:"";position:absolute;top:-6px;left:calc(var(--notification-arrow-left,30px) - 6px);width:10px;height:10px;background:white;border-top:1px solid var(--line);border-left:1px solid var(--line);transform:rotate(45deg);pointer-events:none}
.notification-dialog[open] .macro-dialog-head{flex:none;margin-bottom:10px}
.notification-dialog[open] .macro-dialog-head h2{flex:1 1 140px;font-size:18px}
.notification-dialog[open] [data-notification-body]{min-height:0;max-height:none;overflow-y:auto;flex:1;padding:2px 4px}
.notification-dialog[open] #dialog-error{flex:none;overflow-wrap:anywhere}
.notification-dialog[open] #dialog-error:empty{display:none}
.notification-dialog .notification-item{padding:12px 0}
.notification-dialog .notification-list-help{margin-bottom:10px}
.notification-dialog .notification-item time{margin-top:5px}
.notification-dialog .notification-result:empty{display:none}
@media(max-width:650px){.notification-dialog[open]{padding:14px 16px}.notification-dialog[open] .macro-dialog-head h2{flex-basis:100%}}
