
/* Komunikaty w aplikacji zamiast natywnego alert() */
.nx-toast-stack{position:fixed;right:16px;bottom:16px;z-index:100000;display:flex;flex-direction:column;gap:8px;max-width:min(420px,calc(100vw - 32px))}
.nx-toast{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:12px;border:1px solid var(--theme-line,#252D27);background:var(--theme-surface,#111512);color:var(--theme-text,#F4F5F4);box-shadow:0 10px 30px rgba(0,0,0,.35);font-size:12px;line-height:1.45;animation:nxToastIn .18s ease-out}
.nx-toast.error{border-color:color-mix(in srgb,#ff6b6b 55%,var(--theme-line,#252D27))}
.nx-toast.ok{border-color:color-mix(in srgb,var(--theme-accent,#68FF79) 55%,var(--theme-line,#252D27))}
.nx-toast-text{flex:1;white-space:pre-line;word-break:break-word}
.nx-toast-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.nx-toast-actions button{padding:5px 9px;font-size:11px}
.nx-toast-close{background:none;border:0;color:var(--theme-muted,#858D87);font-size:16px;line-height:1;cursor:pointer;padding:0 2px}
@keyframes nxToastIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
/* Newsletter: akcje zamiast edytora */
.nx-mail-bulk-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-top:1px solid var(--theme-line,#252D27)}
.nx-mail-bulk-note{color:var(--theme-muted,#858D87);font-size:12px}
.nx-mail-bulk-buttons{display:flex;gap:8px;flex-wrap:wrap}
.nx-mail-unsub{display:inline-flex;align-items:center;text-decoration:none}
/* Pasek stałych elementów zawija się zamiast wychodzić poza ekran */
.nx-mail-templates{display:flex!important;flex-wrap:wrap!important;gap:8px;max-width:100%;overflow:visible}
.nx-mail-templates>*{max-width:100%;white-space:normal}
/* Przyciski odpowiedzi wyrównane do krawędzi pola tekstowego */
#view-email .mail-reply-actions{display:flex!important;flex-wrap:wrap;justify-content:space-between!important;align-items:center;gap:8px}
#view-email .mail-reply-right{display:flex!important;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-left:auto}
#view-email .mail-reply-box textarea{width:100%;box-sizing:border-box}
/* Zwroty: kanał odpowiedzi */
.nx-return-contact .nx-return-channel{margin:4px 0 8px}
.nx-return-email-label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:var(--theme-muted,#858D87)}
.nx-return-email-label input{width:100%;max-width:420px;box-sizing:border-box;padding:8px 10px;border-radius:9px;border:1px solid var(--theme-line,#252D27);background:var(--theme-surface-2,#151A16);color:var(--theme-text,#F4F5F4)}
button[disabled]{opacity:.5;cursor:not-allowed}
.nx-v95-thumb img{width:44px;height:44px;object-fit:cover;border-radius:8px;display:block}.nx-v95-thumb span{font-size:10px;color:var(--theme-muted,#858D87)}.nx-v95-thumb-col{width:56px}
/* Wskaźnik pracy */
/* Stan pracy w prawym górnym rogu (zamiast „Agent online”), od 13.10.2026 */
.top-actions .status.nx-working{color:var(--theme-text)!important;gap:0!important;max-width:min(340px,36vw);padding:0 6px!important}
.top-actions .status.nx-working .nx-spinner{width:14px;height:14px;margin-right:8px;border-width:2px;flex:none}
.nx-bulk-thumb{position:relative}
.nx-bulk-thumb-count{position:absolute;right:3px;bottom:3px;min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:rgba(0,0,0,.72);color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center;pointer-events:none}
.top-actions .status .nx-status-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.top-actions .status .nx-status-short{display:none}
.top-actions .status .nx-status-progress{flex:none;width:44px;height:4px;margin-left:8px;border-radius:99px;background:var(--theme-surface-2,#151A16);overflow:hidden}
.top-actions .status .nx-status-progress>span{display:block;height:100%;background:var(--theme-accent,#68FF79);transition:width .3s}
@media(max-width:720px){.top-actions .status.nx-working{display:inline-flex!important;max-width:34vw}.top-actions .status .nx-status-text{display:none}.top-actions .status .nx-status-short{display:inline}}
.nx-btn-busy{position:relative;cursor:progress!important;opacity:.85}
.nx-btn-busy::before{content:'';display:inline-block;width:12px;height:12px;margin-right:7px;vertical-align:-2px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:nxSpin .7s linear infinite}
/* Archiwizacja produktów */
.nx-arch p{font-size:12px;line-height:1.5}
.nx-arch-all{display:flex;gap:8px;align-items:center;font-weight:700;margin:8px 0}
.nx-arch-list{max-height:min(46vh,420px);overflow:auto;border:1px solid var(--theme-line,#252D27);border-radius:10px}
.nx-arch-list label{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;padding:7px 10px;border-bottom:1px solid var(--theme-line,#252D27);font-size:12px;cursor:pointer}
.nx-arch-list label small{grid-column:2;color:var(--theme-muted,#858D87)}
.nx-arch-progress{margin:10px 0}.nx-arch-progress>div{height:8px;border-radius:99px;background:var(--theme-surface-2,#151A16);overflow:hidden}
.nx-arch-progress i{display:block;height:100%;width:0;background:var(--theme-accent,#68FF79);transition:width .3s}
.nx-arch-progress span{display:block;font-size:11px;margin-top:6px;color:var(--theme-muted,#858D87)}
.nx-arch-note{color:var(--theme-muted,#858D87)}
.nx-chat-arch{margin-top:10px}
/* Logowanie: kółko ładowania i wznawianie sesji po F5 */
.nx-spinner{display:inline-block;width:14px;height:14px;margin-right:8px;vertical-align:-2px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:nxSpin .7s linear infinite}
@keyframes nxSpin{to{transform:rotate(360deg)}}
.login-submit.is-loading{opacity:.85;cursor:progress}
.nx-restore-note{display:none;align-items:center;justify-content:center;gap:4px;padding:18px 0 6px;font-size:13px;color:var(--theme-muted,#858D87)}
#loginScreen.nx-restoring .nx-restore-note{display:flex}
#loginScreen.nx-restoring #loginForm,#loginScreen.nx-restoring .login-card>h1,#loginScreen.nx-restoring .login-card>p{display:none}
@media (prefers-reduced-motion:reduce){.nx-spinner{animation-duration:1.6s}}
.nx-comm-mail-bulk{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:10px 14px;border-top:1px solid var(--theme-line,#252D27);color:var(--theme-muted,#858D87);font-size:12px}
.nx-comm-message p{white-space:pre-line;word-break:break-word}
.nx-chat-proposal{margin-top:10px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--theme-accent,#68FF79) 40%,var(--theme-line,#252D27));border-radius:12px;background:var(--theme-surface-2,#151A16);font-size:12px}
.nx-chat-proposal ul{margin:6px 0;padding-left:16px;color:var(--theme-muted,#858D87)}.nx-chat-proposal li span{color:var(--theme-text,#F4F5F4)}
.nx-chat-proposal-actions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 4px}.nx-chat-proposal small{color:var(--theme-muted,#858D87)}
.nx-server-approvals{margin:14px 0}
.nx-server-op{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;padding:12px 0;border-top:1px solid var(--theme-line,#252D27)}
.nx-server-op-main{flex:1;min-width:220px}.nx-server-op-main small{display:block;color:var(--theme-muted,#858D87);margin:2px 0 6px}
.nx-server-op-main ul{margin:0;padding-left:16px;font-size:11px;color:var(--theme-muted,#858D87)}.nx-server-op-main li span{color:var(--theme-text,#F4F5F4)}
.nx-server-op-actions{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap}
.nx-nav-count{margin-left:auto;min-width:18px;padding:1px 6px;border-radius:999px;background:var(--theme-accent,#68FF79);color:#000;font-size:10px;font-weight:800;text-align:center}
.nx-claim-urgent{border-color:color-mix(in srgb,#ff6b6b 60%,transparent)!important;color:#ff8a8a!important}
