/* ==================== */
/* Coming Soon Overlay */
/* ==================== */
.coming-soon-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    transition: opacity 0.3s ease;
}

.coming-soon-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.coming-soon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.coming-soon-text {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    opacity: 0.7;
    user-select: none;
}

.coming-soon-ok-btn {
    padding: 10px 40px;
    border: none;
    background: var(--color-primary, #4f46e5);
    color: white;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.coming-soon-ok-btn:hover {
    background: var(--color-primary-hover, #4338ca);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

/* ==================== */
/* Agents Tab Styles (formerly Conference Room) */
/* ==================== */
.control-center-layout {
    height: 100%;
    overflow-y: auto;
    padding: 24px 40px;
}

.notifications-feed {
    max-width: 800px;
    margin: 0 auto;
}

.notification-card {
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.notification-card[data-status="acknowledged"] {
    opacity: 0.45;
    background: #f8f8f8;
}

.notification-card[data-status="approved"] {
    border-left: 4px solid #22c55e;
}

.notification-card[data-status="snoozed"] {
    opacity: 0.5;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.notification-agent {
    display: flex;
    align-items: center;
}

.notification-avatar {
    width: 52px;
    height: 65px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 16px;
}

.notification-meta {
    display: flex;
    flex-direction: column;
}

.notification-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

.notification-time {
    font-size: 12px;
    color: #888;
}

.acknowledge-btn {
    padding: 6px 12px;
    border: 1px solid #e5e5e5;
    background: white;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.acknowledge-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.acknowledge-btn.acknowledged {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
}

.notification-body {
    margin-bottom: 16px;
}

.notification-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.notification-body p {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.notification-video {
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    display: inline-block;
}

.notification-video video {
    display: block;
    width: auto;
    height: 250px;
    border-radius: 8px;
}

.notification-list {
    margin: 12px 0 12px 20px;
    font-size: 14px;
    color: #555;
}

.notification-list li {
    margin-bottom: 6px;
}

.suggested-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.steps-label {
    font-size: 13px;
    font-weight: 500;
    color: #4f46e5;
    font-style: italic;
}

.see-more-btn {
    border: none;
    background: transparent;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

.see-more-btn:hover {
    color: #555;
}

.steps-content {
    margin-top: 12px;
    padding: 12px 16px;
    background: #f8f8f8;
    border-radius: 8px;
}

.steps-content.hidden {
    display: none;
}

.steps-content ul {
    margin: 0 0 0 16px;
    font-size: 13px;
    color: #555;
}

.steps-content li {
    margin-bottom: 6px;
}

.notification-input {
    margin-bottom: 12px;
}

.notification-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.notification-action {
    padding: 8px 12px;
    border: none;
    background: transparent;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.notification-action:hover {
    background: #f0f0f0;
}

.notification-action.clicked {
    background: var(--color-primary);
    color: white;
}

.notification-action[data-action="approve"].clicked {
    background: #22c55e;
}

.notification-action[data-action="snooze"].clicked {
    background: #f59e0b;
}

.notification-action[data-action="escalate"].clicked {
    background: #ef4444;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.25),
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.toast.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .chatgpt-sidebar {
        width: 200px;
    }
    .agent-avatar {
        width: 40px;
        height: 50px;
    }
}

/* Mobile sidebar toggle button */
.mobile-sidebar-toggle {
    display: none;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1001;
    background: var(--color-bg, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    color: var(--color-text, #333);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

.mobile-sidebar-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .logo-container {
        display: none;
    }


    .main-tabs {
        transform: none;
    }

    /* Show hamburger buttons */
    .mobile-sidebar-toggle {
        display: flex;
    }

    /* Hide agents sidebar toggle (sidebar removed) */
    .mobile-agents-toggle {
        display: none;
    }

    /* Claude sidebar — slide-out drawer */
    .claude-sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        width: 260px !important;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: none;
    }

    .claude-sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    }

    .claude-front-main {
        padding-left: 0; /* Sidebar is a hidden drawer on mobile */
    }

    .chat-messages {
        padding: 16px;
        padding-top: 50px;
    }

    .tools-layout {
        padding: 16px;
    }

    .tools-flip-front {
        padding: 16px;
    }

    .tools-layout.tool-active .tool-panel:not(.hidden) {
        padding: 16px;
    }

    .control-center-layout {
        padding: 16px;
    }

    .notification-actions {
        flex-direction: column;
    }

    .notification-action {
        width: 100%;
        text-align: center;
    }
}

/* ==================== */
/* Agents Tab Styles   */
/* ==================== */
.summary-layout {
    display: flex;
    height: 100%;
}

/* Agent sidebar — hidden; immersive mode is now default for all companies */
.agent-sidebar {
    display: none;
}

/* Agent feed container — scrollable notification area */
.agent-feed-container {
    flex: 1;
    overflow-y: auto;
    min-width: 0;
    perspective: 1800px;
}

/* Feed toolbar — sits above the flipper, does not rotate */
.feed-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.feed-flip-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.feed-toolbar-label {
    font-size: 19px;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
}

/* Flipper — the rotating wrapper */
.feed-flipper {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.feed-flipper.flipped {
    transform: rotateY(180deg);
}

/* Front face — notification feed */
.feed-front {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Back face — agent chat grid */
.feed-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: rotateY(180deg);
    overflow-y: auto;
    pointer-events: none;
}

/* When flipped, enable back face events and disable front */
.feed-flipper.flipped .feed-back {
    pointer-events: auto;
}

.feed-flipper.flipped .feed-front {
    pointer-events: none;
}

/* Agent chat grid on the back side */
.agent-chat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 8px 0;
}

.agent-chat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 20px;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-secondary, #fafbfc) 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.agent-chat-card:hover {
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    border-color: var(--color-primary);
}

.agent-chat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.08);
    color: var(--color-primary);
}

.agent-chat-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

.agent-chat-prompt {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* ==================== */
/* "The Room" — AIP Immersive Agent Chat */
/* ==================== */

/* Immersive mode: no sidebar, full bleed */
.summary-layout.immersive .agent-sidebar {
    display: none;
}

.summary-layout.immersive .agent-feed-container {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.summary-layout.immersive .feed-toolbar {
    padding: 8px 0 0;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.summary-layout.immersive .feed-flipper {
    flex: 1;
    min-height: 0;
}

.summary-layout.immersive .feed-front {
    height: calc(100% - 16px);
    margin: 0 20px 16px;
    overflow-y: auto;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-card);
}

.summary-layout.immersive .feed-front .summary-feed {
    padding: 20px;
}

.the-room {
    display: flex;
    flex-direction: column;
    height: calc(100% - 32px);
    min-height: 420px;
    margin: 0 20px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

/* Conversation area */
.room-conversation {
    flex: 1;
    overflow-y: auto;
    padding: 40px 32px 24px;
    display: flex;
    flex-direction: column;
}

.room-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.room-empty-text {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    opacity: 0.4;
    letter-spacing: -0.3px;
}

.room-empty-hint {
    font-size: 14px;
    color: var(--color-text-muted);
    opacity: 0.5;
}

.room-at-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.06);
    font-weight: 600;
    font-size: 13px;
    color: var(--color-text);
    vertical-align: middle;
}

/* Input area — matches Coworker chat bar */
.room-input-area {
    position: relative;
    padding: 0 24px 16px;
    display: flex;
    justify-content: center;
}

.room-input-wrapper {
    max-width: 680px;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f6f7f8 0%, #eff0f2 100%);
    border-radius: 24px;
    padding: 14px 18px 10px 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-input-wrapper:focus-within {
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.04),
        0 0 0 3px rgba(79, 70, 229, 0.1);
}

.room-file-preview {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 8px;
}

.room-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0 0 8px 0;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    color: var(--color-text);
    resize: none;
    max-height: 200px;
    line-height: 1.5;
}

.room-input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.room-input::placeholder {
    color: #6b6b6b;
}

.room-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.room-attach-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b6b6b;
    transition: all 0.15s ease;
}

.room-attach-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-text);
}

.room-send-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #1a1a1a;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-send-btn:hover {
    background: #333333;
    transform: scale(1.05);
}

.room-send-btn:active {
    transform: scale(0.95);
}

/* @mention dropdown */
.room-mention-dropdown {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 680px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 6px;
    margin-bottom: 8px;
    z-index: 10;
}

.room-mention-dropdown.hidden {
    display: none;
}

.mention-item {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.12s;
}

.mention-item:hover,
.mention-item.active {
    background: rgba(79, 70, 229, 0.06);
    color: var(--color-primary);
}

/* Presence strip — the bottom bar */
.presence-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px 54px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.presence-name {
    position: relative;
    background: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.1px;
}

.presence-name:hover {
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.15);
}

.presence-name.pinged {
    color: var(--color-primary);
    background: rgba(79, 70, 229, 0.06);
    border-color: rgba(79, 70, 229, 0.2);
}

/* Active agent highlight in presence strip */
.presence-name.presence-active {
    color: var(--color-primary);
    background: rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.3);
    font-weight: 600;
}

/* ==================== */
/* Conference Room Messages */
/* ==================== */

.room-msg {
    max-width: 680px;
    width: 100%;
    margin: 0 auto 16px;
    animation: roomMsgSlide 0.3s ease-out;
}

@keyframes roomMsgSlide {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* User messages — right-aligned bubble */
.room-msg-user {
    display: flex;
    justify-content: flex-end;
}

.room-msg-user .room-msg-content {
    background: var(--color-bg-secondary, #e3e5e8);
    padding: 10px 16px;
    border-radius: 18px 18px 4px 18px;
    font-size: 15px;
    color: var(--color-text);
    max-width: 75%;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.5;
}

/* Agent messages — avatar + name + content */
.room-msg-agent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.room-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(79, 70, 229, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-primary);
}

.room-msg-avatar svg {
    width: 16px;
    height: 16px;
}

.room-msg-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.room-msg-body {
    flex: 1;
    min-width: 0;
}

.room-msg-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.room-msg-agent .room-msg-content {
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text);
}

/* Markdown formatting inside agent messages */
.room-msg-agent .room-msg-content p {
    margin-bottom: 14px;
}

.room-msg-agent .room-msg-content p:last-child {
    margin-bottom: 0;
}

.room-msg-agent .room-msg-content code {
    background: rgba(0, 0, 0, 0.07);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, monospace;
}

.room-msg-agent .room-msg-content pre {
    background: #2b2b2b;
    color: #e0ddd5;
    padding: 16px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 12px 0;
    font-size: 13px;
    line-height: 1.5;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, monospace;
    white-space: pre;
}

.room-msg-agent .room-msg-content pre code {
    background: none;
    padding: 0;
    font-size: inherit;
    color: inherit;
}

.room-msg-agent .room-msg-content ul,
.room-msg-agent .room-msg-content ol {
    padding-left: 20px;
    margin-bottom: 14px;
}

.room-msg-agent .room-msg-content li {
    margin-bottom: 4px;
}

.room-msg-agent .room-msg-content strong {
    font-weight: 600;
    color: var(--color-text);
}

.room-msg-agent .room-msg-content em {
    font-style: italic;
}

.room-msg-agent .room-msg-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 14px;
}

.room-msg-agent .room-msg-content th,
.room-msg-agent .room-msg-content td {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    text-align: left;
}

.room-msg-agent .room-msg-content th {
    background: rgba(0, 0, 0, 0.03);
    font-weight: 600;
}

/* Typing indicator inside room — inherits base .claude-typing-indicator styles,
   just tighten padding for the room's compact layout */
.room-msg .claude-typing-indicator {
    padding: 4px 0;
}

/* ---- Tool call indicators inside Conference Room ---- */

.room-tool-calls {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.room-tool-call {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--color-bg-secondary, rgba(0, 0, 0, 0.03));
    border-radius: 10px;
    font-size: 13px;
    color: var(--color-text-secondary, #64748b);
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.06));
    animation: roomMsgSlide 0.25s ease-out;
}

.room-tool-call svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--color-primary, #4f46e5);
}

.room-tool-call-label {
    flex: 1;
    font-weight: 500;
    letter-spacing: -0.1px;
}

.room-tool-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--color-border, rgba(0, 0, 0, 0.1));
    border-top-color: var(--color-primary, #4f46e5);
    border-radius: 50%;
    animation: roomToolSpin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes roomToolSpin {
    to { transform: rotate(360deg); }
}

.room-tool-done .room-tool-spinner {
    display: none;
}

.room-tool-check {
    display: none;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--color-success, #22c55e);
}

.room-tool-done .room-tool-check {
    display: block;
}

.room-tool-error .room-tool-spinner {
    display: none;
}

.room-tool-error .room-tool-check {
    display: none;
}

.room-tool-error::after {
    content: '!';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-danger, #ef4444);
    color: white;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ==================== */
/* End "The Room" */
/* ==================== */


.summary-card {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.summary-card:hover {
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Card action buttons — pin + mute — grouped in header */
.feed-card-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 2px;
    flex-shrink: 0;
}

.feed-card-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 5px 7px;
    border-radius: 6px;
    opacity: 0.6;
    transition: opacity 0.15s, color 0.15s, background 0.15s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-card-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.85);
}

.feed-card-btn.pin-active {
    opacity: 1;
    color: var(--color-primary, #4f6ef7);
}

.feed-card-btn.mute-active {
    opacity: 1;
    color: #f59e0b;
}

.summary-card.pinned {
    border-top: 2px solid var(--color-primary, #4f6ef7);
}

.summary-card.muted {
    opacity: 0.45;
    filter: grayscale(40%);
}

.summary-card.muted .summary-items {
    display: none;
}

/* Feed empty state */
.feed-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    opacity: 0.7;
}
.feed-empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.feed-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary, #e2e8f0);
    margin: 0 0 6px;
}
.feed-empty-subtitle {
    font-size: 13px;
    color: var(--color-text-secondary, #94a3b8);
    margin: 0;
}

.summary-agent {
    display: flex;
    align-items: center;
}

.summary-agent-inline {
    gap: 10px;
}

.summary-agent-inline .summary-count {
    margin-top: 0;
}

.summary-avatar {
    width: 45px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 14px;
}

/* Summary icon (for non-personalized agents in Conference Room) */
.summary-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    margin-right: 14px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.summary-meta {
    display: flex;
    flex-direction: column;
}

.summary-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

/* .summary-count — see polished version below (line ~4796) */

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-item {
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 12px;
    padding: 14px 18px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.summary-item:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.summary-item[data-status="acknowledged"] {
    opacity: 0.5;
    background: #f0f0f0;
}

.summary-item[data-status="acknowledged"] .item-acknowledge {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.urgent-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
    animation: urgentPulse 2s ease-in-out infinite;
}

@keyframes urgentPulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
    }
    50% {
        box-shadow: 0 0 16px rgba(239, 68, 68, 0.8);
    }
}

.item-summary {
    flex: 1;
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
}

.item-expand {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

.item-expand.expanded {
    transform: rotate(180deg);
    color: #4f46e5;
}

.item-expand:hover {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.08);
}

.item-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-details.hidden {
    display: none;
}

.item-details p {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* Acknowledge button in header */
.item-acknowledge-btn {
    border: none;
    background: transparent;
    font-size: 14px;
    color: #777;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
    font-weight: 400;
}

.item-acknowledge-btn:hover {
    color: #666;
}

.item-acknowledge-btn.clicked {
    color: #22c55e;
}

/* Action icons in expanded area */
.item-actions {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px dashed rgba(0, 0, 0, 0.06);
}

.item-action {
    padding: 6px 12px;
    border: none;
    background: transparent !important;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 6px;
}

.item-action:hover {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.08) !important;
}

.item-action.clicked {
    color: #4f46e5;
}

.item-action[data-action="approve"]:hover {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.08) !important;
}

.item-action[data-action="approve"].clicked {
    color: #22c55e;
}

.item-action[data-action="todo"]:hover {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.08) !important;
}

.item-action[data-action="todo"].clicked {
    color: #f59e0b;
}

.item-action[data-action="escalate"]:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08) !important;
}

.item-action[data-action="escalate"].clicked {
    color: #ef4444;
}

.item-action[data-action="discuss"]:hover {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.08) !important;
}

.item-action[data-action="discuss"].clicked {
    color: #4f46e5;
}

.item-action[data-action="dismiss"]:hover {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.08) !important;
}

.item-action[data-action="dismiss"].clicked {
    color: #6b7280;
}

.item-action[data-action="forward"]:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08) !important;
}

.item-action[data-action="forward"].clicked {
    color: #3b82f6;
}

/* ==================== */
/* Approval Request Styles */
/* ==================== */

/* Reject action button */
.item-action[data-action="reject"]:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08) !important;
}

.item-action[data-action="reject"].clicked {
    color: #ef4444;
}

/* Approval item styling — subtle left border accent */
.notif-approval-item {
    border-left: 3px solid #f59e0b;
}

/* "Requests approval" header label */
.notif-approval-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    padding: 2px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.notif-approval-label.notif-approval-approved {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.notif-approval-label.notif-approval-rejected {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Approval details block inside expanded area */
.notif-approval-details {
    margin: 8px 0 12px;
    padding: 12px;
    background: rgba(245, 158, 11, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 8px;
}

.notif-approval-action-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1f2937;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}

.notif-approval-action-desc {
    color: #4b5563;
    font-size: 0.85rem;
    margin: 4px 0;
}

.notif-approval-impact {
    color: #6b7280;
    font-size: 0.82rem;
    margin: 6px 0 4px;
}

.notif-approval-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 12px;
    margin: 8px 0 4px;
    font-size: 0.82rem;
}

.notif-approval-meta dt {
    font-weight: 600;
    color: #6b7280;
}

.notif-approval-meta dd {
    color: #374151;
    margin: 0;
}

.notif-approval-expiry {
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #f59e0b;
}

/* Resolved approval — fade slightly */
.notif-approval-resolved {
    opacity: 0.7;
}

.notif-approval-resolved .notif-approval-item {
    border-left-color: #9ca3af;
}

/* ==================== */
/* Budget Notifications */
/* ==================== */

/* Budget exceeded — amber/warning left border */
.notif-budget-exceeded {
    border-left: 3px solid #f59e0b;
}

/* Budget disabled — red/critical left border */
.notif-budget-disabled {
    border-left: 3px solid #ef4444;
}

/* Budget label pills (header right) */
.notif-budget-label {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.notif-budget-warning {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.notif-budget-critical {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Budget details block */
.notif-budget-details {
    margin: 8px 0 12px;
    padding: 12px;
    background: rgba(245, 158, 11, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 8px;
    font-size: 0.85rem;
}

.notif-budget-disabled .notif-budget-details {
    background: rgba(239, 68, 68, 0.04);
    border-color: rgba(239, 68, 68, 0.15);
}

/* Usage bar track + fill */
.notif-budget-usage {
    margin-bottom: 8px;
}

.notif-budget-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.notif-budget-bar-fill {
    height: 100%;
    background: #22c55e;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.notif-budget-bar-fill.notif-budget-bar--warning {
    background: #f59e0b;
}

.notif-budget-bar-fill.notif-budget-bar--critical {
    background: #ef4444;
}

.notif-budget-numbers {
    font-size: 0.78rem;
    color: var(--color-text-muted, #9ca3af);
}

.notif-budget-meta {
    color: var(--color-text-muted, #9ca3af);
    font-size: 0.78rem;
    margin-bottom: 4px;
}

.notif-budget-meta span {
    font-weight: 600;
    color: var(--color-text-secondary, #d1d5db);
}

.notif-budget-disabled-msg {
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(239, 68, 68, 0.08);
    border-radius: 6px;
    color: #fca5a5;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* ==================== */
/* Approval Delivery Failed Notification */
/* ==================== */

.notif-delivery-failed {
    border-left: 3px solid #ef4444;
}

.notif-delivery-failed .item-header {
    background: rgba(239, 68, 68, 0.04);
}

.notif-delivery-failed-details {
    margin-top: 10px;
    padding: 12px 14px;
    background: rgba(239, 68, 68, 0.06);
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.12);
    font-size: 0.85rem;
}

.notif-delivery-failed-row {
    margin-bottom: 6px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.notif-delivery-failed-label {
    color: #999;
    font-weight: 500;
    min-width: 70px;
    flex-shrink: 0;
}

.notif-delivery-failed-value {
    color: var(--color-text-primary, #e2e2e2);
    word-break: break-all;
}

.notif-delivery-failed-decision--approved {
    color: #22c55e;
    font-weight: 600;
}

.notif-delivery-failed-decision--rejected {
    color: #ef4444;
    font-weight: 600;
}

.notif-delivery-failed-error {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(239, 68, 68, 0.12);
    display: flex;
    gap: 8px;
}

.notif-delivery-failed-error .notif-delivery-failed-value {
    color: #fca5a5;
    font-family: monospace;
    font-size: 0.8rem;
}

.notif-delivery-failed-msg {
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(239, 68, 68, 0.08);
    border-radius: 6px;
    color: #fca5a5;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* ==================== */
/* Admin: Agent Budget Bar */
/* ==================== */

.agent-budget-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.agent-budget-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    min-width: 60px;
    max-width: 120px;
}

.agent-budget-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: #22c55e;
    transition: width 0.3s ease;
}

.agent-budget-bar--warning .agent-budget-bar-fill {
    background: #f59e0b;
}

.agent-budget-bar--critical .agent-budget-bar-fill {
    background: #ef4444;
}

.agent-budget-bar-label {
    font-size: 11px;
    color: var(--color-text-muted, #9ca3af);
    white-space: nowrap;
}

/* ==================== */
/* Forward Picker Modal */
/* ==================== */
.notif-forward-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.15s ease;
}

.notif-forward-panel {
    background: var(--color-card-bg, #1e1e2e);
    border: 1px solid var(--color-border, rgba(255,255,255,0.08));
    border-radius: 12px;
    width: 340px;
    max-height: 420px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.notif-forward-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border, rgba(255,255,255,0.08));
}

.notif-forward-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary, #e2e2e2);
}

.notif-forward-close {
    background: none;
    border: none;
    color: var(--color-text-secondary, #999);
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.notif-forward-close:hover {
    color: var(--color-text-primary, #e2e2e2);
}

.notif-forward-list {
    overflow-y: auto;
    padding: 8px;
    flex: 1;
}

.notif-forward-member {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--color-text-primary, #e2e2e2);
    font-size: 14px;
    text-align: left;
    transition: background 0.15s;
}

.notif-forward-member:hover {
    background: rgba(79, 70, 229, 0.1);
}

.notif-forward-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-bg-secondary, #2a2a3e);
}

/* ==================== */
/* Discuss Modal */
/* ==================== */
.discuss-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    animation: discussFadeIn 0.2s ease;
}

.discuss-modal-overlay.active {
    display: flex;
}

@keyframes discussFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.discuss-modal {
    width: 79vw;
    max-width: 1080px;
    height: 84vh;
    max-height: 840px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: discussSlideIn 0.25s ease;
}

@keyframes discussSlideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.discuss-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: #f9fafb;
}

.discuss-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.discuss-modal-icon {
    font-size: 18px;
}

.discuss-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 22px;
    color: #888;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.discuss-modal-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #333;
}

.discuss-modal-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.discuss-msg {
    display: flex;
    gap: 12px;
    max-width: 85%;
}

.discuss-msg.assistant {
    align-self: flex-start;
}

.discuss-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.discuss-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.discuss-msg-bubble {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.discuss-msg.assistant .discuss-msg-bubble {
    background: #f3f4f6;
    color: #1a1a1a;
    border-bottom-left-radius: 4px;
}

.discuss-msg.user .discuss-msg-bubble {
    background: var(--color-primary, #4f46e5);
    color: white;
    border-bottom-right-radius: 4px;
}

.discuss-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #fafbfc;
}

.discuss-action-btn {
    padding: 8px 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.discuss-action-btn:hover {
    background: rgba(79, 70, 229, 0.06);
    border-color: rgba(79, 70, 229, 0.3);
    color: #4f46e5;
}

.discuss-action-btn[data-action="approve"]:hover {
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.discuss-action-btn[data-action="todo"]:hover {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.discuss-action-btn[data-action="escalate"]:hover {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.discuss-report-issue-btn {
    margin-left: auto;
}

.discuss-report-issue-btn:hover {
    background: rgba(239, 68, 68, 0.06) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #ef4444 !important;
}

.discuss-action-btn.selected {
    background: var(--color-primary, #4f46e5);
    color: white;
    border-color: var(--color-primary, #4f46e5);
}

.discuss-modal-input-row {
    display: flex;
    gap: 8px;
    padding: 12px 20px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}

.discuss-modal-input {
    flex: 1;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.15s ease;
    max-height: 80px;
}

.discuss-modal-input:focus {
    border-color: var(--color-primary, #4f46e5);
}

.discuss-modal-send {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--color-primary, #4f46e5);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.discuss-modal-send:hover {
    background: var(--color-primary-hover, #4338ca);
}

.discuss-typing {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.discuss-typing span {
    width: 6px;
    height: 6px;
    background: #aaa;
    border-radius: 50%;
    animation: discussTypingDot 1.2s infinite;
}

.discuss-typing span:nth-child(2) { animation-delay: 0.2s; }
.discuss-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes discussTypingDot {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 768px) {
    .discuss-modal {
        width: 95vw;
        height: 80vh;
    }
}

/* Responsive for Agents Tab */
@media (max-width: 768px) {
    .summary-layout {
        flex-direction: column;
    }

    .agent-feed-container {
        padding: 0;
    }

    .feed-toolbar {
        margin-bottom: 12px;
    }

    .agent-chat-grid {
        grid-template-columns: 1fr;
    }

    .room-conversation {
        padding: 24px 16px 16px;
    }

    .room-input-area {
        padding: 0 16px 12px;
    }

    .room-input-wrapper {
        border-radius: 20px;
        padding: 10px 14px 8px 14px;
    }

    .tool-prompt-bar {
        border-radius: 20px;
        padding: 10px 14px 8px 14px;
        margin: 0 12px 8px;
    }

    .copilot-input-area {
        border-radius: 20px;
        padding: 10px 14px 8px 14px;
        margin: 0 8px 8px;
    }

    .presence-strip {
        padding: 10px 12px 40px;
        gap: 4px;
    }

    .presence-name {
        font-size: 12px;
        padding: 5px 12px;
    }

    .room-msg {
        max-width: 100%;
    }

    .room-msg-user .room-msg-content {
        max-width: 85%;
    }

    .summary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .discuss-btn {
        width: 100%;
    }
}

/* ==================== */
/* Discuss Conversation Styles */
/* ==================== */
.discuss-section {
    margin-top: 24px;
    padding-top: 16px;
}

.discuss-separator {
    text-align: center;
    margin-bottom: 20px;
    color: #888;
    font-size: 13px;
    position: relative;
}

.discuss-separator span {
    background: #f9f9f9;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.discuss-separator::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd 20%, #ddd 80%, transparent);
}

.discuss-item-block {
    margin-bottom: 16px;
}

.discuss-item-block.hidden {
    display: none;
}

.discuss-item-block .item-detail-text {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    padding: 10px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    border-left: 3px solid #ddd;
}

.discuss-ack-container {
    display: flex;
    justify-content: flex-start;
    padding-left: 92px;
    margin-top: 8px;
    margin-bottom: 16px;
}

.discuss-ack-btn {
    padding: 10px 20px;
    border: 2px solid #22c55e;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #22c55e;
    cursor: pointer;
    transition: all 0.2s ease;
}

.discuss-ack-btn:hover:not(:disabled) {
    background: #22c55e;
    color: white;
}

.discuss-ack-btn.acknowledged {
    background: #22c55e;
    color: white;
    cursor: default;
}

.discuss-ack-btn:disabled {
    opacity: 0.7;
}

.discuss-completion {
    margin-top: 16px;
}

.discuss-completion.hidden {
    display: none;
}

.discuss-completion .message-content {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
}

/* ==================== */
/* All Caught Up Message */
/* ==================== */
.all-caught-up {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.caught-up-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.all-caught-up h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.all-caught-up p {
    font-size: 15px;
    color: #666;
}

/* .item-time — see polished version below */

.discuss-time {
    font-size: 13px;
    color: #888;
    font-weight: 400;
}

/* ==================== */
/* Summary Item Steps */
/* ==================== */
.item-steps {
    margin-top: 12px;
    padding-left: 18px;
    list-style-type: none;
}

.item-steps li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
}

.item-steps li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #888;
}

/* ==================== */
/* Briefing Body (agent notifications) */
/* ==================== */
.notif-briefing-body {
    margin-top: 12px;
    padding: 14px 16px;
    background: var(--color-surface, #f8f9fa);
    border-radius: 8px;
    border-left: 3px solid #6366f1;
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-primary, #333);
    max-height: 400px;
    overflow-y: auto;
}

.notif-briefing-body h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 16px 0 8px;
    color: var(--color-text-primary, #222);
}

.notif-briefing-body h3:first-child {
    margin-top: 0;
}

.notif-briefing-body h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 6px;
    color: var(--color-text-secondary, #555);
}

.notif-briefing-body p {
    margin: 0 0 10px;
}

.notif-briefing-body strong {
    font-weight: 600;
}

.notif-briefing-body a {
    color: #6366f1;
    text-decoration: none;
}

.notif-briefing-body a:hover {
    text-decoration: underline;
}

.notif-briefing-body ul {
    padding-left: 18px;
    margin: 8px 0;
    list-style-type: disc;
}

.notif-briefing-body li {
    margin-bottom: 6px;
    font-size: 13px;
}

/* Briefing "Create Post" button next to article links */
.briefing-link-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.briefing-create-post-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-secondary, #6b7280);
    background: transparent;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    vertical-align: middle;
    line-height: 1;
}

.briefing-create-post-btn:hover {
    color: var(--color-primary, #4f46e5);
    border-color: var(--color-primary, #4f46e5);
    background: rgba(79, 70, 229, 0.05);
}

.briefing-create-post-btn svg {
    flex-shrink: 0;
}

/* Notification badge on tab button */
.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 5px;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ==================== */
/* Discuss Steps in Agent Chat */
/* ==================== */
.discuss-steps {
    margin-top: 12px;
    padding: 12px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #6366f1;
}

.discuss-steps .steps-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.discuss-steps ul {
    margin: 0;
    padding-left: 18px;
    list-style-type: none;
}

.discuss-steps li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
}

.discuss-steps li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: 600;
}

/* ==================== */
/* Summary Separator for Ava */
/* ==================== */
.summary-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, #d1d5db 10%, #d1d5db 90%, transparent);
    margin: 24px 0;
}

/* ==================== */
/* Agent Video in Conversation */
/* ==================== */
.agent-video {
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    display: inline-block;
}

.agent-video video {
    display: block;
    width: auto;
    height: 250px;
    border-radius: 8px;
}

/* ==================== */
/* Agent Control Plane UI */
/* ==================== */

/* Rollout status pill badges (roster rows + banner) */
.agent-rollout-badge {
    font-size: 9px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 10px;
    white-space: nowrap;
    vertical-align: middle;
    display: inline-block;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.agent-rollout-badge--active {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
}

.agent-rollout-badge--canary {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
}

.agent-rollout-badge--draft {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.12);
}

.agent-rollout-badge--disabled {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

/* Version label — muted, small */
.agent-version-label {
    font-size: 9px;
    font-weight: 500;
    color: var(--color-text-faint);
    vertical-align: middle;
    margin-left: 4px;
}

/* Rollback button — styled like existing admin action buttons */
.agent-rollback-btn {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.06);
    color: #ef4444;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.agent-rollback-btn:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.5);
}

.agent-rollback-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Rollout status selector — button group */
.agent-rollout-selector {
    display: inline-flex;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--color-border, #e5e7eb);
}

.agent-rollout-selector button {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border: none;
    background: var(--color-bg-secondary, #f9fafb);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    border-right: 1px solid var(--color-border, #e5e7eb);
}

.agent-rollout-selector button:last-child {
    border-right: none;
}

.agent-rollout-selector button:hover:not(.active):not(:disabled) {
    background: var(--color-bg-hover, #f3f4f6);
}

.agent-rollout-selector button.active {
    font-weight: 600;
    cursor: default;
}

.agent-rollout-selector button.active[data-status="active"] {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.agent-rollout-selector button.active[data-status="canary"] {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.agent-rollout-selector button.active[data-status="draft"] {
    background: rgba(107, 114, 128, 0.12);
    color: #6b7280;
}

.agent-rollout-selector button.active[data-status="disabled"] {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.agent-rollout-selector button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Control plane row in registry banner */
.registry-control-plane-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid var(--color-border, #e5e7eb);
}

.registry-control-plane-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.registry-control-plane-item .registry-meta-label {
    font-size: 10px;
}

/* Previous version available indicator */
.agent-prev-config-indicator {
    font-size: 10px;
    color: var(--color-text-faint);
    font-style: italic;
}

/* ==================== */
/* Ava Avatar Styles (all locations) */
/* ==================== */
.notification-avatar.ava-avatar,
.summary-avatar.ava-avatar,
.message-avatar.ava-avatar {
    object-position: 55% top;
}

