/* Summary Bot – button */
.nativemetrics-summarybot-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background: #1a73e8;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.nativemetrics-summarybot-btn:hover {
    background: #1557b0;
}

/* Overlay */
.nativemetrics-summarybot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.nativemetrics-summarybot-overlay-open {
    opacity: 1;
    visibility: visible;
}
.nativemetrics-summarybot-panel {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.nativemetrics-summarybot-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 28px;
    line-height: 1;
    color: #5f6368;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}
.nativemetrics-summarybot-close:hover {
    background: #f1f3f4;
    color: #202124;
}
.nativemetrics-summarybot-iframe {
    width: 100%;
    height: 85vh;
    min-height: 400px;
    border: none;
    display: block;
}

/* Accordion – inline in page flow, light green style */
.nativemetrics-summarybot-accordion-wrap {
    position: relative;
    max-width: 720px;
    margin: 24px auto;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
}
.nativemetrics-summarybot-accordion-toggle {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 500;
    color: #1b5e20;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.nativemetrics-summarybot-accordion-toggle:hover {
    background: rgba(255, 255, 255, 0.5);
}
.nativemetrics-summarybot-accordion-toggle-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.nativemetrics-summarybot-accordion-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2e7d32;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}
.nativemetrics-summarybot-accordion-toggle-text {
    line-height: 1.3;
}
.nativemetrics-summarybot-accordion-label {
    font-weight: 600;
    margin-right: 8px;
    color: #1b5e20;
}
.nativemetrics-summarybot-accordion-ai-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #2e7d32;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 10px;
    vertical-align: middle;
}
.nativemetrics-summarybot-accordion-hint {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #388e3c;
    margin-top: 2px;
}
.nativemetrics-summarybot-accordion-expand {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 500;
    color: #1b5e20;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #c8e6c9;
}
.nativemetrics-summarybot-accordion-chevron {
    margin-left: 4px;
    font-size: 10px;
    vertical-align: middle;
}
.nativemetrics-summarybot-accordion-body {
    display: none;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: #f1f8e9;
    border-top: 1px solid #c8e6c9;
}
.nativemetrics-summarybot-accordion-open .nativemetrics-summarybot-accordion-body {
    display: block;
}
.nativemetrics-summarybot-accordion-wrap .nativemetrics-summarybot-iframe {
    height: 70vh;
    min-height: 360px;
    display: block;
}
