/* Syndicat.ai - CSS Modules */
/* Auto-generated from style.css split - 2026-03-04 */

@import url("/assets/css/avatars.css?v=202603220728");
@import url("/assets/css/base.css?v=202603220728");
@import url("/assets/css/chat.css?v=202603220728");
@import url("/assets/css/components.css?v=202603220728");
@import url("/assets/css/downloads.css?v=202603220728");
@import url("/assets/css/imagegen.css?v=202603220728");
@import url("/assets/css/login.css?v=202603220728");
@import url("/assets/css/media.css?v=202603220728");
@import url("/assets/css/transcription.css?v=202603220728");
@import url("/assets/css/visio.css?v=202603220728");
@import url("/assets/css/missions.css?v=202603220728");
@import url("/assets/css/homepage.css?v=202603220728");

/* ═══════════════════════════════════════════ */
/* Delegation notice (Jaurès → Annuaire)       */
/* ═══════════════════════════════════════════ */
.sa-delegation-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 13px;
    color: #1e40af;
}
.sa-delegation-notice svg {
    flex-shrink: 0;
    color: #3b82f6;
}
.sa-delegation-notice strong {
    color: #1d4ed8;
}

/* ═══════════════════════════════════════════ */
/* Stats-global sections (HTML proper)         */
/* ═══════════════════════════════════════════ */
.sa-stats-section {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
.sa-stats-section h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}
.sa-stats-section p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #64748b;
}
.sa-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px;
}
.sa-stats-dept {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #fff;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid #f1f5f9;
}
.sa-stats-dept-code {
    font-weight: 700;
    color: #3b82f6;
    min-width: 22px;
}
.sa-stats-dept-name {
    flex: 1;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sa-stats-dept-nums {
    font-weight: 600;
    color: #1e293b;
    font-size: 11px;
    white-space: nowrap;
}
.sa-stats-sources {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sa-stats-source {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}
.sa-stats-source-name {
    min-width: 130px;
    color: #475569;
    text-transform: capitalize;
}
.sa-stats-source-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}
.sa-stats-source-bar > div {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    border-radius: 3px;
    min-width: 2px;
}
.sa-stats-source-num {
    font-weight: 600;
    color: #1e293b;
    min-width: 40px;
    text-align: right;
}

/* ═══════════════════════════════════════════════ */
/* LYCEE CARDS                                     */
/* ═══════════════════════════════════════════════ */
.sa-lycee-card { border-left: 4px solid #2563eb; }
.sa-lycee-card .sa-pc-header { border-bottom: 1px solid #e2e8f0; }
.sa-lycee-personnel { border-top: 1px solid #f1f5f9; padding-top: 8px; margin-top: 4px; }
.sa-lycee-pers-item { padding: 3px 0; line-height: 1.4; }
.sa-lycee-map-link {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 14px; border-radius: 6px;
    background: #eff6ff; color: #2563eb; font-size: 13px;
    font-weight: 500; text-decoration: none; transition: background 0.2s;
}
.sa-lycee-map-link:hover { background: #dbeafe; }

/* ═══════════════════════════════════════════════ */
/* LYCEE LIST                                      */
/* ═══════════════════════════════════════════════ */
.sa-pc-list-header {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; background: #f8fafc;
    border-radius: 10px 10px 0 0; border: 1px solid #e2e8f0;
    border-bottom: none; font-size: 14px; color: #334155;
}
.sa-lycee-list {
    border: 1px solid #e2e8f0; border-radius: 0 0 10px 10px;
    overflow: hidden;
}
.sa-lycee-list-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 14px; border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}
.sa-lycee-list-item:last-child { border-bottom: none; }
.sa-lycee-list-item:hover { background: #f8fafc; }
.sa-lycee-list-dot {
    width: 10px; height: 10px; border-radius: 50%;
    flex-shrink: 0; margin-top: 5px;
}
.sa-lycee-list-info { flex: 1; min-width: 0; }
.sa-lycee-list-name {
    font-weight: 600; font-size: 13px; color: #1e293b;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sa-lycee-list-meta { font-size: 12px; color: #64748b; margin-top: 2px; }
.sa-lycee-list-pers { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.sa-lycee-list-badges {
    display: flex; flex-direction: column; gap: 4px;
    align-items: flex-end; flex-shrink: 0;
}

/* ═══════════════════════════════════════════════ */
/* MAP CARD (Leaflet)                              */
/* ═══════════════════════════════════════════════ */
.sa-map-card {
    border-radius: 12px; overflow: hidden;
    border: 1px solid #e2e8f0; background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.sa-map-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 16px; background: #f8fafc; border-bottom: 1px solid #e2e8f0;
}
.sa-map-header h4 { margin: 0; font-size: 14px; color: #1e293b; }
.sa-map-header span { font-size: 12px; color: #64748b; }
.sa-map-container {
    width: 100%; height: 350px; z-index: 0;
}
.sa-map-container .leaflet-control-attribution { font-size: 9px; }

/* ═══════════════════════════════════════════════ */
/* DISTANCE CARD                                   */
/* ═══════════════════════════════════════════════ */
.sa-distance-card {
    border-radius: 12px; overflow: hidden;
    border: 1px solid #e2e8f0; background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 16px;
}
.sa-distance-header {
    font-size: 14px; font-weight: 600; color: #1e293b;
    margin-bottom: 12px;
}
.sa-distance-body { display: flex; flex-direction: column; gap: 0; }
.sa-distance-point {
    display: flex; align-items: center; gap: 12px;
    padding: 4px 0;
}
.sa-distance-dot {
    width: 14px; height: 14px; border-radius: 50%;
    flex-shrink: 0; border: 2px solid #fff;
    box-shadow: 0 0 0 2px currentColor;
}
.sa-distance-line {
    width: 2px; height: 20px; background: #cbd5e1;
    margin-left: 6px;
}
.sa-distance-value {
    display: flex; align-items: baseline; gap: 8px;
    padding: 8px 0 8px 30px;
    font-size: 18px; color: #1e293b;
}
.sa-distance-value span { font-size: 13px; color: #64748b; font-weight: 400; }

/* ========================================
   MELIE - Video Agent Components
   ======================================== */
.sa-melie-result {
    border-radius: 12px; overflow: hidden;
    border: 1px solid #e0e7ff; background: linear-gradient(135deg, #faf5ff 0%, #f0f4ff 100%);
    padding: 16px; margin: 8px 0;
}
.sa-melie-header {
    display: flex; align-items: center; gap: 8px;
    padding-bottom: 12px; margin-bottom: 12px;
    border-bottom: 1px solid #e0e7ff;
    font-size: 15px; color: #312e81;
}
.sa-melie-header svg { flex-shrink: 0; }
.sa-melie-info { margin-bottom: 12px; }
.sa-melie-info p { margin: 4px 0; font-size: 14px; color: #334155; }
.sa-melie-info p strong { color: #1e1b4b; }
.sa-melie-folders { margin-bottom: 16px; }
.sa-melie-folders p { font-size: 13px; color: #475569; margin-bottom: 6px; }
.sa-melie-folders ul { list-style: none; padding: 0; margin: 0; }
.sa-melie-folders li {
    font-size: 13px; color: #334155; padding: 3px 0 3px 8px;
    border-left: 2px solid #c7d2fe;
}
.sa-melie-folders li a { color: #4f46e5; text-decoration: none; }
.sa-melie-folders li a:hover { text-decoration: underline; }
.sa-melie-doc-link { margin: 12px 0; }
.sa-melie-doc-link a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 8px;
    background: #4f46e5; color: #fff !important;
    font-size: 13px; font-weight: 500;
    text-decoration: none; transition: background 0.2s;
}
.sa-melie-doc-link a:hover { background: #4338ca; }
.sa-melie-content {
    background: #fff; border-radius: 8px; padding: 14px;
    border: 1px solid #e2e8f0; margin: 12px 0;
    max-height: 400px; overflow-y: auto;
}
.sa-melie-text {
    font-size: 13px; line-height: 1.7; color: #334155;
    white-space: pre-wrap; font-family: inherit;
}
.sa-melie-next { margin-top: 12px; }
.sa-melie-next p { font-size: 13px; color: #475569; margin-bottom: 8px; }
.sa-melie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sa-melie-actions button, .sa-melie-actions .lv-secondary-btn {
    font-size: 12px !important; padding: 6px 12px !important;
    border-radius: 6px !important;
}
.sa-melie-kit-section {
    background: #fff; border-radius: 8px; padding: 14px;
    border: 1px solid #e2e8f0; margin: 8px 0;
}
.sa-melie-kit-section h4 {
    font-size: 14px; color: #312e81; margin: 0 0 8px 0;
    font-weight: 600;
}
.sa-melie-kit-section .sa-melie-text { max-height: 200px; overflow-y: auto; }
.sa-melie-kit-section .sa-tr-btn-copy {
    margin-top: 8px; font-size: 11px; padding: 4px 10px;
}
.sa-melie-error {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; border-radius: 8px;
    background: #fef2f2; border: 1px solid #fecaca;
    color: #991b1b; font-size: 13px;
}
.sa-melie-fullkit > .sa-melie-result { margin: 12px 0; }
.sa-melie-fullkit > .sa-melie-header {
    font-size: 16px; color: #1e1b4b;
    padding-bottom: 16px; margin-bottom: 0;
    border-bottom: 2px solid #c7d2fe;
}


/* ==========================================
   DRIVE NAVIGATOR — Universal Drive UI
   ========================================== */
.sa-drive-confirm {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 16px;
    margin: 10px 0;
}
.sa-drive-path {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 8px;
}
.sa-drive-icon { font-size: 18px; }
.sa-drive-breadcrumbs {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    background: rgba(255,255,255,0.7);
    padding: 4px 10px;
    border-radius: 6px;
    word-break: break-all;
}
.sa-drive-action {
    font-size: 13px;
    color: #1e40af;
    padding: 8px 12px;
    background: rgba(255,255,255,0.6);
    border-radius: 6px;
    margin: 8px 0;
}
.sa-drive-action strong { color: #1e3a5f; }
.sa-drive-warnings {
    margin-top: 8px;
    font-size: 12px;
    color: #92400e;
    padding: 6px 10px;
    background: #fffbeb;
    border-radius: 6px;
    border: 1px solid #fde68a;
}
.sa-drive-warnings div { margin: 2px 0; }
.sa-drive-link {
    margin-top: 10px;
    font-size: 12px;
}
.sa-drive-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}
.sa-drive-link a:hover { text-decoration: underline; }

/* Folder list */
.sa-drive-list {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    margin: 10px 0;
}
.sa-drive-list .sa-drive-path {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}
.sa-drive-items {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sa-drive-item {
    padding: 6px 8px;
    font-size: 13px;
    border-radius: 6px;
    transition: background 0.15s;
}
.sa-drive-item:hover { background: #f1f5f9; }
.sa-drive-item a {
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 500;
}
.sa-drive-item a:hover { color: #2563eb; text-decoration: underline; }
.sa-drive-empty {
    text-align: center;
    color: #94a3b8;
    padding: 20px;
    font-size: 13px;
}

/* Error */
.sa-drive-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 13px;
}

/* Suggestions */
.sa-drive-suggest {
    margin-top: 10px;
    padding: 10px 14px;
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 13px;
}
.sa-drive-suggest p { margin: 0 0 6px 0; font-weight: 600; color: #78350f; }
.sa-drive-suggest ul { margin: 0; padding-left: 18px; }
.sa-drive-suggest li { margin: 3px 0; }

/* Confirm actions */
.sa-drive-confirm-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}
.sa-drive-create-btn {
    font-size: 13px !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    background: #2563eb !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.15s;
}
.sa-drive-create-btn:hover { background: #1d4ed8 !important; }

/* ========================================
   DOSSIERS SYNDICAUX — Chat cards
   ======================================== */
.sa-dos-card-chat, .sa-dos-list-chat, .sa-dos-detail-chat {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin: 8px 0;
    font-size: 14px;
}
.sa-dos-card-header, .sa-dos-list-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.sa-dos-card-num, .sa-dos-list-num {
    font-weight: 700;
    color: #009ee9;
    font-size: 13px;
}
.sa-dos-card-title, .sa-dos-list-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
    margin-bottom: 6px;
}
.sa-dos-card-agent, .sa-dos-card-cat, .sa-dos-list-agent {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 3px;
}
.sa-dos-card-actions, .sa-dos-list-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}
.sa-dos-card-btn {
    display: inline-block;
    background: #009ee9;
    color: white !important;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}
.sa-dos-card-btn:hover { background: #0082c8; }

/* List in chat */
.sa-dos-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    border-radius: 8px;
}
.sa-dos-list-item:hover { background: #f1f5f9; }
.sa-dos-list-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sa-dos-list-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Detail in chat */
.sa-dos-detail-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: #64748b;
    font-size: 13px;
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 8px;
}
.sa-dos-detail-timeline {
    margin-top: 12px;
    padding: 10px;
    background: white;
    border-radius: 8px;
}
.sa-dos-timeline-item {
    display: flex;
    gap: 10px;
    padding: 4px 0;
    font-size: 13px;
    color: #475569;
}
.sa-dos-timeline-date {
    color: #009ee9;
    font-weight: 600;
    min-width: 40px;
}

/* ========================================
   AGENT KNOWLEDGE — Onglet Connaissances
   Prefixe .ak-*
   ======================================== */

/* Onglets */
.ak-tabs {
    display: flex;
    gap: 4px;
    margin: 0 auto 24px;
    max-width: 720px;
    background: rgba(0,0,0,0.04);
    border-radius: 12px;
    padding: 4px;
}
.ak-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.ak-tab:hover { color: #1e293b; background: rgba(255,255,255,0.5); }
.ak-tab.active {
    background: #fff;
    color: var(--ak-accent, #0b72f7);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    font-weight: 600;
}
.ak-tab svg, .ak-tab i { width: 16px; height: 16px; }

/* Panels */
.ak-panel { animation: akFadeIn 0.2s ease; }
@keyframes akFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Loading */
.ak-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 48px 0;
    color: #64748b;
    font-size: 14px;
}
.ak-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: #0b72f7;
    border-radius: 50%;
    animation: akSpin 0.6s linear infinite;
}
@keyframes akSpin { to { transform: rotate(360deg); } }

/* Sections */
.ak-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
.ak-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 14px;
}
.ak-section h3 i, .ak-section h3 svg { width: 18px; height: 18px; color: #64748b; }
.ak-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Prompt systeme */
.ak-prompt-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #94a3b8;
}
.ak-prompt-meta span { white-space: nowrap; }
.ak-textarea-mono {
    width: 100%;
    min-height: 200px;
    max-height: 500px;
    padding: 12px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    line-height: 1.6;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #1e293b;
    resize: vertical;
    box-sizing: border-box;
    tab-size: 4;
}
.ak-textarea-mono:focus {
    outline: none;
    border-color: var(--ak-accent, #0b72f7);
    box-shadow: 0 0 0 3px rgba(11, 114, 247, 0.1);
}
.ak-prompt-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}
.ak-char-count { font-size: 12px; color: #94a3b8; }
.ak-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    background: var(--ak-accent, #0b72f7);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.ak-btn-primary:hover:not(:disabled) { filter: brightness(1.1); }
.ak-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.ak-btn-primary i, .ak-btn-primary svg { width: 14px; height: 14px; }

/* Handler */
.ak-handler-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 10px;
}
.ak-handler-badge i, .ak-handler-badge svg { width: 16px; height: 16px; }
.ak-handler-file {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    font-family: monospace;
    margin-bottom: 12px;
}
.ak-actions-list { margin-top: 8px; }
.ak-actions-list strong { font-size: 13px; color: #475569; display: block; margin-bottom: 8px; }
.ak-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ak-chip {
    padding: 3px 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    color: #475569;
    font-family: monospace;
}
.ak-empty-state {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px;
    color: #94a3b8;
    font-size: 13px;
    background: #f8fafc;
    border-radius: 8px;
}
.ak-empty-state i, .ak-empty-state svg { width: 16px; height: 16px; }

/* Tables BDD */
.ak-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.ak-table th {
    text-align: left;
    padding: 8px 10px;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    color: #64748b;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ak-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}
.ak-table code {
    font-size: 12px;
    padding: 2px 6px;
    background: #f1f5f9;
    border-radius: 4px;
    color: #0369a1;
}
.ak-table .ak-num { text-align: right; font-variant-numeric: tabular-nums; }
.ak-table tfoot td { font-size: 12px; color: #64748b; border-top: 2px solid #e2e8f0; background: #f8fafc; }

/* Upload zone */
.ak-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 16px;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    background: #fafbfc;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
    text-align: center;
}
.ak-upload-zone:hover, .ak-upload-zone.ak-dragover {
    border-color: var(--ak-accent, #0b72f7);
    background: rgba(11, 114, 247, 0.03);
    color: #64748b;
}
.ak-upload-zone i, .ak-upload-zone svg { width: 32px; height: 32px; color: #94a3b8; }
.ak-upload-zone p { margin: 0; font-size: 14px; color: #475569; }
.ak-upload-link { color: var(--ak-accent, #0b72f7); cursor: pointer; text-decoration: underline; font-weight: 500; }
.ak-upload-hint { font-size: 12px; color: #94a3b8; }

/* Upload progress */
.ak-upload-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 16px;
}
.ak-progress-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}
.ak-progress-fill {
    height: 100%;
    background: var(--ak-accent, #0b72f7);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0;
}
#ak-upload-status { font-size: 13px; color: #475569; white-space: nowrap; }

/* Documents RAG */
.ak-docs-group { margin-bottom: 12px; }
.ak-docs-group-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
}
.ak-docs-group-label i, .ak-docs-group-label svg { width: 14px; height: 14px; }
.ak-doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: background 0.15s;
}
.ak-doc-item:hover { background: #f8fafc; }
.ak-doc-item.ak-doc-inactive { opacity: 0.5; }
.ak-doc-info { flex: 1; min-width: 0; }
.ak-doc-title {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ak-doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    font-size: 12px;
    color: #94a3b8;
}
.ak-doc-meta span { white-space: nowrap; }
.ak-badge-inactive {
    padding: 1px 6px;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 4px;
    font-weight: 500;
}
.ak-doc-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s;
    flex-shrink: 0;
}
.ak-doc-delete:hover { background: #fef2f2; color: #ef4444; }
.ak-doc-delete i, .ak-doc-delete svg { width: 16px; height: 16px; }

/* Outils */
.ak-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.ak-tool-card {
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.ak-tool-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}
.ak-tool-name i, .ak-tool-name svg { width: 14px; height: 14px; color: #64748b; }
.ak-tool-desc { font-size: 12px; color: #64748b; margin-bottom: 4px; }
.ak-tool-source { font-size: 11px; color: #94a3b8; font-family: monospace; }

/* Responsive */
@media (max-width: 768px) {
    .ak-tabs { max-width: 100%; }
    .ak-tab { padding: 8px 12px; font-size: 13px; }
    .ak-section { padding: 14px; }
    .ak-textarea-mono { min-height: 150px; font-size: 11px; }
    .ak-section-header { flex-direction: column; }
    .ak-prompt-meta { flex-wrap: wrap; gap: 8px; }
    .ak-table { font-size: 12px; }
    .ak-table th, .ak-table td { padding: 6px 8px; }
    .ak-tools-grid { grid-template-columns: 1fr; }
    .ak-upload-zone { padding: 20px 12px; }
    .ak-prompt-actions { flex-direction: column; gap: 8px; align-items: stretch; }
    .ak-btn-primary { justify-content: center; }
}

/* ========================================
   SSE STREAMING STYLES (mars 2026)
   ======================================== */

.sa-stream-content {
    min-height: 1.5em;
    line-height: 1.6;
}

.sa-stream-content code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.sa-tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f4ff;
    border: 1px solid #d0d8f0;
    border-radius: 20px;
    padding: 4px 12px;
    margin: 8px 0 4px;
    font-size: 0.85em;
    color: #4a5580;
}

.sa-tool-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #4a5580;
    border-right-color: transparent;
    border-radius: 50%;
    animation: sa-spin 0.8s linear infinite;
}

.sa-tool-done {
    color: #22c55e;
    font-weight: bold;
    font-size: 1em;
}

@keyframes sa-spin {
    to { transform: rotate(360deg); }
}
