/* 全局通知中心：轻量、可读、与现有浅色顶栏一致。 */
.notify-center { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; z-index: 70; }
.notify-trigger {
    position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 9px;
    border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--vui-text-2, var(--vui-text-2));
    font-size: 12px; font-weight: 750; cursor: pointer; transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.notify-trigger:hover, .notify-trigger[aria-expanded="true"] { border-color: #d8e4f5; background: #f4f8ff; color: #1554b7; }
.notify-bell { display: inline-grid; place-items: center; width: 17px; height: 17px; font-size: 19px; line-height: 1; transform: rotate(45deg); }
.notify-trigger-label { white-space: nowrap; }
.notify-badge { min-width: 17px; height: 17px; display: inline-grid; place-items: center; padding: 0 4px; border-radius: 999px; background: #d0443c; color: var(--vui-surface); font-size: 10px; line-height: 1; font-variant-numeric: tabular-nums; }
.notify-panel {
    position: absolute; top: calc(100% + 8px); right: 0; width: min(380px, calc(100vw - 24px));
    overflow: hidden; border: 1px solid #dce3ed; border-radius: 10px; background: var(--vui-surface); color: #172033;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .16); animation: notify-panel-in .16s ease-out;
}
.notify-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px 10px; border-bottom: 1px solid var(--vui-border-muted); }
.notify-panel-head strong { display: block; font-size: 14px; line-height: 1.3; }
.notify-panel-head span { display: block; margin-top: 3px; color: #8a95a3; font-size: 11px; }
.notify-text-button, .notify-tool-button { border: 0; background: transparent; color: #1554b7; font-size: 11px; font-weight: 750; cursor: pointer; }
.notify-text-button:hover, .notify-tool-button:hover { color: #0f3d8a; text-decoration: underline; }
.notify-panel-tools { display: flex; align-items: center; gap: 12px; padding: 8px 15px; border-bottom: 1px solid #f1f3f6; background: var(--vui-surface-muted); }
.notify-tool-button[aria-pressed="true"] { color: #087443; }
.notify-list { max-height: 410px; overflow: auto; overscroll-behavior: contain; }
.notify-item { display: grid; gap: 5px; padding: 12px 15px; border-bottom: 1px solid #f0f2f5; background: var(--vui-surface); cursor: pointer; transition: background .14s ease; }
.notify-item:hover { background: #f7faff; }
.notify-item.unread { background: #f5f9ff; box-shadow: inset 3px 0 0 #377dce; }
.notify-item-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; color: #27364a; font-size: 12px; font-weight: 800; line-height: 1.45; }
.notify-item-time { flex: 0 0 auto; color: #9aa4b0; font-size: 10px; font-weight: 500; white-space: nowrap; }
.notify-item-text { display: -webkit-box; overflow: hidden; color: #667085; font-size: 11px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; white-space: pre-line; }
.notify-item-action { color: #1554b7; font-size: 10px; font-weight: 700; }
.notify-empty { display: grid; place-items: center; min-height: 140px; padding: 20px; color: #9aa4b0; font-size: 12px; text-align: center; }
.notify-panel-foot { padding: 9px 15px; border-top: 1px solid var(--vui-border-muted); color: #9aa4b0; font-size: 10px; line-height: 1.45; }
.notify-toast-stack { position: fixed; top: calc(var(--console-topbar-h, 56px) + 14px); right: 18px; z-index: 110; display: grid; gap: 8px; width: min(360px, calc(100vw - 28px)); pointer-events: none; }
.notify-toast { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid #cfe0f7; border-left: 3px solid #377dce; border-radius: 9px; background: var(--vui-surface); box-shadow: 0 10px 24px rgba(15, 23, 42, .14); animation: notify-toast-in .22s ease-out; pointer-events: auto; }
.notify-toast strong { color: #172b4d; font-size: 12px; line-height: 1.4; }
.notify-toast span { display: -webkit-box; overflow: hidden; color: #667085; font-size: 11px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
@keyframes notify-panel-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes notify-toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 680px) {
    .notify-trigger-label { display: none; }
    .notify-panel { position: fixed; top: calc(var(--console-topbar-h, 56px) + 8px); right: 12px; }
    .notify-toast-stack { right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .notify-panel, .notify-toast { animation: none; }
}
