/* Overview · Live Feed slot (abaixo do Macro Reversal Radar / CPM card) */
:root {
  --overview-feed-h: 248px;
  --overview-feed-bar-h: 32px;
}

body.view-geral-active:not(.terminal-active) #overview-feed-slot {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  flex-shrink: 0;
  margin-top: auto;
  height: var(--overview-feed-h);
  min-height: var(--overview-feed-bar-h);
  max-height: 280px;
  border-top: 1px solid var(--inst-border, rgba(255, 255, 255, 0.08));
  background: #080b0f;
  min-width: 0;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  z-index: 4;
}

body.view-geral-active:not(.terminal-active) #overview-feed-slot.overview-feed-collapsed {
  height: var(--overview-feed-bar-h);
  min-height: var(--overview-feed-bar-h);
  max-height: var(--overview-feed-bar-h);
}

body.view-geral-active:not(.terminal-active) #overview-feed-slot.overview-feed-collapsed .overview-feed-scroll {
  display: none;
}

body:not(.view-geral-active) #overview-feed-slot,
body.terminal-active #overview-feed-slot {
  display: none !important;
}

body.view-geral-active:not(.terminal-active) #setup-log-panel {
  flex: 1 1 0;
  min-height: 96px;
}

.overview-feed-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  height: var(--overview-feed-bar-h);
  padding: 0 8px;
  border-bottom: 1px solid var(--inst-border-dim, rgba(255, 255, 255, 0.06));
  background: rgba(0, 0, 0, 0.35);
  cursor: default;
  user-select: none;
}

#overview-feed-slot.overview-feed-collapsed .overview-feed-bar {
  border-bottom: none;
  cursor: pointer;
}

.overview-feed-title {
  font-family: var(--font-bloomberg, var(--inst-mono, monospace));
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--inst-cyan, #4a8fa0);
}

.overview-feed-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef5350;
  box-shadow: 0 0 8px rgba(239, 83, 80, 0.55);
  flex-shrink: 0;
}

.overview-feed-bar-spacer {
  flex: 1 1 auto;
  min-width: 4px;
}

.overview-feed-badge {
  font-family: var(--font-bloomberg, var(--inst-mono, monospace));
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 2px;
  color: #fff;
  background: #ef5350;
  box-shadow: 0 0 8px rgba(239, 83, 80, 0.45);
  animation: overview-feed-badge-pulse 1.2s ease infinite;
}

.overview-feed-toggle {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--inst-border-dim, rgba(255, 255, 255, 0.1));
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--inst-cyan, #4a8fa0);
  font-family: var(--font-bloomberg, var(--inst-mono, monospace));
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.overview-feed-toggle:hover {
  background: rgba(74, 143, 160, 0.12);
  border-color: rgba(74, 143, 160, 0.35);
  color: #7ec8d8;
}

.overview-feed-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.overview-feed-scroll::-webkit-scrollbar { width: 4px; }
.overview-feed-scroll::-webkit-scrollbar-thumb { background: var(--border2, #2a2a2a); border-radius: 2px; }

body.view-geral-active .overview-feed-scroll .cal-feed-item {
  padding: 11px 12px 12px;
  font-family: var(--font-bloomberg, var(--inst-mono, monospace));
}

body.view-geral-active .overview-feed-scroll .cal-feed-meta {
  gap: 10px;
  margin-bottom: 7px;
}

body.view-geral-active .overview-feed-scroll .cal-feed-tag {
  font-family: var(--font-bloomberg, var(--inst-mono, monospace));
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 4px 9px;
}

body.view-geral-active .overview-feed-scroll .cal-feed-time {
  font-family: var(--font-bloomberg, var(--inst-mono, monospace));
  font-size: 13px;
  letter-spacing: 0.04em;
}

body.view-geral-active .overview-feed-scroll .cal-feed-txt {
  font-family: var(--font-bloomberg, var(--inst-mono, monospace));
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

body.view-geral-active .overview-feed-scroll .cal-feed-item--new {
  background: rgba(239, 83, 80, 0.1);
  border-left: 2px solid #ef5350;
  animation: overview-feed-item-in 0.45s ease;
}

#overview-feed-slot.overview-feed-alerting {
  border-top-color: rgba(239, 83, 80, 0.65);
  box-shadow: inset 0 0 0 1px rgba(239, 83, 80, 0.25), 0 0 18px rgba(239, 83, 80, 0.12);
}

#overview-feed-slot.overview-feed-alerting .overview-feed-bar {
  background: rgba(239, 83, 80, 0.14);
}

#overview-feed-slot.overview-feed-alerting .overview-feed-led {
  animation: overview-feed-led-burst 0.55s ease infinite alternate;
}

@keyframes overview-feed-item-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes overview-feed-badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

@keyframes overview-feed-led-burst {
  from { box-shadow: 0 0 6px rgba(239, 83, 80, 0.55); transform: scale(1); }
  to { box-shadow: 0 0 14px rgba(239, 83, 80, 0.95); transform: scale(1.15); }
}

body.view-geral-active.gov-tv-wl-mode #overview-feed-slot {
  display: flex !important;
}

body.view-geral-active.fs-mode.fs-mrr-panel #overview-feed-slot {
  display: flex !important;
  flex: 0 0 auto;
  height: var(--overview-feed-h);
}

body.view-geral-active.fs-mode.fs-mrr-panel #overview-feed-slot.overview-feed-collapsed {
  height: var(--overview-feed-bar-h);
}

body.view-geral-active.fs-chart-only #overview-feed-slot {
  display: none !important;
}
