@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --brand-blue: #004aad;
  --brand-blue-strong: #003883;
  --brand-pink: #ff66c4;
  --bg: #ffffff;
  --panel: #f6f9ff;
  --panel-strong: #eef4fb;
  --border: rgba(0, 74, 173, 0.16);
  --border-strong: rgba(0, 74, 173, 0.28);
  --text: #004aad;
  --muted: rgba(0, 74, 173, 0.68);
  --subtle: rgba(0, 74, 173, 0.46);
  --focus: rgba(255, 102, 196, 0.28);
  --shadow: 0 18px 44px rgba(0, 74, 173, 0.12);
  --radius: 24px;
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body.is-dialog-open {
  overflow: hidden;
}

body.is-public-sidebar-open {
  overflow: hidden;
}

body.is-public-drawer-open {
  overflow: hidden;
}

button,
input,
textarea,
a {
  font: inherit;
}

button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

::selection {
  background: rgba(255, 102, 196, 0.2);
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 200;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff;
  padding: 10px 16px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(0, 74, 173, 0.09);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.public-header__inner {
  width: min(1700px, calc(100% - 32px));
  min-height: var(--header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.public-brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: fit-content;
  color: var(--brand-blue);
  font-weight: 850;
}

.public-brand img,
.footer-logo img {
  width: auto;
  height: 36px;
  object-fit: contain;
}

.public-brand span,
.footer-logo span {
  color: var(--brand-blue);
  font-size: 1rem;
  letter-spacing: 0;
}

.public-nav {
  justify-self: start;
  margin-left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.public-nav a,
.mobile-menu a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--muted);
  padding: 0 14px;
  font-size: 0.94rem;
  font-weight: 800;
  transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.public-nav a:hover,
.public-nav a:focus-visible,
.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  background: rgba(255, 102, 196, 0.14);
  color: var(--brand-pink);
  transform: translateY(-1px);
  outline: none;
}

.public-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.public-mobile-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.public-mobile-brand img {
  display: block;
  width: auto;
  height: 36px;
  max-width: 180px;
  object-fit: contain;
}

.public-language-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.public-language-select {
  width: 242px;
  height: 54px;
  appearance: none;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0 48px 0 20px;
  color: var(--brand-blue);
  background: #fff;
  font: inherit;
  font-weight: 800;
  text-transform: lowercase;
  cursor: pointer;
}

.public-language-shell::after {
  content: "";
  position: absolute;
  right: 20px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brand-blue);
  border-bottom: 2px solid var(--brand-blue);
  transform: translateY(-3px) rotate(45deg);
  pointer-events: none;
}

.public-language-select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus);
}

.public-social-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.public-social-link {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #2b6bc7, #004aad);
  box-shadow: 0 8px 18px rgba(0, 74, 173, 0.18);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.public-share-button {
  border: 0;
  padding: 0;
  cursor: pointer;
}

.public-social-link svg {
  display: block;
  width: 27px;
  height: 27px;
  shape-rendering: geometricPrecision;
}

.public-social-link .social-icon-svg--whatsapp,
.public-social-link .social-icon-svg--facebook,
.public-social-link .social-icon-svg--linkedin {
  color: #fff;
  fill: #fff;
  stroke: none;
}

.public-social-link .social-icon-svg--whatsapp {
  width: 28px;
  height: 28px;
}

.public-social-link:hover,
.public-social-link:focus-visible {
  color: #fff;
  background: var(--brand-pink);
  box-shadow: 0 10px 24px rgba(255, 102, 196, 0.38);
  transform: translateY(-1px);
  outline: none;
}

.btn {
  min-height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  font-size: 0.94rem;
  font-weight: 850;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 74, 173, 0.18);
}

.btn--primary:hover {
  box-shadow: 0 16px 34px rgba(0, 74, 173, 0.24);
}

.btn--quiet {
  color: var(--brand-blue);
  background: #fff;
  border-color: var(--border);
}

.btn--quiet:hover {
  background: var(--panel);
  border-color: var(--border-strong);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--brand-blue);
  background: #fff;
  align-items: center;
  justify-content: center;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  display: block;
  position: relative;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
}

.mobile-menu[hidden] {
  display: none;
}

.public-mobile-social-links {
  display: none;
}

.mobile-menu__primary {
  width: 100%;
  justify-content: center;
  text-align: center;
  background: var(--brand-blue);
  color: #fff !important;
}

.mobile-language-shell {
  position: relative;
  display: none;
  width: 100%;
}

.mobile-language-shell::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--brand-blue);
  border-bottom: 2px solid var(--brand-blue);
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
}

.mobile-language-select {
  width: 100%;
  min-height: 44px;
  appearance: none;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 0 44px 0 14px;
  color: var(--brand-blue);
  background: #fff;
  font-weight: 800;
  text-transform: lowercase;
  cursor: pointer;
}

.mobile-language-select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus);
}

.public-product {
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  align-items: stretch;
  padding: clamp(18px, 3vw, 32px) clamp(14px, 2.5vw, 28px) 28px;
}

.preview-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(210px, 20%) minmax(0, 1fr) minmax(210px, 20%);
  border: 1px solid var(--border);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 22px 68px rgba(0, 74, 173, 0.09);
  overflow: hidden;
}

.preview-panel {
  min-width: 0;
  padding: 18px 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-panel--left {
  border-right: 1px solid var(--border);
}

.preview-panel--right {
  border-left: 1px solid var(--border);
}

.preview-panel__head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--brand-blue);
  font-size: 0.9rem;
}

.panel-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--brand-pink);
  box-shadow: 0 0 0 5px rgba(255, 102, 196, 0.14);
}

.preview-panel button,
.preview-list span {
  width: 100%;
  min-height: 44px;
  border-radius: 16px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-blue);
  background: #fff;
  border: 1px solid transparent;
  font-weight: 750;
  font-size: 0.88rem;
  text-align: left;
}

.preview-panel button:hover,
.preview-panel button:focus-visible {
  border-color: var(--border);
  background: var(--panel);
}

.preview-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.preview-list span {
  background: var(--panel);
  color: var(--muted);
}

.chat-preview {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
}

.chat-preview__topline {
  min-height: 58px;
  padding: 12px clamp(14px, 2vw, 24px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--subtle);
  font-size: 0.85rem;
  font-weight: 800;
}

.status-pill {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 102, 196, 0.12);
  color: var(--brand-blue);
}

.chat-preview__center {
  min-height: 0;
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(36px, 9vh, 86px) 0 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.chat-preview h1 {
  margin: 0;
  color: var(--brand-blue);
  font-size: clamp(2.25rem, 6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.chat-preview p {
  width: min(620px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.7;
}

.public-composer {
  width: min(720px, 100%);
  min-height: 82px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 74, 173, 0.12);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "input send"
    "tools send";
  align-items: center;
  gap: 6px 10px;
}

.public-composer:focus-within {
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px rgba(0, 74, 173, 0.14), 0 0 0 4px rgba(255, 102, 196, 0.14);
}

.public-composer__field {
  grid-area: input;
  min-width: 0;
}

.public-composer textarea {
  width: 100%;
  max-height: 160px;
  min-height: 34px;
  border: 0;
  resize: none;
  outline: none;
  background: transparent;
  color: var(--brand-blue);
  padding: 7px 10px 0;
  font-size: 1rem;
  line-height: 1.45;
}

.public-composer textarea::placeholder {
  color: var(--subtle);
  opacity: 1;
}

.public-composer__tools {
  grid-area: tools;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.composer-tool {
  min-height: 36px;
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.composer-tool svg {
  width: 17px;
  height: 17px;
}

.composer-tool:hover,
.composer-tool:focus-visible {
  background: var(--panel);
  color: var(--brand-blue);
}

.composer-send {
  grid-area: send;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.composer-send:hover {
  background: var(--brand-blue-strong);
}

.prompt-chips {
  width: min(720px, 100%);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-chips button {
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  padding: 0 13px;
  font-size: 0.82rem;
  font-weight: 800;
}

.prompt-chips button:hover,
.prompt-chips button:focus-visible {
  color: var(--brand-blue);
  border-color: var(--border-strong);
  background: #fff;
}

.preview-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.preview-tabs span,
.source-preview span {
  min-height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--brand-blue);
  font-size: 0.86rem;
  font-weight: 850;
}

.source-preview {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.source-preview span {
  height: 74px;
  background:
    linear-gradient(90deg, rgba(0, 74, 173, 0.08) 28%, rgba(255, 255, 255, 0.76) 28%),
    var(--panel);
}

.info-section,
.workflow-section,
.resources-section,
.pricing-section,
.contact-section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(78px, 12vw, 140px) 0;
}

.section-copy {
  width: min(760px, 100%);
}

.section-kicker {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 102, 196, 0.12);
  color: var(--brand-blue);
  padding: 0 13px;
  font-size: 0.78rem;
  font-weight: 900;
}

.section-copy h2 {
  margin: 16px 0 0;
  color: var(--brand-blue);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.section-copy a {
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.info-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.info-grid article {
  min-width: 0;
  min-height: 180px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 74, 173, 0.06);
  padding: 24px;
}

.info-grid h3 {
  margin: 0;
  font-size: 1.08rem;
}

.info-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.workflow-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
}

.workflow-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  list-style: none;
  counter-reset: workflow;
}

.workflow-list li {
  counter-increment: workflow;
  position: relative;
  min-height: 90px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  padding: 20px 20px 20px 74px;
}

.workflow-list li::before {
  content: counter(workflow);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 900;
}

.workflow-list strong {
  display: block;
  font-size: 1rem;
}

.workflow-list span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.resources-section,
.pricing-section,
.contact-section {
  border-top: 1px solid rgba(0, 74, 173, 0.08);
}

.section-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Public home: reuse the signed-in workspace geometry with safe preview data. */
.public-dashboard-home {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: clamp(12px, 2.2vw, 24px) clamp(10px, 2vw, 24px) 0;
}

.dashboard-chatbot .public-preview-app {
  width: min(1440px, 100%);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.public-preview-app {
  width: min(1440px, 100%);
  min-height: calc(100dvh - var(--header-height) - 56px);
  height: auto !important;
  margin: 0 auto;
  grid-template-rows: minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 22px 68px rgba(0, 74, 173, 0.09);
  overflow: hidden;
}

#publicPreviewApp.sidebar-collapsed .mobile-close {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* The rule above makes the toggle button always visible while collapsed
   (there's no hover-to-reveal on a homepage). The brand logo it sits on
   top of, however, still only fades out on :hover/:focus-within (see
   chatbot.css .sidebar-collapsed .dashboard-brand-logo), so in the normal
   resting state both were showing at once - the toggle button doesn't
   fully cover the larger logo underneath, so a sliver of the logo (the
   pink dot and part of the blue mark) was visible peeking out from behind
   it. Keeping the logo hidden by default here as well, to match the
   toggle button's always-visible state, removes that leftover logo
   sliver. */
#publicPreviewApp.sidebar-collapsed .dashboard-brand-logo {
  opacity: 0;
}

.public-preview-app .sidebar,
.public-preview-app .main-pane,
.public-preview-app .public-preview-workspace {
  height: auto !important;
  min-height: 100%;
}

.public-preview-app .sidebar {
  width: 100%;
  min-height: auto;
  align-self: start;
}

.public-preview-app .sidebar-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100% - 68px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.public-preview-app .sidebar-scroll > .sidebar-rows:first-child .sidebar-row--new {
  margin-top: 0;
}

.public-preview-app .sidebar-head {
  min-height: 68px;
  height: 68px;
  box-sizing: border-box;
  padding: 10px 12px;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.public-preview-app .sidebar-brand {
  padding: 0 8px;
}

.public-preview-app .sidebar-apps {
  margin-top: 0;
}

/* Group chat / Temporary chat icon buttons: same pink hover treatment the
   signed-in dashboard already gives .icon-btn (see chatbot.css). Restated
   here, scoped to the public preview, so it doesn't depend on chatbot.css
   also being freshly loaded - this file's own cache-busting query string
   is what's being bumped as these fixes land. Hover/focus only; nothing
   about size, layout, or resting appearance changes. */
.public-preview-app .thread-actions .icon-btn:hover,
.public-preview-app .thread-actions .icon-btn:focus-visible {
  background: var(--pink-hover-bg);
  border-color: var(--pink-hover-border);
  color: var(--brand-pink);
  box-shadow: 0 8px 20px rgba(255, 102, 196, 0.12);
  outline: none;
}

.public-preview-app .main-pane {
  overflow: visible;
}

.public-preview-app .thread-head {
  min-height: 68px;
  height: 68px;
  box-sizing: border-box;
}

.dashboard-chatbot .public-sidebar-open {
  display: none !important;
}

.public-preview-app .public-preview-workspace .source-sidebar-head {
  min-height: 68px;
  height: 68px;
  box-sizing: border-box;
}

.public-preview-app .chat-scroll {
  overflow: visible;
  padding-top: 0;
}

.public-preview-hero {
  width: min(100%, 920px) !important;
  max-width: none !important;
  min-height: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px) 48px !important;
  justify-content: center;
}

.public-preview-hero .hero-center {
  padding: 0 0 18px;
}

.public-preview-hero h1 {
  margin: 0;
  color: var(--brand-blue);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.public-preview-composer-shell {
  max-width: 920px !important;
}

.public-preview-composer-shell .composer {
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-rows: auto;
  grid-template-areas: none;
}

.public-preview-composer-shell .attachment-tray {
  display: none;
}

.public-preview-composer-shell .search-shell,
.public-preview-composer-shell .composer-utils,
.public-preview-composer-shell .composer-send {
  grid-area: auto;
}

.public-preview-workspace {
  display: flex !important;
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  box-shadow: none !important;
}

.public-preview-workspace .source-sidebar-body {
  overflow: visible;
}

.dashboard-chatbot .public-workspace-open,
.public-workspace-backdrop {
  display: none !important;
}

@media (min-width: 981px) {
  .public-preview-app:not(.sidebar-collapsed) .sidebar-topbar {
    position: relative;
    justify-content: center;
  }

  .public-preview-app:not(.sidebar-collapsed) .sidebar-brand {
    justify-content: center;
  }

  .public-preview-app:not(.sidebar-collapsed) .mobile-close {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Defer the toggle/logo layout-mode switch (flex<->grid, relative<->
     absolute, full size<->rail size) until after the sidebar width
     transition finishes, so the button never snaps to a different spot
     mid-animation. Uses the same delayed-transition idiom already used
     above for the mobile drawer's visibility. */
  #publicPreviewApp .sidebar-topbar,
  #publicPreviewApp .sidebar-brand,
  #publicPreviewApp .mobile-close {
    transition-behavior: allow-discrete;
    transition:
      width 0s linear 0.22s,
      height 0s linear 0.22s,
      display 0s linear 0.22s,
      position 0s linear 0.22s,
      grid-area 0s linear 0.22s,
      place-items 0s linear 0.22s,
      justify-content 0s linear 0.22s,
      padding 0s linear 0.22s,
      cursor 0s linear 0.22s,
      opacity 0.14s ease,
      transform 0.14s ease,
      background 0.16s ease,
      border-color 0.16s ease,
      color 0.16s ease;
  }

  #publicPreviewApp:not(.sidebar-collapsed) .sidebar-topbar,
  #publicPreviewApp:not(.sidebar-collapsed) .sidebar-brand,
  #publicPreviewApp:not(.sidebar-collapsed) .mobile-close {
    transition-delay: 0s;
  }
}

#publicPreviewApp .public-preview-workspace {
  border-left-color: var(--sidebar-border);
}

#publicPreviewApp.sidebar-collapsed .sidebar {
  border-right-color: var(--sidebar-border);
}

/* Keep the left toggle button the same size collapsed as expanded
   (the collapsed-rail default is 46x46, larger than the open state's
   36x36), and restore its header's bottom divider line, which a
   collapsed-only rule elsewhere removes. */
#publicPreviewApp.sidebar-collapsed .mobile-close {
  width: 36px;
  height: 36px;
}

/* Fully static, no flicker: the button still inherits opacity/transform/
   background/border-color/color transitions from the rules above (meant
   for the sidebar's open/close animation), which can catch stray hover or
   focus changes on this always-visible button and animate it. Cancelling
   all transitions/animations here keeps it perfectly still. */
#publicPreviewApp.sidebar-collapsed .mobile-close {
  transition: none !important;
  animation: none !important;
}

#publicPreviewApp.sidebar-collapsed .sidebar-head {
  border-bottom: 1px solid var(--border);
}

/* Same fix, for the right-hand Workspace panel's own header/toggle row
   ("Workspace" title + open/close arrow). It has the identical problem:
   the header's display/padding/alignment switch discretely the instant
   the panel starts collapsing or expanding, out of step with the panel's
   own width transition, which is what reads as a "snag". Deferring the
   switch until the width transition finishes removes it. Written without
   a media-query wrapper since it only controls timing — the existing
   breakpoint rules elsewhere still decide the actual collapsed/expanded
   widths, this just keeps the header in sync with whichever is active. */
#publicPreviewApp .public-preview-workspace .source-sidebar-head,
#publicPreviewApp .public-preview-workspace .source-sidebar-head h2,
#publicPreviewApp .public-preview-workspace .source-sidebar-body,
#publicPreviewApp .public-preview-workspace .source-sidebar-close {
  transition-behavior: allow-discrete;
  transition:
    display 0s linear 0.22s,
    padding 0s linear 0.22s,
    align-items 0s linear 0.22s,
    justify-content 0s linear 0.22s,
    border-color 0s linear 0.22s,
    opacity 0.14s ease,
    transform 0.14s ease;
}

#publicPreviewApp:not(.workspace-collapsed) .public-preview-workspace .source-sidebar-head,
#publicPreviewApp:not(.workspace-collapsed) .public-preview-workspace .source-sidebar-head h2,
#publicPreviewApp:not(.workspace-collapsed) .public-preview-workspace .source-sidebar-body,
#publicPreviewApp:not(.workspace-collapsed) .public-preview-workspace .source-sidebar-close {
  transition-delay: 0s;
}

@media (min-width: 981px) {

  #publicPreviewApp,
  #publicPreviewApp.sidebar-collapsed {
    grid-template-columns: minmax(220px, 20%) minmax(0, 1fr) minmax(220px, 20%);
  }

  #publicPreviewApp.workspace-collapsed,
  #publicPreviewApp.sidebar-collapsed.workspace-collapsed {
    grid-template-columns: minmax(220px, 20%) minmax(0, 1fr) 44px;
  }

  .public-preview-app.workspace-collapsed .public-preview-workspace {
    width: 44px !important;
    min-width: 44px;
  }

  .public-preview-app.workspace-collapsed .public-preview-workspace .source-sidebar-head {
    height: 100%;
    padding: 12px 4px;
    border-bottom: 0;
    align-items: flex-start;
    justify-content: center;
  }

  #publicPreviewApp.workspace-collapsed .public-preview-workspace .source-sidebar-head {
    height: 68px;
    border-bottom: 1px solid var(--border);
  }

  /* Match the left sidebar's collapsed toggle button: that one already
     gets a visible white pill (background + border) by default while
     collapsed, not just on hover (see chatbot.css .sidebar-collapsed
     .mobile-close). The right-hand toggle only had that on :hover before,
     so it read as a bare icon with no button shape while resting. */
  #publicPreviewApp.workspace-collapsed .public-preview-workspace .source-sidebar-close {
    background: rgba(255, 255, 255, 0.96);
    border-color: var(--sidebar-border);
  }

  /* Fully static, no flicker: same as the left toggle button. This one
     still inherited the opacity/transform transition meant for the
     workspace panel's open/close animation, which could catch stray
     hover/focus changes on this always-visible button and animate it.
     Cancelling all transitions/animations keeps it perfectly still. */
  #publicPreviewApp.workspace-collapsed .public-preview-workspace .source-sidebar-close {
    transition: none !important;
    animation: none !important;
  }

  .public-preview-app.workspace-collapsed .public-preview-workspace .source-sidebar-head h2,
  .public-preview-app.workspace-collapsed .public-preview-workspace .source-sidebar-body {
    display: none;
  }

  /* The left/right header borders above only span each rail's own visible
     width. When a side is collapsed, its grid column stays wider than the
     rail itself (the inner .sidebar / .public-preview-workspace shrinks and
     sits flush-left inside that column), leaving a blank gap between the
     rail's short border and the middle panel's border. That gap is what
     reads as "the line is missing" whenever either side is collapsed.
     Fixing this by drawing one continuous divider across the whole app
     shell - at the same height as the three existing header rows (68px) -
     removes the dependency on all three borders happening to line up, so
     the line is always unbroken no matter which side is open or closed.
     Purely a positioning fix: no size, color, or font changes. */
  #publicPreviewApp.public-preview-app {
    position: relative;
  }

  /* A generated ::before with z-index still lost to the Workspace panel's
     own opaque background (.source-sidebar { background:
     linear-gradient(...) }, also position: relative) on that side, because
     comparing z-index across two independently-positioned siblings is
     easy to get wrong. Using a real element instead, placed last in the
     markup (see index.html, right after .public-workspace-backdrop),
     sidesteps that entirely: elements painted later in DOM order always
     render on top of earlier same-layer siblings, so putting the divider
     last guarantees it is drawn over every panel's background, on every
     side, in every open/closed combination - no z-index needed. */
  #publicPreviewApp.public-preview-app .public-preview-header-divider {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
    pointer-events: none;
  }

  /* Each panel (sidebar-head / thread-head / source-sidebar-head) still
     draws its own border-bottom from the older, per-panel rules above and
     in chatbot.css. Whenever a panel is open, that old border and the new
     continuous line above both render at ~68px, and being two separate
     1px lines they don't land on the exact same sub-pixel row - producing
     the slightly doubled/misaligned line seen when a side is open.
     Turning the old per-panel borders off leaves the new continuous line
     as the single source of the divider in every state, so there is only
     ever one line to render. */
  /* Sidebar-head / thread-head still draw their own border-bottom from the
     older per-panel rules above and in chatbot.css, which doubles up with
     the continuous divider once a panel is open. The Workspace panel's own
     border-bottom (base rule above, plus its collapsed-state override) is
     left alone here: it already renders correctly on its own in both the
     open and collapsed states, so it doesn't need the continuous divider
     and suppressing it here was actually what made the line disappear on
     that side while open. */
  #publicPreviewApp.public-preview-app .sidebar-head,
  #publicPreviewApp.public-preview-app .thread-head {
    border-bottom: 0 !important;
  }
}

@media (max-width: 980px) {
  /* Keep the left drawer on one compositor layer while it slides. This avoids
     repainting the homepage underneath it during repeated open/close cycles. */
  .public-preview-app .sidebar {
    isolation: isolate;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity;
    transition: transform 0.22s ease, opacity 0.18s ease, visibility 0s linear 0.22s;
  }

  .public-preview-app.sidebar-collapsed .sidebar {
    transform: translate3d(-100%, 0, 0);
  }

  .public-preview-app:not(.sidebar-collapsed) .sidebar {
    transform: translate3d(0, 0, 0);
    transition-delay: 0s;
  }
}

@media (min-width: 981px) {
  #publicPreviewApp.public-preview-app,
  #publicPreviewApp.public-preview-app.sidebar-collapsed,
  #publicPreviewApp.public-preview-app.workspace-collapsed,
  #publicPreviewApp.public-preview-app.sidebar-collapsed.workspace-collapsed {
    grid-template-columns: var(--public-sidebar-width) minmax(0, 1fr) var(--public-sidebar-width);
  }

  #publicPreviewApp.public-preview-app .sidebar,
  #publicPreviewApp.public-preview-app.sidebar-collapsed .sidebar,
  #publicPreviewApp.public-preview-app .public-preview-workspace,
  #publicPreviewApp.public-preview-app.workspace-collapsed .public-preview-workspace {
    height: calc(100dvh - var(--header-height) - 56px) !important;
    min-height: 0;
    max-height: calc(100dvh - var(--header-height) - 56px);
    transition: width 0.22s ease, transform 0.22s ease, opacity 0.18s ease;
  }

  #publicPreviewApp.public-preview-app .sidebar,
  #publicPreviewApp.public-preview-app.sidebar-collapsed .sidebar {
    width: var(--public-sidebar-width) !important;
    max-width: var(--public-sidebar-width) !important;
  }

  #publicPreviewApp.public-preview-app.sidebar-collapsed .sidebar {
    width: var(--public-sidebar-rail-width) !important;
    max-width: var(--public-sidebar-rail-width) !important;
  }

  #publicPreviewApp.public-preview-app .public-preview-workspace,
  #publicPreviewApp.public-preview-app.workspace-collapsed .public-preview-workspace {
    width: var(--public-sidebar-width) !important;
    min-width: var(--public-sidebar-width);
  }

  #publicPreviewApp.public-preview-app.workspace-collapsed .public-preview-workspace {
    width: var(--public-sidebar-rail-width) !important;
    min-width: var(--public-sidebar-rail-width);
  }
}

.public-workspace-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.public-workspace-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--brand-blue);
}

.public-workspace-card__head span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.public-workspace-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.public-guest-row {
  cursor: default;
}

.public-account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.footer-social a {
  width: 38px;
  justify-content: center;
  padding: 0;
}

.footer-social a svg {
  width: 17px;
  height: 17px;
}

.footer-social a:last-child {
  font-size: 0.85rem;
  font-weight: 900;
}

.footer-reveal {
  min-height: clamp(104px, 14vh, 152px);
  position: relative;
  display: grid;
  align-items: end;
}

.footer-loader {
  min-height: clamp(76px, 10vh, 108px);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.footer-loader.is-visible {
  opacity: 1;
}

.brand-loader {
  width: 52px;
  height: 52px;
  display: block;
}

.brand-loader svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: rotate(-90deg);
}

.brand-loader circle {
  fill: none;
  stroke-width: 3;
}

.brand-loader__track {
  stroke: rgba(0, 74, 173, 0.14);
}

.brand-loader__progress {
  stroke: url(#footerLoaderGradient);
  stroke-linecap: round;
  stroke-dasharray: 138.23;
  stroke-dashoffset: 138.23;
}

.footer-loader.is-visible .brand-loader__progress {
  animation: brand-loader-complete 760ms linear forwards;
}

@keyframes brand-loader-complete {
  to {
    stroke-dashoffset: 0;
  }
}

.footer-sentinel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
}

.public-footer {
  border-top: 0;
  background: #fff;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.public-footer.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.footer-top-line {
  height: 1px;
  background: var(--brand-blue);
}

.footer-inner {
  width: min(1318px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(52px, 7vw, 78px) 0 34px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: clamp(42px, 7vw, 86px);
}

.footer-logo img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.footer-columns {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 58px);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 11px;
}

.footer-columns a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
  color: var(--brand-blue);
  font-size: 0.95rem;
  line-height: 1.35;
  white-space: nowrap;
}

.footer-columns a svg {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  color: var(--brand-blue);
}

.footer-columns a:hover,
.footer-columns a:focus-visible {
  color: var(--brand-pink);
  text-decoration: none;
}

.footer-columns a:hover svg,
.footer-columns a:focus-visible svg {
  color: var(--brand-pink);
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 48px;
}

.footer-legal {
  width: auto;
  margin: 0;
  padding: 0;
  border-top: 0;
  display: grid;
  gap: 12px;
  color: var(--brand-blue);
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 500;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.footer-legal-links a {
  color: var(--brand-blue);
  white-space: nowrap;
}

.footer-legal-links a + a::before {
  content: "|";
  display: inline-block;
  margin: 0 9px;
  color: var(--brand-blue);
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: var(--brand-pink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-right: 24px;
}

.footer-social a {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--brand-blue);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: #fff;
  background: var(--brand-pink);
  box-shadow: 0 8px 18px rgba(255, 102, 196, 0.3);
  transform: translateY(-1px);
  outline: none;
}

.footer-social a svg {
  width: 26px;
  height: 26px;
  color: #fff;
}

.footer-social a .social-icon-svg--whatsapp,
.footer-social a .social-icon-svg--facebook,
.footer-social a .social-icon-svg--linkedin {
  fill: #fff;
  stroke: none;
}

.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 42px;
  color: var(--brand-blue);
  font-size: 0.95rem;
}

.footer-back-to-top:hover,
.footer-back-to-top:focus-visible {
  color: var(--brand-pink);
  text-decoration: none;
}

.footer-back-to-top__icon {
  width: 40px;
  height: 40px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
}

.auth-dialog[hidden] {
  display: none;
}

.auth-dialog {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 18px;
}

.auth-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 32, 76, 0.34);
  backdrop-filter: blur(8px);
}

.auth-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  border: 1px solid rgba(0, 74, 173, 0.16);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 74, 173, 0.22);
  padding: clamp(28px, 6vw, 42px);
  text-align: center;
}

.auth-dialog__close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  background: #fff;
}

.auth-dialog h2 {
  margin: 0;
  color: var(--brand-blue);
  font-size: clamp(1.6rem, 5vw, 2.25rem);
  line-height: 1.1;
}

.auth-dialog p {
  margin: 14px auto 0;
  max-width: 360px;
  color: var(--muted);
  line-height: 1.7;
}

.auth-dialog__actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .preview-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview-panel {
    display: none;
  }

  .chat-preview {
    min-height: calc(100dvh - var(--header-height) - 56px);
  }

  .footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  .public-header__inner {
    gap: 10px;
  }

  .public-mobile-brand img {
    height: 34px;
    max-width: 145px;
  }

  .public-nav {
    margin-left: 0;
    gap: 2px;
  }

  .public-nav a {
    padding-inline: 10px;
    font-size: 0.86rem;
  }

  .public-language-select {
    width: 180px;
    height: 46px;
  }

  .public-social-links {
    gap: 5px;
  }

  .public-social-link {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .public-actions .btn {
    padding-inline: 14px;
    font-size: 0.86rem;
  }
}

@media (max-width: 820px) {
  .public-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .public-nav {
    display: none;
  }

  .public-actions .btn {
    display: none;
  }

  .public-actions > .public-language-shell,
  .public-actions > .public-social-links {
    display: none;
  }

  .dashboard-chatbot .public-mobile-brand {
    display: inline-flex;
    margin-right: auto;
  }

  .dashboard-chatbot .public-mobile-brand img {
    height: 34px;
    max-width: min(172px, calc(100vw - 82px));
  }

  .dashboard-chatbot .public-language-shell,
  .dashboard-chatbot .public-social-links {
    display: none;
  }

  .public-language-select {
    width: 150px;
    height: 44px;
  }

  .public-social-links {
    gap: 5px;
  }

  .public-social-link {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .public-social-link svg {
    width: 22px;
    height: 22px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .dashboard-chatbot .public-mobile-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 4px;
  }

  .mobile-language-shell {
    display: block;
  }

  .dashboard-chatbot .mobile-menu {
    width: calc(100% - 20px);
    max-height: calc(100dvh - var(--header-height) - 16px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .public-brand img {
    height: 32px;
    max-width: min(190px, calc(100vw - 150px));
  }

  .workflow-section,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-logo img {
    width: min(180px, 100%);
    height: auto;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-social {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-right: 0;
  }

  .info-grid,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .info-grid article {
    min-height: 0;
  }
}

@media (max-width: 1180px) {
  .dashboard-chatbot .public-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .dashboard-chatbot .public-nav {
    display: none;
  }

  .dashboard-chatbot .public-actions {
    width: auto;
    justify-self: end;
    justify-content: flex-end;
  }

  .dashboard-chatbot .public-actions .btn {
    display: none;
  }

  .dashboard-chatbot .public-language-select {
    width: 150px;
    height: 44px;
  }

  .dashboard-chatbot .public-social-links {
    gap: 5px;
  }

  .dashboard-chatbot .public-social-link {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .dashboard-chatbot .public-social-link svg {
    width: 22px;
    height: 22px;
  }

  .dashboard-chatbot .menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
  }

  .public-preview-app .mobile-close,
  .public-preview-app .source-sidebar-close {
    width: 44px;
    height: 44px;
  }

  .public-preview-app .source-sidebar-tab,
  .public-preview-app .composer-tool,
  .public-preview-app .composer-send {
    min-height: 44px;
  }

  .public-preview-app .thread-actions .icon-btn,
  .public-preview-app .composer-tool {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .public-preview-app .source-sidebar-tabs {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr) minmax(0, 0.95fr);
  }

  .public-preview-app .source-sidebar-tab {
    padding-inline: 0;
    font-size: 0.7rem;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 68px;
  }

  .public-header__inner {
    width: min(100% - 20px, 1240px);
  }

  .dashboard-chatbot .public-actions {
    justify-content: space-between;
  }

  .public-product {
    padding: 12px 10px 22px;
  }

  .public-language-select {
    width: 110px;
    padding-left: 14px;
  }

  .dashboard-chatbot .public-language-select {
    width: 128px;
  }

  .public-actions {
    gap: 4px;
  }

  .public-social-links {
    gap: 3px;
  }

  .public-social-link {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .public-social-link svg {
    width: 18px;
    height: 18px;
  }

  .dashboard-chatbot .public-social-links {
    display: none;
  }

  .dashboard-chatbot .mobile-menu {
    width: calc(100% - 20px);
    max-height: calc(100dvh - var(--header-height) - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .dashboard-chatbot .mobile-menu a {
    min-height: 44px;
  }

  .public-mobile-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 4px;
  }

  .mobile-menu .public-mobile-social-links .public-social-link {
    width: 44px;
    height: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    padding: 0;
    color: #fff;
  }

  .mobile-menu .public-mobile-social-links .public-social-link svg {
    width: 22px;
    height: 22px;
  }

  .preview-shell {
    border-radius: 24px;
  }

  .chat-preview__topline {
    min-height: 52px;
    font-size: 0.78rem;
  }

  .chat-preview__center {
    width: min(100% - 20px, 760px);
    padding-top: 34px;
    justify-content: flex-start;
  }

  .chat-preview h1 {
    font-size: clamp(2.1rem, 13vw, 3.1rem);
  }

  .public-composer {
    min-height: 74px;
    border-radius: 26px;
    grid-template-columns: 1fr 42px;
  }

  .composer-tool span {
    display: none;
  }

  .composer-tool {
    min-width: 36px;
    justify-content: center;
    padding: 0;
  }

  .composer-send {
    width: 42px;
    height: 42px;
  }

  .public-preview-hero {
    padding: 0 12px 28px !important;
  }

  .public-preview-composer-shell .composer {
    grid-template-columns: minmax(0, 1fr) 44px;
    grid-template-rows: auto auto;
    grid-template-areas:
      "search search"
      "tools send";
    gap: 8px;
    padding: 10px;
  }

  .public-preview-composer-shell .search-shell {
    grid-area: search;
  }

  .public-preview-composer-shell .composer-utils {
    grid-area: tools;
    min-width: 0;
    flex-wrap: wrap;
  }

  .public-preview-composer-shell .composer-send {
    grid-area: send;
    justify-self: end;
    align-self: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .info-section,
  .workflow-section,
  .resources-section,
  .pricing-section,
  .contact-section {
    width: min(100% - 24px, 1120px);
    padding: 76px 0;
  }

  .footer-reveal {
    min-height: 104px;
  }

  .auth-dialog__actions .btn {
    width: 100%;
    min-height: 44px;
  }

  .auth-dialog {
    padding: 12px;
  }

  .auth-dialog__panel {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }

  .auth-dialog__close {
    width: 44px;
    height: 44px;
  }

  .auth-dialog h2 {
    margin-top: 32px;
  }
}

/* Pre-sign-in homepage drawers share one width and one overlay contract. */
.public-preview-app {
  --public-sidebar-width: min(86vw, 360px);
  --public-sidebar-rail-width: 44px;
}

@media (min-width: 981px) {
  .public-preview-app {
    --public-sidebar-width: 360px;
  }

  #publicPreviewApp,
  #publicPreviewApp.sidebar-collapsed,
  #publicPreviewApp.workspace-collapsed,
  #publicPreviewApp.sidebar-collapsed.workspace-collapsed {
    grid-template-columns: var(--public-sidebar-width) minmax(0, 1fr) var(--public-sidebar-width);
  }

  .public-preview-app .sidebar {
    width: var(--public-sidebar-width) !important;
    max-width: var(--public-sidebar-width) !important;
  }

  .public-preview-app.sidebar-collapsed .sidebar {
    width: var(--public-sidebar-rail-width) !important;
    max-width: var(--public-sidebar-rail-width) !important;
  }

  .public-preview-app .public-preview-workspace,
  .public-preview-app.workspace-collapsed .public-preview-workspace {
    width: var(--public-sidebar-width) !important;
    min-width: var(--public-sidebar-width);
  }

  .public-preview-app.workspace-collapsed .public-preview-workspace {
    width: var(--public-sidebar-rail-width) !important;
    min-width: var(--public-sidebar-rail-width);
  }
}

@media (max-width: 980px) {
  .public-preview-app .sidebar,
  .public-preview-app .public-preview-workspace {
    width: var(--public-sidebar-width) !important;
    max-width: var(--public-sidebar-width) !important;
    height: 100dvh !important;
    min-height: 0;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    isolation: isolate;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity;
    transition: transform 0.22s ease, opacity 0.18s ease, visibility 0s linear 0.22s;
  }

  .public-preview-app .sidebar {
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;
    transform: translate3d(-100%, 0, 0);
    box-shadow: 18px 0 44px rgba(0, 74, 173, 0.16);
  }

  .public-preview-app:not(.sidebar-collapsed) .sidebar {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .public-preview-app.sidebar-collapsed .sidebar {
    transform: translate3d(-100%, 0, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .public-preview-app .public-preview-workspace {
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    transform: translate3d(100%, 0, 0);
    border-left: 1px solid var(--border);
    box-shadow: -18px 0 44px rgba(0, 74, 173, 0.16) !important;
  }

  .public-preview-app:not(.workspace-collapsed) .public-preview-workspace {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .public-preview-app.workspace-collapsed .public-preview-workspace {
    transform: translate3d(100%, 0, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .public-preview-app .sidebar-backdrop,
  .public-preview-app .public-workspace-backdrop {
    z-index: 130;
  }

  .public-preview-app .mobile-close,
  .public-preview-app .source-sidebar-close {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 980px) {
  .public-dashboard-home {
    padding: 10px;
  }

  .public-preview-app {
    min-height: 0;
    border-radius: 24px;
    overflow: visible;
  }

  .public-preview-app .main-pane {
    min-height: max(480px, calc(100dvh - var(--header-height) - 20px));
  }

  .dashboard-chatbot .public-sidebar-open {
    display: inline-flex !important;
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .dashboard-chatbot .public-workspace-open {
    display: inline-flex !important;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
  }

  .public-preview-app .thread-actions .icon-btn,
  .public-preview-app .composer-tool,
  .public-preview-app .composer-send {
    width: 44px;
    height: 44px;
    min-height: 44px;
    flex-basis: 44px;
  }

  .public-preview-app .sidebar,
  .public-preview-app.sidebar-collapsed .sidebar {
    width: min(300px, calc(100vw - 24px)) !important;
    height: 100dvh !important;
    min-height: 0;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .public-preview-app .public-preview-workspace,
  .public-preview-app.workspace-collapsed .public-preview-workspace {
    position: fixed !important;
    inset: 0 0 0 auto !important;
    z-index: 140;
    width: min(380px, calc(100vw - 24px)) !important;
    max-width: 100% !important;
    height: 100dvh !important;
    min-height: 0;
    max-height: 100dvh;
    border-top: 0;
    border-left: 1px solid var(--border);
    background: #fff;
    box-shadow: -18px 0 44px rgba(0, 74, 173, 0.16) !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition: transform 0.22s ease, opacity 0.18s ease, visibility 0s linear;
  }

  .public-preview-app.workspace-collapsed .public-preview-workspace {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.22s ease, opacity 0.18s ease, visibility 0s linear 0.22s;
  }

  .public-preview-app.workspace-collapsed .public-preview-workspace .source-sidebar-body {
    display: flex;
  }

  .public-preview-app .public-preview-workspace .source-sidebar-head {
    border-left: 0;
  }

  .public-preview-app .public-preview-workspace .source-sidebar-body {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .public-workspace-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 130;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  .public-preview-app:not(.workspace-collapsed) .public-workspace-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .public-preview-app .source-sidebar-close,
  .public-preview-app .mobile-close {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .public-footer {
    transform: none;
  }
}

/* Keep the homepage centre column stable while the right workspace opens or
   closes. The workspace remains visually over the preview app, while the
   app keeps the same three-column geometry in both states. */
@media (min-width: 981px) {
  .public-preview-app {
    position: relative;
  }

  #publicPreviewApp,
  #publicPreviewApp.sidebar-collapsed,
  #publicPreviewApp.workspace-collapsed,
  #publicPreviewApp.sidebar-collapsed.workspace-collapsed {
    grid-template-columns: minmax(220px, 20%) minmax(0, 1fr) minmax(220px, 20%);
  }

  .public-preview-app .public-preview-workspace,
  .public-preview-app.workspace-collapsed .public-preview-workspace {
    position: absolute !important;
    inset: 0 0 0 auto !important;
    width: 100% !important;
    min-width: 220px;
    max-width: none !important;
    height: 100% !important;
    min-height: 0;
    z-index: 90;
    transition: width 0.22s ease, transform 0.22s ease, opacity 0.18s ease;
  }

  .public-preview-app.workspace-collapsed .public-preview-workspace {
    width: 44px !important;
    min-width: 44px;
  }
}

/* Screenshot-matched public footer navigation. */
.public-footer .footer-inner {
  width: min(1550px, calc(100% - 64px));
  padding: clamp(52px, 6vw, 82px) 0 32px;
}

.public-footer .footer-top-grid {
  grid-template-columns: minmax(280px, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.public-footer .footer-logo-row {
  display: flex;
  align-items: center;
  margin-bottom: clamp(28px, 4vw, 42px);
}

.public-footer .footer-brand {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.public-footer .footer-logo {
  margin: 0;
}

.public-footer .footer-logo img {
  width: min(155px, 100%);
  height: auto;
  object-fit: contain;
}

.public-footer .footer-brand h2,
.public-footer .footer-column h2 {
  margin: 0 0 22px;
  color: var(--brand-blue);
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 850;
}

.public-footer .footer-brand p {
  max-width: 33rem;
  margin: 0;
  color: var(--brand-blue);
  font-size: 1.02rem;
  line-height: 1.7;
}

.public-footer .footer-columns {
  grid-column: 2 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3.4vw, 58px);
}

.public-footer .footer-column {
  gap: 15px;
}

.public-footer .footer-column h2 {
  margin-bottom: 4px;
}

.public-footer .footer-columns a {
  display: block;
  color: var(--brand-blue);
  font-size: 0.98rem;
  line-height: 1.4;
  white-space: normal;
}

.public-footer .footer-columns a:hover,
.public-footer .footer-columns a:focus-visible {
  color: var(--brand-pink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.public-footer .footer-columns a svg {
  display: none;
}

.public-footer .footer-social {
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 36px 0 0;
}

.public-footer .footer-social a {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border: 1px solid rgba(0, 74, 173, 0.2);
  background: #fff;
  color: var(--brand-blue);
}

.public-footer .footer-social a:hover,
.public-footer .footer-social a:focus-visible {
  border-color: var(--brand-pink);
  background: rgba(255, 102, 196, 0.08);
  color: var(--brand-pink);
  box-shadow: 0 8px 18px rgba(255, 102, 196, 0.2);
}

.public-footer .footer-social a svg {
  width: 20px;
  height: 20px;
  color: currentColor;
}

.public-footer .footer-social a .social-icon-svg--whatsapp,
.public-footer .footer-social a .social-icon-svg--facebook,
.public-footer .footer-social a .social-icon-svg--linkedin {
  fill: currentColor;
  stroke: none;
}

.public-footer .footer-bottom {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 48px;
  padding-top: 27px;
  border-top: 1px solid rgba(0, 74, 173, 0.18);
}

.public-footer .footer-meta {
  display: grid;
  gap: 10px;
  color: var(--brand-blue);
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 700;
}

.public-footer .footer-legal-links a {
  color: var(--brand-blue);
}

.public-footer .footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.public-footer .footer-legal-links a + a::before {
  content: "|";
  display: inline-block;
  margin: 0 8px;
  color: var(--brand-blue);
}

.public-footer .footer-back-to-top {
  margin-top: 0;
  color: var(--brand-blue);
  font-weight: 700;
}

@media (max-width: 1180px) {
  .public-footer .footer-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 26px;
  }

  .public-footer .footer-brand,
  .public-footer .footer-columns {
    grid-column: 1 / -1;
  }

  .public-footer .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 26px;
  }
}

@media (max-width: 900px) {
  .public-footer .footer-inner {
    width: min(100% - 32px, 720px);
  }

  .public-footer .footer-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 22px;
  }

  .public-footer .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 22px;
  }
}

@media (max-width: 560px) {
  .public-footer .footer-inner {
    width: min(100% - 24px, 480px);
    padding-top: 44px;
  }

  .public-footer .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .public-footer .footer-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .public-footer .footer-social {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
  }

  .public-footer .footer-bottom {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .public-footer .footer-meta {
    justify-items: start;
    gap: 10px;
  }

  .dashboard-chatbot .public-footer .footer-legal-links {
    display: grid;
    gap: 8px;
  }

  .dashboard-chatbot .public-footer .footer-legal-links a + a::before {
    display: none;
  }

  .dashboard-chatbot .public-footer .footer-back-to-top__icon {
    width: 44px;
    height: 44px;
  }
}

/* Final homepage drawer contract: both pre-sign-in sidebars use the same
   width, viewport, scrolling, layering, and slide animation. */
@media (max-width: 980px) {
  #publicPreviewApp.public-preview-app {
    --public-sidebar-width: min(86vw, 360px);
  }

  #publicPreviewApp.public-preview-app .sidebar,
  #publicPreviewApp.public-preview-app.sidebar-collapsed .sidebar,
  #publicPreviewApp.public-preview-app .public-preview-workspace,
  #publicPreviewApp.public-preview-app.workspace-collapsed .public-preview-workspace {
    width: var(--public-sidebar-width) !important;
    max-width: var(--public-sidebar-width) !important;
    height: 100dvh !important;
    min-height: 0;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    isolation: isolate;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity;
    transition: transform 0.22s ease, opacity 0.18s ease, visibility 0s linear;
  }

  #publicPreviewApp.public-preview-app.sidebar-collapsed .sidebar {
    transform: translate3d(-100%, 0, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.18s ease, visibility 0s linear 0.22s;
  }

  #publicPreviewApp.public-preview-app:not(.sidebar-collapsed) .sidebar {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  #publicPreviewApp.public-preview-app.workspace-collapsed .public-preview-workspace {
    transform: translate3d(100%, 0, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.18s ease, visibility 0s linear 0.22s;
  }

  #publicPreviewApp.public-preview-app:not(.workspace-collapsed) .public-preview-workspace {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
