/* ==========================================================================
   Agent Plugin CSS - Agility Intelligence
   Maps --ws-* theme tokens to agent-scoped variables for seamless theming.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKEN BRIDGE - Map platform theme tokens to agent-scoped variables
   -------------------------------------------------------------------------- */
.agent-layout,
.agent-chat {
    --agent-primary: var(--ws-primary);
    --agent-primary-rgb: var(--ws-primary-rgb);
    --agent-accent: var(--ws-accent);
    --agent-accent-rgb: var(--ws-accent-rgb);
    --agent-success: var(--ws-success-light);
    --agent-warning: var(--ws-warning-light);
    --agent-danger: var(--ws-danger-light);
    --agent-info: var(--ws-info-light);

    --agent-bg: var(--ws-bg-body);
    --agent-surface: var(--ws-bg-base);
    --agent-surface-2: var(--ws-bg-alt);
    --agent-surface-3: var(--ws-bg-muted);
    --agent-text: var(--ws-text-base);
    --agent-text-secondary: var(--ws-text-secondary);
    --agent-text-muted: var(--ws-text-muted);
    --agent-border: var(--ws-border-muted);
    --agent-border-base: var(--ws-border-base);
    --agent-shadow: var(--ws-box-shadow-surface);
    --agent-shadow-overlay: var(--ws-box-shadow-overlay);
    --agent-radius: var(--ws-border-radius-lg, 12px);
    --agent-radius-sm: var(--ws-border-radius-sm, 6px);
    --agent-radius-md: var(--ws-border-radius-md, 8px);
    --agent-font: var(--ws-font-family, system-ui, -apple-system, sans-serif);
    --agent-font-size: var(--ws-font-size, 14px);

    /* Easing functions */
    --agent-ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --agent-ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --agent-ease-in-soft: cubic-bezier(0.2, 0, 0, 1);
}

/* --------------------------------------------------------------------------
   2. LAYOUT - Embedded chat within platform MainLayout
   -------------------------------------------------------------------------- */

/* Remove platform padding when agent is active — edge-to-edge chat */
.main:has(.agent-layout) {
    padding: 0 !important;
    overflow: hidden;
}

.agent-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 48px);
    min-height: 0;
    background: var(--agent-bg);
    font-family: var(--agent-font);
    font-size: var(--agent-font-size);
    color: var(--agent-text);
    overflow: hidden;
}

.agent-chat {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    position: relative;
}

/* --------------------------------------------------------------------------
   2b. ERP SELECTOR - Dropdown for switching between ERP systems
   -------------------------------------------------------------------------- */
.agent-erp-selector {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.5rem 1rem;
    background: var(--agent-surface);
    border-bottom: 1px solid var(--agent-border);
    flex-shrink: 0;
}

.agent-erp-dropdown {
    appearance: none;
    -webkit-appearance: none;
    background: var(--agent-surface-2);
    border: 1px solid var(--agent-border);
    border-radius: var(--agent-radius-sm);
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    font-family: var(--agent-font);
    font-size: 0.8125rem;
    color: var(--agent-text);
    cursor: pointer;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

.agent-erp-dropdown:hover {
    border-color: var(--agent-border-base);
}

.agent-erp-dropdown:focus-visible {
    border-color: var(--agent-primary);
    box-shadow: 0 0 0 2px rgba(var(--agent-primary-rgb), 0.15);
}

.agent-chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* --------------------------------------------------------------------------
   3. MESSAGES AREA - Scrollable message list
   -------------------------------------------------------------------------- */
.agent-messages {
    flex: 1 1 0;
    overflow-y: auto;
    padding: 1.5rem 1rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--agent-border) transparent;
}

.agent-messages::-webkit-scrollbar {
    width: 6px;
}

.agent-messages::-webkit-scrollbar-thumb {
    background: var(--agent-border);
    border-radius: 3px;
}

.agent-messages::-webkit-scrollbar-track {
    background: transparent;
}

.agent-messages-inner {
    max-width: 56rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   4. MESSAGE BUBBLES
   -------------------------------------------------------------------------- */
.agent-message {
    display: flex;
    gap: 0.75rem;
    animation: agentSpringIn 300ms var(--agent-ease-out-expo);
}

.agent-message--user {
    flex-direction: row-reverse;
}

.agent-message-avatar {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: var(--agent-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    border: 1px solid var(--agent-border);
    box-shadow: var(--agent-shadow);
}

.agent-message-avatar--user {
    background: var(--agent-primary);
    color: white;
    border-color: var(--agent-primary);
}

.agent-message-avatar--model {
    background: var(--agent-surface-2);
    color: var(--agent-text-secondary);
}

.agent-message-body {
    position: relative;
    border-radius: var(--agent-radius);
    padding: 0.75rem 1rem;
    max-width: 80%;
    min-width: 0;
    border: 1px solid var(--agent-border);
    box-shadow: var(--agent-shadow);
}

.agent-message--user .agent-message-body {
    background: var(--agent-primary);
    color: white;
    border-color: rgba(var(--agent-primary-rgb), 0.3);
}

.agent-message--model .agent-message-body {
    background: var(--agent-surface);
    color: var(--agent-text);
}

.agent-message-text {
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.agent-message-actions {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.agent-message-action-btn {
    padding: 0.25rem 0.5rem;
    border: none;
    background: var(--agent-surface-2);
    color: var(--agent-text-muted);
    border-radius: var(--agent-radius-sm);
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 150ms ease;
}

.agent-message-action-btn:hover {
    background: var(--agent-surface-3);
    color: var(--agent-text);
}

.agent-message-action-btn:active {
    transform: scale(0.92);
    transition: transform 80ms ease;
}

.agent-message-action-btn--active {
    background: rgba(var(--agent-primary-rgb), 0.15);
    color: var(--agent-primary);
}

.agent-message-action-btn--active:hover {
    background: rgba(var(--agent-primary-rgb), 0.25);
    color: var(--agent-primary);
}

/* User message actions: override colors for readability on primary bg */
.agent-message--user .agent-message-action-btn {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

.agent-message--user .agent-message-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.agent-message--user .agent-message-action-btn:active {
    transform: scale(0.92);
    transition: transform 80ms ease;
}

.agent-message--user .agent-message-action-btn--active {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* --------------------------------------------------------------------------
   5. MESSAGE SECTIONS (Progressive reveal)
   -------------------------------------------------------------------------- */
.agent-section {
    animation: agentFadeIn 200ms var(--agent-ease-out-expo) both;
    margin-top: 0.75rem;
}

.agent-section:first-child {
    margin-top: 0;
}

.agent-section--loading {
    animation: agentSkeletonShimmer 1.5s ease-in-out infinite;
    background: linear-gradient(
        90deg,
        var(--agent-surface-2) 25%,
        var(--agent-surface-3) 50%,
        var(--agent-surface-2) 75%
    );
    background-size: 200% 100%;
    border-radius: var(--agent-radius-sm);
    min-height: 2rem;
}

.agent-analysis-card {
    border: 1px solid var(--agent-border);
    border-radius: var(--agent-radius-sm);
    background: var(--agent-surface-2);
    padding: 0.75rem;
}

.agent-analysis-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--agent-text);
}

.agent-analysis-confidence {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--agent-text-muted);
}

.agent-analysis-subtitle {
    margin-top: 0.6rem;
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--agent-text-secondary);
}

.agent-analysis-list {
    margin: 0;
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--agent-text);
}

.agent-analysis-muted {
    color: var(--agent-text-muted);
    font-size: 0.75rem;
}

.agent-analysis-evidence {
    color: var(--agent-text-secondary);
    font-size: 0.8125rem;
    margin-top: 0.15rem;
}

.agent-analysis-json {
    margin: 0;
    border: 1px solid var(--agent-border);
    border-radius: var(--agent-radius-sm);
    background: var(--agent-surface);
    padding: 0.5rem;
    font-size: 0.75rem;
    color: var(--agent-text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
}

/* --------------------------------------------------------------------------
   6. WELCOME STATE
   -------------------------------------------------------------------------- */
.agent-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(2rem, 5vh, 4.5rem) clamp(1rem, 3vw, 2.5rem) clamp(1.5rem, 3vh, 2.5rem);
    text-align: center;
    max-width: 72rem;
    width: min(100%, 72rem);
    margin: 0 auto;
    position: relative;
    flex: 1;
    justify-content: flex-start;
}

.agent-welcome-decoration {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.agent-welcome-blob {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(var(--agent-primary-rgb), 0.08) 0%,
        transparent 70%
    );
    filter: blur(60px);
}

.agent-welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--agent-border);
    background: var(--agent-surface);
    font-size: clamp(0.75rem, 0.7rem + 0.12vw, 0.9rem);
    color: var(--agent-text-muted);
    box-shadow: var(--agent-shadow);
    z-index: 1;
}

.agent-welcome-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--agent-success);
    animation: agentPulse 1.5s ease-in-out infinite;
}

.agent-welcome-title {
    font-size: clamp(2.1rem, 1.3rem + 1.6vw, 3.25rem);
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
    background: linear-gradient(135deg, var(--agent-primary), var(--agent-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 1;
}

.agent-welcome-subtitle {
    color: var(--agent-text-secondary);
    margin: 0 0 2rem;
    max-width: 44rem;
    font-size: clamp(1rem, 0.9rem + 0.35vw, 1.2rem);
    line-height: 1.5;
    z-index: 1;
}

.agent-welcome-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(0.75rem, 0.5rem + 0.4vw, 1.25rem);
    width: 100%;
    max-width: 66rem;
    z-index: 1;
}

@media (max-width: 576px) {
    .agent-welcome-grid {
        grid-template-columns: 1fr;
    }
}

.agent-welcome-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: clamp(0.95rem, 0.75rem + 0.45vw, 1.35rem);
    min-height: clamp(5.2rem, 4.6rem + 0.8vw, 6.3rem);
    border-radius: var(--agent-radius);
    border: 1px solid var(--agent-border);
    background: var(--agent-surface);
    text-align: left;
    cursor: pointer;
    transition: all 200ms ease;
    box-shadow: var(--agent-shadow);
}

.agent-welcome-card:hover {
    background: var(--agent-surface-2);
    border-color: var(--agent-border-base);
    transform: translateY(-1px);
}

.agent-welcome-card-icon {
    flex-shrink: 0;
    width: clamp(2rem, 1.8rem + 0.4vw, 2.4rem);
    height: clamp(2rem, 1.8rem + 0.4vw, 2.4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--agent-radius-sm);
    font-size: clamp(1rem, 0.9rem + 0.2vw, 1.2rem);
}

.agent-welcome-card-text {
    flex: 1;
    min-width: 0;
}

.agent-welcome-card-title {
    font-weight: 600;
    font-size: clamp(0.9rem, 0.8rem + 0.2vw, 1.05rem);
    margin-bottom: 0.125rem;
}

.agent-welcome-card-desc {
    font-size: clamp(0.8rem, 0.72rem + 0.18vw, 0.95rem);
    color: var(--agent-text-muted);
    line-height: 1.4;
}

@media (min-width: 1024px) {
    .agent-welcome {
        justify-content: center;
        padding: clamp(1.25rem, 2.8vh, 2.75rem) clamp(1rem, 3vw, 2.5rem) clamp(2.25rem, 5.5vh, 4.5rem);
    }
}

@media (min-width: 1600px) {
    .agent-welcome {
        max-width: 76rem;
        width: min(100%, 76rem);
        padding-bottom: clamp(2.75rem, 6vh, 5rem);
    }

    .agent-welcome-grid {
        max-width: 70rem;
    }
}

/* --------------------------------------------------------------------------
   7. COMPOSER - Input area
   -------------------------------------------------------------------------- */
.agent-composer {
    position: sticky;
    bottom: 0;
    z-index: 10;
    border-top: 1px solid var(--agent-border);
    background: var(--agent-surface);
    padding: 0.75rem 1rem;
}

.agent-composer-inner {
    max-width: 56rem;
    margin: 0 auto;
}

.agent-composer-suggestion {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--agent-radius-md);
    background: var(--agent-surface-2);
    color: var(--agent-text-muted);
    font-size: 0.8125rem;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 150ms ease;
}

.agent-composer-suggestion:hover {
    background: var(--agent-surface-3);
}

.agent-composer-files {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.agent-composer-input-row {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    border: 1px solid var(--agent-border);
    border-radius: var(--agent-radius);
    background: var(--agent-surface);
    padding: 0.5rem;
    transition: border-color 200ms ease;
}

.agent-composer-input-row:focus-within {
    border-color: var(--agent-primary);
}

.agent-composer-textarea {
    flex: 1;
    resize: none;
    border: none;
    outline: none;
    background: transparent;
    color: var(--agent-text);
    font-family: var(--agent-font);
    font-size: 0.9375rem;
    line-height: 1.5;
    padding: 0.25rem 0.5rem;
    min-height: 1.5rem;
    max-height: 10rem;
    overflow-y: auto;
}

.agent-composer-textarea::placeholder {
    color: var(--agent-text-muted);
}

.agent-composer-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--agent-radius-sm);
    border: none;
    cursor: pointer;
    transition: all 150ms ease;
    background: transparent;
    color: var(--agent-text-muted);
}

.agent-composer-btn:hover {
    background: var(--agent-surface-2);
    color: var(--agent-text);
}

.agent-composer-btn--send {
    background: var(--agent-primary);
    color: white;
}

.agent-composer-btn--send:hover {
    filter: brightness(1.05);
}

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

.agent-composer-btn--stop {
    background: var(--agent-warning);
    color: white;
}

.agent-composer-btn--stop:hover {
    filter: brightness(1.05);
}

.agent-composer-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.375rem;
    font-size: 0.6875rem;
    color: var(--agent-text-muted);
}

/* --------------------------------------------------------------------------
   7b. PLUS MENU - Popup menu from the "+" button in Composer
   -------------------------------------------------------------------------- */
.agent-composer-plus-container {
    position: relative;
}

.agent-plusmenu-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
}

.agent-plusmenu {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 0;
    min-width: 12rem;
    background: var(--agent-surface);
    border: 1px solid var(--agent-border);
    border-radius: var(--agent-radius-md);
    box-shadow: var(--agent-shadow-overlay);
    z-index: 51;
    padding: 0.25rem;
    animation: agentSlideUp 150ms var(--agent-ease-out-expo);
}

.agent-plusmenu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--agent-text);
    font-family: var(--agent-font);
    font-size: 0.8125rem;
    border-radius: var(--agent-radius-sm);
    cursor: pointer;
    transition: background 100ms ease;
}

.agent-plusmenu-item:hover {
    background: var(--agent-surface-2);
}

.agent-plusmenu-item .oi {
    font-size: 0.875rem;
    color: var(--agent-text-muted);
    width: 1.25rem;
    text-align: center;
}

/* --------------------------------------------------------------------------
   8. THINKING STEPPER - Progress timeline
   -------------------------------------------------------------------------- */
.agent-stepper {
    animation: agentSpringIn 300ms var(--agent-ease-out-expo) both;
    border-radius: var(--agent-radius);
    border: 1px solid var(--agent-border);
    background: var(--agent-surface);
    padding: 1rem;
    box-shadow: var(--agent-shadow);
}

.agent-stepper-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 0.75rem;
}

.agent-stepper-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.agent-stepper-step + .agent-stepper-step::before {
    content: '';
    flex: 0 0 1rem;
    height: 1px;
    background: var(--agent-border);
    margin-right: 0.5rem;
}

.agent-stepper-circle {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 600;
    flex-shrink: 0;
    transition: all 200ms ease;
    border: 1px solid transparent;
}

.agent-stepper-circle--pending {
    background: var(--agent-surface-2);
    color: var(--agent-text-muted);
    border-color: var(--agent-border);
}

.agent-stepper-circle--active {
    background: var(--agent-primary);
    color: white;
    animation: agentPulse 1.5s ease-in-out infinite;
}

.agent-stepper-circle--complete {
    background: var(--agent-success);
    color: white;
}

.agent-stepper-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--agent-text-muted);
    white-space: nowrap;
}

.agent-stepper-label--active {
    color: var(--agent-text);
}

.agent-stepper-progress {
    height: 6px;
    width: 100%;
    border-radius: 3px;
    background: var(--agent-surface-2);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.agent-stepper-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(var(--agent-primary-rgb), 0.6), var(--agent-primary), rgba(var(--agent-accent-rgb, var(--agent-primary-rgb)), 0.7));
    transition: width 500ms var(--agent-ease-out-expo);
}

.agent-stepper-activities {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.agent-stepper-activity {
    font-size: 0.75rem;
    color: var(--agent-text-muted);
    padding-left: 0.5rem;
    border-left: 2px solid var(--agent-border);
    animation: agentFadeIn 200ms ease both;
}

/* --------------------------------------------------------------------------
   9. SQL CARD
   -------------------------------------------------------------------------- */
.agent-sql-card {
    border-radius: var(--agent-radius);
    border: 1px solid var(--agent-border);
    background: var(--agent-surface);
    overflow: hidden;
    animation: agentFadeIn 200ms var(--agent-ease-out-expo) both;
}

.agent-sql-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: var(--agent-surface-2);
    cursor: pointer;
    user-select: none;
    transition: background 150ms ease;
}

.agent-sql-header:hover {
    background: var(--agent-surface-3);
}

.agent-sql-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agent-sql-kind-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
}

.agent-sql-kind-badge--select {
    background: rgba(var(--ws-info-rgb, 59, 130, 246), 0.15);
    color: var(--agent-info);
}

.agent-sql-kind-badge--exec {
    background: rgba(var(--ws-warning-rgb, 245, 158, 11), 0.15);
    color: var(--agent-warning);
}

.agent-sql-kind-badge--write {
    background: rgba(var(--ws-danger-rgb, 220, 38, 38), 0.15);
    color: var(--agent-danger);
}

.agent-sql-chevron {
    transition: transform 200ms ease;
    color: var(--agent-text-muted);
}

.agent-sql-chevron--open {
    transform: rotate(180deg);
}

.agent-sql-body {
    border-top: 1px solid var(--agent-border);
}

.agent-sql-code {
    padding: 0.75rem 1rem;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8125rem;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.agent-sql-explanation {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--agent-border);
    font-size: 0.8125rem;
    color: var(--agent-text-secondary);
}

.agent-sql-warnings {
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--agent-border);
}

.agent-sql-warning {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--agent-warning);
    padding: 0.125rem 0;
}

.agent-sql-results {
    border-top: 1px solid var(--agent-border);
}

.agent-sql-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: var(--agent-text-muted);
}

/* SQL Result Table */
.agent-sql-table-wrap {
    overflow: auto;
    max-height: 400px;
}

.agent-sql-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.agent-sql-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.agent-sql-table th {
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--agent-text-muted);
    background: var(--agent-surface-2);
    border-bottom: 1px solid var(--agent-border);
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.agent-sql-table th:hover {
    background: var(--agent-surface-3);
}

.agent-sql-table td {
    padding: 0.375rem 0.75rem;
    border-bottom: 1px solid var(--agent-border);
    white-space: nowrap;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-sql-table tr:hover td {
    background: var(--agent-surface-2);
}

.agent-sql-table .null-value {
    color: var(--agent-text-muted);
    font-style: italic;
}

.agent-sql-table .number-value {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Approval UI */
.agent-sql-approval {
    padding: 1rem;
    border-top: 1px solid var(--agent-border);
    background: rgba(var(--ws-danger-rgb, 220, 38, 38), 0.05);
}

.agent-sql-approval-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
}

.agent-sql-approval-actions {
    display: flex;
    gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   10. CODE EXECUTION CARD
   -------------------------------------------------------------------------- */
.agent-code-card {
    border-radius: var(--agent-radius);
    border: 1px solid var(--agent-border);
    background: var(--agent-surface);
    overflow: hidden;
    animation: agentFadeIn 200ms var(--agent-ease-out-expo) both;
}

.agent-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: var(--agent-surface-2);
    cursor: pointer;
    user-select: none;
}

.agent-code-header:hover {
    background: var(--agent-surface-3);
}

.agent-code-steps {
    border-top: 1px solid var(--agent-border);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.agent-code-step {
    border-radius: var(--agent-radius-md);
    border: 1px solid var(--agent-border);
    background: var(--agent-surface-2);
    padding: 0.5rem;
}

.agent-code-step-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--agent-text-muted);
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.agent-code-pre {
    max-height: 18rem;
    overflow: auto;
    border-radius: var(--agent-radius-sm);
    background: #111827;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    color: #e5e7eb;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.agent-code-output {
    max-height: 18rem;
    overflow: auto;
    border-radius: var(--agent-radius-sm);
    background: var(--agent-surface);
    padding: 0.5rem;
    font-size: 0.75rem;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    border: 1px solid var(--agent-border);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.agent-code-output--error {
    color: var(--agent-danger);
}

.agent-code-output--success {
    color: var(--agent-success);
}

/* --------------------------------------------------------------------------
   11. CONTENT - Markdown + Code blocks
   -------------------------------------------------------------------------- */
.agent-markdown {
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.agent-markdown h1,
.agent-markdown h2,
.agent-markdown h3,
.agent-markdown h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.agent-markdown h1 { font-size: 1.5rem; }
.agent-markdown h2 { font-size: 1.25rem; }
.agent-markdown h3 { font-size: 1.125rem; }

.agent-markdown p {
    margin-bottom: 0.75rem;
}

.agent-markdown p:last-child {
    margin-bottom: 0;
}

.agent-markdown ul,
.agent-markdown ol {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.agent-markdown li {
    margin-bottom: 0.25rem;
}

.agent-markdown code {
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    background: var(--agent-surface-2);
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875em;
}

.agent-markdown pre {
    margin-bottom: 0.75rem;
    border-radius: var(--agent-radius-sm);
    overflow: hidden;
}

.agent-markdown pre code {
    display: block;
    padding: 0.75rem 1rem;
    background: #1e1e1e;
    color: #d4d4d4;
    font-size: 0.8125rem;
    line-height: 1.5;
    overflow-x: auto;
}

.agent-markdown table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.agent-markdown th,
.agent-markdown td {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--agent-border);
    text-align: left;
}

.agent-markdown th {
    background: var(--agent-surface-2);
    font-weight: 600;
}

.agent-markdown blockquote {
    border-left: 3px solid var(--agent-primary);
    padding-left: 1rem;
    margin: 0.75rem 0;
    color: var(--agent-text-secondary);
}

.agent-markdown a {
    color: var(--agent-primary);
    text-decoration: none;
}

.agent-markdown a:hover {
    text-decoration: underline;
}

.agent-markdown hr {
    border: none;
    border-top: 1px solid var(--agent-border);
    margin: 1rem 0;
}

.agent-markdown .katex-display {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0.75rem 0;
}

.agent-markdown .katex {
    max-width: 100%;
}

.agent-message--user .agent-markdown a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: underline;
}

.agent-message--user .agent-markdown code {
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
}

/* Code block with toolbar */
.agent-codeblock {
    position: relative;
    border-radius: var(--agent-radius-sm);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.agent-codeblock-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.375rem 0.75rem;
    background: #2d2d2d;
    color: #999;
    font-size: 0.6875rem;
}

.agent-codeblock-actions {
    display: flex;
    gap: 0.25rem;
}

.agent-codeblock-btn {
    padding: 0.125rem 0.375rem;
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.6875rem;
}

.agent-codeblock-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
}

.agent-codeblock pre {
    margin: 0;
}

.agent-codeblock code {
    display: block;
    padding: 0.75rem 1rem;
    background: #1e1e1e;
    color: #d4d4d4;
    font-size: 0.8125rem;
    line-height: 1.5;
    overflow-x: auto;
}

/* --------------------------------------------------------------------------
   12. FILE UPLOAD
   -------------------------------------------------------------------------- */
.agent-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: var(--agent-surface-2);
    border: 1px solid var(--agent-border);
    font-size: 0.75rem;
    color: var(--agent-text-secondary);
}

.agent-file-chip-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: none;
    background: var(--agent-surface-3);
    color: var(--agent-text-muted);
    cursor: pointer;
    font-size: 0.625rem;
    line-height: 1;
    padding: 0;
}

.agent-file-chip-remove:hover {
    background: var(--agent-danger);
    color: white;
}

.agent-dropzone {
    border: 2px dashed var(--agent-border);
    border-radius: var(--agent-radius);
    padding: 2rem;
    text-align: center;
    color: var(--agent-text-muted);
    transition: all 200ms ease;
    cursor: pointer;
}

.agent-dropzone--active {
    border-color: var(--agent-primary);
    background: rgba(var(--agent-primary-rgb), 0.05);
}

/* --------------------------------------------------------------------------
   13. ARTIFACTS
   -------------------------------------------------------------------------- */
.agent-artifact-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--agent-radius-md);
    border: 1px solid var(--agent-border);
    background: var(--agent-surface);
    animation: agentFadeIn 200ms var(--agent-ease-out-expo) both;
}

.agent-artifact-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--agent-radius-sm);
    background: rgba(var(--agent-primary-rgb), 0.1);
    color: var(--agent-primary);
    font-size: 0.875rem;
}

.agent-artifact-info {
    flex: 1;
    min-width: 0;
}

.agent-artifact-name {
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-artifact-meta {
    font-size: 0.6875rem;
    color: var(--agent-text-muted);
}

.agent-artifact-download {
    padding: 0.25rem 0.75rem;
    border-radius: var(--agent-radius-sm);
    border: 1px solid var(--agent-border);
    background: transparent;
    color: var(--agent-primary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease;
    text-decoration: none;
}

.agent-artifact-download:hover {
    background: rgba(var(--agent-primary-rgb), 0.05);
}

/* Inline artifact preview (images, charts) */
.agent-artifact-inline {
    border-radius: var(--agent-radius-md);
    border: 1px solid var(--agent-border);
    background: var(--agent-surface);
    overflow: hidden;
    animation: agentFadeIn 200ms var(--agent-ease-out-expo) both;
}

.agent-artifact-inline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
}

.agent-artifact-preview {
    border-top: 1px solid var(--agent-border);
    background: var(--agent-surface-2, rgba(255,255,255,0.03));
}

.agent-artifact-preview--clickable {
    border-top: 1px solid var(--agent-border);
    background: var(--agent-surface-2, rgba(255,255,255,0.03));
    display: block;
    width: 100%;
    padding: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    cursor: pointer;
    transition: opacity 150ms ease;
}

.agent-artifact-preview--clickable:hover {
    opacity: 0.85;
}

.agent-artifact-image {
    display: block;
    width: 100%;
    max-height: 24rem;
    object-fit: contain;
    background: var(--agent-surface-2, rgba(255,255,255,0.03));
}

.agent-artifact-video {
    display: block;
    width: 100%;
    max-height: 24rem;
    object-fit: contain;
}

.agent-artifact-preview--audio {
    padding: 1rem;
}

.agent-artifact-audio {
    width: 100%;
}

.agent-artifact-pdf {
    display: block;
    width: 100%;
    height: 24rem;
    border: none;
}

.agent-artifact-no-preview {
    border-top: 1px solid var(--agent-border);
    padding: 1rem;
    font-size: 0.8125rem;
    color: var(--agent-text-muted);
    text-align: center;
}

/* Lightbox - Full-size image overlay */
.agent-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    isolation: isolate;
    padding: 2rem;
    cursor: pointer;
    animation: agentFadeIn 150ms ease;
}

/* Lock scrolling while a lightbox is open in the agent UI */
body:has(.agent-layout .agent-lightbox-overlay) {
    overflow: hidden;
}

.agent-layout:has(.agent-lightbox-overlay) .agent-messages {
    overflow: hidden;
}

.agent-section:has(.agent-lightbox-overlay) {
    position: relative;
    z-index: 2000;
}

.agent-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: var(--agent-radius);
    overflow: hidden;
    background: var(--agent-surface);
    box-shadow: var(--agent-shadow-overlay);
    cursor: default;
    animation: agentLightboxIn 200ms var(--agent-ease-out-expo);
}

.agent-lightbox-image {
    display: block;
    max-width: 90vw;
    max-height: calc(90vh - 3rem);
    width: auto;
    height: auto;
    object-fit: contain;
}

.agent-lightbox-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--agent-surface-2);
    border-top: 1px solid var(--agent-border);
}

.agent-lightbox-filename {
    flex: 1;
    min-width: 0;
    font-size: 0.75rem;
    color: var(--agent-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-lightbox-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--agent-radius-sm);
    border: 1px solid var(--agent-border);
    background: transparent;
    color: var(--agent-text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 150ms ease;
    white-space: nowrap;
}

.agent-lightbox-btn:hover {
    background: var(--agent-surface-3);
    color: var(--agent-text);
}

@keyframes agentLightboxIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --------------------------------------------------------------------------
   14. SHARED - Status pill, typing indicator
   -------------------------------------------------------------------------- */
.agent-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 500;
    gap: 0.25rem;
}

.agent-status-pill--planning { background: rgba(var(--ws-info-rgb, 59, 130, 246), 0.15); color: var(--agent-info); }
.agent-status-pill--executing { background: rgba(var(--ws-warning-rgb, 245, 158, 11), 0.15); color: var(--agent-warning); }
.agent-status-pill--generating { background: rgba(var(--agent-primary-rgb), 0.15); color: var(--agent-primary); }
.agent-status-pill--complete { background: rgba(var(--ws-success-rgb, 22, 163, 74), 0.15); color: var(--agent-success); }
.agent-status-pill--error { background: rgba(var(--ws-danger-rgb, 220, 38, 38), 0.15); color: var(--agent-danger); }
.agent-status-pill--stopped { background: var(--agent-surface-2); color: var(--agent-text-muted); }

.agent-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 0;
}

.agent-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--agent-text-muted);
    animation: agentTypingDot 1.4s ease-in-out infinite;
}

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

/* --------------------------------------------------------------------------
   15. SOURCE DRAWER
   -------------------------------------------------------------------------- */
.agent-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    animation: agentFadeIn 150ms ease;
}

.agent-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 28rem;
    max-width: 90vw;
    background: var(--agent-surface);
    border-left: 1px solid var(--agent-border);
    box-shadow: var(--agent-shadow-overlay);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    animation: agentSlideInRight 200ms var(--agent-ease-out-expo);
}

.agent-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--agent-border);
}

.agent-drawer-title {
    font-weight: 600;
    font-size: 1rem;
}

.agent-drawer-close {
    width: 2rem;
    height: 2rem;
    border-radius: var(--agent-radius-sm);
    border: none;
    background: transparent;
    color: var(--agent-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.agent-drawer-close:hover {
    background: var(--agent-surface-2);
}

.agent-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

/* --------------------------------------------------------------------------
   17. GROUNDING CHIPS
   -------------------------------------------------------------------------- */
.agent-grounding-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.agent-grounding-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background: var(--agent-surface-2);
    border: 1px solid var(--agent-border);
    font-size: 0.6875rem;
    color: var(--agent-text-muted);
    cursor: pointer;
    transition: all 150ms ease;
}

.agent-grounding-chip:hover {
    background: var(--agent-surface-3);
    color: var(--agent-text);
}

/* --------------------------------------------------------------------------
   18. CONFIG MODAL
   -------------------------------------------------------------------------- */
.agent-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    animation: agentFadeIn 150ms ease;
}

.agent-modal {
    width: 100%;
    max-width: 28rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: var(--agent-surface);
    border: 1px solid var(--agent-border);
    border-radius: var(--agent-radius);
    box-shadow: var(--agent-shadow-overlay);
    animation: agentSlideUp 200ms var(--agent-ease-out-expo);
}

.agent-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--agent-border);
}

.agent-modal-title {
    font-weight: 600;
    font-size: 1rem;
}

.agent-modal-body {
    padding: 1rem;
}

.agent-config-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.agent-config-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--agent-text-secondary);
}

.agent-config-value {
    font-size: 0.875rem;
    color: var(--agent-text);
}

/* --------------------------------------------------------------------------
   19. PROMPTS MANAGER
   -------------------------------------------------------------------------- */
.agent-prompts-create {
    padding: 1rem;
    border-bottom: 1px solid var(--agent-border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.agent-prompts-input,
.agent-prompts-edit-input {
    width: 100%;
    resize: vertical;
    border: 1px solid var(--agent-border);
    border-radius: var(--agent-radius-sm);
    background: var(--agent-surface-2);
    color: var(--agent-text);
    font-family: var(--agent-font);
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
    outline: none;
    transition: border-color 150ms ease;
}

.agent-prompts-input:focus,
.agent-prompts-edit-input:focus {
    border-color: var(--agent-primary);
}

.agent-prompts-input::placeholder {
    color: var(--agent-text-muted);
}

.agent-prompts-add-btn {
    align-self: flex-end;
    padding: 0.375rem 1rem;
    border: none;
    border-radius: var(--agent-radius-sm);
    background: var(--agent-primary);
    color: white;
    font-family: var(--agent-font);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: filter 150ms ease;
}

.agent-prompts-add-btn:hover:not(:disabled) {
    filter: brightness(1.05);
}

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

.agent-prompts-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--agent-text-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.agent-prompts-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid var(--agent-border);
    transition: background 100ms ease;
}

.agent-prompts-item:hover {
    background: var(--agent-surface-2);
}

.agent-prompts-item-text {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--agent-text);
    font-family: var(--agent-font);
    font-size: 0.8125rem;
    text-align: left;
    cursor: pointer;
    padding: 0.25rem 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 150ms ease;
}

.agent-prompts-item-text:hover {
    color: var(--agent-primary);
}

.agent-prompts-item-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 150ms ease;
}

.agent-prompts-item:hover .agent-prompts-item-actions {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   20. ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes agentSpringIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

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

@keyframes agentSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes agentSlideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes agentPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes agentSkeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes agentTypingDot {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --------------------------------------------------------------------------
   19. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .agent-message,
    .agent-section,
    .agent-stepper,
    .agent-sql-card,
    .agent-code-card,
    .agent-artifact-card,
    .agent-drawer,
    .agent-plusmenu,
    .agent-modal {
        animation: none !important;
    }

    .agent-stepper-circle--active,
    .agent-welcome-badge-dot,
    .agent-typing-dot {
        animation: none !important;
    }

    .agent-stepper-progress-fill,
    .agent-sql-chevron {
        transition: none !important;
    }
}

/* --------------------------------------------------------------------------
   20. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .agent-messages {
        padding: 1rem 0.5rem;
    }

    .agent-message-body {
        max-width: 90%;
    }

    .agent-welcome-title {
        font-size: 1.5rem;
    }

    .agent-stepper-label {
        display: none;
    }

    .agent-drawer {
        width: 100vw;
        max-width: 100vw;
    }

    .agent-modal {
        max-width: calc(100vw - 2rem);
    }
}
