/* GCP Change Feed pane. Layout reuses the incident-timeline css
   shape but is namespaced lp-gcp-cf2 to avoid conflicts with the
   cost-forecast pane's lp-gcp-cf prefix. */

.lp-gcp-cf2 .lp-pane-badge {
    background: #1a73e8;  /* lint-allow brand-colour */
    color: #ffffff;        /* lint-allow brand-colour */
}

.lp-gcp-cf2-body { padding: 12px var(--lp-pane-pad-x); }

.lp-gcp-cf2-headline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.lp-gcp-cf2-card {
    border: 1px solid var(--lp-pane-border, #e8d8a8);
    background: var(--lp-pane-bg, #fffaf0);
    border-radius: 6px;
    padding: 10px 12px;
}
.lp-gcp-cf2-card-value {
    font-size: 22px; font-weight: 700;
    color: var(--lp-pane-title-ink, #4a3f1c);
    font-variant-numeric: tabular-nums;
}
.lp-gcp-cf2-card-label {
    font-size: 11px;
    color: var(--lp-pane-meta-ink, #998870);
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-top: 4px;
}

.lp-gcp-cf2-event {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--lp-pane-border-faint, #f0e7d0);
}
.lp-gcp-cf2-action {
    font-size: 13px; color: var(--lp-pane-title-ink, #4a3f1c);
    overflow-wrap: anywhere;
    word-break: break-word;
}
.lp-gcp-cf2-action code {
    background: rgba(0,0,0,0.04); padding: 1px 4px;
    border-radius: 3px; font-size: 11px;
    word-break: break-all;
}
.lp-gcp-cf2-meta {
    font-size: 11px; color: var(--lp-pane-meta-ink, #998870);
    margin-top: 2px;
}
.lp-gcp-cf2-time {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px; color: var(--lp-pane-meta-ink, #998870);
    white-space: nowrap;
}

.lp-gcp-cf2-action-tag {
    display: inline-block;
    padding: 2px 6px; border-radius: 3px;
    background: rgba(26,115,232,0.10); color: #1a73e8;  /* lint-allow brand-colour */
    font-size: 10px; font-weight: 600;
    margin-right: 6px;
}
.lp-gcp-cf2-action-tag.is-create { background: rgba(16,185,129,0.12); color: #047857; }
.lp-gcp-cf2-action-tag.is-delete { background: rgba(220,38,38,0.10); color: #991b1b; }
.lp-gcp-cf2-action-tag.is-update { background: rgba(245,158,11,0.12); color: #b45309; }

/* Scrollable change list — bounds the 24h stream to ~20 rows and lets
   it scroll, with a fading "scroll for more" hint (mirrors the SSM
   Parameters scroll region on the discovery dashboard). Tune the row
   count via max-height. */
.lp-cf-scroll {
    position: relative;
    max-height: 640px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.lp-cf-scroll-hint {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
    padding: 12px 0 4px;
    margin-top: -8px;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--lp-pane-meta-ink, #998870);
    background: linear-gradient(to top, var(--lp-pane-bg, #fffaf0) 45%, transparent);
    transition: opacity 160ms ease;
}
.lp-cf-scroll-hint--hidden { opacity: 0; }
