.nx-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--nx-z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nx-overlay-bg, rgba(0, 0, 0, 0.5));
  backdrop-filter: blur(4px);
  transition: opacity 0.2s ease;
}
.nx-modal-overlay.is-leaving {
  opacity: 0;
}
.nx-modal {
  position: relative;
  background: var(--nx-bg-elevated);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-xl);
  padding: var(--nx-space-8);
  max-width: 520px;
  width: calc(100% - 2rem);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  box-shadow: var(--nx-shadow-lg);
}
.nx-modal-title {
  font-size: var(--nx-text-xl);
  font-weight: 600;
  color: var(--nx-text-heading);
  margin-bottom: var(--nx-space-4);
  padding-right: 40px;
}
.nx-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--nx-text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.nx-modal-close:hover { background: var(--nx-bg-hover, rgba(15, 23, 42, 0.06)); color: var(--nx-text-heading); }
.nx-modal-close svg { width: 18px; height: 18px; }

.nux-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--nx-space-3);
  margin-top: var(--nx-space-6);
  padding-top: var(--nx-space-4);
  border-top: 1px solid var(--nx-border);
}

.nux-modal-enter-active { transition: opacity 0.2s ease; }
.nux-modal-leave-active { transition: opacity 0.15s ease; }
.nux-modal-enter-from,
.nux-modal-leave-to { opacity: 0; }

.nux-toast-container {
  position: fixed;
  top: calc(var(--nx-space-6) + var(--nx-safe-top, 0px));
  right: var(--nx-space-6);
  z-index: var(--nx-z-toast-host);
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-2);
  pointer-events: none;
}

/* showToast({center:true}) 居中显示模式：屏幕正中，适合与视口操作强关联的成败反馈 */
.nux-toast-container--center {
  top: 50%;
  right: auto;
  left: 50%;
  transform: translate(-50%, -50%);
  align-items: center;
}

.nux-toast-item {
  display: flex;
  align-items: center;
  gap: var(--nx-space-3);
  padding: var(--nx-space-3) var(--nx-space-5);
  border-radius: var(--nx-radius-md);
  font-size: var(--nx-text-sm);
  color: var(--nx-text-on-accent, #fff);
  box-shadow: var(--nx-shadow-md);
  pointer-events: auto;
  max-width: 360px;
  cursor: pointer;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity var(--nx-transition-base) var(--nx-ease-out),
              transform var(--nx-transition-base) var(--nx-ease-out);
}
.nux-toast-item.is-in { opacity: 1; transform: none; }
.nux-toast-success { background: var(--nx-success); }
.nux-toast-warning { background: var(--nx-warning); }
.nux-toast-error { background: var(--nx-danger); }
.nux-toast-info { background: var(--nx-info); }

.nux-toast-icon { font-size: var(--nx-text-lg); line-height: 1; flex-shrink: 0; }
.nux-toast-msg { flex: 1; word-break: break-word; }

.nux-confirm-overlay { opacity: 0; }
.nux-confirm-overlay.is-in { opacity: 1; }
.nux-confirm-msg { color: var(--nx-text-secondary); margin: var(--nx-space-4) 0; white-space: pre-line; }

.nux-prompt-modal { max-width: 440px; }
.nux-prompt-msg { color: var(--nx-text-secondary); margin: var(--nx-space-4) 0 var(--nx-space-3); white-space: pre-line; }
.nux-prompt-input { resize: vertical; min-height: 0; font-family: inherit; }
.nux-prompt-input.is-invalid { border-color: var(--nx-danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nx-danger) 15%, transparent); }
.nux-prompt-error { margin: var(--nx-space-2) 0 0; font-size: var(--nx-text-xs); color: var(--nx-danger); }

.nux-error-state { color: var(--nx-danger); }
.nux-error-state.nx-empty-state i { font-size: 48px; color: var(--nx-danger); }
.nux-error-state .nux-error-code {
  margin-top: var(--nx-space-2);
  font-size: var(--nx-text-xs);
  color: var(--nx-text-muted);
  opacity: 0.7;
  word-break: break-all;
}

.nx-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--nx-border);
  border-top-color: var(--app-accent);
  border-radius: 50%;
  animation: nx-spin 0.6s linear infinite;
}
@keyframes nx-spin { to { transform: rotate(360deg); } }

.nux-skeleton {
  display: flex;
  gap: var(--nx-space-3);
  padding: var(--nx-space-4);
}
.nux-skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--nx-bg-muted) 25%, var(--nx-bg-hover) 50%, var(--nx-bg-muted) 75%);
  background-size: 200% 100%;
  animation: nx-skeleton-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
.nux-skeleton-content { flex: 1; display: flex; flex-direction: column; gap: var(--nx-space-2); }
.nux-skeleton-row {
  height: 14px;
  border-radius: var(--nx-radius-sm);
  background: linear-gradient(90deg, var(--nx-bg-muted) 25%, var(--nx-bg-hover) 50%, var(--nx-bg-muted) 75%);
  background-size: 200% 100%;
  animation: nx-skeleton-pulse 1.5s ease-in-out infinite;
}
@keyframes nx-skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== 会话/建议加载骨架屏（工作区规范统一语义类） ===== */
.session-skeleton {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-2, 0.5rem);
  padding: var(--nx-space-2, 0.5rem);
}
.session-skeleton::before,
.session-skeleton::after {
  content: "";
  display: block;
  height: 14px;
  border-radius: var(--nx-radius-sm, 6px);
  background: linear-gradient(90deg, var(--nx-bg-muted) 25%, var(--nx-bg-hover) 50%, var(--nx-bg-muted) 75%);
  background-size: 200% 100%;
  animation: nx-skeleton-pulse 1.5s ease-in-out infinite;
}
.session-skeleton::after {
  width: 70%;
}

/* ===== 卡片网格骨架屏（作品/海报/列表加载） ===== */
.nux-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--nx-space-4, 1rem);
}
.nux-skeleton-card {
  border: 1px solid var(--nx-border, rgba(0, 0, 0, 0.08));
  border-radius: var(--nx-radius-lg, 16px);
  background: var(--nx-bg-surface, #fff);
  overflow: hidden;
}
.nux-skeleton-card-cover {
  height: 96px;
  background: linear-gradient(90deg, var(--nx-bg-muted, #f1f5f9) 25%, var(--nx-bg-hover, #e2e8f0) 50%, var(--nx-bg-muted, #f1f5f9) 75%);
  background-size: 200% 100%;
  animation: nx-skeleton-pulse 1.5s ease-in-out infinite;
}
.nux-skeleton-card-body {
  padding: var(--nx-space-3, 0.75rem) var(--nx-space-4, 1rem);
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-2, 0.5rem);
}
.nux-skeleton-card-line {
  height: 13px;
  border-radius: var(--nx-radius-sm, 6px);
  background: linear-gradient(90deg, var(--nx-bg-muted, #f1f5f9) 25%, var(--nx-bg-hover, #e2e8f0) 50%, var(--nx-bg-muted, #f1f5f9) 75%);
  background-size: 200% 100%;
  animation: nx-skeleton-pulse 1.5s ease-in-out infinite;
}

.nux-drawer-overlay-enter-active { transition: opacity 0.3s ease; }
.nux-drawer-overlay-leave-active { transition: opacity 0.2s ease; }
.nux-drawer-overlay-enter-from,
.nux-drawer-overlay-leave-to { opacity: 0; }

.nux-drawer-left-enter-active,
.nux-drawer-left-leave-active { transition: transform 0.3s ease; }
.nux-drawer-left-enter-from,
.nux-drawer-left-leave-to { transform: translateX(-100%); }

.nux-drawer-right-enter-active,
.nux-drawer-right-leave-active { transition: transform 0.3s ease; }
.nux-drawer-right-enter-from,
.nux-drawer-right-leave-to { transform: translateX(100%); }@media (max-width: 768px){
  .nux-toast-container {
    left: var(--nx-space-4);
    right: var(--nx-space-4);
    top: calc(var(--nx-space-4) + var(--nx-safe-top));
  }
  .nux-toast-item { max-width: none; }
}

/* 通知管理面板（完整页面版） */
.nux-notif-panel-page { max-width: 720px; margin: 0 auto; padding: var(--nx-space-6); }
.nux-notif-panel-header {
  display: flex; align-items: center;
  margin-bottom: var(--nx-space-4); padding-bottom: var(--nx-space-4);
  border-bottom: 1px solid var(--nx-border);
}
.nux-notif-panel-title { font-size: var(--nx-text-xl); font-weight: 700; color: var(--nx-text-heading); margin: 0; }
.nux-notif-unread-pill {
  margin-left: var(--nx-space-3);
  font-size: var(--nx-text-xs); line-height: 1;
  padding: 4px 10px; border-radius: 999px;
  background: var(--nx-bg-muted); color: var(--nx-text-secondary);
}
.nux-notif-unread-pill.has-unread {
  background: rgba(var(--app-accent-rgb), 0.1); color: var(--nx-text-accent); font-weight: 600;
}
.nux-notif-panel-mark-all {
  margin-left: auto; border: 1px solid var(--nx-border); background: var(--nx-bg-surface);
  color: var(--nx-text-accent); font-size: var(--nx-text-sm); cursor: pointer;
  padding: var(--nx-space-2) var(--nx-space-4); min-height: 36px;
  border-radius: var(--nx-radius-sm); transition: background var(--nx-transition-fast), border-color var(--nx-transition-fast);
}
.nux-notif-panel-mark-all:hover { background: var(--nx-bg-hover); border-color: rgba(var(--app-accent-rgb), 0.4); }
.nux-notif-push-slot { margin-left: auto; }
.nux-notif-panel-header .nux-notif-panel-mark-all { margin-left: var(--nx-space-3); }
.nux-notif-panel-header .nux-notif-unread-pill { margin-left: 0; }
.nux-notif-push-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(var(--app-accent-rgb), 0.35); background: var(--nx-bg-surface);
  color: var(--nx-text-accent); font-size: var(--nx-text-xs); font-weight: 600;
  padding: 5px 12px; min-height: 28px; border-radius: 999px; cursor: pointer;
  transition: background var(--nx-transition-fast), border-color var(--nx-transition-fast);
}
.nux-notif-push-pill:hover { background: rgba(var(--app-accent-rgb), 0.08); border-color: rgba(var(--app-accent-rgb), 0.6); }
.nux-notif-push-pill.is-on { background: rgba(var(--app-accent-rgb), 0.12); border-color: transparent; }
.nux-notif-push-pill.is-unsupported { border-color: var(--nx-border); color: var(--nx-text-tertiary, var(--nx-text-secondary)); cursor: default; }
.nux-notif-push-banner-slot:not(:empty) { margin-bottom: var(--nx-space-3); }
.nux-notif-push-banner {
  display: flex; align-items: center; gap: var(--nx-space-3);
  padding: var(--nx-space-3) var(--nx-space-4);
  border: 1px solid rgba(var(--app-accent-rgb), 0.3); border-radius: var(--nx-radius-sm);
  background: rgba(var(--app-accent-rgb), 0.06); font-size: var(--nx-text-sm); color: var(--nx-text-secondary);
}
.nux-notif-push-banner > i { color: var(--nx-text-accent); }
.nux-notif-push-banner-text { flex: 1; min-width: 0; }
.nux-notif-push-banner-cta {
  flex-shrink: 0; border: none; border-radius: var(--nx-radius-sm);
  background: var(--app-accent, var(--nx-text-accent)); color: #fff;
  font-size: var(--nx-text-sm); font-weight: 600; cursor: pointer;
  padding: var(--nx-space-2) var(--nx-space-4); min-height: 32px;
}
.nux-notif-push-banner-close {
  flex-shrink: 0; border: none; background: none; color: var(--nx-text-tertiary, var(--nx-text-secondary));
  cursor: pointer; padding: var(--nx-space-2); min-height: 28px; min-width: 28px;
}
.nux-notif-panel-mark-all:focus-visible { outline: 2px solid rgba(var(--app-accent-rgb), 0.7); outline-offset: 2px; }
.nux-notif-panel-boxes {
  display: flex; gap: 2px; margin-bottom: var(--nx-space-4);
  border-bottom: 1px solid var(--nx-border);
}
.nux-notif-box-btn {
  position: relative; border: none; background: transparent; color: var(--nx-text-secondary);
  font-size: var(--nx-text-sm); line-height: 1; padding: 10px 14px 12px;
  border-radius: 6px 6px 0 0; cursor: pointer;
  transition: color var(--nx-transition-fast);
}
.nux-notif-box-btn:hover { color: var(--nx-text-strong); }
.nux-notif-box-btn.active { color: var(--nx-text-strong); font-weight: 600; }
.nux-notif-box-btn.active::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px;
  background: rgb(var(--app-accent-rgb)); border-radius: 999px;
}
.nux-notif-box-btn:focus-visible { outline: 2px solid rgba(var(--app-accent-rgb), 0.7); outline-offset: -2px; }
.nux-notif-panel-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  margin-bottom: var(--nx-space-4);
}
.nux-notif-inboxseg {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.nux-notif-inboxbox-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--nx-border); background: var(--nx-bg-surface);
  color: var(--nx-text-secondary); font-size: var(--nx-text-sm); line-height: 1;
  padding: 8px 14px; min-height: 36px; border-radius: 999px; cursor: pointer;
  transition: background var(--nx-transition-fast), color var(--nx-transition-fast), border-color var(--nx-transition-fast);
}
.nux-notif-inboxbox-btn:hover { border-color: rgba(var(--app-accent-rgb), 0.45); color: var(--nx-text-strong); }
.nux-notif-inboxbox-btn.active {
  background: rgba(var(--app-accent-rgb), 0.1);
  border-color: rgba(var(--app-accent-rgb), 0.45);
  color: var(--nx-text-accent); font-weight: 600;
}
.nux-notif-inboxbox-btn:focus-visible { outline: 2px solid rgba(var(--app-accent-rgb), 0.7); outline-offset: 1px; }
.nux-notif-inboxbox-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: rgb(var(--app-accent-rgb));
  color: var(--nx-text-on-accent); font-size: 11px; font-weight: 600; line-height: 1;
}
.nux-notif-seg {
  display: inline-flex; gap: 2px; padding: 2px;
  border-radius: 8px; background: var(--nx-bg-muted);
}
.nux-notif-seg-btn {
  border: none; background: transparent; color: var(--nx-text-secondary);
  font-size: var(--nx-text-sm); line-height: 1; padding: 8px 16px;
  border-radius: 6px; cursor: pointer;
  transition: background var(--nx-transition-fast), color var(--nx-transition-fast);
}
.nux-notif-seg-btn.active {
  background: var(--nx-bg-surface); color: var(--nx-text-strong); font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
.nux-notif-seg-btn:focus-visible { outline: 2px solid rgba(var(--app-accent-rgb), 0.7); outline-offset: 1px; }
.nux-notif-chips {
  display: flex; gap: 8px; align-items: center;
  overflow-x: auto; max-width: 100%; padding: 2px;
  margin-bottom: var(--nx-space-4);
  scrollbar-width: none;
}
.nux-notif-chips::-webkit-scrollbar { display: none; }
.nux-notif-chips.is-scrollable {
  mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
}
.nux-notif-chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--nx-border); background: var(--nx-bg-surface);
  color: var(--nx-text-secondary); font-size: var(--nx-text-xs); line-height: 1;
  padding: 8px 12px; border-radius: 999px; cursor: pointer;
  transition: background var(--nx-transition-fast), color var(--nx-transition-fast), border-color var(--nx-transition-fast);
}
.nux-notif-chip span { color: var(--nx-text-muted); font-weight: 600; }
.nux-notif-chip:hover { border-color: rgba(var(--app-accent-rgb), 0.45); color: var(--nx-text-strong); }
.nux-notif-chip.active {
  background: rgba(var(--app-accent-rgb), 0.1);
  border-color: rgba(var(--app-accent-rgb), 0.45);
  color: var(--nx-text-accent); font-weight: 600;
}
.nux-notif-chip.active span { color: var(--nx-text-accent); }
.nux-notif-chip:focus-visible { outline: 2px solid rgba(var(--app-accent-rgb), 0.7); outline-offset: 1px; }
@media (hover: none) and (pointer: coarse) {
  .nux-notif-box-btn { padding: 14px 14px 16px; }
  .nux-notif-chip { min-height: 44px; }
  .nux-notif-inboxbox-btn { min-height: 44px; padding: 10px 16px; }
}
@media (max-width: 768px) {
  .nux-notif-inboxbox-btn { min-height: 40px; }
}
.nux-notif-panel-item.is-archived .nux-notif-panel-item-icon { opacity: 0.55; }
.nux-notif-panel-item.is-archived .nux-notif-panel-item-title { font-weight: 400; color: var(--nx-text-secondary); }
.nux-notif-empty-title { font-size: var(--nx-text-sm); color: var(--nx-text-secondary); }
.nux-notif-empty-sub { font-size: var(--nx-text-xs); color: var(--nx-text-muted); }
.nux-notif-panel-list { min-height: 200px; }
.nux-notif-panel-loading, .nux-notif-panel-error, .nux-notif-panel-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--nx-space-12); color: var(--nx-text-muted); gap: var(--nx-space-3);
}
.nux-notif-panel-loading i, .nux-notif-panel-error i, .nux-notif-panel-empty i { font-size: 2.5rem; opacity: 0.4; }
.nux-notif-panel-item {
  display: flex; gap: var(--nx-space-3); padding: var(--nx-space-4); cursor: pointer;
  transition: background var(--nx-transition-fast); position: relative;
  border-radius: var(--nx-radius-md); margin-bottom: var(--nx-space-2);
}
.nux-notif-panel-item:hover { background: var(--nx-bg-hover); }
.nux-notif-panel-item:focus-visible { outline: 2px solid rgba(var(--app-accent-rgb), 0.7); outline-offset: -2px; }
.nux-notif-panel-item.is-unread { background: rgba(var(--app-accent-rgb), 0.06); }
.nux-notif-panel-item:hover.is-unread { background: rgba(var(--app-accent-rgb), 0.10); }
[data-theme="dark"] .nux-notif-panel-item.is-unread { background: rgba(var(--app-accent-rgb), 0.12); }
[data-theme="dark"] .nux-notif-panel-item:hover.is-unread { background: rgba(var(--app-accent-rgb), 0.18); }
.nux-notif-panel-item-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--nx-radius-md);
  background: var(--nx-bg-muted); display: flex; align-items: center; justify-content: center;
  color: var(--nx-text-secondary); font-size: var(--nx-text-base);
}
.nux-notif-panel-item.tone-info .nux-notif-panel-item-icon { background: rgba(var(--nx-info-rgb), 0.13); color: rgb(var(--nx-info-rgb)); }
.nux-notif-panel-item.tone-success .nux-notif-panel-item-icon { background: rgba(var(--nx-success-rgb), 0.13); color: rgb(var(--nx-success-rgb)); }
.nux-notif-panel-item.tone-warning .nux-notif-panel-item-icon { background: rgba(var(--nx-warning-rgb), 0.15); color: rgb(var(--nx-warning-rgb)); }
.nux-notif-panel-item.tone-danger .nux-notif-panel-item-icon { background: rgba(var(--nx-danger-rgb), 0.12); color: rgb(var(--nx-danger-rgb)); }
.nux-notif-panel-item.tone-accent .nux-notif-panel-item-icon { background: rgba(var(--app-accent-rgb), 0.11); color: rgb(var(--app-accent-rgb)); }
.nux-notif-panel-item.tone-neutral .nux-notif-panel-item-icon { background: var(--nx-bg-muted); color: var(--nx-text-secondary); }
.nux-notif-panel-item-body { flex: 1; min-width: 0; }
.nux-notif-panel-item-title {
  font-size: var(--nx-text-sm); font-weight: 600; color: var(--nx-text-heading);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nux-notif-panel-item-content {
  font-size: var(--nx-text-xs); color: var(--nx-text-secondary); margin-top: 2px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nux-notif-panel-item-time { font-size: var(--nx-text-xs); color: var(--nx-text-muted); margin-top: 4px; }
.nux-notif-panel-item-actions { flex-shrink: 0; display: flex; align-items: center; }
.nux-notif-panel-item-delete {
  border: none; background: transparent; color: var(--nx-text-muted); cursor: pointer;
  width: 36px; height: 36px; border-radius: var(--nx-radius-sm);
  font-size: var(--nx-text-sm); opacity: 0;
  transition: opacity var(--nx-transition-fast), color var(--nx-transition-fast), background var(--nx-transition-fast);
}
@media (hover: none) and (pointer: coarse) {
  .nux-notif-panel-item-delete { width: 44px; height: 44px; }
}
.nux-notif-panel-item:hover .nux-notif-panel-item-delete { opacity: 1; }
.nux-notif-panel-item-delete:hover { color: var(--nx-danger); background: rgba(var(--nx-danger-rgb), 0.1); }
.nux-notif-panel-item-delete:focus-visible { opacity: 1; outline: 2px solid rgba(var(--app-accent-rgb), 0.7); outline-offset: 1px; }
.nux-notif-panel-item-delete.is-confirm {
  opacity: 1; width: auto; min-width: 64px; padding: 0 var(--nx-space-3);
  background: var(--nx-danger); color: var(--nx-text-on-accent); font-weight: 600;
}
.nux-notif-panel-dot {
  position: absolute; top: var(--nx-space-4); right: var(--nx-space-4);
  width: 8px; height: 8px; border-radius: var(--nx-radius-full); background: var(--nx-danger);
}
.nux-notif-panel-footer { margin-top: var(--nx-space-6); text-align: center; }
.nux-notif-panel-pages { display: inline-flex; align-items: center; gap: var(--nx-space-3); }
.nux-notif-panel-page-btn {
  border: 1px solid var(--nx-border); background: var(--nx-bg-elevated); cursor: pointer;
  width: 36px; height: 36px; border-radius: var(--nx-radius-md);
  color: var(--nx-text-secondary); font-size: var(--nx-text-sm); transition: all var(--nx-transition-fast);
}
.nux-notif-panel-page-btn:hover:not(:disabled) { border-color: var(--nx-text-accent); color: var(--nx-text-accent); }
.nux-notif-panel-page-btn:disabled { opacity: 0.4; cursor: default; }
.nux-notif-panel-page-btn:focus-visible { outline: 2px solid rgba(var(--app-accent-rgb), 0.7); outline-offset: 2px; }
@media (hover: none) and (pointer: coarse) {
  .nux-notif-panel-page-btn { width: 44px; height: 44px; }
}
.nux-notif-panel-page-info { font-size: var(--nx-text-sm); color: var(--nx-text-muted); }@media (max-width: 768px){
  .nux-notif-panel-page { padding: var(--nx-space-4); }
  .nux-notif-panel-title { font-size: var(--nx-text-lg); }
  .nux-notif-panel-item { padding: var(--nx-space-3); }
  .nux-notif-panel-item-delete { opacity: 1; }
}

.nx-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--nx-space-12) var(--nx-space-6);
  text-align: center;
}
.nx-empty-state i {
  font-size: 40px;
  margin-bottom: var(--nx-space-4);
  color: var(--nx-text-muted);
}
.nx-empty-state h3 {
  font-size: var(--nx-text-base);
  color: var(--nx-text-secondary);
  margin-bottom: var(--nx-space-2);
}
.nx-empty-state p {
  font-size: var(--nx-text-sm);
  color: var(--nx-text-muted);
}
.nx-empty-state .nx-empty-hint {
  font-size: var(--nx-text-xs);
  color: var(--nx-text-muted);
  margin-top: var(--nx-space-1);
}
.nx-empty-actions {
  display: flex;
  gap: var(--nx-space-3);
  margin-top: var(--nx-space-4);
  flex-wrap: wrap;
  justify-content: center;
}

.nux-undo-toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nux-undo-bottom, 88px) + var(--nx-safe-bottom));
  z-index: var(--nx-z-topmost);
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px 10px 18px;
  background: var(--nx-undo-bg, #475569);
  border-radius: 999px;
  box-shadow: var(--nx-shadow-lg);
  max-width: calc(100vw - 24px);
}
.nux-undo-toast.raised {
  bottom: calc(var(--nux-undo-bottom, 88px) + 66px + var(--nx-safe-bottom));
}
.nux-undo-text {
  font-size: 13px; color: var(--nx-text-on-accent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nux-undo-btn {
  background: var(--nx-undo-btn-bg, #ffffff); color: var(--nx-undo-bg, #475569);
  border: none; border-radius: 999px;
  padding: 5px 16px; font-size: 13px; font-weight: 700;
  cursor: pointer; flex-shrink: 0;
}
.nux-undo-btn:active { transform: scale(0.95); }

.nux-selection-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nux-undo-bottom, 88px) + var(--nx-safe-bottom));
  z-index: var(--nx-z-topmost);
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px 8px 18px;
  background: var(--nx-bg-surface, #ffffff);
  border: 1.5px solid rgba(var(--app-accent-rgb), 0.35);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(31, 78, 121, 0.28);
  max-width: calc(100vw - 24px);
}
.nux-selection-count {
  font-size: 14px; font-weight: 700;
  color: var(--app-accent, #6366f1); white-space: nowrap;
}
.nux-selection-actions { display: flex; align-items: center; gap: 8px; }
.nux-selection-clear {
  background: none; border: none;
  color: var(--nx-text-secondary, #64748b);
  font-size: 13px; cursor: pointer; padding: 6px 8px;
  white-space: nowrap;
}

.nux-undo-enter-active, .nux-undo-leave-active { transition: opacity 0.2s ease, transform 0.2s ease; }
.nux-undo-enter-from, .nux-undo-leave-to { opacity: 0; transform: translateX(-50%) translateY(12px); }


/* ===== AI 生成标识 ===== */
.nx-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  vertical-align: middle;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1;
  border-radius: var(--nx-radius-sm, 4px);
  white-space: nowrap;
}
.nx-ai-badge-sm { font-size: 0.6875rem; padding: 2px 6px; }
.nx-ai-badge-md { font-size: 0.75rem; padding: 3px 8px; }
.nx-ai-badge[data-tone="accent"] {
  background: var(--nx-accent-soft, rgba(79, 70, 229, 0.1));
  color: var(--nx-accent, rgb(79, 70, 229));
}
.nx-ai-badge[data-tone="slate"] {
  background: var(--nx-border, rgba(100, 116, 139, 0.14));
  color: var(--nx-text-secondary, rgb(100, 116, 139));
}
.nx-ai-badge-icon { flex: 0 0 auto; }
.nx-ai-badge-text { display: inline-block; }

/* ===== 标准应用启动加载 ===== */
.nx-app-loading-done { opacity: 0 !important; transition: opacity 0.3s ease; }

/* ===== AI 流式指示器 ===== */
.nux-ai-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--nx-radius-md, 12px);
  color: var(--nx-text-secondary, rgb(100, 116, 139));
  font-size: 0.875rem;
  background: var(--nx-bg-muted, rgb(241, 245, 249));
}
.nux-ai-indicator-dots {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}
.nux-ai-indicator-dots i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nx-primary, rgb(14, 165, 233));
  animation: nuxAiBounce 1.2s infinite ease-in-out;
}
.nux-ai-indicator-dots i:nth-child(2) { animation-delay: 0.15s; }
.nux-ai-indicator-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes nuxAiBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.nux-ai-indicator-text { white-space: nowrap; }@keyframes nuxExportSpin { to { transform: rotate(360deg); } }/* ===== 骨架屏 preset（list / cards / gallery / report） ===== */
.nux-skeleton-report {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-3);
}
.nux-skeleton-report-title {
  height: 22px;
  width: 46%;
  border-radius: var(--nx-radius-sm);
  background: linear-gradient(90deg, var(--nx-bg-muted) 25%, var(--nx-bg-hover) 50%, var(--nx-bg-muted) 75%);
  background-size: 200% 100%;
  animation: nx-skeleton-pulse 1.5s ease-in-out infinite;
}
.nux-skeleton-report-sub {
  height: 12px;
  width: 28%;
  border-radius: var(--nx-radius-sm);
  background: linear-gradient(90deg, var(--nx-bg-muted) 25%, var(--nx-bg-hover) 50%, var(--nx-bg-muted) 75%);
  background-size: 200% 100%;
  animation: nx-skeleton-pulse 1.5s ease-in-out infinite;
}
.nux-skeleton-report-block {
  height: 140px;
  border-radius: var(--nx-radius-lg);
  background: linear-gradient(90deg, var(--nx-bg-muted) 25%, var(--nx-bg-hover) 50%, var(--nx-bg-muted) 75%);
  background-size: 200% 100%;
  animation: nx-skeleton-pulse 1.5s ease-in-out infinite;
}
.nux-skeleton-grid-gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.nux-skeleton-cover-tall { height: 150px; }

/* ===== AI 长任务过程态 ===== */
.nux-ai-task {
  display: flex;
  flex-direction: column;
  gap: var(--nx-space-3);
  padding: var(--nx-space-5);
  border-radius: var(--nx-radius-lg);
  background: var(--nx-bg-surface);
  border: 1px solid var(--nx-border);
  box-shadow: var(--nx-shadow-sm);
}
.nux-ai-task.is-compact {
  gap: var(--nx-space-2);
  padding: var(--nx-space-3) var(--nx-space-4);
  box-shadow: none;
}
.nux-ai-task-head { display: flex; align-items: center; gap: var(--nx-space-3); min-width: 0; }
.nux-ai-task-spinner {
  flex: none;
  width: 15px;
  height: 15px;
  border: 2px solid var(--nx-border);
  border-top-color: var(--nx-primary);
  border-radius: 50%;
  animation: nx-spin 0.7s linear infinite;
}
.nux-ai-task-title {
  flex: 1;
  min-width: 0;
  font-size: var(--nx-text-base);
  font-weight: 600;
  color: var(--nx-text-heading);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nux-ai-task-pct {
  flex: none;
  font-size: var(--nx-text-sm);
  font-weight: 600;
  color: var(--nx-text-secondary);
  font-variant-numeric: tabular-nums;
}
.nux-ai-task-stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-space-2) var(--nx-space-4);
}
.nux-ai-task-stage {
  display: inline-flex;
  align-items: center;
  gap: var(--nx-space-2);
  min-width: 0;
  font-size: var(--nx-text-sm);
  color: var(--nx-text-muted);
}
.nux-ai-task-dot {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--nx-border-hover);
  background: var(--nx-bg-muted);
  box-sizing: border-box;
}
.nux-ai-task-stage.is-active .nux-ai-task-dot {
  border-color: var(--nx-primary);
  background: var(--nx-primary);
  animation: nux-ai-task-pulse 1.4s ease-in-out infinite;
}
.nux-ai-task-stage.is-active .nux-ai-task-stage-label {
  color: var(--nx-text-heading);
  font-weight: 500;
}
.nux-ai-task-stage.is-done .nux-ai-task-dot {
  border-color: var(--nx-success);
  background: var(--nx-success);
}
.nux-ai-task-stage.is-done .nux-ai-task-dot::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.5px;
  width: 4px;
  height: 7.5px;
  border-right: 1.6px solid var(--nx-text-on-accent, #fff);
  border-bottom: 1.6px solid var(--nx-text-on-accent, #fff);
  transform: rotate(42deg);
}
@keyframes nux-ai-task-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.84); }
}
.nux-ai-task-bar {
  height: 6px;
  border-radius: var(--nx-radius-full);
  background: var(--nx-bg-muted);
  overflow: hidden;
}
.nux-ai-task-bar-val {
  height: 100%;
  border-radius: inherit;
  background: var(--nx-primary);
  transition: width var(--nx-transition-slow);
}
.nux-ai-task-msg { margin: 0; font-size: var(--nx-text-sm); color: var(--nx-text-secondary); line-height: 1.5; }
.nux-ai-task-findings { margin: var(--nx-space-2) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.nux-ai-task-finding { display: flex; align-items: baseline; gap: 6px; font-size: var(--nx-text-sm); color: var(--nx-text-secondary); line-height: 1.5; }
.nux-ai-task-finding.is-done { color: var(--nx-text-primary); }
.nux-ai-task-finding-mark { flex: none; color: var(--nx-success, #10b981); font-size: 12px; }
.nux-ai-task-finding.is-done .nux-ai-task-finding-mark { color: var(--nx-success, #10b981); }
.nux-ai-task-finding-text { min-width: 0; }

.nux-ai-task-foot { display: flex; align-items: center; gap: var(--nx-space-2); }@media (prefers-reduced-motion: reduce){
  .nux-ai-task-spinner { animation: none; }
  .nux-ai-task-stage.is-active .nux-ai-task-dot { animation: none; }
  .nux-ai-task-bar-val { transition: none; }
}

/* ===== AI 生成内容显式标识条 ===== */
.nux-ai-notice {
  display: flex;
  align-items: center;
  gap: var(--nx-space-3);
  flex-wrap: wrap;
  padding: var(--nx-space-2) var(--nx-space-3);
  border-radius: var(--nx-radius-md);
  background: var(--nx-bg-muted);
  border: 1px solid var(--nx-border);
  font-size: var(--nx-text-xs);
  color: var(--nx-text-secondary);
}
.nux-ai-notice[data-tone="accent"] {
  background: rgba(var(--app-accent-rgb), 0.07);
  border-color: var(--nx-border-accent);
}
.nux-ai-notice.is-sm { padding: var(--nx-space-1) var(--nx-space-2); }
.nux-ai-notice.is-lg { padding: var(--nx-space-3) var(--nx-space-4); font-size: var(--nx-text-sm); }
.nux-ai-notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: 3px 8px;
  border-radius: var(--nx-radius-sm);
  background: rgba(var(--app-accent-rgb), 0.12);
  color: var(--nx-text-accent);
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.nux-ai-notice[data-tone="slate"] { background: var(--nx-bg-muted); border-color: var(--nx-border); }
.nux-ai-notice[data-tone="slate"] .nux-ai-notice-badge {
  background: var(--nx-border);
  color: var(--nx-text-secondary);
}
.nux-ai-notice-glyph { flex: none; }
.nux-ai-notice-note { flex: 1; min-width: 0; line-height: 1.5; }
.nux-ai-notice-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--nx-space-2);
  margin-left: auto;
  flex: none;
}


/* 通知面板：时间分组 / 来源徽标 / 岗位迷你卡 / 应用静音区 */
.nux-notif-group-label {
  font-size: var(--nx-text-xs); font-weight: 600; color: var(--nx-text-muted);
  margin: var(--nx-space-4) var(--nx-space-2) var(--nx-space-2);
}
.nux-notif-panel-item-meta {
  display: flex; align-items: center; gap: var(--nx-space-2); margin-top: 4px;
}
.nux-notif-app-tag {
  font-size: 11px; line-height: 1; padding: 3px 7px; border-radius: var(--nx-radius-full);
  background: var(--nx-bg-muted); color: var(--nx-text-secondary); white-space: nowrap;
}
.nux-notif-panel-item-time { margin-top: 0; }
.nux-notif-jobs { margin-top: var(--nx-space-2); display: flex; flex-direction: column; gap: 4px; }
.nux-notif-job {
  display: flex; align-items: center; justify-content: space-between; gap: var(--nx-space-2);
  width: 100%; text-align: left; border: none; cursor: pointer;
  background: var(--nx-bg-muted); color: var(--nx-text-secondary);
  font-size: var(--nx-text-xs); padding: 6px 10px; border-radius: var(--nx-radius-sm);
  transition: background var(--nx-transition-fast), color var(--nx-transition-fast);
}
.nux-notif-job:hover { background: var(--nx-bg-hover); color: var(--nx-text-heading); }
.nux-notif-job-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nux-notif-job i, .nux-notif-more i { font-size: 10px; color: var(--nx-text-muted); flex-shrink: 0; }
.nux-notif-more {
  display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
  border: none; background: transparent; cursor: pointer;
  color: var(--nx-text-accent); font-size: var(--nx-text-xs); padding: 4px 2px;
}
.nux-notif-more:hover { text-decoration: underline; }
.nux-notif-more i { color: var(--nx-text-accent); }
.nux-notif-mute { border-top: 1px solid var(--nx-border); margin-top: var(--nx-space-4); }
.nux-notif-mute-head {
  display: flex; align-items: center; gap: var(--nx-space-2); width: 100%;
  border: none; background: transparent; cursor: pointer;
  color: var(--nx-text-muted); font-size: var(--nx-text-sm); font-weight: 600;
  padding: var(--nx-space-3) var(--nx-space-2);
}
.nux-notif-mute-head:hover { color: var(--nx-text-secondary); }
.nux-notif-mute-head i:last-child { margin-left: auto; font-size: 11px; }
.nux-notif-mute-list { display: flex; flex-direction: column; gap: 2px; padding-bottom: var(--nx-space-2); }
.nux-notif-mute-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--nx-text-sm); color: var(--nx-text-secondary); padding: 2px var(--nx-space-2);
}
.nux-notif-mute-toggle {
  border: 1px solid var(--nx-border); background: var(--nx-bg-surface); cursor: pointer;
  color: var(--nx-text-accent); font-size: var(--nx-text-xs);
  padding: 5px 12px; border-radius: var(--nx-radius-full); min-height: 28px;
  transition: all var(--nx-transition-fast);
}
.nux-notif-mute-toggle.is-muted {
  color: var(--nx-text-muted); background: var(--nx-bg-muted); border-color: transparent;
}
.nux-notif-mute-hint {
  font-size: 11px; color: var(--nx-text-muted); margin: var(--nx-space-2) var(--nx-space-2) 0;
}
@media (max-width: 768px){
  .nux-notif-job { padding: 10px 12px; }
  .nux-notif-mute-toggle { padding: 8px 16px; }
}
