.nw-panel {
  margin: 10px 0 12px; padding: 10px 12px 12px;
  border: 1px solid var(--cp-line, var(--color-border));
  border-left: 3px solid var(--cp-amber, var(--gold));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--cp-amber, var(--gold)) 7%, var(--cp-bg-2, var(--color-surface)));
  max-width: 100%; box-sizing: border-box; min-width: 0;
}
.nw-panel.hidden { display: none; }
.nw-panel--compact { margin: 6px 0; padding: 8px 10px 10px; }
.nw-panel--done { border-left-color: var(--cp-cyan, #2e9e6a); padding: 6px 12px; background: transparent; }
.nw-done { margin: 0; font-size: var(--font-size-sm); color: var(--cp-text-2, var(--color-text-secondary)); }
.nw-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 8px; }
.nw-count { font-size: var(--font-size-md); color: var(--cp-text, var(--color-text)); }
.nw-sub { font-size: var(--font-size-sm); color: var(--cp-text-2, var(--color-text-secondary)); }
.nw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; min-width: 0; }
.nw-chip {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 3px 9px; max-width: 100%;
  border: 1px solid var(--cp-line, var(--color-border)); border-radius: var(--radius-sm);
  background: var(--cp-bg-3, var(--color-surface-2)); color: var(--cp-text, var(--color-text));
  cursor: pointer; font: inherit; line-height: 1.15;
}
.nw-chip:hover { border-color: var(--cp-amber, var(--gold)); }
.nw-chip__zh { font-family: 'Noto Sans SC', sans-serif; font-size: 18px; white-space: nowrap; }
.nw-chip__py { font-size: 11px; color: var(--cp-text-2, var(--color-text-secondary)); max-width: 100%; text-wrap: balance; }   
.nw-chip--more { font-weight: 700; color: var(--cp-amber, var(--gold)); }
.nw-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nw-actions .btn { min-height: 40px; flex: 1 1 auto; }
.nw-panel--compact .nw-chip { min-height: 38px; }
.nw-panel--compact .nw-chip__zh { font-size: 16px; }

.nw-overlay { z-index: 100004; }
body.toast-nw .toast { z-index: 100005; }   
.nw-sheet { display: flex; flex-direction: column; max-height: min(84dvh, 720px); padding: 20px 16px 16px; box-sizing: border-box; }
.nw-sheet .modal-title { margin-bottom: 4px; }
.nw-sheet__sub { font-size: var(--font-size-sm); color: var(--color-text-secondary); margin: 0 0 6px; }
.nw-sheet__tools { display: flex; gap: 14px; margin-bottom: 4px; }
.nw-list { flex: 1; min-height: 80px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--color-border); border-radius: var(--radius-sm); margin: 4px 0 10px; }
.nw-row { display: flex; align-items: center; border-bottom: 1px solid var(--color-border); }
.nw-row:last-child { border-bottom: 0; }
.nw-row__main { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px; padding: 9px 4px 9px 10px; cursor: pointer; }
.nw-row__main input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--cp-amber, var(--red)); }
.nw-row__zh { font-family: 'Noto Sans SC', sans-serif; font-size: 20px; color: var(--color-text); }
.nw-row__py { font-size: var(--font-size-sm); color: var(--cp-amber, var(--gold)); }
.nw-row__en { flex-basis: 100%; padding-left: 30px; font-size: var(--font-size-sm); color: var(--color-text-secondary); overflow-wrap: anywhere; }
.nw-row__l2 { opacity: .85; }
.nw-row__l2::before { content: '· '; }
.nw-row__ign { flex-shrink: 0; width: 44px; height: 44px; border: 0; background: none; color: var(--color-text-muted); font-size: 16px; cursor: pointer; }
.nw-row__ign:hover { color: var(--red); }
.nw-sheet__actions { display: flex; gap: 8px; justify-content: flex-end; }
.nw-rank { font-size: 10px; line-height: 1.5; padding: 0 5px; border: 1px solid currentColor; border-radius: 3px; color: var(--color-text-muted); white-space: nowrap; }
.nw-rank--top { color: var(--cp-lime, #3a8a3a); }
.nw-rank--rare { opacity: .7; }
