#sarah-chat-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #38bdf8, #0066cc 45%, #004494);
  color: #fff;
  font-size: 0;
  line-height: 0;
  box-shadow: 0 16px 40px rgba(2, 6, 23, .22), 0 0 0 1px rgba(255, 255, 255, .2) inset;
}

#sarah-chat-btn .sarah-fab-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  flex-shrink: 0;
}

#sarah-chat-btn.sarah-fab-pending {
  animation: sarahFabAttention 1.15s ease-in-out infinite;
  box-shadow: 0 16px 44px rgba(37, 99, 235, 0.42);
}

@keyframes sarahFabAttention {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

#sarah-chat-box {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 99999;
  width: min(390px, calc(100vw - 24px));
  height: min(640px, calc(100vh - 120px));
  display: none;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(2, 6, 23, .22);
}

.sarah-header {
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, #eff6ff, #ffffff);
  border-bottom: 1px solid #e2e8f0;
}

.sarah-head-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sarah-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sarah-title {
  font-weight: 900;
  color: #0f172a;
}

.sarah-subtitle {
  color: #64748b;
  font-size: 12px;
  margin-top: 2px;
}

.sarah-close {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  border-radius: 10px;
  cursor: pointer;
  width: 34px;
  height: 34px;
}

.sarah-body {
  flex: 1;
  overflow: auto;
  padding: 14px;
  background: #f8fafc;
}

.sarah-msg {
  max-width: 88%;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 16px;
  line-height: 1.55;
  font-size: 14px;
}

.sarah-msg-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.sarah-assistant {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(2, 6, 23, .05);
}

.sarah-user {
  margin-left: auto;
  background: linear-gradient(135deg, #0066cc, #004494);
  color: #fff;
}

.sarah-thinking {
  opacity: .75;
  font-style: italic;
}

.sarah-msg-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}

.sarah-msg-cta {
  display: inline-flex;
  margin-top: 0;
  padding: 9px 12px;
  border-radius: 999px;
  text-decoration: none;
  background: #0066cc;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
}

.sarah-msg-cta-secondary {
  background: #fff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  font-weight: 800;
}

.sarah-quick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.sarah-quick-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.sarah-quick-btn-secondary {
  background: #f8fafc;
}

.sarah-inputbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 14px 14px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

#sarah-chat-input {
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
  font-size: 14px;
}

#sarah-chat-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}

#sarah-chat-send {
  border: 0;
  border-radius: 12px;
  background: #0066cc;
  color: #fff;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}

.whats-float,
[data-assist-float] {
  display: none !important;
}

@media (max-width: 640px) {
  #sarah-chat-box {
    right: 12px;
    bottom: 78px;
    width: calc(100vw - 24px);
    height: min(72vh, 620px);
  }

  #sarah-chat-btn {
    right: 12px;
    bottom: 12px;
  }
}


/* ===== Sarah — navegação compartilhada + breadcrumb polish ===== */
.nav-links.sarah-nav-standardized a[aria-current="page"],
.mobile-quick-nav a[aria-current="page"] {
  font-weight: 800;
  color: #0f172a !important;
}

.sarah-breadcrumb-wrap,
.breadcrumb-wrap.sarah-breadcrumb-wrap,
.breadcrumb-wrap {
  padding: 8px 0 0 !important;
}

.sarah-breadcrumb,
.breadcrumb.sarah-breadcrumb,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  font-size: 13px;
  line-height: 1.45;
}

.sarah-breadcrumb a,
.sarah-breadcrumb-current {
  max-width: 100%;
}

.sarah-breadcrumb-current {
  color: #0f172a;
  font-weight: 700;
}

.mobile-quick-nav.sarah-mobile-nav {
  display: none;
  border-top: 1px solid rgba(226,232,240,.9);
  border-bottom: 1px solid rgba(226,232,240,.9);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
}

.mobile-quick-nav.sarah-mobile-nav .container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 10px 16px;
}

.mobile-quick-nav.sarah-mobile-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

.mobile-quick-nav.sarah-mobile-nav a[aria-current="page"] {
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(2,6,23,.08);
}

@media (max-width: 920px) {
  .mobile-quick-nav.sarah-mobile-nav {
    display: block;
  }

  .nav-links.sarah-nav-standardized {
    display: none !important;
  }

  .sarah-breadcrumb-wrap,
  .breadcrumb-wrap.sarah-breadcrumb-wrap,
  .breadcrumb-wrap {
    padding-top: 10px !important;
  }
}
