      * {
    box-sizing: border-box;
}

        body {
            font-family: 'Inter', sans-serif;
            margin: 0;
            padding: 0;
            background: #f8f9fa;
            color: #333;
        }

        #chat-container {
            display: flex;
            flex-direction: column;
            height: 100vh;
            max-width: 100%;
            background: white;
            box-shadow: 0 2px 12px rgba(0,0,0,0.1);
        }

        #chat-header {
            padding: 16px;
            background: #1a73e8;
            color: white;
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            position: relative;  /* For absolute positioning of button */
        }

        #chat-header svg {
            width: 24px;
            height: 24px;
            fill: currentColor;
        }

        #chat-messages {
            flex-grow: 1;
            overflow-y: auto;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            scroll-behavior: smooth;
        }

        .message {
            max-width: 85%;
            padding: 12px 16px;
            border-radius: 12px;
            font-size: 12.5px;
            line-height: 1.5;
            animation: messageSlide 0.3s ease-out;
            position: relative;
            white-space: pre-wrap;
        }

        .ai-message ul, 
        .ai-message ol {
            margin-left: 20px;
            padding-left: 0;
        }

        .ai-message p {
            margin: 8px 0;
        }

        .ai-message code {
            background-color: rgba(0, 0, 0, 0.05);
            padding: 2px 4px;
            border-radius: 4px;
            font-family: monospace;
        }

        .ai-message pre {
            background-color: rgba(0, 0, 0, 0.05);
            padding: 10px;
            border-radius: 4px;
            overflow-x: auto;
        }

        .ai-message .code-block-wrapper {
            position: relative;
            margin: 8px 0;
        }
        .ai-message .code-block-wrapper pre {
            margin: 0;
            padding: 10px 36px 10px 10px;
        }
        .ai-message .code-block-copy-btn .material-icons {
            font-size: 16px;
        }
        .ai-message .code-block-copy-btn {
            position: absolute;
            top: 6px;
            right: 6px;
            width: 28px;
            height: 28px;
            padding: 0;
            border: none;
            border-radius: 4px;
            background: rgba(0, 0, 0, 0.06);
            color: #5f6368;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }
        .ai-message .code-block-copy-btn:hover {
            background: rgba(0, 0, 0, 0.1);
            color: #202124;
        }
        .ai-message .code-block-copy-btn:active {
            background: rgba(0, 0, 0, 0.14);
        }

        .ai-message strong {
            font-weight: 600;
        }

        .ai-message em {
            font-style: italic;
        }
        
        /* Autocomplete / SheetPicker dropdown styles */
        .autocomplete-dropdown {
            position: fixed;
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
            z-index: 10000;
            max-height: 200px;
            overflow-y: auto;
            font-size: 12px;
            min-width: 160px;
        }
        
        .autocomplete-option {
            padding: 8px 12px;
            cursor: pointer;
            border-bottom: 1px solid #f1f3f4;
            transition: background-color 0.2s;
        }
        
        .autocomplete-option:last-child {
            border-bottom: none;
        }
        
        .autocomplete-option:hover {
            background-color: #f8f9fa;
        }
        
        .autocomplete-option:active {
            background-color: #e8f0fe;
        }

        /* Segments container for AI bubble */
        .ai-message .message-segments {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        /* Remove default margins from content inside segments for consistent spacing */
        .ai-message .message-segments .message-content {
            margin: 0;
        }
        
        .ai-message .message-segments .message-content p {
            margin: 0 !important;
        }
        
        .ai-message .message-segments .exec-row {
            margin: 12px 0;
        }

        /* First and last elements should have reduced margins to avoid extra space */
        .ai-message .message-segments > *:first-child {
            margin-top: 0;
        }

        .ai-message .message-segments > *:last-child {
            margin-bottom: 0;
        }

        /* Execution row (action block) styling */
        .ai-message .exec-row {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            background: rgba(0, 0, 0, 0.05);
            border-radius: 8px;
            border: 1px solid rgba(0, 0, 0, 0.1);
        }
        
        .ai-message .exec-row .exec-content {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 12.5px;
            color: #374151;
        }
        
        .ai-message .exec-row.completed {
            background: rgba(16, 185, 129, 0.05);
            border-color: rgba(16, 185, 129, 0.2);
        }
        
        .ai-message .exec-row.completed .exec-content {
            color: #059669;
        }
        
        /* Circular loader spinner */
        .ai-message .exec-row .exec-spinner {
            width: 16px;
            height: 16px;
            border: 2px solid rgba(99, 102, 241, 0.25);
            border-top-color: #6366f1;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            flex-shrink: 0;
        }
        
        .ai-message .exec-row .exec-spinner.hidden {
            display: none;
        }
        
        .ai-message .exec-row .exec-check {
            display: none;
            font-size: 16px;
            color: #059669;
            flex-shrink: 0;
        }
        
        .ai-message .exec-row.completed .exec-spinner {
            display: none;
        }
        
        .ai-message .exec-row.completed .exec-check {
            display: inline;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

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

        .user-message {
            background: #1a73e8;
            color: white;
            margin-left: auto;
            border-bottom-right-radius: 4px;
        }

        .ai-message {
            background: #f1f3f4;
            color: #202124;
            margin-right: auto;
            border-bottom-left-radius: 4px;
        }
        #input-container {
    padding: 16px 20px;
    background: white;
    border-top: 1px solid #ddd;
}

/* Cursor-style Input Container */
.input-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px;
    transition: border-color 0.2s;
}

.input-container:focus-within {
    border-color: #4f76ff;
    box-shadow: 0 0 0 2px rgba(79, 118, 255, 0.1);
}

/* Progress Pill */
#progress-pill {
    position: relative;
    width: 400px;
    max-width: calc(100% - 40px);
    height: 48px;
    min-height: 48px;
    flex-shrink: 0;
    background: #E8F0FE;
    border-radius: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    margin: 8px auto 12px auto;
    transform: translateY(60px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    pointer-events: none;
}

#progress-pill.show {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

#progress-pill-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #d4e7ff;
    border-radius: 24px;
    transition: width 0.5s ease-out, background-color 0.5s ease-out;
}

#progress-pill-text {
    position: relative;
    z-index: 1;
    color: #202124;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 0 24px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.input-top-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
    font-size: 10px;
    position: relative;
    overflow: visible;
    gap: 8px;
}

.sheet-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
    font-weight: 500;
    font-size: 10px;
    flex-wrap: wrap;
    min-height: 20px;
    flex: 1;
    min-width: 0;
}


/* Plus Menu Dropdown */
.plus-menu {
    position: fixed;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    min-width: 160px;
    padding: 8px 0;
    display: none;
}

.plus-menu-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 12px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.plus-menu-item:hover {
    background-color: #f5f5f5;
}

.plus-menu-item:active {
    background-color: #e8e8e8;
}

/* Model Selector Custom Dropdown */
.model-selector-wrapper {
    position: relative;
    display: inline-block;
    overflow: visible;
}

.model-selector-button {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    color: #1a73e8;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    min-width:40px;
    max-width: 60px;
    width: auto;
    justify-content: space-between;
    flex-shrink: 0;
    line-height: 1;
    height: 20px;
    overflow: hidden;
    position: relative;
}

.model-selector-button:disabled:not(.loading) {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.model-selector-button.loading {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: auto; /* Allow hover for tooltip */
}

.model-selector-loading-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
}

.model-selector-button.loading:hover .model-selector-loading-tooltip {
    opacity: 1;
}

.model-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    font-size: 0.9em;
    word-break: break-all;
}

.model-arrow {
    flex-shrink: 0;
}

.model-selector-dropdown {
    position: absolute;
    bottom: calc(100% + 4px);
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    min-width: 180px;
    max-width: 250px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    pointer-events: none;
}

.model-selector-dropdown.show {
    display: block;
    pointer-events: auto;
}

.model-selector-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 11px;
    color: #333;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.model-selector-option:hover {
    background-color: #f5f5f5;
}

.model-selector-option.selected {
    background-color: #e8f0fe;
}

.model-selector-option.selected .model-check {
    color: #1a73e8;
}

.model-name {
    flex: 1;
}

.model-credits-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 2px 7px;
    border-radius: 9999px;
    background: #1a73e8;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    margin-left: 6px;
    flex-shrink: 0;
}

.model-credits-bolt {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    color: inherit;
}

#model-selector-popup .model-credits-pill {
    font-size: 12px;
    padding: 3px 9px;
}

#model-selector-popup .model-credits-bolt {
    width: 12px;
    height: 12px;
}

.model-check {
    color: transparent;
    font-size: 12px;
    margin-left: 8px;
}

.model-selector-option.selected .model-check {
    color: #1a73e8;
}

/* Model Search Input */
.model-search-input {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    font-size: 11px;
    outline: none;
    background: white;
    border-radius: 8px 8px 0 0;
}

/* Show More Button */
.show-more-models-btn {
    width: 100%;
    padding: 8px 12px;
    background: #1a73e8;
    color: white;
    border: none;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.show-more-models-btn:hover {
    background: #1557b0;
}

/* Larger text for model options in popup */
#model-selector-popup .model-selector-option {
    font-size: 14px;
    padding: 12px 16px;
}

#model-selector-popup .model-selector-option .model-name {
    font-size: 14px;
}

#model-selector-popup .model-selector-option .model-check {
    font-size: 16px;
}

/* Model selector popup: no outer scroll, only inner model list scrolls */
#model-selector-popup .modern-popup {
    overflow: hidden;
    max-height: 90vh;
}

#model-selector-popup .popup-content {
    overflow-y: visible;
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Agent Selector Custom Dropdown */
.agent-selector-wrapper {
    position: relative;
    display: inline-block;
    overflow: visible;
    flex-shrink: 0;
}

.agent-selector-button {
    background: transparent;
    border: none;
    color: #1a73e8;
    font-size: 11px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    width: 80px;
    height: 28px;
    flex-shrink: 0;
}

.agent-label {
    white-space: nowrap;
    font-weight: 500;
    min-width: 0;
}

.agent-selector-dropdown {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    min-width: 140px;
    padding: 8px 0;
    display: none;
    pointer-events: none;
}

.agent-selector-dropdown.show {
    display: block;
    pointer-events: auto;
}

.agent-selector-option {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 12px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
}

.agent-selector-option:hover {
    background-color: #f5f5f5;
}

.agent-selector-option .agent-icon {
    font-size: 16px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Material Icons styling for agent selector */
.agent-selector-button .agent-icon.material-icons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-selector-option .agent-icon.material-icons,
.agent-icon.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Plus Menu Wrapper and Button */
.plus-menu-wrapper {
    position: relative;
    display: inline-block;
    overflow: visible;
    flex-shrink: 0;
}

.plus-menu-button {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    color: #1a73e8;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 20px;
}

/* Updated Plus Menu positioning */
/* Right side of input-top-row - fixed position */
.input-top-row-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Context elements - prevent shrinking */
.context-element {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.context-element span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    height: 20px;
}

/* Integration Toast */
.integration-toast-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    width: 400px;
    max-width: 90%;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.integration-toast-header {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.integration-toast-search {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.integration-toast-search:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.integration-toast-list {
    padding: 8px;
    overflow-y: auto;
    max-height: 400px;
}

.integration-item {
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
    position: relative;
}

.integration-item:hover {
    background-color: #f1f3f4;
}

.integration-item:active {
    background-color: #e8e8e8;
}

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

.integration-item img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
}

.integration-item-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

/* New separate container structure */
.integration-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.integration-item:hover {
    background-color: #f5f5f5;
}

.integration-image-container {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.integration-image-container img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
}

.integration-text-container {
    flex: 1;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.integration-text-container span {
    font-size: 14px;
    color: #333;
}

.integration-help-container {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.integration-help-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #1a73e8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
}

.integration-help-icon:hover {
    background-color: #1557b0;
    transform: scale(1.1);
}

/* Help Modal */
.integration-help-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-help-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    width: 600px;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.integration-help-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.integration-help-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.integration-help-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
    transition: background-color 0.2s;
}

.integration-help-close:hover {
    background-color: #f1f3f4;
}

.integration-help-search-container {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.integration-help-search {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.integration-help-search:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.integration-help-cards {
    padding: 16px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.integration-help-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background-color: #fafafa;
    transition: box-shadow 0.2s;
}

.integration-help-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.integration-help-card.hidden {
    display: none;
}

.help-card-section {
    margin-bottom: 12px;
}

.help-card-section:last-child {
    margin-bottom: 0;
}

.help-card-label {
    font-size: 11px;
    font-weight: 700;
    color: #1a73e8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.help-card-value {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
}

.help-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a73e8;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.help-card-value.example {
    background-color: #f0f0f0;
    padding: 8px 10px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 12px;
    white-space: pre-wrap;
}

.sheet-indicator {
    position: relative;
}

.sheet-indicator .sheet-name {
    background: white !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    display: inline-block !important;
    color: #1a73e8 !important;
    font-size: 10px !important;
}

.sai-commands-indicator {
    width: auto;
    min-width: 32px;
    height: 22px;
    padding: 0 6px;
    background: transparent;
    border: 1px solid #1a73e8;
    border-radius: 11px;
    color: #1a73e8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 9px;
    font-weight: 600;
    flex-shrink: 0;
}

.sai-commands-indicator:hover {
    background: rgba(26, 115, 232, 0.1);
    border-color: #1557b0;
    color: #1557b0;
}

.input-middle-row {
    margin-bottom: 8px;
}

.input-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
}

.left-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666 !important;
}

/* Removed general override rule - now using specific classes */

.right-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent-dropdown {
    background: transparent;
    border: none;
    color: #1a73e8;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.agent-dropdown:hover {
    background: #e0e0e0;
}

/* Removed .mode-indicator - now using .auto-toggle-btn */

.chat-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #333;
    font-size: 12.5px;
    font-family: inherit;
    outline: none;
    min-height: 24px;
    max-height: 120px;
    line-height: 1.4;
    padding: 8px 0;
    resize: none;
    overflow-y: auto;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.chat-input:empty:before {
    content: attr(data-placeholder);
    color: #666;
    pointer-events: none;
}

/* Specific button classes instead of general .action-btn */
.image-upload-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: #1a73e8;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.image-upload-btn:hover {
    background: rgba(26, 115, 232, 0.1);
    color: #1557b0;
}

.auto-toggle-btn {
    cursor: pointer;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #d3d3d3;
    display: inline-block;
    color: #999;
    font-size: 10px;
    transition: all 0.2s;
}

.auto-toggle-btn:hover {
    background: #e8e8e8;
}

.auto-toggle-btn.active {
    background: rgba(26, 115, 232, 0.1);
    border-color: rgba(26, 115, 232, 0.3);
    color: #1a73e8;
    font-weight: bold;
}

/* Thinking Mode brain icon (no box) */
.thinking-toggle-btn {
    cursor: pointer;
    margin-left: 8px;
    font-size: 16px;
    color: #5f6368;
    user-select: none;
    line-height: 1;
}

.thinking-toggle-btn:hover {
    color: #1557b0;
}

.thinking-toggle-btn.active {
    color: #1a73e8;
}

/* Image-based brain icon tweaks */
.thinking-toggle-btn {
    opacity: 0.75;
    display: inline-flex;
    align-items: center;
}

.thinking-toggle-btn:hover,
.thinking-toggle-btn.active {
    opacity: 1;
}

.thinking-toggle-btn img {
    width: 16px;
    height: 16px;
    display: block;
}

.send-btn {
    width: 28px;
    height: 28px;
    background: #1a73e8;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.send-btn:hover {
    background: #1557b0;
}

.mic-btn {
    width: 28px;
    height: 28px;
    background: #1a73e8;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.mic-btn:hover {
    background: #1557b0;
}

.mic-btn.recording {
    background: #ff4757;
    color: white;
    animation: pulse 1.5s infinite;
}

.mic-btn.recording:hover {
    background: #ff3742;
}

.stop-btn {
    width: 28px;
    height: 28px;
    background: #d93025;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.stop-btn:hover {
    background: #b71c1c;
}

.stop-btn.stopping {
    pointer-events: none;
}

.stop-btn .stop-icon {
    width: 12px;
    height: 12px;
    background: currentColor;
    border-radius: 1px;
}

.stop-btn .stop-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: stop-spin 0.8s linear infinite;
}

.stop-btn.stopping .stop-icon {
    display: none;
}

.stop-btn.stopping .stop-spinner {
    display: block;
}

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

        .sheet-reference {
        background-color: rgba(26, 115, 232, 0.1);
        color: #1a73e8;
        border-radius: 4px;
        padding: 2px 4px;
        font-weight: 500;
        white-space: nowrap;
    }



        .loading {
            padding: 12px;
            color: #5f6368;
            display: none;
            align-items: center;
            gap: 8px;
            animation: fadeIn 0.3s ease-out;
        }

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

        .typing-indicator {
            display: flex;
            gap: 4px;
        }

        .typing-dot {
            width: 6px;
            height: 6px;
            background: #1a73e8;
            border-radius: 50%;
            animation: typingAnimation 1.4s infinite;
        }

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

        @keyframes typingAnimation {
            0%, 60%, 100% { transform: translateY(0); }
            30% { transform: translateY(-4px); }
        }

        .message-time {
            font-size: 10px;
            opacity: 0.7;
            margin-top: 4px;
            text-align: right;
        }

        #chat-messages::-webkit-scrollbar {
            width: 6px;
        }

        #chat-messages::-webkit-scrollbar-track {
            background: transparent;
        }

        #chat-messages::-webkit-scrollbar-thumb {
            background: #ccc;
            border-radius: 3px;
        }

        #chat-messages::-webkit-scrollbar-thumb:hover {
            background: #999;
        }
        /* Message footer styling */
.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.edit-button {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.edit-button .edit-text {
    display: none;
    font-size: 12px;
}

.edit-button:hover .edit-text {
    display: inline;
}

.edit-button:hover {
    opacity: 1;
}

/* Chat footer styling */
#chat-footer {
    padding: 6px 16px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    background: white;
}

#chat-footer button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #5f6368;
    border-radius: 4px;
    font-size: 12px;
}

#chat-footer button:hover {
    background: #f1f3f4;
}

#support-button .support-text {
    display: none;
}

#support-button:hover .support-text {
    display: inline;
}

/* Support Dialog */
.dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.dialog-content {
    background: white;
    border-radius: 12px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
}

.dialog-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dialog-header h3 {
    margin: 0;
    color: #202124;
    font-size: 18px;
    font-weight: 500;
}

.close-button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #5f6368;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.close-button:hover {
    background-color: #f1f3f4;
}

.dialog-body {
    padding: 24px;
    box-sizing: border-box;
}

.dialog-body textarea {
    width: 100%;
    height: 120px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box; /* Add this line */
}

.dialog-body textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26,115,232,0.2);
}

.dialog-buttons {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.dialog-buttons button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-button {
    background: transparent;
    border: 1px solid #e0e0e0;
    color: #5f6368;
}

.cancel-button:hover {
    background: #f1f3f4;
}

.send-button {
    background: #1a73e8;
    color: white;
    border: none;
}

.send-button:hover {
    background: #1557b0;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.dialog-body p {
    margin: 0;
    color: #202124;
    font-size: 14px;
    line-height: 1.5;
}
.success-message {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #34A853;
    padding: 16px;
    text-align: center;
    justify-content: center;
}

.success-message p {
    margin: 0;
    font-weight: 500;
}
.edit-input {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 2px solid #1a73e8;
    border-radius: 8px;
    background: white;
    color: #202124;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    outline: none;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.1);
    transition: all 0.2s ease;
    box-sizing: border-box;
    margin: -8px -12px; /* Compensate for message padding */
}

.edit-input:focus {
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
}

#chat-header {
    justify-content: space-between;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-logo {
    width: 28px;
    height: 28px;
    background: #ffffff;
    border-radius: 50%;
    border: 2px solid #ffffff;
    padding: 3px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.credit-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

.credit-counter svg {
    fill: currentColor;
}


#manage-plan-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #5f6368;
    border-radius: 4px;
}

#manage-plan-button:hover {
    background: #f1f3f4;
}

#manage-plan-button .manage-plan-text {
    display: none;
}

#manage-plan-button:hover .manage-plan-text {
    display: inline;
}

.low-credits-warning {
    padding: 8px 16px;
    background: #fef7e6;
    color: #b95000;
    font-size: 12px;
    text-align: center;
    border-top: 1px solid #f9e4c6;
    display: none; /* Hidden by default */
}

.plan-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.plan-button {
    display: block;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    color: #202124;
    transition: all 0.2s;
    margin: 8px 0;
    background: white;
}

.plan-button:hover {
    background: #f8f9fa;
    border-color: #1a73e8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.plan-button h4 {
    margin: 0 0 8px 0;
    color: #1a73e8;
}

.plan-button p {
    margin: 4px 0;
    color: #5f6368;
}

.retry-button {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    margin-left: 8px;
}

.retry-button:hover {
    opacity: 1;
}

.retry-button .retry-text {
    display: none;
    font-size: 12px;
}

.retry-button:hover .retry-text {
    display: inline;
}

.helpdesk-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    margin: -8px;
    border-radius: 8px;
    color: #5f6368;
    text-decoration: none;
    transition: all 0.2s;
}

.helpdesk-link:hover {
    background: #f1f3f4;
    color: #1a73e8;
}

.help-icon {
    flex-shrink: 0;
    color: #5f6368;
    transition: color 0.2s;
}

.helpdesk-link:hover .help-icon {
    color: #1a73e8;
}

.external-icon {
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.2s;
}

.helpdesk-link:hover .external-icon {
    opacity: 1;
}


#loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: white;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 1;
            transition: opacity 0.3s ease-out;
        }

        #loading-overlay.fade-out {
            opacity: 0;
            pointer-events: none;
        }

        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 3px solid #f3f3f3;
            border-top: 3px solid #1a73e8;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 16px;
        }

        .loading-text {
            color: #5f6368;
            font-size: 12.5px;
            text-align: center;
        }

        .loading-progress {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            margin-top: 16px;
            width: 200px;
        }

        .progress-text {
            color: #1a73e8;
            font-size: 12px;
            text-align: center;
        }

        /* Troubleshooting link within loading overlay */
        #troubleshooting-link {
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            padding: 12px 20px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 8px;
            border: 1px solid rgba(26, 115, 232, 0.2);
            backdrop-filter: blur(10px);
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease-in-out;
        }

        #troubleshooting-link.show {
            display: block;
            opacity: 1;
        }

        #troubleshooting-link a {
            color: #1a73e8;
            text-decoration: none;
            font-weight: bold;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        #troubleshooting-link a:hover {
            color: #1557b0;
            text-decoration: underline;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Hide main content initially */
        #chat-container {
            opacity: 0;
            transition: opacity 0.3s ease-out;
        }

        #chat-container.loaded {
            opacity: 1;
        }

        /* Modern Popup Styles */
.modern-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

.modern-popup {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 500px;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
  max-height: 80vh; /* Add maximum height */
  display: flex;
  flex-direction: column;
}

.popup-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popup-header h2 {
  margin: 0;
  font-size: 18px;
  color: #1a73e8;
  font-weight: 600;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  color: #5f6368;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.close-button:hover {
  background-color: #f1f3f4;
}

.popup-content {
  padding: 24px;
  overflow-y: auto; /* Enable scrolling for the entire content */
  flex: 1; /* Allow content to take available space */
}

.popup-content pre,
.popup-content pre code {
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  max-width: 100% !important;
}
.popup-content .code-block-wrapper,
#popup-message .code-block-wrapper {
  position: relative;
  margin: 8px 0;
}
.popup-content .code-block-wrapper pre,
#popup-message .code-block-wrapper pre {
  padding-right: 40px;
}
.popup-content .code-block-copy-btn,
#popup-message .code-block-copy-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  color: #5f6368;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.popup-content .code-block-copy-btn:hover,
#popup-message .code-block-copy-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #202124;
}
.popup-content .code-block-copy-btn:active,
#popup-message .code-block-copy-btn:active {
  background: rgba(0, 0, 0, 0.14);
}

#popup-message {
  color: #202124;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  /* Remove max-height and overflow */
  max-height: none;
  overflow-y: visible;
  padding-right: 5px;
}

/* Style for markdown content */
#popup-message ul, 
#popup-message ol {
  margin: 12px 0;
  padding-left: 24px;
}

#popup-message li {
  margin: 8px 0;
}

#popup-message strong {
  color: #202124;
  font-weight: 600;
}

.popup-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  /* Remove scrolling here - it will be handled by parent */
  max-height: none;
  overflow-y: visible;
}

.popup-option {
  padding: 12px 16px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.popup-option:hover {
  background: #f1f3f4;
  border-color: #1a73e8;
  transform: translateY(-1px);
}

.popup-footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.popup-primary-button {
  background: #1a73e8;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
  min-height: 40px;
  min-width: 100px;
  display: flex;  /* Changed to just flex */
  align-items: center;
  justify-content: center;
}

.popup-primary-button.loading {
  color: transparent;
}

.popup-primary-button .loader {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;  /* This is key for centering */
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

.popup-primary-button.loading .loader {
  display: block;
}

.popup-nav-button {
  background: transparent;
  border: 1px solid #e0e0e0;
  padding: 10px 20px;
  border-radius: 6px;
  color: #5f6368;
  cursor: pointer;
  transition: all 0.2s;
}

.popup-nav-button:hover {
  background: #f1f3f4;
  border-color: #1a73e8;
  color: #1a73e8;
}

.popup-progress-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0e0e0;
  transition: all 0.3s;
}

.progress-dot.active {
  background: #1a73e8;
  transform: scale(1.2);
}

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

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

.expand-button {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    margin-left: 8px;
}

.expand-button:hover {
    opacity: 1;
}

.expand-button .expand-text {
    display: none;
    font-size: 12px;
}

.expand-button:hover .expand-text {
    display: inline;
}

.expand-button-loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.expand-button.loading .expand-icon {
    display: none;
}

.expand-button.loading .loading-icon {
    display: block;
}

.expand-button .loading-icon {
    display: none;
}

.floating-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2000;
}

.floating-error {
    background: #dc3545;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: none;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}
        

.setup-overlay-message {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26,115,232,0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000;
}

.survey-input-container {
    margin-top: 16px;
    width: 100%;
}

/* Base styles for both textarea and input */
.survey-text-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.2s;
}

/* Specific styles for textarea */
textarea.survey-text-input {
    min-height: 100px;
    resize: vertical;
}

/* Specific styles for input type */
input.survey-text-input {
    height: 40px;  /* Fixed height for single-line inputs */
    resize: none;
}

.survey-text-input:focus {
    outline: none;
    border-color: #1a73e8;
}

.survey-error {
    margin-top: 8px;
    font-size: 12px;
    animation: fadeIn 0.2s ease-in;
}

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


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

/* SAI commands builder styles */
.sai-commands-builder-tabs {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    background: #f8f9fa;
    border-bottom: 1px solid #dadce0;
    padding: 0 4px;
    scrollbar-width: none; /* Hide scrollbar for cleaner look */
    -webkit-overflow-scrolling: touch;
}

.sai-commands-builder-tabs::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.sai-commands-builder-tab {
    flex: 0 0 auto;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #5f6368;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    user-select: none;
    white-space: nowrap;
}

.sai-commands-builder-tab:hover {
    color: #202124;
    background: rgba(0,0,0,0.04);
}

.sai-commands-builder-tab.active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
}

.tab-content {
    padding: 16px;
    display: none;
}

.tab-content.active {
    display: block;
}

.generator-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 16px;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #dadce0;
}

.generator-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 120px;
}

.generator-field label {
    font-size: 11px;
    color: #5f6368;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compact-select {
    padding: 6px 8px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    font-size: 12px;
    background: #fff;
    cursor: pointer;
    outline: none;
}

.compact-select:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26,115,232,0.1);
}

.pill-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f3f4;
    padding: 4px 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.pill-toggle:hover {
    background: #e8eaed;
}

.pill-toggle.active {
    background: #e8f0fe;
    color: #1a73e8;
    border-color: #d2e3fc;
}

.pill-toggle input {
    display: none;
}

.pill-toggle .toggle-icon {
    font-size: 14px;
}

.formula-input-container {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(60,64,67,0.1);
}

.column-selector-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.column-chips {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    margin-top: 8px;
    padding-bottom: 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.column-chips::-webkit-scrollbar {
    height: 4px;
}

.column-chips::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 4px;
}

.column-chips::-webkit-scrollbar-thumb {
    background: #dadce0;
    border-radius: 4px;
}

.column-chip {
    flex: 0 0 auto;
    padding: 4px 12px;
    background: #f1f3f4;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.column-chip:hover {
    background: #e8eaed;
}

.column-chip.selected {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

/* Guide Tab - Command Cards */
.guide-command-card {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.guide-command-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.guide-command-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a73e8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-command-desc {
    font-size: 12px;
    color: #5f6368;
    margin-bottom: 12px;
    line-height: 1.4;
}

.guide-info-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    padding-top: 8px;
    border-top: 1px solid #f1f3f4;
}

.guide-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    margin-top: 1px;
}

.guide-badge.requires {
    background: #fce8e6;
    color: #d93025;
}

.guide-badge.uses {
    background: #e6f4ea;
    color: #1e8e3e;
}

.guide-info-text {
    font-size: 11px;
    color: #3c4043;
    line-height: 1.4;
}

.guide-example-container {
    margin-top: 12px;
    background: #f8f9fa;
    border: 1px dashed #dadce0;
    border-radius: 6px;
    padding: 12px;
    position: relative;
}

.guide-example-tag {
    position: absolute;
    top: -8px;
    right: 8px;
    background: #dadce0;
    color: #5f6368;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.guide-example-code {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: #1a73e8;
    word-break: break-all;
    display: block;
}

.guide-section-header {
    font-size: 11px;
    font-weight: 600;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 24px 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dadce0;
}

.settings-group {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.settings-group-title {
    font-size: 13px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-label {
    font-size: 12px;
    color: #3c4043;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 18px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 18px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #1a73e8;
}

input:checked + .slider:before {
    transform: translateX(14px);
}

#sai-commands-builder {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 16px;
}

#command-prompt-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: inherit;
}

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

.formula-actions button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.formula-actions button:first-child {
    background: #f1f3f4;
    color: #1a73e8;
}

.formula-actions button:last-child {
    background: #1a73e8;
    color: white;
}

/* Function Button Styles */
.function-button {
    background: none;
    border: none;
    padding: 8px 14px !important; 
    cursor: pointer;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: absolute;
    left: 46%;
    transform: translateX(-50%);
    font-family: 'Times New Roman', serif;
    line-height: 1;
    background: transparent !important; /* Ensure no background at rest */
    border: none !important; /* Remove any border */
    box-shadow: none !important; /* Remove any box shadow */
}


/* Preserve the loading spinner functionality */
.function-button .loading-icon {
    display: none; /* Keep this as is - it will be shown when loading */
    position: absolute;
    animation: spin 1s linear infinite;
}


/* Add this to ensure the Column SAI Generator has the same spinner behavior */
.column-sai-button.loading .function-icon {
    display: none !important; /* Hide the icon when loading */
}

.column-sai-button.loading .loading-icon {
    display: block !important; /* Show the spinner when loading */
}

/* Make sure the loading animation is consistent */
.loading-icon {
    display: none;
    position: absolute;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Add this new style for the Column SAI Generator button */
.column-sai-button {
    position: absolute;
    left: auto !important; /* Override the 50% positioning */
    right: 95px !important; /* Position from the right edge, before the credit counter */
    transform: none !important; /* Remove the transform that's causing issues */
    background: transparent !important; /* Ensure no background at rest */
    border: none !important; /* Remove any border */
    box-shadow: none !important; /* Remove any box shadow */
    padding: 8px !important; 
}

/* Hover States */
.function-button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    /* Combine both transforms for non-ltd version */
    transform: translateX(-50%) scale(1.05);
}

.column-sai-button:hover {
    background: rgba(255, 255, 255, 0.1) !important; /* Only show background on hover */
    transform: scale(1.05) !important; /* Only scale, don't translate */
}

/* Loading States */
.function-button.loading {
    pointer-events: none;
}

.function-button.loading .function-icon {
    display: none;
}

.function-button.loading .loading-icon {
    display: block;
}

.function-button .loading-icon {
    display: none;
}

.function-button.loading .loading-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.undo-button {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s;
    padding: 2px 4px;
    border-radius: 4px;
}

.undo-button:hover {
    opacity: 1;
    background: rgba(0,0,0,0.05);
}

.undo-button .undo-text {
    font-size: 12px;
    display: none;
}

.undo-button:hover .undo-text {
    display: inline;
}

.undo-button.loading {
    opacity: 0.5;
    cursor: default;
}

.undo-button.loading:hover {
    background: none;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.undo-button .loading-icon {
    animation: spin 1s linear infinite;
}

/* Add this CSS to your existing styles */
.manage-plan-loading {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px; /* Space between button and loading indicator */
}

.spinner {
    width: 16px; /* Size of the spinner */
    height: 16px;
    border: 2px solid rgba(26, 115, 232, 0.3); /* Light border */
    border-top: 2px solid #1a73e8; /* Darker border for the top */
    border-radius: 50%;
    animation: spin 0.6s linear infinite; /* Use existing spin animation */
}



/* Add this CSS to your existing styles */
#send-button:disabled {
    background-color: #e0e0e0; /* Light gray background */
    color: #a0a0a0; /* Gray text */
    cursor: not-allowed; /* Change cursor to indicate it's not clickable */
    opacity: 0.6; /* Make it slightly transparent */
}

#voice-button:disabled {
    background-color: #e0e0e0; /* Light gray background */
    color: #a0a0a0; /* Gray text */
    cursor: not-allowed; /* Change cursor to indicate it's not clickable */
    opacity: 0.6; /* Make it slightly transparent */
}

#sai-monitor-button {
    width: 100%;
    margin-bottom: 16px;
    padding: 8px;
    background: #f1f3f4;
    color: #1a73e8;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#sai-monitor-button:hover {
    background: #e8f0fe;
}

#sai-monitor-button.active {
    background: #e8f0fe;
    border-color: #1a73e8;
    color: #1a73e8;
    font-weight: 500;
    /* Optional: add a small dot indicator */
    position: relative;
}

#sai-monitor-button.active::before {
    content: "●";
    color: #1a73e8;
    margin-right: 4px;
    animation: pulse 2s infinite;
}

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

#sai-monitor-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f1f3f4;
    border-color: #e0e0e0;
}

/* Function button in header */
.function-button {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 8px;
    transition: background-color 0.2s;
}

.function-button:hover {
    background: #f0f0f0;
}

.function-icon {
    font-size: 28px !important; /* Increase from 24px to 28px */
    font-weight: bold !important; /* Make it bolder */
}

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

/* Bookmark button styles */
.message-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin: 12px 0;
}

.bookmark-button {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    color: #c0c0c0;
    background: transparent;
    border: none;
    transition: all 0.2s ease;
    opacity: 0.7;
    z-index: 1;
}

.bookmark-button:disabled,
.bookmark-button.syncing {
    opacity: 0.3;
    cursor: not-allowed;
    color: #888888;
}

.bookmark-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #888;
    opacity: 1;
}

.bookmark-button.active {
    color: #1a73e8;
    opacity: 1;
}

/* Bookmarks drawer/panel styles */
.bookmarks-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

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

.bookmarks-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.bookmarks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #dadce0;
    background: #fff;
    flex-shrink: 0;
}

.bookmarks-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bookmarks-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #202124;
    font-size: 16px;
    font-weight: 500;
}

.bookmarks-count {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f0fe;
    color: #1a73e8;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.bookmarks-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bookmarks-action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #5f6368;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.bookmarks-action-btn:hover {
    background-color: #f1f3f4;
    color: #202124;
}

.bookmarks-action-btn.add-bookmark-button:hover {
    background-color: #e8f0fe;
    color: #1a73e8;
}

.bookmarks-action-btn.bookmarks-close:hover {
    background-color: #fce8e6;
    color: #d93025;
}

.bookmarks-list {
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #f8f9fa;
    flex: 1;
}

.bookmarks-list::-webkit-scrollbar {
    width: 6px;
}

.bookmarks-list::-webkit-scrollbar-track {
    background: transparent;
}

.bookmarks-list::-webkit-scrollbar-thumb {
    background: #dadce0;
    border-radius: 3px;
}

.bookmark-item {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 16px;
    position: relative;
    cursor: default;
    transition: box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bookmark-item:hover {
    box-shadow: 0 1px 3px rgba(60,64,67,0.3);
    border-color: #dadce0;
}

.bookmark-item-content {
    color: #3c4043;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    padding-right: 24px;
}

.bookmark-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid #f1f3f4;
}

.bookmark-timestamp {
    font-size: 11px;
    color: #70757a;
}

.bookmark-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa0a6;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.bookmark-remove:hover {
    background-color: #fce8e6;
    color: #d93025;
}

/* Bookmark toggle animation */
@keyframes bookmarkPulse {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
    100% { transform: translateY(-50%) scale(1); }
}

.bookmark-button.just-toggled {
    animation: bookmarkPulse 0.3s ease-in-out;
}

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

.add-bookmark-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #1a73e8;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-bookmark-button:hover {
    background-color: rgba(26, 115, 232, 0.1);
}

.add-bookmark-form {
    display: none;
    margin-bottom: 12px;
}

.add-bookmark-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 8px;
    resize: vertical;
    min-height: 60px;
}

.add-bookmark-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.add-bookmark-actions button {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

.add-bookmark-cancel {
    background: transparent;
    border: 1px solid #e0e0e0;
    color: #5f6368;
}

.add-bookmark-save {
    background: #1a73e8;
    color: white;
    border: none;
}

.add-bookmark-cancel:hover {
    background: #f1f3f4;
}

.add-bookmark-save:hover {
    background: #1557b0;
}

.context-icon {
    font-size: 16px;
    line-height: 1;
}

/* Selected range display styles */
.selected-range-display {
    background: white;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 0 16px 8px 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.clear-range-button {
    background: none;
    border: none;
    color: #5f6368;
    cursor: pointer;
    font-size: 16px;
    padding: 0 0 0 8px;
    margin-left: auto;
    transition: color 0.2s ease;
}

.clear-range-button:hover {
    color: #1a73e8;
}

.drop-zone {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    background-color: #f8f9fa;
    padding: 20px;
    text-align: center;
    margin: 10px 0;
    transition: all 0.3s ease;
    display: none;
}

/* Full overlay so drop zone is visible when dragging into iframe */
.drop-zone-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10000 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: rgba(232, 240, 254, 0.95) !important;
    border: 3px dashed #1a73e8 !important;
}

.drop-zone-overlay .drop-zone-text {
    font-size: 18px;
    font-weight: 500;
    color: #1a73e8;
}

.drop-zone.active {
    background-color: #e8f0fe;
    border-color: #1a73e8;
}

.drop-zone.drag-over {
    background-color: #e8f0fe;
    border-color: #1a73e8;
}

.drop-zone-text {
    color: #5f6368;
    font-size: 14px;
}




#voice-button.recording {
    color: #ea4335;
    background-color: rgba(234, 67, 53, 0.1);
    animation: pulse 1.5s infinite;
}

.voice-status {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 100;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.language-dropdown {
    position: absolute;
    bottom: 60px;
    right: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 200px;
    max-height: 300px;
    overflow-y: auto;
  }
  
  .language-header {
    padding: 10px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
  }
  
  .language-options {
    display: flex;
    flex-direction: column;
  }
  
  .language-options button {
    background: none;
    border: none;
    text-align: left;
    padding: 8px 12px;
    cursor: pointer;
  }
  
  .language-options button:hover {
    background-color: #f5f5f5;
  }
  
  .language-options button.selected {
    background-color: #e6f4ff;
    font-weight: bold;
  }

  .autocomplete-dropdown {
        background-color: white;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        max-height: 200px;
        overflow-y: auto;
        z-index: 10000;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
        font-family: 'Inter', sans-serif;
    }
    
    .autocomplete-option {
        padding: 12px 16px;
        cursor: pointer;
        color: #202124;
        font-size: 14px;
        transition: all 0.2s ease;
        border-bottom: 1px solid #f1f3f4;
    }
    
    .autocomplete-option:last-child {
        border-bottom: none;
    }
    
    .autocomplete-option:hover {
        background-color: #f8f9fa;
        color: #1a73e8;
    }
    
    .autocomplete-option.selected {
        background-color: #1a73e8 !important;
        color: white !important;
        font-weight: 500;
    }

    .flash-success {
    background-color: #4285F4 !important; /* Google blue color */
    color: white !important;
    transition: background-color 0.5s ease;
}

.loading-spinner-small {
    animation: spin 1.5s linear infinite;
}

.loading-spinner-small circle {
    stroke-dasharray: 150;
    stroke-dashoffset: 75;
}



/* Custom context menu */
.custom-context-menu {
    position: absolute;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 10px;
    z-index: 1001;
    width: 220px;
    font-size: 14px;
    color: #202124;
    max-width: 90vw;
}

.context-menu-title {
    font-weight: 500;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.context-menu-description {
    margin-bottom: 8px;
    line-height: 1.4;
    font-size: 13px;
    color: #5f6368;
}

.context-menu-link {
    display: block;
    margin-top: 10px;
    color: #1a73e8;
    text-decoration: none;
    font-size: 13px;
}

.context-menu-link:hover {
    text-decoration: underline;
}
 

