/* AIA-05 · Trợ lý ZSC (assistant190.js): nút "✦ Trợ lý", khung bên phải 400 px (điện thoại: toàn màn hình), mục 5 trong Cài đặt → AI. Sáng / tối. */
.ast19-btn{display:inline-flex;align-items:center;gap:4px;border:1px solid #c4b5fd;background:#f5f3ff;color:#5b21b6;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap;margin-right:6px}
.ast19-btn:hover{border-color:#8b5cf6}.ast19-btn[hidden]{display:none}
.ast19-panel{position:fixed;top:0;right:0;bottom:0;z-index:1350;width:400px;max-width:100vw;display:flex;flex-direction:column;background:#fff;border-left:1px solid #e2e8f0;box-shadow:-12px 0 32px rgba(15,23,42,.16)}
.ast19-panel[hidden]{display:none}
.ast19-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #f1f5f9}
.ast19-head b{font-size:15px;color:#4c1d95}
.ast19-tools{display:flex;gap:6px;align-items:center}
.ast19-tools button{border:1px solid #e2e8f0;background:#f8fafc;color:#334155;border-radius:8px;padding:3px 8px;font-size:12px;cursor:pointer}
.ast19-tools .ast19-x,.ast19-ctx .ast19-x{border:0;background:none;font-size:20px;line-height:1;color:#64748b;padding:0 4px;cursor:pointer}
.ast19-ctx{display:flex;align-items:center;gap:4px;margin:8px 14px 0;padding:5px 8px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:12px;width:fit-content;max-width:calc(100% - 28px)}
.ast19-ctx[hidden]{display:none}.ast19-ctx b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:240px}.ast19-ctx .ast19-x{font-size:14px;color:#4338ca}
.ast19-list{flex:1;overflow:auto;padding:10px 14px;display:flex;flex-direction:column;gap:10px}
.ast19-empty p{font-size:13px;color:#475569;line-height:1.5;margin:4px 0 10px}
.ast19-sample,.ast19-next{display:block;width:100%;text-align:left;border:1px solid #ddd6fe;background:#faf5ff;color:#4c1d95;border-radius:10px;padding:7px 10px;font-size:13px;cursor:pointer;margin-bottom:6px}
.ast19-next{display:inline-block;width:auto;margin:6px 6px 0 0;padding:4px 9px;font-size:12px}
.ast19-q{align-self:flex-end;max-width:85%;background:#7c3aed;color:#fff;border-radius:14px 14px 4px 14px;padding:8px 11px;font-size:13px;line-height:1.45;white-space:pre-wrap;word-break:break-word}
.ast19-a{align-self:flex-start;max-width:95%;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px 14px 14px 4px;padding:9px 11px}
.ast19-a.ast19-error{background:#fef2f2;border-color:#fecaca}
.ast19-text{font-size:13px;color:#0f172a;line-height:1.55;white-space:pre-wrap;word-break:break-word}
.ast19-cite{display:inline-block;min-width:18px;border:0;border-radius:6px;background:#ede9fe;color:#5b21b6;font-size:11px;font-weight:700;padding:0 4px;margin:0 1px;cursor:pointer;vertical-align:1px}
.ast19-src{display:flex;flex-direction:column;gap:4px;margin-top:8px;padding-top:8px;border-top:1px dashed #e2e8f0}
.ast19-chip{display:flex;align-items:baseline;gap:2px;width:100%;text-align:left;border:0;background:none;border-radius:6px;padding:3px 4px;font-size:12px;color:#475569;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ast19-chip:hover:not(:disabled){background:#f1f5f9}.ast19-chip:disabled{cursor:default}
.ast19-chip b{flex:none;font-size:11px;color:#94a3b8}.ast19-chip.on b{color:#7c3aed}.ast19-chip span{overflow:hidden;text-overflow:ellipsis}.ast19-chip small{flex:none;color:#94a3b8}
.ast19-fb{margin-top:6px}.ast19-fb>button:not(.ast19-next){border:1px solid #e2e8f0;background:#fff;border-radius:8px;padding:1px 7px;margin-right:4px;cursor:pointer;font-size:13px;opacity:.7}
.ast19-fb>button.on{opacity:1;border-color:#8b5cf6;background:#f5f3ff}
.ast19-dots{font-size:13px;color:#7c3aed;animation:ast19pulse 1.2s ease-in-out infinite}
@keyframes ast19pulse{50%{opacity:.4}}
.ast19-form{display:flex;gap:8px;align-items:flex-end;padding:10px 14px;border-top:1px solid #f1f5f9}
.ast19-form textarea{flex:1;resize:none;border:1px solid #cbd5e1;border-radius:12px;padding:8px 10px;font:inherit;font-size:14px;line-height:1.4;min-height:38px;max-height:110px;overflow-y:auto;background:#fff;color:#0f172a}
.ast19-form button{flex:none;width:38px;height:38px;border:0;border-radius:50%;background:#7c3aed;color:#fff;font-size:16px;cursor:pointer}.ast19-form button:disabled{opacity:.5;cursor:default}
.ast19-foot{margin:0;padding:0 14px 10px;font-size:11px;color:#94a3b8}
.ast19-hint{font-size:13px;color:#64748b}
/* AIA-06 · thẻ "sẽ làm gì" + bản nháp tin cho khách */
.ast19-card,.ast19-draft{margin-top:8px;border:1px solid #ddd6fe;background:#fff;border-radius:12px;padding:9px 10px}
.ast19-card>b,.ast19-draft>b{display:block;font-size:12px;color:#5b21b6;margin-bottom:4px}
.ast19-card.done{border-color:#e2e8f0}
.ast19-part+.ast19-part{margin-top:6px;padding-top:6px;border-top:1px dashed #e2e8f0}
.ast19-ptitle{font-size:12px;font-weight:600;color:#334155;margin-bottom:2px}
.ast19-step{display:flex;gap:6px;font-size:13px;line-height:1.45;color:#0f172a}
.ast19-step.bad{color:#b91c1c}.ast19-step.skip{color:#64748b}
.ast19-mark{flex:none;width:14px;font-weight:700}.ast19-step.ok .ast19-mark{color:#15803d}
.ast19-acts{display:flex;gap:8px;align-items:center;margin-top:8px}
.ast19-acts small{font-size:12px;color:#b91c1c}
.ast19-confirm{border:0;border-radius:8px;background:#7c3aed;color:#fff;font-weight:600;padding:5px 14px;cursor:pointer}
.ast19-cancel{border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#334155;padding:4px 12px;cursor:pointer}
.ast19-confirm:disabled,.ast19-cancel:disabled{opacity:.55;cursor:default}
.ast19-state{margin-top:6px;font-size:12px;font-weight:600;color:#64748b}.ast19-state.executed{color:#15803d}.ast19-state.failed{color:#b91c1c}
.ast19-draft p{margin:4px 0 8px;font-size:13px;line-height:1.5;white-space:pre-wrap;color:#0f172a;background:#f8fafc;border-radius:8px;padding:6px 8px}
.ast19-insert{border:1px solid #c4b5fd;border-radius:8px;background:#f5f3ff;color:#5b21b6;padding:4px 12px;cursor:pointer;font-size:12px}
.ast19-hrow{display:flex;align-items:center;gap:8px;border-bottom:1px solid #f1f5f9;padding:6px 0}
.ast19-hopen{flex:1;min-width:0;text-align:left;border:0;background:none;font-size:13px;color:#0f172a;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 0}
.ast19-hrow small{flex:none;font-size:11px;color:#94a3b8}.ast19-hdel{flex:none;border:0;background:none;cursor:pointer;opacity:.6}
.ast19-admin .ast19-users{display:flex;flex-wrap:wrap;gap:4px 14px;margin:6px 0}
.ast19-admin .ast19-limits{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0}.ast19-admin .ast19-limits label{display:flex;flex-direction:column;font-size:12px;gap:3px}
.ast19-admin .ast19-limits input{width:150px}
.ast19-note{font-size:12px;color:#475569;margin:6px 0}
.ast19-runs{width:100%;border-collapse:collapse;font-size:12px;margin-top:6px}.ast19-runs th,.ast19-runs td{border-bottom:1px solid #f1f5f9;padding:3px 4px;text-align:left}
@media (max-width:640px){.ast19-btn span{display:none}.ast19-panel{width:100%;border-left:0}.ast19-ctx b{max-width:180px}}
html[data-zsc-scheme="dark"] .ast19-btn{background:#2e1065;border-color:#6d28d9;color:#ddd6fe}
html[data-zsc-scheme="dark"] .ast19-panel{background:#0f172a;border-color:#334155}
html[data-zsc-scheme="dark"] :is(.ast19-head,.ast19-form,.ast19-hrow){border-color:#1e293b}
html[data-zsc-scheme="dark"] .ast19-head b{color:#ddd6fe}
html[data-zsc-scheme="dark"] .ast19-tools button{background:#1e293b;border-color:#334155;color:#cbd5e1}
html[data-zsc-scheme="dark"] .ast19-ctx{background:#1e1b4b;color:#c7d2fe}
html[data-zsc-scheme="dark"] :is(.ast19-sample,.ast19-next){background:#1e1b4b;border-color:#4c1d95;color:#ddd6fe}
html[data-zsc-scheme="dark"] .ast19-a{background:#111827;border-color:#1f2937}
html[data-zsc-scheme="dark"] .ast19-a.ast19-error{background:#2a0f12;border-color:#7f1d1d}
html[data-zsc-scheme="dark"] :is(.ast19-text,.ast19-hopen){color:#e2e8f0}
html[data-zsc-scheme="dark"] .ast19-cite{background:#3b0764;color:#e9d5ff}
html[data-zsc-scheme="dark"] .ast19-src{border-color:#1f2937}
html[data-zsc-scheme="dark"] .ast19-chip{color:#cbd5e1}html[data-zsc-scheme="dark"] .ast19-chip:hover:not(:disabled){background:#1e293b}
html[data-zsc-scheme="dark"] .ast19-form textarea{background:#111827;border-color:#334155;color:#e2e8f0}
html[data-zsc-scheme="dark"] .ast19-fb>button:not(.ast19-next){background:#111827;border-color:#334155}
html[data-zsc-scheme="dark"] :is(.ast19-empty p,.ast19-note,.ast19-hint){color:#94a3b8}
html[data-zsc-scheme="dark"] :is(.ast19-card,.ast19-draft){background:#0b1120;border-color:#4c1d95}html[data-zsc-scheme="dark"] .ast19-card.done{border-color:#1f2937}
html[data-zsc-scheme="dark"] :is(.ast19-card>b,.ast19-draft>b){color:#c4b5fd}
html[data-zsc-scheme="dark"] :is(.ast19-step,.ast19-draft p){color:#e2e8f0}html[data-zsc-scheme="dark"] .ast19-step.bad{color:#fca5a5}
html[data-zsc-scheme="dark"] .ast19-draft p{background:#111827}html[data-zsc-scheme="dark"] .ast19-ptitle{color:#cbd5e1}
html[data-zsc-scheme="dark"] :is(.ast19-cancel,.ast19-insert){background:#111827;border-color:#334155;color:#cbd5e1}
html[data-zsc-scheme="dark"] :is(.ast19-acts small,.ast19-state.failed){color:#fca5a5}html[data-zsc-scheme="dark"] .ast19-step.skip{color:#94a3b8}
html[data-zsc-scheme="dark"] :is(.ast19-step.ok .ast19-mark,.ast19-state.executed){color:#4ade80}
/* AIA-07b-01 · nháp Wiki: chọn không gian + "Đăng vào Wiki"; nút "📘 Viết hướng dẫn" trong khung Ticket */
.ast19-wrow{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px}
.ast19-wrow .ast19-wspace{flex:1 1 160px;width:auto;min-width:0;max-width:100%;padding:4px 8px;font-size:12px;border-radius:8px;border:1px solid #cbd5e1;background:#fff;color:#0f172a}
.ast19-wrow .ast19-state{margin:0}
.ast19-wnote{display:block;margin-top:6px;font-size:11px;line-height:1.4;color:#64748b}
.ast19-tk{margin:6px 0}
html[data-zsc-scheme="dark"] .ast19-wrow .ast19-wspace{background:#111827;border-color:#334155;color:#e2e8f0}
html[data-zsc-scheme="dark"] .ast19-wnote{color:#94a3b8}
