/* ═══════════════════════════════════════════════════════════════
   BUSINESS ASSISTANT — Interactive Chat Interface (Pro)
   Replaces static Business Pulse with conversational AI advisor.
   3 States: invite (compact) | active (full chat) | collapsed (bar)
   Accent: amber #f59e0b / #fbbf24  (distinct from personal lime)
   ═══════════════════════════════════════════════════════════════ */

/* ── BASE CARD ── */
.biz-assistant-card {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    max-height: 520px;
    overflow: hidden;
    background: rgba(12, 40, 40, 0.55);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(245, 158, 11, 0.10);
    border-radius: 18px;
    padding: 1.2rem 1.4rem 1rem;
    position: relative;
    transition: min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s ease,
                border-color 0.3s ease;
}

/* Top accent gradient bar */
.biz-assistant-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
    background-size: 200% 100%;
    animation: bizAssistantGradient 4s ease infinite;
    border-radius: 18px 18px 0 0;
}

@keyframes bizAssistantGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ═══════════════════════════════════════════ */
/* STATE: INVITE — compact bar, no session    */
/* ═══════════════════════════════════════════ */
.biz-assistant-card.biz-assistant-invite {
    min-height: auto;
    max-height: 94px;
    padding: 1rem 1.4rem;
    cursor: default;
}
.biz-assistant-card.biz-assistant-invite .biz-assistant-chat,
.biz-assistant-card.biz-assistant-invite .biz-assistant-input-area,
.biz-assistant-card.biz-assistant-invite .biz-assistant-status-bar {
    display: none;
}
.biz-assistant-card.biz-assistant-invite .biz-assistant-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.biz-assistant-invite .biz-assistant-invite-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: auto;
}
.biz-assistant-invite-cta {
    padding: 0.4rem 1.1rem;
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 20px;
    color: #fbbf24;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    white-space: nowrap;
}
.biz-assistant-invite-cta:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.15);
    transform: translateY(-1px);
}
.biz-assistant-invite-hint {
    font-size: 0.78rem;
    color: #6b7588;
}

/* ═══════════════════════════════════════════ */
/* STATE: ACTIVE — full chat mode             */
/* ═══════════════════════════════════════════ */
.biz-assistant-card.biz-assistant-active {
    min-height: 340px;
    max-height: 520px;
}
.biz-assistant-card.biz-assistant-active .biz-assistant-invite-row {
    display: none;
}
.biz-assistant-card.biz-assistant-active .biz-assistant-expand-hint {
    display: none;
}

/* ═══════════════════════════════════════════ */
/* STATE: COLLAPSED — thin status strip       */
/* ═══════════════════════════════════════════ */
.biz-assistant-card.biz-assistant-collapsed {
    min-height: auto;
    max-height: 58px;
    padding: 0.7rem 1.4rem;
    cursor: pointer;
}
.biz-assistant-card.biz-assistant-collapsed .biz-assistant-chat,
.biz-assistant-card.biz-assistant-collapsed .biz-assistant-input-area,
.biz-assistant-card.biz-assistant-collapsed .biz-assistant-options,
.biz-assistant-card.biz-assistant-collapsed .biz-assistant-settings-btn {
    display: none;
}
.biz-assistant-card.biz-assistant-collapsed .biz-assistant-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.biz-assistant-card.biz-assistant-collapsed .biz-assistant-status-bar {
    display: flex;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
.biz-assistant-collapsed .biz-assistant-expand-hint {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    font-size: 0.72rem;
    color: #555d6e;
    gap: 0.3rem;
    transition: color 0.2s;
}
.biz-assistant-card.biz-assistant-collapsed:hover .biz-assistant-expand-hint {
    color: #f59e0b;
}
.biz-assistant-card.biz-assistant-collapsed:hover {
    border-color: rgba(245, 158, 11, 0.25);
}

/* Hide invite row and expand hint by default */
.biz-assistant-invite-row { display: none; }
.biz-assistant-expand-hint { display: none; }

/* ═══════════════════════════════════════════ */
/* HEADER                                      */
/* ═══════════════════════════════════════════ */
.biz-assistant-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(245, 158, 11, 0.10);
}

.biz-assistant-avatar {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(251, 191, 36, 0.06));
    border-radius: 50%;
    border: 1px solid rgba(245, 158, 11, 0.18);
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.08);
    color: #fbbf24;
}
.biz-assistant-avatar svg {
    width: 22px;
    height: 22px;
}

.biz-assistant-title {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.biz-assistant-name {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.biz-assistant-status-badge {
    font-size: 0.7rem;
    color: #6b7588;
}

.biz-assistant-settings-btn {
    background: rgba(15, 47, 47, 0.5);
    border: 1px solid rgba(245, 158, 11, 0.10);
    border-radius: 10px;
    color: #8892a6;
    font-size: 0.95rem;
    padding: 0.35rem 0.55rem;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.biz-assistant-settings-btn svg { width: 16px; height: 16px; }
.biz-assistant-settings-btn:hover {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.25);
}

/* Session type selector in header (quick pills) */
.biz-assistant-type-pills {
    display: flex;
    gap: 0.3rem;
    margin-left: auto;
    margin-right: 0.4rem;
    flex-wrap: wrap;
}
.biz-type-pill {
    padding: 0.2rem 0.55rem;
    background: rgba(15, 47, 47, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: #8892a6;
    font-size: 0.68rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.biz-type-pill:hover {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}
.biz-type-pill.active {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

/* ═══════════════════════════════════════════ */
/* CHAT AREA                                   */
/* ═══════════════════════════════════════════ */
.biz-assistant-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 158, 11, 0.15) transparent;
}
.biz-assistant-chat::-webkit-scrollbar {
    width: 4px;
}
.biz-assistant-chat::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.15);
    border-radius: 4px;
}

.biz-assistant-messages {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ─── Message Bubbles ─── */
.biz-assistant-bubble {
    padding: 0.7rem 1rem;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 92%;
    animation: bizBubbleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    word-wrap: break-word;
}

@keyframes bizBubbleIn {
    0% { opacity: 0; transform: translateY(8px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.biz-assistant-bubble.bot {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-bottom-left-radius: 4px;
    color: #e0e6ef;
    align-self: flex-start;
}

.biz-assistant-bubble.user {
    background: rgba(127, 255, 0, 0.06);
    border: 1px solid rgba(127, 255, 0, 0.10);
    border-bottom-right-radius: 4px;
    color: #c8d0de;
    align-self: flex-end;
    text-align: right;
}

.biz-assistant-bubble.summary {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    color: #fde68a;
    align-self: flex-start;
    font-weight: 500;
    font-size: 0.84rem;
}

/* ─── Typing Indicator ─── */
.biz-assistant-typing {
    display: flex;
    gap: 4px;
    padding: 0.5rem 0.8rem;
    align-self: flex-start;
}
.biz-assistant-typing .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.55);
    animation: bizTypingDot 1.2s infinite ease-in-out;
}
.biz-assistant-typing .dot:nth-child(2) { animation-delay: 0.2s; }
.biz-assistant-typing .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bizTypingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* ─── Option Buttons ─── */
.biz-assistant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.biz-assistant-option-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.85rem;
    background: rgba(15, 47, 47, 0.5);
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 20px;
    color: #c8d0de;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-family: inherit;
}
.biz-assistant-option-btn:hover {
    background: rgba(245, 158, 11, 0.10);
    border-color: rgba(245, 158, 11, 0.30);
    color: #fbbf24;
    transform: translateY(-1px);
}
.biz-assistant-option-btn:active {
    transform: translateY(0);
}

/* ─── Free Text Input ─── */
.biz-assistant-input-area {
    margin-top: 0.4rem;
}

.biz-assistant-input-row {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.biz-assistant-input-row input {
    flex: 1;
    padding: 0.55rem 1rem;
    background: rgba(15, 47, 47, 0.5);
    border: 1px solid rgba(245, 158, 11, 0.10);
    border-radius: 20px;
    color: #c8d0de;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.25s;
    font-family: inherit;
}
.biz-assistant-input-row input:focus {
    border-color: rgba(245, 158, 11, 0.30);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.08);
}
.biz-assistant-input-row input::placeholder {
    color: #555d6e;
}

.biz-assistant-send-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 50%;
    color: #f59e0b;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s;
    flex-shrink: 0;
}
.biz-assistant-send-btn svg { width: 16px; height: 16px; }
.biz-assistant-send-btn:hover {
    background: rgba(245, 158, 11, 0.18);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.18);
    transform: scale(1.05);
}

/* ─── Status Bar (bottom) ─── */
.biz-assistant-status-bar {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding-top: 0.5rem;
    margin-top: 0.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.72rem;
    color: #8892a6;
    flex-wrap: wrap;
}
.biz-assistant-status-bar .biz-status-item {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}
.biz-assistant-status-bar .biz-status-sep {
    color: rgba(255, 255, 255, 0.12);
    margin: 0 0.15rem;
}

/* ─── Chat Date Separators ─── */
.biz-chat-date-separator {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.6rem 0 0.3rem;
    font-size: 0.7rem;
    color: #555d6e;
}
.biz-chat-date-separator::before,
.biz-chat-date-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}
.biz-chat-date-separator span {
    white-space: nowrap;
}

/* ═══════════════════════════════════════════ */
/* DATA CARDS — Business Intelligence Widgets  */
/* ═══════════════════════════════════════════ */
.biz-data-cards {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0.3rem 0;
    max-width: 92%;
    align-self: flex-start;
    animation: bizBubbleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.biz-data-card {
    background: rgba(15, 47, 47, 0.45);
    border: 1px solid rgba(245, 158, 11, 0.10);
    border-radius: 14px;
    padding: 0.8rem 1rem;
    overflow: hidden;
}

.biz-data-card-title {
    font-size: 0.74rem;
    font-weight: 600;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* KPI Summary Grid */
.biz-dc-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
}
.biz-dc-kpi-item {
    text-align: center;
    padding: 0.5rem 0.3rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.biz-dc-kpi-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.biz-dc-kpi-label {
    font-size: 0.68rem;
    color: #8892a6;
    margin-top: 2px;
}
.biz-dc-kpi-trend {
    font-size: 0.65rem;
    margin-top: 2px;
}
.biz-dc-kpi-trend.up { color: #4caf50; }
.biz-dc-kpi-trend.down { color: #ff6b6b; }
.biz-dc-kpi-trend.flat { color: #8892a6; }

/* Pipeline Table */
.biz-dc-pipeline-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}
.biz-dc-pipeline-table th {
    text-align: left;
    padding: 0.3rem 0.5rem;
    color: #8892a6;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.7rem;
}
.biz-dc-pipeline-table td {
    padding: 0.35rem 0.5rem;
    color: #c8d0de;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.biz-dc-pipeline-table tr:last-child td {
    border-bottom: none;
}
.biz-dc-pipeline-status {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 600;
}
.biz-dc-pipeline-status.ok { background: rgba(76, 175, 80, 0.15); color: #4caf50; }
.biz-dc-pipeline-status.risk { background: rgba(255, 107, 107, 0.15); color: #ff6b6b; }
.biz-dc-pipeline-status.warning { background: rgba(255, 165, 0, 0.15); color: #ffa500; }

/* Revenue Chart (simplified bar) */
.biz-dc-revenue-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
    padding: 0.3rem 0;
}
.biz-dc-revenue-bar {
    flex: 1;
    background: rgba(245, 158, 11, 0.2);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: background 0.3s;
    position: relative;
}
.biz-dc-revenue-bar:hover {
    background: rgba(245, 158, 11, 0.4);
}
.biz-dc-revenue-bar.current {
    background: rgba(245, 158, 11, 0.5);
}

/* Audience Breakdown */
.biz-dc-audience-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.biz-dc-audience-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
}
.biz-dc-audience-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}
.biz-dc-audience-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 3px;
    transition: width 0.6s ease;
}
.biz-dc-audience-label {
    color: #c8d0de;
    min-width: 80px;
}
.biz-dc-audience-pct {
    color: #8892a6;
    font-size: 0.72rem;
    min-width: 35px;
    text-align: right;
}

/* Alert Card */
.biz-dc-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
    background: rgba(255, 107, 107, 0.06);
    border: 1px solid rgba(255, 107, 107, 0.12);
    border-radius: 10px;
}
.biz-dc-alert-icon {
    font-size: 1rem;
    flex-shrink: 0;
}
.biz-dc-alert-text {
    font-size: 0.8rem;
    color: #e0e6ef;
    line-height: 1.4;
}
.biz-dc-alert.warning {
    background: rgba(255, 165, 0, 0.06);
    border-color: rgba(255, 165, 0, 0.12);
}
.biz-dc-alert.info {
    background: rgba(0, 217, 255, 0.06);
    border-color: rgba(0, 217, 255, 0.10);
}
.biz-dc-alert.success {
    background: rgba(76, 175, 80, 0.06);
    border-color: rgba(76, 175, 80, 0.10);
}

/* ─── Goal Progress Card ─── */
.biz-dc-goals {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.biz-dc-goals-summary {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.3rem;
    font-size: 0.72rem;
}
.biz-dc-goals-stat {
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
}
.biz-dc-goals-stat.ok { background: rgba(127, 255, 0, 0.1); color: #7fff00; }
.biz-dc-goals-stat.risk { background: rgba(255, 107, 107, 0.1); color: #ff6b6b; }
.biz-dc-goals-stat.total { background: rgba(255, 255, 255, 0.05); color: #8892a6; }
.biz-dc-goal-item { margin-bottom: 0.4rem; }
.biz-dc-goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
}
.biz-dc-goal-name { font-size: 0.78rem; color: #c8d0de; }
.biz-dc-goal-pct { font-size: 0.75rem; font-weight: 600; }
.biz-dc-goal-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}
.biz-dc-goal-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* ─── Action List Card ─── */
.biz-dc-action-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.biz-dc-action-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 3px solid transparent;
}
.biz-dc-action-item.priority-high { border-left-color: #ff6b6b; }
.biz-dc-action-item.priority-medium { border-left-color: #ffa500; }
.biz-dc-action-item.priority-low { border-left-color: #7fff00; }
.biz-dc-action-priority { flex-shrink: 0; font-size: 0.75rem; }
.biz-dc-action-content { flex: 1; }
.biz-dc-action-title { font-size: 0.8rem; color: #e0e6ef; line-height: 1.4; }
.biz-dc-action-cat {
    display: inline-block;
    font-size: 0.68rem;
    color: #6b7588;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    margin-top: 0.2rem;
    margin-right: 0.3rem;
}
.biz-dc-action-due {
    display: inline-block;
    font-size: 0.68rem;
    color: #f59e0b;
}

/* ─── Health Score Card ─── */
.biz-dc-health {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.biz-dc-health-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.biz-dc-health-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(var(--color) calc(var(--score) * 1%), rgba(255,255,255,0.06) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.biz-dc-health-ring::before {
    content: '';
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a1f2e;
}
.biz-dc-health-value {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}
.biz-dc-health-mood {
    font-size: 0.82rem;
    color: #c8d0de;
    text-transform: capitalize;
}
.biz-dc-health-dims {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.biz-dc-health-dim {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.biz-dc-dim-label {
    font-size: 0.72rem;
    color: #8892a6;
    min-width: 60px;
}
.biz-dc-dim-bar {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}
.biz-dc-dim-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}
.biz-dc-dim-value {
    font-size: 0.7rem;
    color: #6b7588;
    min-width: 22px;
    text-align: right;
}

/* ─── Comparison Card ─── */
.biz-dc-comparison {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.biz-dc-comp-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #6b7588;
    font-weight: 600;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.biz-dc-comp-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.78rem;
}
.biz-dc-comp-label { flex: 1; color: #8892a6; }
.biz-dc-comp-prev { color: #6b7588; min-width: 40px; text-align: right; }
.biz-dc-comp-delta { min-width: 50px; text-align: center; font-weight: 600; font-size: 0.72rem; }
.biz-dc-comp-delta.up { color: #7fff00; }
.biz-dc-comp-delta.down { color: #ff6b6b; }
.biz-dc-comp-delta.flat { color: #6b7588; }
.biz-dc-comp-curr { color: #e0e6ef; min-width: 40px; text-align: right; font-weight: 600; }

/* ─── Event Detail Card ─── */
.biz-dc-event-detail {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.biz-dc-evdet-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e0e6ef;
}
.biz-dc-evdet-meta {
    font-size: 0.78rem;
    color: #8892a6;
}
.biz-dc-evdet-fill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: #8892a6;
    margin-top: 0.2rem;
}
.biz-dc-evdet-fill .biz-dc-goal-bar { flex: 1; }
.biz-dc-evdet-risks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.3rem;
}
.biz-dc-evdet-risk {
    font-size: 0.72rem;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
}

/* ─── Memory Indicator ─── */
.biz-assistant-memory-indicator {
    font-size: 0.7rem;
    color: #6b7588;
    padding: 0.15rem 0.5rem;
    align-self: flex-start;
    animation: bizBubbleIn 0.3s ease;
}

/* ─── Feedback Row ─── */
.biz-assistant-feedback-row {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.3rem;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.biz-assistant-feedback-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7588;
}
.biz-assistant-feedback-btn:hover {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
}
.biz-assistant-feedback-btn.voted {
    opacity: 0.5;
    pointer-events: none;
}

/* ═══════════════════════════════════════════ */
/* ENHANCED POST-SESSION FEEDBACK              */
/* ═══════════════════════════════════════════ */
.biz-feedback-panel {
    background: rgba(245, 158, 11, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 14px;
    padding: 1rem;
    margin: 0.5rem 0;
    text-align: center;
    animation: bizBubbleIn 0.3s ease;
}
.biz-feedback-header {
    font-size: 0.88rem;
    color: #e0e6ef;
    font-weight: 600;
    margin-bottom: 0.6rem;
}
.biz-feedback-stars {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
}
.biz-feedback-star {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0.1rem 0.2rem;
}
.biz-feedback-star:hover,
.biz-feedback-star.active {
    color: #f59e0b;
    transform: scale(1.15);
}
.biz-feedback-star:hover ~ .biz-feedback-star {
    color: rgba(255, 255, 255, 0.15) !important;
    transform: scale(1) !important;
}
/* Reverse hover: all stars up to hovered one light up */
.biz-feedback-stars:hover .biz-feedback-star {
    color: #f59e0b;
}
.biz-feedback-stars:hover .biz-feedback-star:hover ~ .biz-feedback-star {
    color: rgba(255, 255, 255, 0.15);
}
.biz-feedback-text {
    width: 100%;
    padding: 0.5rem 0.7rem;
    background: rgba(15, 47, 47, 0.4);
    border: 1px solid rgba(245, 158, 11, 0.1);
    border-radius: 10px;
    color: #c8d0de;
    font-size: 0.82rem;
    font-family: inherit;
    resize: vertical;
    min-height: 40px;
    outline: none;
    margin-bottom: 0.5rem;
    transition: border-color 0.25s;
}
.biz-feedback-text:focus {
    border-color: rgba(245, 158, 11, 0.3);
}
.biz-feedback-text::placeholder {
    color: #6b7588;
}
.biz-feedback-submit {
    display: inline-block;
    padding: 0.45rem 1rem;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 8px;
    color: #fbbf24;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s;
    margin-right: 0.4rem;
}
.biz-feedback-submit:hover {
    background: rgba(245, 158, 11, 0.25);
}
.biz-feedback-skip {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #6b7588;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s;
}
.biz-feedback-skip:hover {
    color: #8892a6;
    border-color: rgba(255, 255, 255, 0.12);
}
.biz-feedback-thanks {
    color: #fbbf24;
    font-size: 0.88rem;
    padding: 0.5rem;
}

@keyframes bizShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* ─── Error/Retry State ─── */
.biz-assistant-error {
    text-align: center;
    padding: 1.5rem 1rem;
    color: #8892a6;
    font-size: 0.85rem;
}
.biz-assistant-error p {
    margin: 0 0 0.8rem;
}

/* ═══════════════════════════════════════════ */
/* SETTINGS MODAL                              */
/* ═══════════════════════════════════════════ */
.biz-assistant-settings-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bizSettingsFadeIn 0.2s ease;
}

@keyframes bizSettingsFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.biz-assistant-settings-panel {
    background: #1a1f2e;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 16px;
    padding: 1.5rem;
    width: 90%;
    max-width: 420px;
    color: #e0e6ef;
    max-height: 85vh;
    overflow-y: auto;
}

.biz-assistant-settings-panel h3 {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.biz-settings-group {
    margin-bottom: 1rem;
}
.biz-settings-group label {
    display: block;
    font-size: 0.78rem;
    color: #8892a6;
    margin-bottom: 0.4rem;
    font-weight: 500;
}
.biz-settings-group select,
.biz-settings-group input[type="text"] {
    width: 100%;
    padding: 0.5rem 0.8rem;
    background: rgba(15, 47, 47, 0.5);
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 10px;
    color: #c8d0de;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s;
}
.biz-settings-group select:focus,
.biz-settings-group input[type="text"]:focus {
    border-color: rgba(245, 158, 11, 0.3);
}
.biz-settings-group select option {
    background: #1a1f2e;
    color: #c8d0de;
}

/* Auto-brief checkbox */
.biz-setting-checkbox {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    color: #c8d0de !important;
    font-size: 0.85rem !important;
}
.biz-setting-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #f59e0b;
    cursor: pointer;
    flex-shrink: 0;
}
.biz-setting-hint {
    display: block;
    font-size: 0.72rem;
    color: #6b7588;
    margin-top: 0.3rem;
    line-height: 1.4;
}

.biz-settings-row {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
    margin-top: 1.2rem;
}

.biz-settings-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    border: none;
}
.biz-settings-btn.cancel {
    background: rgba(255, 255, 255, 0.06);
    color: #8892a6;
}
.biz-settings-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #c8d0de;
}
.biz-settings-btn.save {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.biz-settings-btn.save:hover {
    background: rgba(245, 158, 11, 0.25);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

/* ═══════════════════════════════════════════ */
/* SESSION TYPE PICKER                         */
/* ═══════════════════════════════════════════ */
.biz-session-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
    margin-top: 0.8rem;
}
.biz-session-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem 0.6rem;
    background: rgba(15, 47, 47, 0.4);
    border: 1px solid rgba(245, 158, 11, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
    text-align: center;
    font-family: inherit;
    color: #c8d0de;
}
.biz-session-type-card:hover {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
    transform: translateY(-1px);
}
.biz-stype-icon {
    font-size: 1.5rem;
}
.biz-stype-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e0e6ef;
}
.biz-stype-desc {
    font-size: 0.68rem;
    color: #6b7588;
    line-height: 1.3;
}

/* "More..." quick-start button */
.biz-assistant-option-btn.biz-more-btn {
    background: rgba(255, 255, 255, 0.03);
    border-style: dashed;
    color: #6b7588;
}
.biz-assistant-option-btn.biz-more-btn:hover {
    background: rgba(245, 158, 11, 0.06);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.2);
}

/* ═══════════════════════════════════════════ */
/* DASHBOARD MINI-WIDGET                       */
/* ═══════════════════════════════════════════ */
.biz-dash-assistant-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
}
.biz-dash-assistant-info {
    flex: 1;
}
.biz-dash-assistant-desc {
    font-size: 0.82rem;
    color: #8892a6;
    margin: 0 0 0.4rem;
    line-height: 1.5;
}
.biz-dash-assistant-status {
    font-size: 0.72rem;
    color: #6b7588;
}
.biz-dash-assistant-actions {
    flex-shrink: 0;
}
.biz-dash-assistant-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px;
    color: #fbbf24;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    white-space: nowrap;
}
.biz-dash-assistant-cta:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.1);
    transform: translateY(-1px);
}
.biz-dash-assistant-cta.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    animation: bizCTAPulse 2s ease infinite;
}
@keyframes bizCTAPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(245, 158, 11, 0); }
    50% { box-shadow: 0 0 12px rgba(245, 158, 11, 0.15); }
}

/* ═══════════════════════════════════════════ */
/* RESPONSIVE                                  */
/* ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .biz-assistant-card.biz-assistant-active {
        max-height: 70vh;
    }
    .biz-assistant-type-pills {
        display: none;
    }
    .biz-dc-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .biz-assistant-settings-panel {
        width: 95%;
        padding: 1.2rem;
    }
    /* Mobile invite-state overflow fix */
    .biz-assistant-card.biz-assistant-invite {
        max-height: none;
        min-height: auto;
    }
    .biz-assistant-invite .biz-assistant-invite-row {
        flex-wrap: nowrap;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    .biz-assistant-invite .biz-assistant-invite-hint {
        display: none;
    }
    .biz-assistant-invite-cta {
        font-size: 0.78rem;
        padding: 0.35rem 0.85rem;
        white-space: nowrap;
    }
}

/* ═══════════════════════════════════════════ */
/* MEMORY MANAGEMENT PANEL                     */
/* ═══════════════════════════════════════════ */
.biz-memories-panel {
    max-width: 480px;
}
.biz-memories-desc {
    font-size: 0.82rem;
    color: #8892a6;
    margin: 0 0 1rem;
    line-height: 1.5;
}
.biz-memories-list {
    max-height: 360px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.biz-memories-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #6b7588;
    font-size: 0.85rem;
}
.biz-memory-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    transition: border-color 0.2s;
}
.biz-memory-item:hover {
    border-color: rgba(245, 158, 11, 0.15);
}
.biz-memory-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
}
.biz-memory-icon {
    font-size: 0.85rem;
}
.biz-memory-type {
    font-size: 0.72rem;
    color: #6b7588;
    text-transform: capitalize;
    flex: 1;
}
.biz-memory-conf {
    font-size: 0.68rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-weight: 600;
}
.biz-memory-conf.high { background: rgba(127, 255, 0, 0.1); color: #7fff00; }
.biz-memory-conf.medium { background: rgba(255, 165, 0, 0.1); color: #ffa500; }
.biz-memory-conf.low { background: rgba(255, 255, 255, 0.04); color: #6b7588; }
.biz-memory-delete {
    background: none;
    border: 1px solid rgba(255, 107, 107, 0.15);
    border-radius: 6px;
    color: #6b7588;
    font-size: 0.7rem;
    padding: 0.15rem 0.35rem;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}
.biz-memory-delete:hover {
    background: rgba(255, 107, 107, 0.08);
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
}
.biz-memory-value {
    font-size: 0.82rem;
    color: #c8d0de;
    line-height: 1.45;
}

/* ═══════════════════════════════════════════ */
/* NEW SESSION BUTTON                          */
/* ═══════════════════════════════════════════ */
.biz-new-session-btn {
    background: rgba(245, 158, 11, 0.08) !important;
    border-color: rgba(245, 158, 11, 0.2) !important;
    color: #fbbf24 !important;
    font-weight: 600;
}
.biz-new-session-btn:hover {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
}

/* ═══════════════════════════════════════════ */
/* ACCESSIBILITY — focus-visible & motion      */
/* ═══════════════════════════════════════════ */
.biz-assistant-option-btn:focus-visible,
.biz-assistant-feedback-btn:focus-visible,
.biz-assistant-settings-btn:focus-visible,
.biz-feedback-star:focus-visible,
.biz-settings-btn:focus-visible,
.biz-memory-delete:focus-visible,
.biz-session-type-card:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}
#biz-assistant-text-input:focus-visible {
    outline: 2px solid rgba(245, 158, 11, 0.5);
    outline-offset: -1px;
}
@media (prefers-reduced-motion: reduce) {
    .biz-assistant-bubble,
    .biz-assistant-typing .dot,
    .biz-assistant-memory-indicator,
    .biz-dc-goal-fill,
    .biz-dc-dim-fill,
    .biz-dash-assistant-cta,
    .biz-assistant-option-btn,
    .biz-feedback-star {
        animation: none !important;
        transition: none !important;
    }
}
