/* -------------------------------------------------------------
   Codespace Auto-Shutdown Warning Banner & Status Dot
   ------------------------------------------------------------- */
.status-dot.warn {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
  animation: pulse 1.2s ease-in-out infinite;
}

.codespace-banner {
  flex: 0 0 auto;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.16) 0%, rgba(234, 88, 12, 0.12) 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--text);
  padding: 8px 16px;
  font-size: 0.8rem;
  z-index: 20;
  animation: slide-down 0.22s ease-out;
}

.codespace-banner[hidden] {
  display: none !important;
}

.cs-banner-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cs-banner-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.cs-banner-text {
  flex: 1;
  min-width: 200px;
  color: var(--text);
}

.cs-banner-text strong {
  color: #fbbf24;
  font-weight: 600;
}

.cs-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-keepalive-btn {
  background: #f59e0b;
  color: #111;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.cs-keepalive-btn:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}

.cs-keepalive-btn:active {
  transform: translateY(0);
}

.cs-keepalive-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cs-banner-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.cs-banner-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Melhorias de uso diário: microinterações e acessibilidade de movimento */
.icon-btn, .pill-btn, .rail-link, .new-chat, .send-btn, .composer-menu-item {
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.icon-btn:active, .pill-btn:active, .rail-link:active, .new-chat:active, .send-btn:not(:disabled):active {
  transform: scale(0.94);
}
.suggestion { transition: transform 0.18s var(--ease-out-quint, ease), border-color 0.15s ease, box-shadow 0.18s ease; }
.suggestion:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14); }
.conv-item { transition: background 0.15s ease, transform 0.15s ease; }
.conv-item:hover { transform: translateX(2px); }
.composer:focus-within { box-shadow: 0 0 0 2px var(--accent-soft); border-color: var(--accent-line); }
.composer { transition: box-shadow 0.18s ease, border-color 0.18s ease; }
.fc-flip { transition: transform 0.2s ease, background 0.2s ease; }
.fc-flip:active { transform: scale(0.985); }
.pillar-svg .pillar-bar { transition: r 0.15s ease, fill 0.15s ease; cursor: pointer; }
.pillar-svg .pillar-bar:hover { fill: #f87171; filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.7)); }
.pillar-card { animation: msg-appear 0.3s ease both; }
.scroll-down { transition: opacity 0.2s ease, transform 0.2s ease; }
.scroll-down:hover { transform: translateX(-50%) translateY(2px); }
.kbd-hint { position: fixed; right: 14px; bottom: 10px; z-index: 5; font-size: 0.62rem; color: var(--faint); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Card de ferramentas: patches incrementais, animações só em CSS. */
.tools-status { display: inline-flex; align-items: center; gap: 6px; }
.tools-current[hidden] { display: none; }
.tool-exec-item.is-new { animation: tool-item-in 0.28s ease-out both; }
.tools-count-badge.bump { animation: tool-badge-bump 0.3s ease-out; }

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

@keyframes tool-badge-bump {
  40% { transform: scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  .tool-exec-item.is-new,
  .tools-count-badge.bump,
  .tools-live-pulse,
  .tool-item-spin { animation: none; }
}

/* Sugestões de continuação ao fim da última resposta. */
.sugg-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sugg-chip {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text-soft);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  text-align: left;
  animation: tool-item-in 0.28s ease-out both;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.sugg-chip:hover { border-color: var(--accent); color: var(--accent-text); background: var(--panel-hover); }
.sugg-chip:nth-child(2) { animation-delay: 0.06s; }
.sugg-chip:nth-child(3) { animation-delay: 0.12s; }

