.nx-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  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 {
  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);
  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);
}

.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; }

.nx-toast {
  position: fixed;
  top: var(--nx-space-6);
  right: var(--nx-space-6);
  z-index: 300;
  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);
  animation: nx-slide-in 0.3s ease;
}
.nx-toast-success { background: var(--nx-success); }
.nx-toast-error   { background: var(--nx-danger); }
.nx-toast-info    { background: var(--nx-info); }

@keyframes nx-slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

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

.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;
}

.nux-toast-success { background: var(--nx-success); }
.nux-toast-error { background: var(--nx-danger); }
.nux-toast-warning { background: var(--nx-warning); color: #3d3421; }
.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-toast-enter-active { transition: all 0.3s ease; }
.nux-toast-leave-active { transition: all 0.2s ease; }
.nux-toast-enter-from { transform: translateX(100%); opacity: 0; }
.nux-toast-leave-to { transform: translateX(100%); opacity: 0; }

.nx-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--nx-space-12) var(--nx-space-6);
  color: var(--nx-text-muted);
}
.nx-empty-icon { font-size: 3rem; margin-bottom: var(--nx-space-4); opacity: 0.5; }
.nx-empty-text { font-size: var(--nx-text-sm); }

.nux-error-state { color: var(--nx-danger); }
.nux-error-state .nx-empty-icon { font-size: 48px; }
.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,
.suggest-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,
.suggest-skeleton::before,
.suggest-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,
.suggest-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: var(--nx-space-4);
  }
  .nux-toast-item { max-width: none; }
}

.nux-notif-bell { position: relative; display: inline-block; }

.nux-notif-btn {
  position: relative; width: 40px; height: 40px; border: none; background: transparent;
  border-radius: var(--nx-radius-md); cursor: pointer; color: var(--nx-text-secondary);
  font-size: var(--nx-text-lg); display: flex; align-items: center; justify-content: center;
  transition: background var(--nx-transition-fast), color var(--nx-transition-fast);
}
.nux-notif-btn:hover { background: var(--nx-bg-hover); color: var(--nx-text-heading); }
.nux-notif-btn:active { background: var(--nx-border); }
.nux-notif-btn[aria-expanded="true"] { color: var(--nx-text-accent); }
.nux-notif-btn:focus-visible { outline: 2px solid var(--nx-text-accent); outline-offset: 2px; }
.nux-notif-readall:focus-visible { outline: 2px solid var(--nx-text-accent); outline-offset: 2px; border-radius: var(--nx-radius-sm); }
.nux-notif-item:focus-visible { outline: 2px solid var(--nx-text-accent); outline-offset: -2px; }
.nux-notif-viewall:focus-visible { outline: 2px solid var(--nx-text-accent); outline-offset: 2px; border-radius: var(--nx-radius-sm); }
.nux-notif-badge {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px;
  padding: 0 5px; background: var(--nx-danger); color: #fff;
  font-size: 11px; font-weight: 600; line-height: 18px; border-radius: var(--nx-radius-full);
  box-shadow: 0 0 0 2px var(--nx-bg-surface);
  animation: nx-badge-pop 0.3s ease;
}
@keyframes nx-badge-pop { 0% { transform: scale(0.5); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.nux-notif-panel {
  position: absolute; top: calc(100% + 8px); right: 0; width: 360px;
  background: var(--nx-bg-elevated); border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg); box-shadow: var(--nx-shadow-lg);
  z-index: 250; overflow: hidden; display: flex; flex-direction: column;
}
.nux-notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--nx-space-4); border-bottom: 1px solid var(--nx-border);
}
.nux-notif-title { font-size: var(--nx-text-base); font-weight: 600; color: var(--nx-text-heading); }
.nux-notif-readall {
  border: none; background: transparent; color: var(--nx-text-accent);
  font-size: var(--nx-text-sm); cursor: pointer; padding: 0;
}
.nux-notif-readall:hover { text-decoration: underline; }
.nux-notif-list { max-height: 400px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--nx-border) transparent; }
.nux-notif-list::-webkit-scrollbar { width: 6px; }
.nux-notif-list::-webkit-scrollbar-track { background: transparent; }
.nux-notif-list::-webkit-scrollbar-thumb { background: var(--nx-border); border-radius: var(--nx-radius-full); }
.nux-notif-list::-webkit-scrollbar-thumb:hover { background: var(--nx-text-muted); }
[data-theme="dark"] .nux-notif-list { scrollbar-color: var(--nx-text-muted) transparent; }
.nux-notif-loading { display: flex; align-items: center; justify-content: center; padding: var(--nx-space-8); }
.nux-notif-empty {
  display: flex; flex-direction: column; align-items: center; gap: var(--nx-space-2);
  padding: var(--nx-space-12) var(--nx-space-6); color: var(--nx-text-muted);
}
.nux-notif-empty-icon { font-size: 2.5rem; opacity: 0.4; }
.nux-notif-item {
  display: flex; gap: var(--nx-space-3); padding: var(--nx-space-3) var(--nx-space-4);
  cursor: pointer; transition: background var(--nx-transition-fast); position: relative;
  border-bottom: 1px solid var(--nx-border);
}
.nux-notif-item:hover { background: var(--nx-bg-hover); }
.nux-notif-item:active { background: var(--nx-border); }
.nux-notif-item:focus { outline: none; }
.nux-notif-item.is-unread { background: rgba(var(--app-accent-rgb), 0.06); }
.nux-notif-item:hover.is-unread { background: rgba(var(--app-accent-rgb), 0.10); }
[data-theme="dark"] .nux-notif-item.is-unread { background: rgba(var(--app-accent-rgb), 0.12); }
[data-theme="dark"] .nux-notif-item:hover.is-unread { background: rgba(var(--app-accent-rgb), 0.18); }
.nux-notif-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--nx-radius-md);
  background: var(--nx-bg-muted); display: flex; align-items: center; justify-content: center;
  color: var(--nx-text-accent); font-size: var(--nx-text-base);
}
.nux-notif-body { flex: 1; min-width: 0; }
.nux-notif-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-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-item-time { font-size: var(--nx-text-xs); color: var(--nx-text-muted); margin-top: 4px; }
.nux-notif-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-footer { padding: var(--nx-space-3) var(--nx-space-4); border-top: 1px solid var(--nx-border); text-align: center; }
.nux-notif-viewall {
  border: none; background: transparent; cursor: pointer; width: 100%;
  font-size: var(--nx-text-sm); color: var(--nx-text-accent); text-decoration: none; display: block;
}
.nux-notif-viewall:hover { text-decoration: underline; }
.nux-notif-panel-enter-active { transition: opacity 0.2s ease, transform 0.2s ease; }
.nux-notif-panel-leave-active { transition: opacity 0.15s ease, transform 0.15s ease; }
.nux-notif-panel-enter-from, .nux-notif-panel-leave-to { opacity: 0; transform: translateY(-8px); }
@media (max-width: 768px) {
  .nux-notif-fullscreen {
    position: fixed; inset: 0; width: 100%; height: 100%;
    top: 0; right: 0; border-radius: 0; z-index: 300;
  }
  .nux-notif-fullscreen .nux-notif-list { max-height: none; flex: 1; }
}
@media (max-width: 480px) {
  .nux-notif-panel { width: 100%; }
  .nux-notif-item-title { font-size: 13px; }
  .nux-notif-item-content { line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) {
  .nux-notif-badge { animation: none; }
  .nux-notif-panel-enter-active, .nux-notif-panel-leave-active { transition: 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; justify-content: space-between;
  margin-bottom: var(--nx-space-6); 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-panel-mark-all {
  border: none; background: transparent; color: var(--nx-text-accent);
  font-size: var(--nx-text-sm); cursor: pointer; padding: var(--nx-space-2) var(--nx-space-3);
  border-radius: var(--nx-radius-sm); transition: background var(--nx-transition-fast);
}
.nux-notif-panel-mark-all:hover { background: var(--nx-bg-hover); }
.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.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-accent); font-size: var(--nx-text-base);
}
.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;
  padding: var(--nx-space-2); 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);
}
.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, 220, 38, 38), 0.1); }
.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;
  padding: var(--nx-space-2) var(--nx-space-3); 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 { border-color: var(--nx-text-accent); color: var(--nx-text-accent); }
.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;
}

.nx-progress-steps {
  display: flex;
  gap: var(--nx-space-2);
  flex-wrap: wrap;
}
.nx-progress-steps .nx-step {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--nx-space-1) var(--nx-space-2);
  border-radius: var(--nx-radius-full);
  font-size: 11px;
  color: var(--nx-text-muted);
  background: var(--nx-bg-muted);
  transition: all var(--nx-transition-fast);
}
.nx-progress-steps .nx-step i {
  font-size: 10px;
}
.nx-progress-steps .nx-step.is-completed {
  background: rgba(var(--nx-success-rgb), 0.12);
  color: var(--nx-success);
}

.nx-tooltip {
  position: relative;
  display: inline-flex;
}
.nx-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: var(--nx-radius-sm);
  background: var(--nx-text-heading);
  color: var(--nx-bg-surface);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--nx-transition-fast);
  z-index: 300;
}
.nx-tooltip:hover::after,
.nx-tooltip:focus-within::after {
  opacity: 1;
}

.nx-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--nx-bg-hover);
  overflow: hidden;
}
.nx-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: var(--nx-primary);
  transition: width var(--nx-transition-base);
}

.nux-undo-toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nux-undo-bottom, 88px) + env(safe-area-inset-bottom));
  z-index: 1200;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px 10px 18px;
  background: #475569;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(31, 78, 121, 0.28);
  max-width: calc(100vw - 24px);
}
.nux-undo-toast.raised {
  bottom: calc(var(--nux-undo-bottom, 88px) + 66px + env(safe-area-inset-bottom));
}
.nux-undo-text {
  font-size: 13px; color: #ffffff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nux-undo-btn {
  background: #ffffff; color: #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) + env(safe-area-inset-bottom));
  z-index: 1200;
  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;
}

.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); }

/* ===== 成就解锁庆祝卡片 ===== */
.nux-unlock-container {
  position: fixed;
  top: calc(var(--nx-space-6) + var(--nx-safe-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1150;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--nx-space-2);
  width: min(340px, calc(100vw - 32px));
  pointer-events: none;
}
.nux-unlock-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--nx-space-4);
  width: 100%;
  padding: var(--nx-space-4) var(--nx-space-5);
  border-radius: var(--nx-radius-xl);
  background: var(--nx-bg-elevated, #ffffff);
  border: 1.5px solid rgba(var(--app-accent-rgb), 0.35);
  box-shadow: 0 20px 50px rgba(31, 78, 121, 0.28);
  overflow: hidden;
  cursor: pointer;
  pointer-events: auto;
}
.nux-unlock-card::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(var(--app-accent-rgb), 0.10), transparent);
  animation: nx-unlock-shimmer 2.6s ease-in-out infinite;
}
@keyframes nx-unlock-shimmer {
  0% { left: -100%; }
  60% { left: 130%; }
  100% { left: 130%; }
}
.nux-unlock-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  border-radius: var(--nx-radius-lg);
  background: rgba(var(--app-accent-rgb), 0.12);
  animation: nx-unlock-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes nx-unlock-pop {
  0% { transform: scale(0.4); }
  60% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.nux-unlock-burst {
  position: absolute;
  top: 50%; left: 40px;
  width: 200px; height: 200px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(var(--app-accent-rgb), 0.16) 0%, transparent 62%);
  border-radius: 50%;
  pointer-events: none;
  animation: nx-unlock-burst 0.8s ease-out;
}
@keyframes nx-unlock-burst {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}
.nux-unlock-body { min-width: 0; flex: 1; position: relative; z-index: 1; }
.nux-unlock-label {
  font-size: var(--nx-text-xs, 12px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--app-accent, #6366f1);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.nux-unlock-title {
  font-size: var(--nx-text-base, 15px);
  font-weight: 700;
  color: var(--nx-text-heading);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nux-unlock-desc {
  font-size: var(--nx-text-sm, 13px);
  color: var(--nx-text-secondary);
  margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nux-unlock-enter-active, .nux-unlock-leave-active { transition: all 0.35s cubic-bezier(0.34, 1.3, 0.64, 1); }
.nux-unlock-enter-from, .nux-unlock-leave-to { opacity: 0; transform: translateY(-16px) scale(0.96); }
@media (prefers-reduced-motion: reduce) {
  .nux-unlock-card::after, .nux-unlock-icon, .nux-unlock-burst { animation: none; }
}

/* ===== 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.625rem; padding: 2px 6px; }
.nx-ai-badge-md { font-size: 0.6875rem; 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; }

/* ===== 导出按钮 ===== */
.nux-export-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--nx-radius-sm, 8px);
  border: 1px solid var(--nx-border, rgba(100, 116, 139, 0.25));
  background: var(--nx-primary, rgb(14, 165, 233));
  color: var(--nx-text-on-accent, #fff);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nux-export-button:hover:not(:disabled) { opacity: 0.9; }
.nux-export-button:disabled { opacity: 0.6; cursor: not-allowed; }
.nux-export-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: nuxExportSpin 0.8s linear infinite;
}
@keyframes nuxExportSpin { to { transform: rotate(360deg); } }

/* ===== 计划进度聚合卡 ===== */
.nux-plan-progress {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: var(--nx-radius-lg, 16px);
  background: var(--nx-bg-elevated, #fff);
  border: 1px solid var(--nx-border, rgba(100, 116, 139, 0.18));
}
.nux-plan-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nux-plan-progress-titles { display: flex; flex-direction: column; gap: 2px; }
.nux-plan-progress-title { font-size: 1rem; font-weight: 600; color: var(--nx-text-heading, rgb(15, 23, 42)); }
.nux-plan-progress-subtitle { font-size: 0.8125rem; color: var(--nx-text-secondary, rgb(100, 116, 139)); }
.nux-plan-progress-day {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nx-text-accent, rgb(14, 165, 233));
  white-space: nowrap;
}
.nux-plan-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--nx-bg-hover, rgb(241, 245, 249));
  overflow: hidden;
}
.nux-plan-progress-bar-val {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nx-primary, rgb(14, 165, 233)), var(--nx-accent, rgb(99, 102, 241)));
  transition: width 0.4s ease;
}
.nux-plan-progress-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nux-plan-progress-pct { font-size: 0.875rem; font-weight: 600; color: var(--nx-text-heading, rgb(15, 23, 42)); }
.nux-plan-progress-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nux-plan-progress-stat { display: flex; align-items: baseline; gap: 5px; }
.nux-plan-progress-stat-k { font-size: 0.75rem; color: var(--nx-text-secondary, rgb(100, 116, 139)); }
.nux-plan-progress-stat-v { font-size: 0.8125rem; font-weight: 600; color: var(--nx-text-body, rgb(51, 65, 85)); }
