/* GENTOO-CHAT-BAR-2026-05-20 — canonical bottom-omnibar AI chat */
.gcb-mount {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    display: flex; flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 16px rgba(13, 42, 74, 0.06);
    pointer-events: none;
}
.gcb-mount > * { pointer-events: auto; }

.gcb-bar {
    display: flex; align-items: center; gap: 8px;
    height: 56px; padding: 0 14px;
    background: #fff;
}
.gcb-brand {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px 4px 6px; border-radius: 999px;
    background: linear-gradient(135deg, #0d2a4a 0%, #1ba8d8 100%);
    color: #fff; flex-shrink: 0;
}
.gcb-brand-icon { font-size: 16px; }
.gcb-brand-name { font: 700 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.gcb-brand-by { font: 500 10px/1 -apple-system, sans-serif; opacity: 0.75; padding-left: 4px; border-left: 1px solid rgba(255,255,255,0.3); }
.gcb-input {
    flex: 1 1 auto; min-width: 0;
    padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 999px;
    font: 400 14px/1.4 -apple-system, BlinkMacSystemFont, sans-serif;
    color: #0d2a4a; background: #f8fafc;
}
.gcb-input:focus { outline: none; border-color: #1ba8d8; background: #fff; box-shadow: 0 0 0 3px rgba(27, 168, 216, 0.18); }
.gcb-toggle {
    background: transparent; color: #475569; border: 1px solid #e2e8f0;
    border-radius: 999px; width: 36px; height: 36px;
    font-size: 14px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.gcb-toggle:hover { color: #0d2a4a; border-color: #1ba8d8; background: #d6f0f9; }
.gcb-send {
    background: #1ba8d8; color: #fff; border: none;
    padding: 10px 18px; border-radius: 999px;
    font: 600 13px/1 -apple-system, BlinkMacSystemFont, sans-serif;
    cursor: pointer; flex-shrink: 0;
}
.gcb-send:hover { background: #0d8ab8; }

/* PEEK — transient last-turn above the bar (12s fade) */
.gcb-peek {
    background: #ecf8fd; border-top: 1px solid #1ba8d8;
    padding: 8px 14px; font-size: 12px; color: #0d2a4a;
    display: flex; gap: 8px; align-items: baseline;
    animation: gcb-peek-in 200ms ease-out;
}
@keyframes gcb-peek-in { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.gcb-peek-who { font-weight: 700; color: #1ba8d8; flex-shrink: 0; }
.gcb-peek-text { color: #0d2a4a; opacity: 0.85; }
.gcb-peek[data-role="user"] { background: #f1f5f9; border-top-color: #94a3b8; }
.gcb-peek[data-role="user"] .gcb-peek-who { color: #475569; }

/* THREAD — expanded mode, 40vh scrollable */
.gcb-thread {
    height: 40vh; max-height: 480px;
    overflow-y: auto;
    padding: 14px; background: #fcfdfe;
    border-top: 1px solid #e2e8f0;
    display: flex; flex-direction: column; gap: 12px;
}
.gcb-empty {
    color: #94a3b8; font-style: italic; font-size: 13px;
    padding: 32px 16px; text-align: center;
}
.gcb-turn {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 10px 14px;
}
.gcb-turn-user { background: #f8fafc; align-self: flex-end; max-width: 75%; }
.gcb-turn-cairn { background: #ecf8fd; border-color: #d6f0f9; max-width: 90%; }
.gcb-turn-who { font: 700 11px/1.2 -apple-system, BlinkMacSystemFont, sans-serif; color: #1ba8d8; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.gcb-turn-user .gcb-turn-who { color: #475569; }
.gcb-turn-body { font-size: 13px; line-height: 1.5; color: #0d2a4a; white-space: pre-wrap; word-wrap: break-word; }
.gcb-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.gcb-action-pill {
    border: 1px solid var(--gl-brand-soft);
    background: var(--gl-surface);
    color: var(--gl-brand-strong);
    border-radius: 999px;
    padding: 6px 10px;
    font: 600 12px/1 -apple-system, BlinkMacSystemFont, sans-serif;
    cursor: pointer;
}
.gcb-action-pill:hover {
    border-color: var(--gl-brand);
    background: var(--gl-brand-soft);
}

/* Body padding compensation so content doesn't sit underneath the bar + suggestions */
body.gcb-mounted { padding-bottom: 96px !important; }

/* HOTFIX-2026-05-20: FORCE chat-bar visible — max z-index, !important everywhere.
   Multiple surfaces had conflicting bottom-fixed elements. This eliminates ambiguity. */
.gcb-mount {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-top: 1px solid #e2e8f0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}
.gcb-bar {
    display: flex !important;
    height: 56px !important;
    visibility: visible !important;
}

.gcb-suggestions-row {
    display: flex !important;
    gap: 8px !important;
    padding: 6px 14px !important;
    background: var(--gl-brand-paper) !important;
    border-top: 1px solid var(--gl-border) !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
}
.gcb-suggestions-row::-webkit-scrollbar { display: none !important; }
.gcb-suggestion-pill {
    background: var(--gl-brand-strong) !important;
    border: 1px solid var(--gl-brand) !important;
    color: var(--gl-surface) !important;
    border-radius: 999px !important;
    padding: 5px 12px !important;
    font-size: 11px !important;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: transform 150ms cubic-bezier(0.16, 1, 0.3, 1), background 150ms ease, box-shadow 150ms ease !important;
    box-shadow: 0 1px 2px rgba(13, 42, 74, 0.1) !important;
    flex-shrink: 0 !important;
    user-select: none !important;
}
.gcb-suggestion-pill:hover {
    background: var(--gl-brand) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px rgba(27, 168, 216, 0.2) !important;
}
.gcb-suggestion-pill:active { transform: translateY(0) !important; }
.gcb-suggestion-tag {
    color: var(--gl-brand) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 9px !important;
    letter-spacing: 0.03em !important;
    transition: color 150ms ease !important;
}
.gcb-suggestion-pill:hover .gcb-suggestion-tag { color: var(--gl-brand-strong) !important; }
.gcb-suggestion-text { opacity: 0.95 !important; }
