.super-dentist-agent {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
}

.super-dentist-agent .is-hidden {
  display: none !important;
}

.super-dentist-agent__teaser {
  width: min(320px, calc(100vw - 4rem));
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 14px;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.16);
  padding: 0.75rem 0.875rem;
}

.super-dentist-agent__teaser-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.3;
}

.super-dentist-agent__launcher {
  position: relative;
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  max-width: 72px;
  max-height: 72px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: transparent;
  padding: 0;
  flex-shrink: 0;
}

.super-dentist-agent__launcher:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 4px;
}

.super-dentist-agent__launcher-ping {
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 25%, #60a5fa, #1d4ed8 66%);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.32);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.super-dentist-agent__launcher:hover .super-dentist-agent__launcher-ping,
.super-dentist-agent__launcher--active .super-dentist-agent__launcher-ping {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.38);
}

.super-dentist-agent__avatar {
  position: absolute;
  inset: 8px;
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
  border-radius: 999px;
  overflow: hidden;
  display: block;
}

.super-dentist-agent__avatar svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

.super-dentist-agent__launcher-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.super-dentist-agent__panel {
  width: min(390px, calc(100vw - 2rem));
  max-height: min(640px, calc(100vh - 7.5rem));
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 18px;
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.super-dentist-agent__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #ffffff;
}

.super-dentist-agent__header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
}

.super-dentist-agent__header-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

.super-dentist-agent__header-copy {
  min-width: 0;
}

.super-dentist-agent__header-copy h2 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 700;
}

.super-dentist-agent__header-copy p {
  margin: 0.1rem 0 0;
  font-size: 0.74rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.86);
}

.super-dentist-agent__close {
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.45rem 0.68rem;
  cursor: pointer;
}

.super-dentist-agent__close:hover {
  background: rgba(255, 255, 255, 0.26);
}

.super-dentist-agent__messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.95rem 0.85rem;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.super-dentist-agent__message {
  display: flex;
}

.super-dentist-agent__message p {
  margin: 0;
  padding: 0.58rem 0.72rem;
  border-radius: 12px;
  max-width: 88%;
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.super-dentist-agent__message--agent {
  justify-content: flex-start;
}

.super-dentist-agent__message--agent p {
  background: #e2e8f0;
  color: #0f172a;
  border-top-left-radius: 4px;
}

.super-dentist-agent__message--user {
  justify-content: flex-end;
}

.super-dentist-agent__message--user p {
  background: #1d4ed8;
  color: #ffffff;
  border-top-right-radius: 4px;
}

.super-dentist-agent__composer {
  border-top: 1px solid rgba(148, 163, 184, 0.36);
  background: #ffffff;
  padding: 0.65rem 0.7rem 0.72rem;
}

.super-dentist-agent__label {
  display: block;
  font-size: 0.72rem;
  color: #334155;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.super-dentist-agent__input-row {
  display: flex;
  gap: 0.5rem;
}

.super-dentist-agent__input-row input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.52rem 0.62rem;
  font-size: 0.84rem;
  line-height: 1.2;
  color: #0f172a;
  background: #ffffff;
}

.super-dentist-agent__input-row input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.super-dentist-agent__send {
  border: none;
  border-radius: 10px;
  background: #1d4ed8;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0.8rem;
}

.super-dentist-agent__send:hover {
  background: #1e40af;
}

.super-dentist-agent__typing {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
}

.super-dentist-agent__typing span,
.super-dentist-agent__teaser-typing span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  display: inline-block;
  background: #64748b;
  animation: super-dentist-agent-bounce 1.2s infinite ease-in-out;
}

.super-dentist-agent__typing span:nth-child(2),
.super-dentist-agent__teaser-typing span:nth-child(2) {
  animation-delay: 0.16s;
}

.super-dentist-agent__typing span:nth-child(3),
.super-dentist-agent__teaser-typing span:nth-child(3) {
  animation-delay: 0.32s;
}

.super-dentist-agent__teaser-typing {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
}

@keyframes super-dentist-agent-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-2px);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .super-dentist-agent {
    right: 0.7rem;
    bottom: 0.7rem;
  }

  .super-dentist-agent__panel {
    width: min(390px, calc(100vw - 1.35rem));
    max-height: min(620px, calc(100vh - 6.5rem));
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Mobile-first layout helpers for reusable UI patterns. */
.mobile-stack-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.75rem;
}

.mobile-stack-actions > * {
  width: 100%;
}

.mobile-full-width-control {
  display: inline-flex;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.mobile-card-list {
  display: grid;
  gap: 1rem;
}

.mobile-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background-color: #ffffff;
  padding: 1rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.admin-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.admin-form-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.75rem;
}

.admin-form-actions > * {
  width: 100%;
}

.admin-row-responsive {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-flow-preview-scroll {
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.admin-flow-preview-scroll > .admin-flow-preview-track {
  display: flex;
  width: max-content;
  gap: 0.5rem;
}

.support-content h2 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.support-shell {
  background: #ffffff;
  color: #111827;
}

.support-tree-intro {
  background: #f9fafb;
  color: #374151;
}

.support-tree-row {
  border-color: #d1d5db !important;
  background-color: #ffffff !important;
  opacity: 1 !important;
}

.support-tree-row:hover {
  border-color: #a5b4fc !important;
  background-color: #f5f7ff !important;
}

.support-tree-title {
  color: #111827 !important;
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 1 !important;
}

.support-tree-slug {
  color: #4b5563 !important;
}

.support-tree-badge {
  background-color: #eef2ff !important;
  color: #3730a3 !important;
  border: 1px solid #c7d2fe;
}

.support-content h3 {
  margin-top: 0.85rem;
  margin-bottom: 0.4rem;
  color: #334155;
}

.support-content ol,
.support-content ul {
  padding-left: 1.25rem;
}

.support-content li {
  margin-bottom: 0.35rem;
}

.support-content figure {
  margin: 1rem 0;
}

.support-content img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
}

.support-content figcaption {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  color: #475569;
}

@media (min-width: 640px) {
  .mobile-stack-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-stack-actions > * {
    width: auto;
  }

  .mobile-full-width-control {
    width: auto;
  }

  .admin-page-actions {
    width: auto;
    justify-content: flex-end;
  }

  .admin-form-actions {
    flex-direction: row;
    justify-content: flex-end;
  }

  .admin-form-actions > * {
    width: auto;
  }

  .admin-row-responsive {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.dark .support-content h2 {
  color: #e2e8f0;
}

.dark .support-shell {
  background: #1f2937;
  color: #f9fafb;
}

.dark .support-tree-intro {
  background: #111827;
  color: #d1d5db;
}

.dark .support-tree-row {
  border-color: #4b5563 !important;
  background-color: #111827 !important;
}

.dark .support-tree-row:hover {
  border-color: #6366f1 !important;
  background-color: #1f2937 !important;
}

.dark .support-tree-title {
  color: #f3f4f6 !important;
}

.dark .support-tree-slug {
  color: #cbd5e1 !important;
}

.dark .support-tree-badge {
  background-color: #1f2937 !important;
  color: #c7d2fe !important;
  border-color: #4f46e5;
}

.dark .support-content h3 {
  color: #cbd5e1;
}

.dark .support-content img {
  border-color: #374151;
}

.dark .support-content figcaption {
  color: #94a3b8;
}
