
/* Phase 1 — session badges + stop button */
.session-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.session-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-tertiary, var(--bg-secondary));
    color: var(--text-secondary);
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.session-badge.on {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
    background: var(--accent-soft);
    color: var(--text-primary);
}
.session-badge.off { opacity: 0.65; }
#badge-model { max-width: 160px; }

.btn-stop {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: #dc2626;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s, transform .1s;
}
.btn-stop:hover { background: #b91c1c; transform: scale(1.04); }
.btn-stop svg { display: block; }

.chat-footer-note {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    padding: 4px 12px 8px;
    opacity: 0.85;
}

/* Admin health panel */
.health-grid {
    display: grid;
    gap: 10px;
    font-size: 13px;
}
.health-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    background: var(--bg-tertiary, var(--bg-secondary));
}
.health-card h4 { margin: 0 0 8px; font-size: 13px; }
.health-ok { color: #22c55e; }
.health-bad { color: #ef4444; }
.health-mono { font-family: ui-monospace, monospace; font-size: 12px; }

.tool-badge-failover,
.session-badge.failover {
    background: rgba(234, 179, 8, 0.18);
    color: #eab308;
    border-color: rgba(234, 179, 8, 0.35);
}
#badge-model {
    transition: background .2s, color .2s;
}

.tool-badge-calc { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.tool-badge-wiki { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }
.tool-badge-tr { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; }
.tool-badge-crypto { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.tool-badge-gh { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.tools-toggle-list { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; }
.tools-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 8px 10px; border: 1px solid var(--border, #333);
  border-radius: 10px; font-size: 13px;
}
