/* Google Fonts fallback (latin subset) */
/* latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/bricolagegrotesque/v9/3y9H6as8bTXq_nANBjzKo3IeZx8z6up5BeSl5jBNz_19PpbpMXuECpwUxJBOm_OJWiawA1Xp.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/bricolagegrotesque/v9/3y9H6as8bTXq_nANBjzKo3IeZx8z6up5BeSl5jBNz_19PpbpMXuECpwUxJBOm_OJWiawA1Xp.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/bricolagegrotesque/v9/3y9H6as8bTXq_nANBjzKo3IeZx8z6up5BeSl5jBNz_19PpbpMXuECpwUxJBOm_OJWiawA1Xp.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/bricolagegrotesque/v9/3y9H6as8bTXq_nANBjzKo3IeZx8z6up5BeSl5jBNz_19PpbpMXuECpwUxJBOm_OJWiawA1Xp.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/fraunces/v38/6NUu8FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0K7iN7hzFUPJH58nib14c7qv8.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/fraunces/v38/6NUu8FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0K7iN7hzFUPJH58nib14c7qv8.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/fraunces/v38/6NUu8FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0K7iN7hzFUPJH58nib14c7qv8.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/manrope/v20/xn7gYHE41ni1AdIRggexSg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/manrope/v20/xn7gYHE41ni1AdIRggexSg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/manrope/v20/xn7gYHE41ni1AdIRggexSg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/manrope/v20/xn7gYHE41ni1AdIRggexSg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/outfit/v15/QGYvz_MVcBeNP4NJtEtq.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/outfit/v15/QGYvz_MVcBeNP4NJtEtq.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/outfit/v15/QGYvz_MVcBeNP4NJtEtq.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/outfit/v15/QGYvz_MVcBeNP4NJtEtq.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/spacegrotesk/v22/V8mDoQDjQSkFtoMM3T6r8E7mPbF4Cw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/spacegrotesk/v22/V8mDoQDjQSkFtoMM3T6r8E7mPbF4Cw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/spacegrotesk/v22/V8mDoQDjQSkFtoMM3T6r8E7mPbF4Cw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/spacegrotesk/v22/V8mDoQDjQSkFtoMM3T6r8E7mPbF4Cw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --levita-bg: #f6f1e9;
  --levita-panel: #fff9f2;
  --levita-ink: #1d1a16;
  --levita-muted: #6f655a;
  --levita-accent: #e65a3a;
  --levita-accent-2: #0e6f69;
  --levita-border: rgba(29, 26, 22, 0.12);
  --levita-shadow: 0 20px 48px rgba(29, 26, 22, 0.18);
  --levita-glow: 0 0 0 3px rgba(230, 90, 58, 0.12);
}

.levita-chat-widget {
  font-family: 'Manrope', sans-serif;
  color: var(--levita-ink);
  position: relative;
  --levita-shell-height: 520px;
  height: var(--levita-shell-height);
}

.levita-chat-widget[data-theme="studio"] {
  --levita-bg: #eef2f5;
  --levita-panel: #f9fbfc;
  --levita-ink: #0d1b2a;
  --levita-muted: #4b5b6a;
  --levita-accent: #0f6ad7;
  --levita-accent-2: #2aa58f;
  --levita-border: rgba(13, 27, 42, 0.16);
  --levita-shadow: 0 24px 60px rgba(10, 24, 40, 0.18);
  --levita-glow: 0 0 0 3px rgba(15, 106, 215, 0.15);
  font-family: 'Bricolage Grotesque', sans-serif;
}

.levita-chat-widget[data-theme="default"] {
  --levita-bg: #eef1f4;
  --levita-panel: #ffffff;
  --levita-ink: #0b111a;
  --levita-muted: #516171;
  --levita-accent: #ff6b2d;
  --levita-accent-2: #1f7a8c;
  --levita-border: rgba(11, 17, 26, 0.14);
  --levita-shadow: 0 22px 50px rgba(11, 17, 26, 0.18);
  --levita-glow: 0 0 0 3px rgba(255, 107, 45, 0.18);
  font-family: 'Space Grotesk', sans-serif;
  --levita-shell-height: min(70vh, 560px);
  height: var(--levita-shell-height);
}

.levita-chat-widget[data-theme="levita-default"] {
  --levita-bg: #0f141a;
  --levita-panel: #f5f4ef;
  --levita-ink: #0d1117;
  --levita-muted: #5d6b75;
  --levita-accent: #00a59a;
  --levita-accent-2: #f1b84a;
  --levita-border: rgba(15, 20, 26, 0.18);
  --levita-shadow: 0 24px 60px rgba(12, 18, 23, 0.25);
  --levita-glow: 0 0 0 3px rgba(0, 165, 154, 0.22);
  font-family: var(--levita-font-family, 'Outfit', sans-serif);
  font-size: calc(1rem * var(--levita-font-scale, 1));
  --levita-shell-height: min(72vh, 580px);
  height: var(--levita-shell-height);
}

.levita-chat-widget,
.levita-chat-widget * {
  box-sizing: border-box;
}

/* Keep widget UI isolated from host theme styles */
.levita-chat-widget button,
.levita-chat-widget input,
.levita-chat-widget textarea,
.levita-chat-widget select {
  appearance: none;
  -webkit-appearance: none;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  margin: 0;
  padding: 0;
  text-transform: none;
}

.levita-chat-widget a {
  color: inherit;
  text-decoration: none;
}

.levita-chat-shell {
  background: linear-gradient(160deg, #fff7ed 0%, #f2ebe2 48%, #fdf2e7 100%);
  border-radius: 20px;
  border: 1px solid var(--levita-border);
  box-shadow: var(--levita-shadow);
  overflow: hidden;
  animation: levita-in 520ms ease;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: var(--levita-shell-height);
  min-height: 320px;
}

.levita-chat-widget[data-theme="studio"] .levita-chat-shell {
  border-radius: 10px;
  background: linear-gradient(135deg, #f3f7fb 0%, #e6edf6 40%, #f8fbff 100%);
  border: 1px solid rgba(13, 27, 42, 0.2);
}

.levita-chat-widget[data-theme="default"] .levita-chat-shell {
  border-radius: 16px;
  background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 45%, #e9eef4 100%);
  border: 1px solid rgba(11, 17, 26, 0.16);
  box-shadow: 0 22px 56px rgba(11, 17, 26, 0.16);
}

.levita-chat-widget[data-theme="levita-default"] .levita-chat-shell {
  border-radius: 22px;
  background: var(--levita-shell-bg, linear-gradient(160deg, #0f141a 0%, #16212b 100%));
  border: var(--levita-frame-border, 1px solid rgba(0, 165, 154, 0.35));
  box-shadow: 0 26px 64px rgba(12, 18, 23, 0.3);
  display: block;
  position: relative;
}

.levita-chat-widget[data-theme="studio"] .levita-chat-shell::before {
  inset: -20% auto auto -10%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(15, 106, 215, 0.18), transparent 60%);
}

.levita-chat-widget[data-theme="studio"] .levita-chat-shell::after {
  inset: auto 5% -30% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(42, 165, 143, 0.2), transparent 60%);
}

.levita-chat-shell::before {
  content: '';
  position: absolute;
  inset: -40% 10% auto -30%;
  height: 220px;
  background: radial-gradient(circle, rgba(230, 90, 58, 0.18), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.levita-chat-shell::after {
  content: '';
  position: absolute;
  inset: auto -20% -50% auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(14, 111, 105, 0.18), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.levita-chat-widget[data-theme="levita-default"] .levita-chat-shell::before,
.levita-chat-widget[data-theme="levita-default"] .levita-chat-shell::after {
  content: none;
}

.levita-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--levita-border);
  background: rgba(255, 255, 255, 0.72);
  position: relative;
  z-index: 1;
  grid-row: 1;
}

.levita-chat-widget[data-theme="studio"] .levita-chat-header {
  padding: 20px 24px 14px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 2px solid rgba(13, 27, 42, 0.12);
  position: relative;
  z-index: 2;
}

.levita-chat-widget[data-theme="default"] .levita-chat-header {
  padding: 18px 22px 16px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(11, 17, 26, 0.12);
  z-index: 2;
}

.levita-chat-widget[data-theme="levita-default"] .levita-chat-header {
  padding: 16px 20px;
  background: var(--levita-header-bg, linear-gradient(120deg, rgba(15, 20, 26, 0.96), rgba(26, 33, 43, 0.96)));
  border-bottom: var(--levita-frame-border, 1px solid rgba(0, 165, 154, 0.35));
  color: #f7f5ef;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 13%;
  z-index: 3;
}

.levita-chat-widget[data-theme="studio"] .levita-chat-title {
  font-family: 'Manrope', sans-serif;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 13px;
}

.levita-chat-widget[data-theme="default"] .levita-chat-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.levita-chat-widget[data-theme="levita-default"] .levita-chat-title {
  font-size: calc(var(--levita-title-font-size, 20px) + var(--levita-font-adjust-px, 0px));
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--levita-title-color, #f7f5ef);
}

.levita-chat-widget[data-theme="studio"] .levita-chat-status {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.levita-chat-widget[data-theme="default"] .levita-chat-status {
  font-size: 12px;
  letter-spacing: 0.2px;
}

.levita-chat-widget[data-theme="levita-default"] .levita-chat-status {
  font-size: calc(var(--levita-status-font-size, 12px) + var(--levita-font-adjust-px, 0px));
  color: var(--levita-status-color, rgba(247, 245, 239, 0.7));
  letter-spacing: 0.4px;
}

.levita-chat-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.levita-chat-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.levita-chat-status {
  font-size: 12px;
  color: var(--levita-muted);
}

.levita-chat-actions {
  display: flex;
  gap: 8px;
}

.levita-chat-header-buttons {
  display: inline-flex;
  align-items: center;
  gap: var(--levita-header-button-gap, 15px);
}

.levita-chat-header-button {
  background: var(--levita-header-button-bg, rgba(255, 255, 255, 0.12)) !important;
  border: var(--levita-header-button-border, 1px solid rgba(247, 245, 239, 0.2)) !important;
  color: var(--levita-header-button-color, #fff) !important;
  padding: 6px 10px;
  border-radius: var(--levita-header-button-radius, 10px);
  cursor: pointer;
  font-size: calc(var(--levita-header-button-font-size, 14px) + var(--levita-font-adjust-px, 0px)) !important;
}

.levita-chat-header-button i {
  display: inline-block;
  line-height: 1;
  font-size: inherit;
}

.levita-chat-header-button:hover {
  transform: none;
  box-shadow: none;
  background: var(--levita-header-button-bg, rgba(255, 255, 255, 0.12));
  border: var(--levita-header-button-border, 1px solid rgba(247, 245, 239, 0.2));
  color: var(--levita-header-button-color, inherit);
}

.levita-chat-actions button {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(29, 26, 22, 0.12) !important;
  color: var(--levita-ink) !important;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: none !important;
}

.levita-chat-widget[data-theme="studio"] .levita-chat-actions button {
  border-radius: 8px;
  border: 1px solid rgba(13, 27, 42, 0.16) !important;
  background: rgba(245, 248, 252, 0.92) !important;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.6px;
}

.levita-chat-widget[data-theme="default"] .levita-chat-actions button {
  border-radius: 999px;
  border: 1px solid rgba(11, 17, 26, 0.16) !important;
  background: #ffffff !important;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.levita-chat-widget[data-theme="levita-default"] .levita-chat-actions button {
  border-radius: var(--levita-menu-radius, 10px);
  border: var(--levita-menu-border, 1px solid rgba(0, 165, 154, 0.4)) !important;
  background: var(--levita-menu-bg, rgba(0, 165, 154, 0.15)) !important;
  font-size: var(--levita-menu-font-size, 11px);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--levita-menu-color, #f7f5ef) !important;
}

.levita-chat-widget[data-theme="levita-default"] .levita-chat-menu-buttons {
  font-size: calc(var(--levita-menu-font-size, 11px) + var(--levita-font-adjust-px, 0px));
  color: var(--levita-menu-color, #f7f5ef) !important;
  background: var(--levita-menu-bg, rgba(0, 165, 154, 0.15)) !important;
  border-radius: var(--levita-menu-radius, 10px);
  border: var(--levita-menu-border, 1px solid rgba(0, 165, 154, 0.4)) !important;
}

.levita-chat-actions button:hover {
  transform: none;
  border-color: inherit;
  box-shadow: none;
}

.levita-chat-body {
  position: relative;
  z-index: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  overflow: hidden;
}

.levita-chat-widget[data-theme="studio"] .levita-chat-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.levita-chat-widget[data-theme="studio"] .levita-chat-sidebar {
  width: min(70%, 260px);
}

.levita-chat-widget[data-theme="default"] .levita-chat-sidebar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(72%, 260px);
  background: #ffffff;
  border-right: 1px solid rgba(11, 17, 26, 0.12);
  box-shadow: 16px 0 22px rgba(11, 17, 26, 0.1);
}

.levita-chat-widget[data-theme="levita-default"] .levita-chat-sidebar {
  background: #0f141a;
  border-right: 1px solid rgba(0, 165, 154, 0.2);
  box-shadow: 18px 0 28px rgba(0, 0, 0, 0.2);
  color: #f7f5ef;
}

.levita-chat-widget[data-theme="studio"] .levita-thread-list {
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.levita-chat-widget[data-theme="default"] .levita-thread-item {
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(11, 17, 26, 0.12);
  box-shadow: 0 10px 18px rgba(11, 17, 26, 0.08);
}

.levita-chat-widget[data-theme="levita-default"] .levita-thread-item {
  border-radius: var(--levita-thread-item-radius, 10px);
  background: var(--levita-thread-item-bg, #1b2430);
  border: var(--levita-thread-item-border, 1px solid rgba(247, 245, 239, 0.12));
  box-shadow: none;
}

.levita-chat-widget[data-theme="studio"] .levita-thread-item {
  min-width: 160px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(13, 27, 42, 0.08);
}

.levita-chat-sidebar {
  position: absolute;
  top: var(--levita-header-offset, 72px);
  bottom: var(--levita-composer-offset, 0px);
  left: 0;
  width: min(78%, 260px);
  border-right: 1px solid var(--levita-border);
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 18px 0 24px rgba(29, 26, 22, 0.08);
  transform: translateX(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
  z-index: 3;
}

.levita-chat-menu,
.levita-chat-threads-popup {
  position: absolute;
  inset: 0;
  background: var(--levita-popup-bg, rgba(15, 20, 26, 0.92));
  display: flex;
  flex-direction: column;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 5;
}

.levita-chat-menu-content {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.levita-chat-menu-buttons {
  display: inline-flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  text-decoration: none;
  padding: var(--levita-menu-padding, 10px) !important;
}

.levita-chat-menu-close,
.levita-chat-threads-close {
  align-self: flex-end;
  background: var(--levita-popup-close-bg, rgba(255, 255, 255, 0.12)) !important;
  border: var(--levita-popup-close-border, 1px solid rgba(247, 245, 239, 0.2)) !important;
  color: var(--levita-popup-close-color, #f7f5ef) !important;
  width: 36px;
  height: 36px;
  border-radius: var(--levita-popup-close-radius, 10px);
  cursor: pointer;
  font-size: calc(var(--levita-popup-close-font-size, 16px) + var(--levita-font-adjust-px, 0px));
}

.levita-chat-menu-close:hover,
.levita-chat-threads-close:hover {
  transform: none;
  box-shadow: none;
  background: var(--levita-popup-close-bg, rgba(255, 255, 255, 0.12));
  border: var(--levita-popup-close-border, 1px solid rgba(247, 245, 239, 0.2));
  color: var(--levita-popup-close-color, #f7f5ef);
}

.levita-chat-widget[data-menu="open"] .levita-chat-menu,
.levita-chat-widget[data-threads="open"] .levita-chat-threads-popup {
  opacity: 1;
  pointer-events: auto;
}

.levita-chat-threads-popup .levita-thread-list {
  margin-top: 16px;
  flex: 1 1 auto;
  overflow-y: auto;
}

.levita-thread-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border: var(--levita-thread-item-border, 1px solid rgba(29, 26, 22, 0.08));
  border-radius: var(--levita-thread-item-radius, 12px);
}

.levita-thread-item {
  padding: 10px 12px;
  border-radius: var(--levita-thread-item-radius, 12px);
  background: var(--levita-thread-item-bg, rgba(255, 255, 255, 0.85));
  border: var(--levita-thread-item-border, 1px solid rgba(29, 26, 22, 0.08));
  cursor: pointer;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  font-size: calc(var(--levita-thread-title-font-size, 13px) + var(--levita-font-adjust-px, 0px));
  color: var(--levita-thread-title-color, inherit);
}

.levita-thread-item.active {
  border-color: var(--levita-accent);
  transform: translateY(-1px);
  box-shadow: var(--levita-glow);
}

.levita-thread-title {
  font-size: calc(var(--levita-thread-title-font-size, 13px) + var(--levita-font-adjust-px, 0px));
  font-weight: 600;
  color: var(--levita-thread-title-color, inherit);
}

.levita-thread-meta {
  font-size: calc(var(--levita-thread-meta-font-size, 11px) + var(--levita-font-adjust-px, 0px));
  color: var(--levita-thread-meta-color, var(--levita-muted));
}


.levita-chat-panel {
  display: flex;
  flex-direction: column;
  padding: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.levita-chat-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  height: 100%;
}

.levita-chat-widget[data-theme="studio"] .levita-chat-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0;
}

.levita-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  word-break: break-word;
}

.levita-chat-widget[data-theme="studio"] .levita-chat-scroll {
  padding: 20px;
}

.levita-chat-widget[data-theme="levita-default"] .levita-chat-scroll {
  padding: 22px 22px 26px;
  background: #f5f4ef;
  border-top: 1px solid rgba(15, 20, 26, 0.08);
  border-bottom: 1px solid rgba(15, 20, 26, 0.08);
  position: absolute;
  top: 13%;
  height: 71%;
  left: 0;
  right: 0;
}

.levita-message {
  padding: 12px 16px;
  border-radius: 16px;
  max-width: 90%;
  font-size: 14px;
  line-height: 1.4;
  animation: levita-rise 240ms ease;
  box-shadow: 0 10px 18px rgba(29, 26, 22, 0.08);
}

.levita-chat-widget[data-theme="studio"] .levita-message {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: none;
}

.levita-chat-widget[data-theme="default"] .levita-message {
  max-width: 92%;
  border-radius: 14px;
  box-shadow: none;
}

.levita-chat-widget[data-theme="levita-default"] .levita-message {
  max-width: 92%;
  border-radius: 16px;
  box-shadow: none;
}

.levita-chat-widget[data-theme="studio"] .levita-message.user {
  align-self: flex-start;
  background: #0d1b2a;
  color: #eef4fb;
  border-left: 6px solid #0f6ad7;
}

.levita-chat-widget[data-theme="default"] .levita-message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #f8fafc;
  border-right: 5px solid #ff6b2d;
}

.levita-chat-widget[data-theme="levita-default"] .levita-message.user {
  align-self: flex-end;
  background: var(--levita-user-msg-bg, linear-gradient(135deg, #00a59a 0%, #36c4a5 100%));
  color: var(--levita-user-msg-color, #0f141a);
  border: var(--levita-user-msg-border, none);
  border-radius: var(--levita-user-msg-radius, 16px);
  font-size: calc(var(--levita-user-msg-font-size, 14px) + var(--levita-font-adjust-px, 0px));
}

.levita-chat-widget[data-theme="studio"] .levita-message.assistant {
  align-self: stretch;
  background: #ffffff;
  border: 1px solid rgba(13, 27, 42, 0.12);
}

.levita-chat-widget[data-theme="default"] .levita-message.assistant {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid rgba(11, 17, 26, 0.12);
}

.levita-chat-widget[data-theme="levita-default"] .levita-message.assistant {
  align-self: flex-start;
  background: var(--levita-assistant-msg-bg, #ffffff);
  color: var(--levita-assistant-msg-color, #0d1117);
  border: var(--levita-assistant-msg-border, 1px solid rgba(15, 20, 26, 0.14));
  border-radius: var(--levita-assistant-msg-radius, 16px);
  font-size: calc(var(--levita-assistant-msg-font-size, 14px) + var(--levita-font-adjust-px, 0px));
}

.levita-message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #1d1a16 0%, #383028 100%);
  color: #fff6ed;
  margin-top: 20px;
}

.levita-message.assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(29, 26, 22, 0.1);
}

.levita-message.assistant p {
  margin: 0;
}

.levita-citations {
  margin-top: -6px;
  display: grid;
  gap: 6px;
}

.levita-citation {
  font-size: 12px;
  background: none;
  border: 0;
  padding: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: fit-content;
}


.levita-citation-button {
  border: none;
  background: linear-gradient(135deg, var(--levita-accent) 0%, #f07c52 100%) !important;
  color: #fff !important;
  font-size: 11px;
  font-weight: 600;
  padding: 0px 10px !important;
  border-radius: 999px;
  cursor: pointer;
}

.levita-chat-widget[data-theme="studio"] .levita-citation-button {
  background: linear-gradient(135deg, #0f6ad7 0%, #2aa58f 100%) !important;
}

.levita-chat-widget[data-theme="default"] .levita-citation-button {
  background: linear-gradient(135deg, #ff6b2d 0%, #f28c38 100%) !important;
}

.levita-chat-widget[data-theme="levita-default"] .levita-citation-button {
  background: var(--levita-citation-bg, linear-gradient(135deg, #00a59a 0%, #f1b84a 100%)) !important;
  color: var(--levita-citation-color, #0f141a) !important;
  border: var(--levita-citation-border, none) !important;
  border-radius: var(--levita-citation-radius, 999px);
  font-size: calc(var(--levita-citation-font-size, 11px) + var(--levita-font-adjust-px, 0px));
}

.levita-chat-composer {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  padding: 16px 20px;
  border-top: 1px solid var(--levita-border);
  background: rgba(255, 255, 255, 0.72);
  position: relative;
  z-index: 2;
  grid-row: 3;
}

.levita-chat-composer-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.levita-chat-widget[data-theme="studio"] .levita-chat-composer {
  background: #ffffff;
  padding: 10px 12px;
  border: 1px solid rgba(13, 27, 42, 0.12);
  border-top: 1px solid rgba(13, 27, 42, 0.12);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  position: relative;
  z-index: 2;
  width: 100%;
}

.levita-chat-widget[data-theme="default"] .levita-chat-composer {
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(11, 17, 26, 0.12);
  padding: 14px 18px;
}

.levita-chat-widget[data-theme="levita-default"] .levita-chat-composer {
  background: var(--levita-composer-bg, #0f141a);
  border-top: var(--levita-frame-border, 1px solid rgba(0, 165, 154, 0.35));
  padding: 14px 18px 16px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 16%;
  z-index: 3;
}

.levita-chat-widget[data-theme="studio"][data-mode="floating"] .levita-chat-shell {
  height: min(70vh, 560px);
}

.levita-chat-input {
  flex: 1;
  padding: 12px 16px !important;
  border-radius: var(--levita-input-radius, 14px) !important;
  border: 1px solid rgba(29, 26, 22, 0.14) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  outline: none !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: none !important;
  transition: none !important;
}

.levita-chat-waveform {
  flex: 1;
  border-radius: var(--levita-input-radius, 14px) !important;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 50px;
}

.levita-chat-waveform-canvas {
  width: 100%;
  height: 50px;
  display: block;
  padding-left: 10px;
}

.levita-chat-widget[data-theme="studio"] .levita-chat-input {
  border-radius: var(--levita-input-radius, 14px) !important;
  background: #f7f9fb !important;
}

.levita-chat-widget[data-theme="studio"] .levita-chat-waveform {
  border-radius: var(--levita-input-radius, 14px) !important;
  background: #f7f9fb !important;
}

.levita-chat-widget[data-theme="default"] .levita-chat-input {
  border-radius: var(--levita-input-radius, 14px) !important;
  background: #f3f5f7 !important;
  border: 1px solid rgba(11, 17, 26, 0.12) !important;
}

.levita-chat-widget[data-theme="default"] .levita-chat-waveform {
  border-radius: var(--levita-input-radius, 14px) !important;
  background: #f3f5f7 !important;
  border: 1px solid rgba(11, 17, 26, 0.12) !important;
}

.levita-chat-widget[data-theme="levita-default"] .levita-chat-input {
  border-radius: var(--levita-input-radius, 14px) !important;
  background: var(--levita-input-bg, #1b2430) !important;
  border: var(--levita-input-border, 1px solid rgba(247, 245, 239, 0.2)) !important;
  color: var(--levita-input-color, #f7f5ef) !important;
  font-size: calc(var(--levita-input-font-size, 14px) + var(--levita-font-adjust-px, 0px)) !important;
}

.levita-chat-widget[data-theme="levita-default"] .levita-chat-input::placeholder {
  color: var(--levita-input-placeholder-color, rgba(247, 245, 239, 0.6));
}

.levita-chat-widget[data-theme="levita-default"] .levita-chat-waveform {
  border-radius: var(--levita-input-radius, 14px);
  background: var(--levita-input-bg, #1b2430);
  border: var(--levita-input-border, 1px solid rgba(247, 245, 239, 0.2));
}

.levita-chat-widget[data-recording="true"] .levita-chat-input {
  display: none;
}

.levita-chat-widget[data-recording="true"] .levita-chat-waveform {
  display: flex;
}

.levita-chat-input:focus {
  border: var(--levita-input-focus-border, var(--levita-input-border, 1px solid rgba(0, 165, 154, 0.35))) !important;
  box-shadow: none !important;
  outline: none !important;
}

.levita-chat-input:focus-visible {
  border: var(--levita-input-focus-border, var(--levita-input-border, 1px solid rgba(0, 165, 154, 0.35))) !important;
  box-shadow: none !important;
  outline: none !important;
}

.levita-chat-widget[data-theme="levita-default"] .levita-chat-input:focus {
  border: var(--levita-input-focus-border, var(--levita-input-border, 1px solid rgba(0, 165, 154, 0.35))) !important;
  box-shadow: none !important;
  outline: none !important;
}

.levita-chat-send {
  border: none !important;
  background: linear-gradient(135deg, #e65a3a 0%, #f07c52 100%) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: none !important;
}

.levita-chat-widget[data-theme="studio"] .levita-chat-send {
  border-radius: 8px;
  background: linear-gradient(135deg, #0f6ad7 0%, #2aa58f 100%) !important;
}

.levita-chat-widget[data-theme="default"] .levita-chat-send {
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6b2d 0%, #f28c38 100%) !important;
}

.levita-chat-widget[data-theme="levita-default"] .levita-chat-send {
  border-radius: var(--levita-send-radius, 12px);
  background: var(--levita-send-bg, linear-gradient(135deg, #00a59a 0%, #f1b84a 100%)) !important;
  color: var(--levita-send-color, #0f141a) !important;
  border: var(--levita-send-border, none) !important;
  font-size: calc(var(--levita-send-font-size, 14px) + var(--levita-font-adjust-px, 0px));
}

.levita-chat-widget[data-theme="levita-default"] .levita-chat-mic {
  border-radius: var(--levita-mic-radius, 12px);
  background: var(--levita-mic-bg, rgba(247, 245, 239, 0.1));
  border: var(--levita-mic-border, 1px solid rgba(247, 245, 239, 0.25));
  color: var(--levita-mic-color, #f7f5ef);
  font-size: calc(var(--levita-mic-font-size, 14px) + var(--levita-font-adjust-px, 0px));
}

.levita-chat-widget[data-theme="levita-default"] .levita-chat-mic.recording {
  color: var(--levita-mic-recording-color, #d62828);
  background: var(--levita-mic-recording-bg, var(--levita-mic-bg, rgba(247, 245, 239, 0.1)));
  border: var(--levita-mic-recording-border, 1px solid rgba(214, 40, 40, 0.5));
}

.levita-chat-widget[data-theme="levita-default"] .levita-chat-privacy {
  font-family: var(--levita-privacy-font-family, var(--levita-font-family, 'Outfit', sans-serif));
  font-size: calc(var(--levita-privacy-font-size, 11px) + var(--levita-font-adjust-px, 0px));
  color: var(--levita-privacy-color, rgba(247, 245, 239, 0.65));
}

.levita-chat-widget[data-theme="levita-default"] .levita-chat-privacy a {
  color: #f1b84a;
}

.levita-chat-mic,
.levita-chat-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.levita-chat-mic {
  border: 1px solid rgba(13, 27, 42, 0.16) !important;
  background: #ffffff !important;
  color: #0d1b2a !important;
  border-radius: 8px;
  cursor: pointer;
  transition: none !important;
}

.levita-chat-mic.recording {
  color: #d62828;
  border-color: rgba(214, 40, 40, 0.5);
  animation: levita-pulse 1.2s ease-in-out infinite;
}

.levita-chat-widget[data-theme="levita-default"] .levita-chat-mic {
  border-radius: var(--levita-mic-radius, 12px) !important;
  background: var(--levita-mic-bg, rgba(247, 245, 239, 0.1)) !important;
  border: var(--levita-mic-border, 1px solid rgba(247, 245, 239, 0.25)) !important;
  color: var(--levita-mic-color, #f7f5ef) !important;
  font-size: calc(var(--levita-mic-font-size, 14px) + var(--levita-font-adjust-px, 0px)) !important;
}

.levita-chat-widget[data-theme="levita-default"] .levita-chat-mic.recording {
  color: var(--levita-mic-recording-color, #d62828) !important;
  background: var(--levita-mic-recording-bg, var(--levita-mic-bg, rgba(247, 245, 239, 0.1))) !important;
  border: var(--levita-mic-recording-border, 1px solid rgba(214, 40, 40, 0.5)) !important;
}

.levita-chat-send {
  color: #fff;
}

.levita-chat-privacy {
  font-size: 11px;
  color: var(--levita-muted);
  margin-top: 2px;
  text-align: center;
}

.levita-chat-privacy a {
  color: var(--levita-accent);
  text-decoration: none;
}

.levita-chat-send:hover {
  transform: none;
  box-shadow: none;
}

.levita-chat-fab {
  display: none;
}

.levita-chat-widget[data-mode="floating"] .levita-chat-fab {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--levita-fab-bg, #a9242a) !important;
  background-image: var(--levita-fab-image, none) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  color: #fff !important;
  border: none !important;
  box-shadow: var(--levita-shadow);
  cursor: pointer;
  font-weight: 700;
}

.levita-chat-widget[data-theme="studio"][data-mode="floating"] .levita-chat-fab {
  --levita-fab-bg: linear-gradient(135deg, #0f6ad7 0%, #2aa58f 100%) !important;
}

.levita-chat-widget[data-theme="default"][data-mode="floating"] .levita-chat-fab {
  --levita-fab-bg: linear-gradient(135deg, #ff6b2d 0%, #f28c38 100%) !important;
}

.levita-chat-widget[data-theme="levita-default"][data-mode="floating"] .levita-chat-fab {
  --levita-fab-bg: var(--levita-fab-bg, #a9242a) !important;
  color: transparent !important;
  border: var(--levita-fab-border, none) !important;
  border-radius: var(--levita-fab-radius, 50%);
  padding: var(--levita-fab-padding, 0) !important;
  width: var(--levita-fab-width, 56px) !important;
  height: var(--levita-fab-height, 56px) !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}


.levita-chat-widget[data-mode="floating"] .levita-chat-shell {
  position: fixed;
  right: 24px;
  bottom: var(--levita-fab-offset, 90px);
  width: min(420px, 92vw);
  max-height: 80vh;
  height: min(70vh, 560px);
  z-index: 9999;
  display: none;
}

@media (min-width: 861px) {
  .levita-chat-widget[data-theme="levita-default"] {
    height: var(--levita-shell-height-desktop, var(--levita-shell-height));
  }

  .levita-chat-widget[data-theme="levita-default"] .levita-chat-shell {
    width: var(--levita-shell-width-desktop, auto);
    height: var(--levita-shell-height-desktop, var(--levita-shell-height));
  }

  .levita-chat-widget[data-theme="levita-default"][data-mode="floating"] .levita-chat-shell {
    width: var(--levita-shell-width-desktop, min(420px, 92vw));
    height: var(--levita-shell-height-desktop, min(70vh, 560px));
  }
}

.levita-chat-widget[data-mode="floating"] {
  --levita-shell-height: min(70vh, 560px);
  height: auto;
}

.levita-chat-widget[data-fullscreen="true"] .levita-chat-shell {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
  z-index: 10000;
  display: block;
}

.levita-chat-widget[data-theme="levita-default"][data-fullscreen="true"] .levita-chat-shell {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
}

.levita-chat-widget[data-fullscreen="true"] .levita-chat-messages {
  padding: 20px 50px;
}

.levita-chat-widget[data-fullscreen="true"] .levita-chat-input {
  height: 70px;
}

.levita-chat-widget[data-fullscreen="true"] .levita-chat-composer {
  padding: 20px 50px;
}

.levita-chat-widget[data-fullscreen="true"] .levita-chat-header {
  padding: 20px 50px;
}

.levita-chat-widget[data-open="true"] .levita-chat-shell {
  display: block;
}

.levita-chat-widget[data-open="true"] .levita-chat-fab {
  background-color: var(--levita-fab-bg, #a9242a) !important;
  background-image: var(--levita-fab-image, none) !important;
}

@media (max-width: 860px) {
  .levita-chat-body {
    min-height: 0;
  }

  .levita-chat-sidebar {
    width: min(86%, 260px);
    padding: 10px 14px;
  }

  .levita-chat-widget[data-threads="open"] .levita-chat-sidebar {
    border-right: 1px solid var(--levita-border);
  }

  .levita-chat-widget[data-threads="open"] .levita-chat-body {
    min-height: 0;
  }

  .levita-chat-panel {
    padding: 0;
  }

  .levita-chat-scroll {
    padding: 16px;
  }

  .levita-chat-widget[data-mode="floating"] .levita-chat-shell {
    right: 12px;
    left: 12px;
    width: auto;
  }
}

@media (max-width: 860px) {
  #levita-chat-maximize-minimize {
    display: none;
  }

  .levita-chat-widget[data-theme="levita-default"] .levita-chat-shell {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .levita-chat-widget[data-theme="levita-default"] .levita-chat-header {
    height: 64px;
    padding: 16px 20px;
  }

  .levita-chat-widget[data-theme="levita-default"] .levita-chat-composer {
    height: 120px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }

  .levita-chat-widget[data-theme="levita-default"] .levita-chat-scroll {
    top: 64px;
    height: calc(100dvh - 64px - 120px);
  }

  .levita-chat-widget[data-theme="levita-default"] .levita-chat-messages {
    padding: 16px 16px 24px;
  }
}

.levita-chat-widget[data-threads="open"] .levita-chat-sidebar {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.levita-chat-widget button {
  transition: none !important;
}

.levita-chat-widget button:hover {
  transform: none !important;
  box-shadow: none !important;
}

@keyframes levita-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes levita-pulse {
  0% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.6; transform: scale(1); }
}
