#osp-staging-chat-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999990;
  font-family: Inter, Arial, sans-serif;
  color: #111827;
}

/* WEB-CHAT-MOBILE-AFTERHOURS-039: one immutable shell for both top-level tabs.
   Geometry lives on the shared root/panel, never on tab-specific content. */
@media (max-width: 760px) {
  #osp-staging-chat-root.osp-chat-root.osp-chat-root--open:not(.osp-chat-root--view-thread) {
    position: fixed !important;
    top: var(--osp-chat-shell-vtop, var(--osp-chat-vtop, 0px)) !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100vw !important;
    height: var(--osp-chat-shell-vh, var(--osp-chat-vh, 100dvh)) !important;
    margin: 0 !important;
    padding: max(8px, env(safe-area-inset-top)) 12px max(8px, env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
    transform: none !important;
    box-sizing: border-box !important;
  }
  #osp-staging-chat-root.osp-chat-root.osp-chat-root--open:not(.osp-chat-root--view-thread) > .osp-chat__panel {
    position: relative !important;
    inset: auto !important;
    width: min(380px, calc(100vw - 24px)) !important;
    min-width: 0 !important;
    max-width: min(380px, calc(100vw - 24px)) !important;
    height: calc(var(--osp-chat-shell-vh, var(--osp-chat-vh, 100dvh)) - max(8px, env(safe-area-inset-top)) - max(8px, env(safe-area-inset-bottom))) !important;
    min-height: 0 !important;
    max-height: calc(var(--osp-chat-shell-vh, var(--osp-chat-vh, 100dvh)) - max(8px, env(safe-area-inset-top)) - max(8px, env(safe-area-inset-bottom))) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  #osp-staging-chat-root.osp-chat-root.osp-chat-root--open:not(.osp-chat-root--view-thread) .osp-chat__header,
  #osp-staging-chat-root.osp-chat-root.osp-chat-root--open:not(.osp-chat-root--view-thread) .osp-chat__header--messages-list {
    flex: 0 0 58px !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  #osp-staging-chat-root.osp-chat-root.osp-chat-root--open:not(.osp-chat-root--view-thread) .osp-chat__body {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  #osp-staging-chat-root.osp-chat-root.osp-chat-root--open:not(.osp-chat-root--view-thread) .osp-chat__tabs {
    flex: 0 0 68px !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

/* WEB-CHAT-UI-003: compact customer shell and stable navigation. */
#osp-staging-chat-root .osp-chat__panel {
  width: 360px;
  max-width: calc(100vw - 24px);
  height: min(680px, calc(100vh - 28px));
  border: 1px solid rgba(15, 118, 110, .12);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .16), 0 4px 14px rgba(15, 23, 42, .07);
}
#osp-staging-chat-root .osp-chat__header,
#osp-staging-chat-root .osp-chat__header--messages-list {
  min-height: 58px;
  padding: 9px 12px;
  background: #fff;
  border-bottom: 1px solid #e8f2f1;
}
#osp-staging-chat-root .osp-chat__hero,
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero {
  min-height: 0;
  padding: 12px 14px 14px;
  margin: 0;
  color: #172033;
  background: #fff;
  border-bottom: 3px solid #14b8a6;
  border-radius: 0;
}
#osp-staging-chat-root .osp-chat__hero-top,
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-top { margin: 0 0 10px; align-items: center; }
#osp-staging-chat-root .osp-chat__hero-logo,
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-logo { min-width: 0; padding: 0; background: transparent; }
#osp-staging-chat-root .osp-chat__hero-logo-image,
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-logo-image { display: block; width: auto; max-width: 132px; max-height: 34px; }
#osp-staging-chat-root .osp-chat__hero h3,
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero h3 { margin: 0; color: #172033; font-size: 18px; line-height: 1.25; }
#osp-staging-chat-root .osp-chat__home-cards,
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-cards { padding: 12px; gap: 10px; }
#osp-staging-chat-root .osp-chat__home-card,
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-card { padding: 12px; border-radius: 14px; }
#osp-staging-chat-root .osp-chat__messages { padding-left: 12px; padding-right: 12px; }
#osp-staging-chat-root .osp-chat__composer { padding: 8px 10px; }
#osp-staging-chat-root .osp-chat__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 68px;
  min-height: 68px;
  padding: 6px 24px 8px;
  gap: 8px;
  background: #fff;
  border-top: 1px solid #e7ecef;
}
#osp-staging-chat-root .osp-chat__tab,
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__tab,
#osp-staging-chat-root.osp-chat-root--tab-messages .osp-chat__tab,
#osp-staging-chat-root.osp-chat-root--view-list .osp-chat__tab {
  width: 100%; height: 54px; min-height: 54px; margin: 0; padding: 6px 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: #74808c !important; background: transparent !important; border: 0; border-radius: 10px;
  font-size: 12px; font-weight: 600; line-height: 1;
}
#osp-staging-chat-root .osp-chat__tab span { width: 22px; height: 22px; margin: 0; display: flex; align-items: center; justify-content: center; }
#osp-staging-chat-root .osp-chat__tab small { margin: 0; font-size: 12px; font-weight: 600; line-height: 14px; color: inherit; }
#osp-staging-chat-root .osp-chat__tab-icon { width: 20px; height: 20px; }
#osp-staging-chat-root .osp-chat__tab--active { color: #0f8b80 !important; background: #effaf8 !important; }
#osp-staging-chat-root [aria-label="Insert GIF"],
#osp-staging-chat-root [aria-label="Voice note"],
#osp-staging-chat-root .osp-chat__gif-picker { display: none !important; }
@media (max-width: 640px) {
  #osp-staging-chat-root .osp-chat__panel { width: 100%; max-width: 380px; height: min(680px, calc(var(--osp-chat-vh, 100vh) - 24px)); border-radius: 18px; }
  #osp-staging-chat-root.osp-chat-root--open { padding: 12px; }
  #osp-staging-chat-root .osp-chat__tabs { padding-left: 18px; padding-right: 18px; }
}

/* 2026-08-23 Keep the widget shell rounded in every progressive chat state.
   Some message/option views replace the footer content and previously exposed
   their square white backgrounds over the panel's lower corners. */
#osp-staging-chat-root .osp-chat__panel {
  border-radius: 24px !important;
  overflow: hidden !important;
  background-clip: padding-box;
}
#osp-staging-chat-root .osp-chat__header {
  border-radius: 24px 24px 0 0 !important;
}
#osp-staging-chat-root .osp-chat__tabs {
  border-radius: 0 0 24px 24px !important;
  overflow: hidden !important;
}
@media (max-width: 640px) {
  #osp-staging-chat-root .osp-chat__panel {
    border-radius: 22px !important;
  }
  #osp-staging-chat-root .osp-chat__header {
    border-radius: 22px 22px 0 0 !important;
  }
  #osp-staging-chat-root .osp-chat__tabs {
    border-radius: 0 0 22px 22px !important;
  }
}
#osp-staging-chat-root * { box-sizing: border-box; }

.osp-chat__launcher,
.osp-chat__launcher-mobile,
.osp-chat__close,
.osp-chat__option,
.osp-chat__send,
.osp-chat__form-submit {
  appearance: none;
  -webkit-appearance: none;
}

.osp-chat__launcher {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f766e 0%, #098d76 42%, #14b8a6 100%);
  color: #fff;
  padding: 0;
  box-shadow: 0 26px 60px rgba(17, 24, 39, .24), 0 8px 18px rgba(9, 141, 118, .24);
  cursor: pointer;
  justify-content: center;
}
.osp-chat__launcher:hover { transform: translateY(-1px); }
.osp-chat__launcher-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
.osp-chat__launcher-icon svg { width: 28px; height: 28px; }
.osp-chat__launcher-copy { display: none !important; }
.osp-chat__launcher-copy { display: flex; flex-direction: column; min-width: 0; }
.osp-chat__launcher-copy strong { font-size: 15px; line-height: 1.15; }
.osp-chat__launcher-copy small { font-size: 12px; line-height: 1.35; opacity: .88; margin-top: 3px; }
.osp-chat__launcher-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #b9ffd2;
  box-shadow: 0 0 0 6px rgba(185,255,210,.14);
  margin-left: auto;
}
.osp-chat__launcher-mobile {
  display: none;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  color: #fff;
  box-shadow: 0 20px 40px rgba(9, 141, 118, .28);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.osp-chat__launcher-mobile svg { width: 28px; height: 28px; }

.osp-chat__panel {
  width: 372px;
  max-width: calc(100vw - 24px);
  height: min(760px, calc(100vh - 28px));
  margin-left: auto;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 56px rgba(15, 23, 42, .16), 0 8px 18px rgba(15, 23, 42, .08);
  display: none;
  flex-direction: column;
}
.osp-chat-root--open .osp-chat__panel { display: flex; }
.osp-chat-root--open .osp-chat__launcher,
.osp-chat-root--open .osp-chat__launcher-mobile { display: none; }

.osp-chat__header {
  padding: 12px 14px 10px;
  background: #fff;
  border-bottom: 1px solid #f0f1f3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.osp-chat__header-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.osp-chat__header-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}
.osp-chat__header-avatar,
.osp-chat__avatar-pill,
.osp-chat__hero-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: .06em;
}
.osp-chat__header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
  font-size: 10px;
}
.osp-chat__header-status {
  display: none;
}
.osp-chat__header-copy { min-width: 0; }
.osp-chat__header-copy strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  color: #111827;
  font-weight: 700;
}
.osp-chat__header-copy small {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.osp-chat__header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.osp-chat__badge { display: none; }
.osp-chat__more,
.osp-chat__close { width: 32px; height: 32px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.osp-chat__more {
  font-size: 13px;
  letter-spacing: 1px;
}

.osp-chat__body {
  flex: 1;
  min-height: 0;
  background: #fff;
  overflow-x: hidden;
}
.osp-chat__hero {
  padding: 18px 14px 28px;
  margin: 0 0 12px;
  background: linear-gradient(180deg, #0f766e 0%, #098d76 55%, #14b8a6 100%);
  border-radius: 0 0 22px 22px;
  box-shadow: none;
  position: relative;
}
.osp-chat__hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}
.osp-chat__hero-logo {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 126px;
  padding: 6px 8px;
  background: #fff;
  color: #111827;
  font-size: 10px;
  line-height: 1.05;
  font-weight: 800;
  border-radius: 2px;
}
.osp-chat__hero-people {
  display: flex;
  align-items: center;
}
.osp-chat__hero-person {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border: 2px solid #fff;
}
.osp-chat__hero-person--one {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}
.osp-chat__hero-person--two {
  background: linear-gradient(135deg, #0f766e 0%, #f59e0b 100%);
  margin-left: -8px;
}
.osp-chat__hero h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: #fff;
  font-weight: 700;
}
.osp-chat__hero p,
.osp-chat__hero-mark,
.osp-chat__hero-avatar { display: none; }

.osp-chat__home-cards {
  margin-top: 0;
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
}
.osp-chat__home-card {
  width: 100%;
  max-width: 100%;
  border: 1px solid #eef0f3;
  background: #fff;
  border-radius: 16px;
  padding: 14px 14px;
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
  cursor: pointer;
}
.osp-chat__home-card-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
}
.osp-chat__home-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.osp-chat__home-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex: 0 0 auto;
}
.osp-chat__home-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.osp-chat__home-copy strong {
  font-size: 14px;
  color: #111827;
  line-height: 1.2;
}
.osp-chat__home-copy span {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.osp-chat__home-copy--send span {
  white-space: normal;
}
.osp-chat__home-time {
  font-size: 12px;
  color: #6b7280;
  flex: 0 0 auto;
}
.osp-chat__home-arrow {
  margin-left: auto;
  color: #098d76;
  font-size: 20px;
  line-height: 1;
  flex: 0 0 auto;
}

.osp-chat__prompt-card {
  display: none;
}
.osp-chat__prompt-eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #2f6fff;
  margin-bottom: 6px;
}
.osp-chat__prompt-title {
  display: inline-block;
  font-size: 14px;
  line-height: 1.35;
  color: #6b7280;
  font-weight: 500;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.osp-chat__messages {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 14px 16px;
  display: flex;
  flex-direction: column;
}
.osp-chat__message {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: flex-end;
}
.osp-chat__message--visitor {
  justify-content: flex-end;
}
.osp-chat__message--visitor .osp-chat__stack {
  align-items: flex-end;
}
.osp-chat__stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: min(84%, 286px);
}
.osp-chat__meta {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: #8a8f98;
  padding: 0 2px;
}
.osp-chat__avatar-pill {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  color: #fff;
  font-size: 9px;
  flex: 0 0 auto;
}
.osp-chat__agent-avatar { overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
.osp-chat__agent-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; display: block; }
.osp-chat__launcher-copy { display: none !important; }
.osp-chat__bubble {
  background: #f3f4f6;
  border-radius: 16px;
  border-top-left-radius: 10px;
  padding: 12px 14px;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.55;
  color: #1f2937;
  word-break: break-word;
}
.osp-chat__message--visitor .osp-chat__bubble {
  background: #098d76;
  color: #fff;
  border-top-left-radius: 18px;
  border-top-right-radius: 8px;
  box-shadow: none;
}
.osp-chat__attachments {
  display: grid;
  gap: 8px;
}
.osp-chat__attachments--compact {
  margin-bottom: 4px;
}
.osp-chat__attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111827;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 8px 10px;
  position: relative;
}
.osp-chat__message--visitor .osp-chat__attachment {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}
.osp-chat__attachment-thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.osp-chat__attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.osp-chat__attachment-thumb--file {
  font-size: 18px;
}
.osp-chat__attachment-audio {
  display: block;
  width: 100%;
  max-width: 220px;
  margin-top: 8px;
}
.osp-chat__attachment-open {
  display: inline-flex;
  margin-top: 6px;
  font-size: 12px;
  color: #0f766e;
  text-decoration: none;
}
.osp-chat__attachment-open:hover {
  text-decoration: underline;
}
.osp-chat__attachment-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.osp-chat__attachment-copy strong,
.osp-chat__attachment-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.osp-chat__attachment-copy strong {
  font-size: 13px;
}
.osp-chat__attachment-copy small {
  font-size: 11px;
  color: #6b7280;
}
.osp-chat__message--visitor .osp-chat__attachment-copy small {
  color: rgba(255,255,255,.82);
}
.osp-chat__attachment-remove {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.osp-chat__message--option-echo .osp-chat__bubble {
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 500;
  line-height: 1.35;
}
.osp-chat__typing {
  background: #fff;
  border-radius: 18px;
  border-top-left-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.osp-chat__typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #90a1ba;
  animation: osp-chat-bounce 1.2s infinite ease-in-out;
}
.osp-chat__typing span:nth-child(2) { animation-delay: .15s; }
.osp-chat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes osp-chat-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.osp-chat__options {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.osp-chat__options--cards {
  display: none;
}
.osp-chat__options--chips {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.osp-chat__option {
  width: auto;
  min-width: 220px;
  max-width: 92%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: center;
  border: 1px solid #e7eaee;
  background: #fff;
  color: #1b628a;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.osp-chat__option:hover {
  transform: translateY(-1px);
  border-color: #d7e0ea;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .08);
}
.osp-chat__options--chips .osp-chat__option {
  width: min(100%, 760px);
  max-width: 100%;
  justify-content: flex-start;
  border-color: #dbe6f3;
  background: #fff;
  border-radius: 999px;
  padding: 11px 20px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
}
.osp-chat__options--chips .osp-chat__option:hover {
  transform: translateY(-1px);
  border-color: #bfd6ff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}
.osp-chat__option-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  align-items: flex-start;
}
.osp-chat__option-label {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -.01em;
}
.osp-chat__options--chips .osp-chat__option-label {
  font-size: 13px;
  font-weight: 500;
  color: #11608f;
  text-align: left;
}
.osp-chat__option-meta {
  display: none;
}
.osp-chat__options--chips .osp-chat__option-meta {
  display: none;
}
.osp-chat__option--welcome {
  padding-top: 16px;
  padding-bottom: 16px;
}
.osp-chat__option-arrow {
  display: none;
}

.osp-chat__actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.osp-chat__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid #dbe7ff;
  border-radius: 18px;
  color: #132036;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
}
.osp-chat__action-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.osp-chat__action-copy strong {
  font-size: 14px;
  line-height: 1.35;
}
.osp-chat__action-copy small {
  font-size: 12px;
  color: #62718b;
}
.osp-chat__action-arrow {
  color: #2f6fff;
  font-size: 18px;
  line-height: 1;
}

.osp-chat__form {
  background: #fff;
  border: 1px solid #e5edf8;
  border-radius: 22px;
  padding: 14px;
  margin-top: 12px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .05);
}
.osp-chat__form-title {
  font-size: 13px;
  font-weight: 700;
  color: #162033;
  margin-bottom: 12px;
}
.osp-chat__form-fields {
  display: grid;
  gap: 10px;
}
.osp-chat__field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #445066;
}
.osp-chat__field span { font-weight: 700; }
.osp-chat__field-input,
.osp-chat__textarea,
.osp-chat__input {
  width: 100%;
  border: 1px solid #d4ddeb;
  border-radius: 14px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  padding: 12px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.osp-chat__field-input:focus,
.osp-chat__textarea:focus,
.osp-chat__input:focus {
  outline: none;
  border-color: #75a7ff;
  box-shadow: 0 0 0 4px rgba(17, 118, 255, .12);
}
.osp-chat__textarea,
.osp-chat__input--textarea {
  min-height: 96px;
  resize: vertical;
}
.osp-chat__form-submit,
.osp-chat__send {
  border: 0;
  border-radius: 14px;
  background: #101828;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}
.osp-chat__form-submit {
  width: 100%;
  margin-top: 12px;
  padding: 13px 16px;
}

.osp-chat__composer {
  padding: 12px 14px 10px;
  background: #fff;
  border-top: 1px solid #edf0f5;
}
.osp-chat__new-message {
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #0b63ff 0%, #1677ff 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 12px 28px rgba(0, 87, 255, .22);
  cursor: pointer;
}
.osp-chat__new-message span { font-size: 18px; line-height: 1; }
.osp-chat__composer-muted {
  color: #5f6f89;
  font-size: 12px;
  line-height: 1.4;
}
.osp-chat__composer-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 8px 10px;
  box-shadow: none;
}
.osp-chat__composer-box--stacked {
  flex-direction: column;
  align-items: stretch;
}
.osp-chat__input {
  border: 0;
  background: transparent;
  padding: 8px 6px;
  color: #111827;
}
.osp-chat__input::placeholder { color: #9ca3af; }
.osp-chat__send {
  flex: 0 0 auto;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #9ca3af;
  box-shadow: none;
  font-size: 16px;
}
.osp-chat__inbox-card {
  margin: 2px 0 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e6edf8;
  border-radius: 20px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .05);
}
.osp-chat__inbox-eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #2f6fff;
  margin-bottom: 6px;
}
.osp-chat__inbox-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: #101828;
}
.osp-chat__inbox-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #62718b;
}
.osp-chat__threads {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
}
.osp-chat__thread {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 12px;
  border: 1px solid #e7edf8;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .04);
}
.osp-chat__thread-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b63ff 0%, #5c9dff 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex: 0 0 auto;
}
.osp-chat__thread-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
}
.osp-chat__thread-copy strong {
  font-size: 14px;
  color: #172033;
}
.osp-chat__thread-copy span {
  font-size: 12px;
  color: #62718b;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.osp-chat__thread-time {
  font-size: 11px;
  color: #8a94a8;
  flex: 0 0 auto;
}
.osp-chat__meta span {
  color: #6b7280;
  font-size: 11px;
  font-weight: 500;
}
.osp-chat__detail-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.osp-chat__back {
  border: 0;
  border-radius: 12px;
  background: #eef4ff;
  color: #0b63ff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 12px;
  cursor: pointer;
}
.osp-chat__detail-summary {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.osp-chat__detail-summary strong {
  font-size: 16px;
  color: #172033;
}
.osp-chat__detail-summary small {
  display: none;
}
.osp-chat__detail-transcript {
  display: grid;
  gap: 14px;
}
.osp-chat__inbox-card--detail {
  display: none;
}
.osp-chat__detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.osp-chat__detail-links--inline {
  margin-top: 0;
}
.osp-chat__detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #0b63ff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.osp-chat__detail-link:hover {
  background: #e4eeff;
}
.osp-chat__thread-empty {
  padding: 16px;
  border: 1px dashed #d9e6ff;
  border-radius: 16px;
  color: #62718b;
  font-size: 13px;
  background: #fff;
}
.osp-chat__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #edf0f5;
  background: #fff;
  padding: 6px 8px 10px;
}
.osp-chat__tab {
  border: 0;
  background: transparent;
  color: #6e7c95;
  padding: 8px 10px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
}
.osp-chat__tab span { font-size: 18px; line-height: 1; }
.osp-chat__tab small { font-size: 12px; font-weight: 600; }
.osp-chat__tab--active {
  color: #098d76;
  background: #eefbf7;
}
.osp-chat__empty {
  padding: 18px 0;
  color: #5f6f89;
  font-size: 13px;
}

@media (max-width: 640px) {
  #osp-staging-chat-root {
    left: 12px;
    right: 12px;
    top: calc(var(--osp-chat-vtop, 0px) + 12px);
    bottom: auto;
  }
  .osp-chat__launcher {
    display: none;
  }
  .osp-chat__launcher-mobile {
    display: inline-flex;
    margin-left: auto;
  }
  .osp-chat__panel {
    width: 100%;
    height: calc(var(--osp-chat-vh, 100vh) - 24px);
    max-height: calc(var(--osp-chat-vh, 100vh) - 24px);
    max-width: none;
    border-radius: 24px;
  }
  .osp-chat__body,
  .osp-chat__messages {
    min-height: 0;
  }
  .osp-chat__composer {
    padding-bottom: 8px;
  }
  .osp-chat__tabs {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .osp-chat__hero h3 {
    font-size: 24px;
  }
  .osp-chat__stack {
    max-width: calc(100vw - 110px);
  }
}

/* 2026-08-23 chat composer placeholder visibility.
   The after-hours prompt needs up to four wrapped lines on narrow phones. */
#osp-staging-chat-root .osp-chat__composer-box--intercom .osp-chat__input--message {
  box-sizing: border-box;
  min-height: 88px;
  height: 88px;
  max-height: 160px;
  overflow-y: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  #osp-staging-chat-root .osp-chat__composer-box--intercom .osp-chat__input--message {
    min-height: 104px;
    height: 104px;
    max-height: 176px;
    font-size: 14px;
    line-height: 1.45;
  }
}

.osp-chat__detail-note--closed {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 18px 8px 8px;
  padding: 14px 16px;
  border: 1px solid #dce7e4;
  border-radius: 12px;
  background: #f7faf9;
  color: #536c67;
  text-align: center;
}
.osp-chat__detail-note--closed strong {
  color: #254a43;
}
.osp-chat__reopen {
  align-self: center;
  margin-top: 8px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: #087da8;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.osp-chat__reopen:hover { background: #066b91; }
.osp-chat__reopen:disabled { opacity: .65; cursor: wait; }
.osp-chat__csat { margin: 7px 0 3px; color: #254a43; font-size: 13px; font-weight: 600; }
.osp-chat__csat-stars { display: flex; justify-content: center; gap: 3px; margin-top: 7px; }
.osp-chat__csat-stars button { padding: 2px; border: 0; background: transparent; font-size: 25px; line-height: 1; cursor: pointer; transition: transform .12s ease; }
.osp-chat__csat-stars button:hover { transform: translateY(-2px) scale(1.08); }
.osp-chat__csat-stars button:disabled { cursor: wait; opacity: .65; }
.osp-chat__csat-thanks { margin: 8px 0 4px; color: #087da8; font-size: 14px; font-weight: 700; }

.osp-chat__back--header { border: 0; background: transparent; color: #6b7280; font-size: 24px; line-height: 1; padding: 0 4px 0 0; cursor: pointer; }
.osp-chat__header-actions { gap: 2px; }
.osp-chat__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #eef0f3;
  background: #fff;
  padding: 6px 10px 10px;
}
.osp-chat__tab {
  color: #8b93a1;
  padding: 8px 10px;
  border-radius: 14px;
}
.osp-chat__tab small {
  font-size: 11px;
  font-weight: 600;
}
.osp-chat__tab--active {
  color: #098d76;
  background: #eefbf7;
}
.osp-chat__detail-top { margin-bottom: 10px; }
.osp-chat__inbox-card, .osp-chat__inbox-card--detail { box-shadow: none; border-radius: 18px; }
.osp-chat__detail-transcript { margin-top: 4px; }
.osp-chat__prompt-eyebrow { display: none; }
.osp-chat__body { padding-top: 0; }

.osp-chat__composer-shell { display: grid; gap: 8px; }
.osp-chat__composer-box--intercom {
  border: 0;
  border-radius: 0;
  padding: 12px 14px 10px;
  min-height: 54px;
  align-items: stretch;
  box-shadow: none;
}
.osp-chat__composer-box--intercom.osp-chat__composer-box--stacked { gap: 8px; }
.osp-chat__composer-note {
  font-size: 12px;
  line-height: 1.45;
  color: #6b7280;
}
.osp-chat__bubble--prompt { display: grid; gap: 10px; }
.osp-chat__prompt-title { font-size: 14px; font-weight: 600; color: #111827; }
.osp-chat__prompt-copy { font-size: 12px; line-height: 1.45; color: #4b5563; }
.osp-chat__prompt-form { display: grid; gap: 8px; }
.osp-chat__prompt-email { width: 100%; border: 1px solid #dbe1ea; border-radius: 12px; padding: 10px 12px; font-size: 13px; color: #111827; background: #fff; }
.osp-chat__prompt-email:focus { outline: none; border-color: #8ec5ff; box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); }
.osp-chat__prompt-save { justify-self: start; border: 0; border-radius: 999px; background: #0f766e; color: #fff; font-size: 12px; font-weight: 600; padding: 8px 12px; cursor: pointer; }
.osp-chat__prompt-save:hover { background: #0b5f59; }
.osp-chat__composer-tools-wrap { position: relative; }
.osp-chat__composer-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 0;
  border-top: 1px solid #f1f3f5;
}
.osp-chat__tool {
  border: 0;
  background: transparent;
  color: #7c8596;
  font-size: 17px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
}
.osp-chat__tool:hover { color: #4b5563; }
.osp-chat__tool--active { color: #0f766e; }
.osp-chat__composer-muted--recording { color: #b91c1c; font-weight: 600; }
.osp-chat__recording-meter { display: block; width: 100%; max-width: 180px; height: 6px; margin-top: 8px; background: rgba(185, 28, 28, 0.14); border-radius: 999px; overflow: hidden; }
.osp-chat__recording-meter-bar { display: block; height: 100%; width: 6%; background: linear-gradient(90deg, #ef4444, #f97316); border-radius: 999px; transition: width 70ms linear; }
.osp-chat__tool[aria-label="Insert GIF"] {
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 1px 4px;
  min-width: 28px;
  height: 18px;
}
.osp-chat__emoji-picker { position: absolute; left: 0; bottom: calc(100% + 8px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 10px; background: #fff; border: 1px solid #d9e0ea; border-radius: 12px; box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14); z-index: 8; width: 220px; }
.osp-chat__emoji-option { border: 0; background: #f8fafc; border-radius: 10px; height: 34px; font-size: 18px; cursor: pointer; }
.osp-chat__emoji-option:hover { background: #eef2ff; }
.osp-chat__gif-picker { position: absolute; left: 0; bottom: calc(100% + 8px); width: min(320px, calc(100vw - 48px)); padding: 10px; background: #fff; border: 1px solid #d9e0ea; border-radius: 12px; box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14); z-index: 8; }
.osp-chat__gif-search { display: flex; gap: 8px; margin-bottom: 10px; }
.osp-chat__gif-search-input { flex: 1 1 auto; min-width: 0; border: 1px solid #d1d5db; border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.osp-chat__gif-search-btn { border: 0; background: #0f766e; color: #fff; border-radius: 10px; padding: 0 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.osp-chat__gif-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: 240px; overflow: auto; }
.osp-chat__gif-option { border: 0; padding: 0; background: #f8fafc; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 1 / 1; }
.osp-chat__gif-option img { width: 100%; height: 100%; object-fit: cover; display: block; }
.osp-chat__composer-box--intercom .osp-chat__input {
  box-sizing: border-box;
  padding: 4px 6px;
  font-size: 15px;
  min-height: 22px;
}
.osp-chat__composer-box--intercom .osp-chat__input:focus {
  border: 0;
  outline: 0;
  box-shadow: none;
}
.osp-chat__composer-box--intercom .osp-chat__input--message {
  display: block;
  width: 100%;
  min-height: 52px;
  max-height: 120px;
  line-height: 1.4;
  resize: none;
  overflow-y: auto;
  font-family: inherit;
}
.osp-chat__send--muted,
.osp-chat__send--ready {
  margin-left: auto;
  width: 32px;
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  padding: 0;
  font-size: 14px;
}
.osp-chat__send--muted {
  background: #f3f4f6;
  color: #c4c8cf;
}
.osp-chat__send--muted:hover { background: #e5e7eb; color: #9ca3af; }
.osp-chat__send--ready {
  background: #e5e7eb;
  color: #111827;
}
.osp-chat__send--ready:hover {
  background: #dbe1e7;
}
.osp-chat__composer-box .osp-chat__attachments { margin-bottom: 4px; }


.osp-chat__detail-note {
  display: none;
  margin: 10px 0 12px;
  font-size: 12px;
  color: #6b7280;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 10px 12px;
}
.osp-chat__detail-note--waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #4b5563;
  background: transparent;
  border: 0;
}
.osp-chat__detail-note-avatars {
  display: inline-flex;
  align-items: center;
  margin-right: 2px;
}
.osp-chat__detail-note-avatars span + span {
  margin-left: -4px;
}
.osp-chat__thread-copy strong {
  display: block;
  line-height: 1.25;
}
.osp-chat__thread-copy span {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  line-height: 1.4;
}
.osp-chat__new-message {
  background: #111827;
  box-shadow: none;
}
.osp-chat__new-message:hover {
  background: #1f2937;
}

.osp-chat__tool--disabled,
.osp-chat__tool:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.osp-chat__back-spacer { display: inline-block; width: 28px; flex: 0 0 28px; }

.osp-chat__bubble a { color: inherit; text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.osp-chat__message--visitor .osp-chat__bubble a { color: inherit; }


/* 2026-08-07 Intercom-style staging inbox + home polish */
.osp-chat__panel {
  width: 402px;
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .18), 0 10px 24px rgba(15, 23, 42, .10);
}
.osp-chat__body {
  background: #fff;
}
.osp-chat__header {
  padding: 14px 16px 12px;
}
.osp-chat__header-avatar,
.osp-chat__thread-avatar,
.osp-chat__home-avatar {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}
.osp-chat__header-avatar {
  width: 38px;
  height: 38px;
  font-size: 11px;
}
.osp-chat__header-copy strong { font-size: 15px; }
.osp-chat__header-copy small { font-size: 12px; }
.osp-chat__hero {
  padding: 22px 18px 96px;
  margin: 0;
  background: linear-gradient(180deg, #0877b9 0%, #0a7ec1 58%, #1187c9 100%);
  border-radius: 0;
}
.osp-chat__hero-top {
  margin-bottom: 56px;
}
.osp-chat__hero-logo {
  min-width: 104px;
  padding: 6px 8px;
  background: #fff;
  color: #111827;
  font-size: 10px;
  line-height: 1.05;
  font-weight: 800;
  border-radius: 2px;
}
.osp-chat__hero-logo-image { display: none; }
.osp-chat__hero-person {
  width: 36px;
  height: 36px;
  font-size: 10px;
  border-width: 2px;
}
.osp-chat__hero h3 {
  font-size: 22px;
  line-height: 1.24;
  letter-spacing: -.02em;
}
.osp-chat__home-cards {
  margin-top: -58px;
  padding: 0 16px 8px;
  gap: 14px;
  position: relative;
  z-index: 5;
}
.osp-chat__home-cards .osp-chat__home-card:first-child {
  margin-top: 0;
}
.osp-chat__home-card {
  position: relative;
  z-index: 2;
  border: 1px solid #edf1f5;
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}
.osp-chat__home-card-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: #202939;
  margin-bottom: 14px;
}
.osp-chat__home-card-row { gap: 12px; }
.osp-chat__home-avatar {
  width: 38px;
  height: 38px;
  font-size: 11px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}
.osp-chat__home-copy strong {
  font-size: 15px;
  line-height: 1.2;
}
.osp-chat__home-copy span {
  font-size: 13px;
  color: #6b7280;
}
.osp-chat__home-time {
  font-size: 12px;
  color: #9ca3af;
  align-self: flex-start;
}
.osp-chat__home-arrow {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e9f6ff;
  color: #0a84c7;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.osp-chat__threads {
  gap: 12px;
  margin: 2px 0 0;
}
.osp-chat__thread {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid #eceff3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .04);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.osp-chat__thread:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, .07);
  border-color: #e5e7eb;
}
.osp-chat__thread:focus-visible {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .12);
}
.osp-chat__thread-avatar {
  width: 36px;
  height: 36px;
  font-size: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}
.osp-chat__thread-copy {
  min-width: 0;
  gap: 4px;
  padding-top: 1px;
}
.osp-chat__thread-copy strong {
  font-size: 15px;
  line-height: 1.2;
  color: #111827;
  font-weight: 700;
}
.osp-chat__thread-copy span {
  font-size: 13px;
  line-height: 1.42;
  color: #6b7280;
  -webkit-line-clamp: 2;
}
.osp-chat__thread-time {
  align-self: start;
  font-size: 12px;
  color: #9ca3af;
  padding-top: 2px;
  white-space: nowrap;
}
.osp-chat__new-message {
  width: 100%;
  min-width: 0;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b63ff 0%, #1480ff 100%);
  padding: 14px 20px 14px 24px;
  box-shadow: 0 10px 24px rgba(11, 99, 255, .22);
}
.osp-chat__new-message span {
  margin-left: auto;
  font-size: 24px;
  font-weight: 400;
  line-height: .8;
}
.osp-chat__new-message:hover { transform: translateY(-1px); }
.osp-chat__composer {
  padding: 14px 16px 12px;
  background: #fff;
}
.osp-chat__tabs {
  padding: 8px 14px 12px;
  border-top: 1px solid #eef2f7;
}
.osp-chat__tab {
  border-radius: 16px;
  padding: 9px 10px;
}
.osp-chat__tab--active {
  background: #edf9f6;
  color: #0f766e;
}

/* 2026-08-08 final mobile override — must stay at END of staging-web-chat.css
   Fixes Intercom-style block overriding mobile layout. */
@media (max-width: 640px) {
  #osp-staging-chat-root.osp-chat-root--open {
    left: 10px;
    right: 10px;
    top: calc(var(--osp-chat-vtop, 0px) + 10px);
    bottom: auto;
    width: auto;
    max-width: none;
  }

  #osp-staging-chat-root .osp-chat__panel {
    width: 100%;
    max-width: none;
    height: calc(var(--osp-chat-vh, 100vh) - 20px);
    max-height: calc(var(--osp-chat-vh, 100vh) - 20px);
    border-radius: 22px;
    overflow: hidden;
  }

  #osp-staging-chat-root .osp-chat__body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
  }

  #osp-staging-chat-root .osp-chat__hero {
    flex: 0 0 auto;
    padding: 18px 16px 56px;
  }

  #osp-staging-chat-root .osp-chat__hero-top {
    margin-bottom: 32px;
  }

  #osp-staging-chat-root .osp-chat__hero h3 {
    font-size: 21px;
    line-height: 1.25;
  }

  #osp-staging-chat-root .osp-chat__home-cards {
    margin-top: -42px;
    padding: 0 14px 10px;
    gap: 10px;
  }

  #osp-staging-chat-root .osp-chat__home-card {
    padding: 14px;
  }

  #osp-staging-chat-root .osp-chat__composer {
    padding: 10px 14px 8px;
  }

  #osp-staging-chat-root .osp-chat__tabs {
    padding: 6px 10px max(10px, env(safe-area-inset-bottom));
  }
}

/* 2026-08-08 Home layout cleanup — keep Home clean, no transcript under hero. */
#osp-staging-chat-root .osp-chat__panel {
  overflow: hidden;
}
#osp-staging-chat-root .osp-chat__body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
#osp-staging-chat-root .osp-chat__messages {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  padding-bottom: 12px;
}
#osp-staging-chat-root .osp-chat__hero {
  flex: 0 0 auto;
  padding-bottom: 64px;
}
#osp-staging-chat-root .osp-chat__home-cards {
  margin-top: -46px;
}
#osp-staging-chat-root .osp-chat__composer-note:empty {
  display: none;
}
@media (max-width: 640px) {
  #osp-staging-chat-root.osp-chat-root--open {
    left: 8px;
    right: 8px;
    top: calc(var(--osp-chat-vtop, 0px) + 8px);
  }
  #osp-staging-chat-root .osp-chat__panel {
    height: calc(var(--osp-chat-vh, 100vh) - 16px);
    max-height: calc(var(--osp-chat-vh, 100vh) - 16px);
    border-radius: 22px;
  }
  #osp-staging-chat-root .osp-chat__header {
    padding: 10px 14px;
  }
  #osp-staging-chat-root .osp-chat__hero {
    padding: 16px 16px 58px;
  }
  #osp-staging-chat-root .osp-chat__hero-top {
    margin-bottom: 28px;
  }
  #osp-staging-chat-root .osp-chat__hero h3 {
    font-size: 20px;
    line-height: 1.25;
  }
  #osp-staging-chat-root .osp-chat__home-cards {
    margin-top: -38px;
    padding: 0 14px 8px;
  }
  #osp-staging-chat-root .osp-chat__home-card {
    padding: 13px 14px;
  }
  #osp-staging-chat-root .osp-chat__composer {
    padding: 8px 14px;
  }
  #osp-staging-chat-root .osp-chat__composer-box--intercom {
    padding: 10px 12px 9px;
    min-height: 48px;
  }
}

/* 2026-08-08 compact Home panel — remove giant empty space. */
@media (max-width: 640px) {
  #osp-staging-chat-root.osp-chat-root--open.osp-chat-root--tab-home .osp-chat__panel {
    height: auto;
    max-height: calc(var(--osp-chat-vh, 100vh) - 16px);
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__body {
    flex: 0 0 auto;
    overflow: visible;
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__messages {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-bottom: 8px;
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero {
    padding: 14px 16px 52px;
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-top {
    margin-bottom: 24px;
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-cards {
    margin-top: -34px;
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__composer {
    border-top: 0;
    padding-top: 4px;
  }
}

/* 2026-08-08 visual cleanup — remove placeholder logo, shrink hero, tighten Home. */
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-logo {
  display: none;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-top {
  justify-content: flex-end;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero {
  padding-top: 18px;
  padding-bottom: 42px;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero h3 {
  max-width: 260px;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-cards {
  margin-top: -28px;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-card {
  box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
}
@media (max-width: 640px) {
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__panel {
    border-radius: 20px;
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__header {
    min-height: 56px;
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero {
    padding: 16px 18px 40px;
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-top {
    margin-bottom: 18px;
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero h3 {
    font-size: 19px;
    line-height: 1.22;
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-cards {
    margin-top: -24px;
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__composer-box--intercom {
    border-radius: 18px;
  }
}

/* 2026-08-08 match reference Home design. */
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__header {
  display: none;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__panel {
  width: 402px;
  max-width: calc(100vw - 28px);
  height: min(704px, calc(var(--osp-chat-vh, 100vh) - 48px));
  max-height: calc(var(--osp-chat-vh, 100vh) - 48px);
  border-radius: 24px;
  overflow: hidden;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero {
  background: linear-gradient(180deg, #0879bb 0%, #0680c1 100%);
  padding: 36px 40px 88px;
  border-radius: 0;
  box-shadow: 0 18px 42px rgba(8, 128, 193, .24);
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-top {
  align-items: center;
  margin-bottom: 72px;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-logo {
  display: inline-flex;
  min-width: 0;
  width: 102px;
  height: 32px;
  padding: 0;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-person {
  width: 38px;
  height: 38px;
  border-width: 2px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .18);
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-close {
  display: inline-flex;
  width: 32px;
  height: 32px;
  color: #123b5d;
  opacity: 1;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(18, 59, 93, .18);
  box-shadow: 0 3px 10px rgba(15, 23, 42, .18);
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-close:hover,
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-close:focus-visible {
  color: #087f8c;
  background: #fff;
  border-color: rgba(8, 127, 140, .42);
  outline: 2px solid rgba(8, 127, 140, .22);
  outline-offset: 2px;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero h3 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.03em;
  max-width: 300px;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__messages {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  padding: 0 20px 18px;
  background: #fff;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-cards {
  margin-top: -70px;
  padding: 0 0 12px;
  gap: 12px;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-card {
  min-height: 74px;
  border: 0;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .14);
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-card-eyebrow {
  font-size: 13px;
  margin-bottom: 10px;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-arrow {
  background: transparent;
  color: #0879bb;
  font-size: 26px;
  font-weight: 800;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__composer {
  display: none;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__tabs {
  flex: 0 0 auto;
  height: 82px;
  padding: 10px 18px 12px;
  border-top: 1px solid #e5e7eb;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__tab {
  gap: 5px;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__tab span {
  font-size: 22px;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__tab--active {
  background: transparent;
  color: #0879bb;
}
@media (max-width: 640px) {
  #osp-staging-chat-root.osp-chat-root--open.osp-chat-root--tab-home {
    left: 50%;
    right: auto;
    top: calc(var(--osp-chat-vtop, 0px) + 56px);
    transform: translateX(-50%);
    width: min(402px, calc(100vw - 28px));
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__panel {
    width: 100%;
    height: min(704px, calc(var(--osp-chat-vh, 100vh) - 84px));
    max-height: calc(var(--osp-chat-vh, 100vh) - 84px);
    border-radius: 24px;
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero {
    padding: 36px 40px 82px;
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-top {
    margin-bottom: 70px;
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero h3 {
    font-size: 27px;
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__messages {
    padding-left: 20px;
    padding-right: 20px;
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-cards {
    margin-top: -66px;
  }
}

/* 2026-08-08 FINAL reference match — wins over earlier compact overrides. */
@media (max-width: 640px) {
  #osp-staging-chat-root.osp-chat-root.osp-chat-root--open.osp-chat-root--tab-home {
    left: 50%;
    right: auto;
    top: calc(var(--osp-chat-vtop, 0px) + 56px);
    transform: translateX(-50%);
    width: min(402px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }

  #osp-staging-chat-root.osp-chat-root.osp-chat-root--open.osp-chat-root--tab-home .osp-chat__panel {
    width: 100%;
    height: min(704px, calc(var(--osp-chat-vh, 100vh) - 84px));
    max-height: calc(var(--osp-chat-vh, 100vh) - 84px);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__header,
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__composer {
    display: none !important;
  }

  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
  }

  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero {
    flex: 0 0 auto;
    height: 290px;
    padding: 36px 40px 86px;
    background: linear-gradient(180deg, #0879bb 0%, #087fbe 100%);
    border-radius: 0;
    box-shadow: 0 18px 44px rgba(8, 127, 190, .24);
  }

  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 72px;
  }

  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-logo {
    display: inline-flex !important;
    width: 102px;
    height: 32px;
    min-width: 0;
    padding: 0;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
  }

  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-logo-image {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-actions {
    display: flex;
    align-items: center;
    gap: 22px;
  }

  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-person {
    width: 38px;
    height: 38px;
    border-width: 2px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .18);
  }

  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-close {
    display: inline-flex !important;
    width: 32px;
    height: 32px;
    color: #123b5d;
    opacity: 1;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(18, 59, 93, .18);
    box-shadow: 0 3px 10px rgba(15, 23, 42, .18);
  }

  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero h3 {
    font-size: 28px;
    line-height: 1.14;
    letter-spacing: -.03em;
    max-width: 300px;
  }

  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__messages {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow-y: auto;
    padding: 0 20px 18px;
    background: #fff;
    display: block;
  }

  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-cards {
    margin-top: -54px;
    padding: 0 0 12px;
    gap: 12px;
    display: grid;
    position: relative;
    z-index: 5;
  }

  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-card {
    min-height: 74px;
    border: 0;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .14);
    background: #fff;
  }

  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-arrow {
    background: transparent;
    color: #0879bb;
    font-size: 26px;
    font-weight: 800;
  }

  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__tabs {
    flex: 0 0 auto;
    height: 82px;
    padding: 10px 18px 12px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
  }

  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__tab--active {
    background: transparent;
    color: #0879bb;
  }
}

/* 2026-08-08 FINAL card visibility/reference correction. */
@media (max-width: 640px) {
  #osp-staging-chat-root.osp-chat-root.osp-chat-root--tab-home .osp-chat__panel {
    height: min(704px, calc(var(--osp-chat-vh, 100vh) - 84px)) !important;
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__body {
    overflow: visible !important;
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero {
    height: 290px !important;
    padding: 36px 40px 86px !important;
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__messages {
    display: block !important;
    overflow: visible !important;
    margin-top: -54px !important;
    padding: 0 20px 18px !important;
    position: relative;
    z-index: 6;
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-cards {
    margin-top: 0 !important;
    gap: 12px !important;
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-card {
    min-height: 74px !important;
    display: block !important;
    background: #fff !important;
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__tabs {
    margin-top: auto;
  }
}

/* 2026-08-08 tile overlap + shared tab icon/state fix. */
@media (max-width: 640px) {
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__messages {
    margin-top: 0 !important;
    padding: 16px 20px 18px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-cards {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-card {
    transform: none !important;
  }
}

#osp-staging-chat-root .osp-chat__tabs {
  gap: 14px;
  padding: 10px 14px 12px;
  background: #fff;
}
#osp-staging-chat-root .osp-chat__tab {
  border-radius: 16px;
  color: #7a8494;
  gap: 5px;
  transition: background .15s ease, color .15s ease;
}
#osp-staging-chat-root .osp-chat__tab span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0 !important;
  line-height: 1;
}
#osp-staging-chat-root .osp-chat__tab-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#osp-staging-chat-root .osp-chat__tab small {
  font-size: 12px;
  font-weight: 700;
}
#osp-staging-chat-root .osp-chat__tab--active {
  background: #eaf8f5 !important;
  color: #08766f !important;
}
#osp-staging-chat-root .osp-chat__tab--active .osp-chat__tab-icon {
  stroke-width: 2;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__tab--active,
#osp-staging-chat-root.osp-chat-root--tab-messages .osp-chat__tab--active {
  background: #eaf8f5 !important;
  color: #08766f !important;
}

/* 2026-08-08 GLOBAL overlap fix — applies when browser viewport is not matching mobile media query. */
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__body {
  overflow: hidden !important;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__messages {
  margin-top: 0 !important;
  padding: 18px 20px 18px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  position: relative;
  z-index: 1;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-cards {
  margin-top: 0 !important;
  padding-top: 0 !important;
  gap: 12px !important;
  position: relative;
  z-index: 1;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-card {
  transform: none !important;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero {
  z-index: 2;
}

/* 2026-08-08 tile overflow fix — keep Home cards inside panel. */
#osp-staging-chat-root,
#osp-staging-chat-root * {
  box-sizing: border-box;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__messages {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-cards {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-card-row {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-copy {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-copy strong,
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-copy span {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-time,
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-arrow,
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-avatar {
  flex-shrink: 0 !important;
}

/* Customer messaging lifecycle UX. */
#osp-staging-chat-root .osp-chat__launcher-dot {
  min-width: 20px;
  width: auto;
  height: 20px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,.16);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
#osp-staging-chat-root .osp-chat__launcher-mobile { position: relative; }
#osp-staging-chat-root .osp-chat__launcher-mobile .osp-chat__launcher-dot {
  position: absolute;
  right: -3px;
  top: -3px;
}
#osp-staging-chat-root .osp-chat__receipt {
  color: #6b7280;
  font-size: 11px;
  line-height: 1;
}
#osp-staging-chat-root .osp-chat__new-message-alert {
  position: absolute;
  left: 50%;
  bottom: 112px;
  z-index: 8;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: #0f766e;
  color: #fff;
  box-shadow: 0 8px 22px rgba(15,118,110,.28);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Intercom-style selectable reply pills. */
#osp-staging-chat-root .osp-chat__options--chips {
  width: 100%;
  align-items: flex-end;
  gap: 9px;
  margin-top: 16px;
}
#osp-staging-chat-root .osp-chat__options--chips .osp-chat__option {
  width: fit-content;
  min-width: 0;
  max-width: calc(100% - 20px);
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid #e3e5e8;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .10);
}
#osp-staging-chat-root .osp-chat__options--chips .osp-chat__option-copy {
  align-items: center;
}
#osp-staging-chat-root .osp-chat__options--chips .osp-chat__option-label {
  color: #08749a;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
}
#osp-staging-chat-root .osp-chat__options--chips .osp-chat__option:hover {
  border-color: #d5d9de;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .12);
}
#osp-staging-chat-root .osp-chat__options--chips .osp-chat__option:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(15, 23, 42, .10);
}

/* 2026-08-16 Messages list aligned to the supplied Intercom reference. */
#osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__panel {
  width: 400px;
  height: min(704px, calc(100vh - 32px));
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .18);
}
#osp-staging-chat-root .osp-chat__header--messages-list {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  min-height: 54px;
  padding: 0 14px;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}
#osp-staging-chat-root .osp-chat__header-list-title {
  color: #202124;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}
#osp-staging-chat-root .osp-chat__header--messages-list .osp-chat__close {
  width: 32px;
  height: 32px;
  color: #777;
  font-size: 22px;
}
#osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__body {
  min-height: 0;
  background: #fff;
}
#osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__messages {
  padding: 0 20px;
  background: #fff;
}
#osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__threads {
  display: block;
  margin: 0;
}
#osp-staging-chat-root .osp-chat__thread-group + .osp-chat__thread-group {
  margin-top: 10px;
}
#osp-staging-chat-root .osp-chat__thread-group-title {
  margin: 0;
  padding: 16px 4px 7px;
  color: #73777f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
#osp-staging-chat-root .osp-chat__thread-group--closed .osp-chat__thread {
  opacity: .82;
}
#osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__thread {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 74px;
  gap: 10px;
  margin: 0;
  padding: 13px 4px;
  border: 0;
  border-bottom: 1px solid #ececec;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  transform: none;
}
#osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__thread:hover {
  border-color: #ececec;
  background: #fafafa;
  box-shadow: none;
  transform: none;
}
#osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__thread-avatar {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  box-shadow: none;
}
#osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__thread-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  padding: 0;
}
#osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__thread-copy strong {
  overflow: hidden;
  color: #262626;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__thread-copy span {
  display: block;
  overflow: hidden;
  color: #777;
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__thread-time {
  align-self: start;
  padding-top: 1px;
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 400;
}
#osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__composer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 12px 20px 14px;
  border-top: 0;
  background: #fff;
}
#osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__new-message {
  width: min(100%, 184px);
  min-height: 42px;
  justify-content: center;
  gap: 18px;
  margin: 0;
  padding: 0 16px;
  border-radius: 11px;
  background: #0d83bd;
  box-shadow: 0 7px 18px rgba(13, 131, 189, .24);
  font-size: 13px;
  font-weight: 700;
}
#osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__new-message span {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}
#osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__tabs {
  height: 82px;
  padding: 10px 42px 12px;
  border-top: 1px solid #e8e8e8;
}
#osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__tab {
  padding: 7px 10px;
  border-radius: 0;
  background: transparent !important;
  color: #7a7a7a !important;
}
#osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__tab--active {
  color: #0783bd !important;
}
@media (max-width: 640px) {
  #osp-staging-chat-root.osp-chat-root--open.osp-chat-root--tab-messages.osp-chat-root--view-list {
    padding: 16px 12px;
  }
  #osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__panel {
    width: 100%;
    max-width: 400px;
    height: min(704px, calc(var(--osp-chat-vh, 100vh) - 32px));
  }

  /* Keep the mobile shell fixed while the conversation list owns vertical
     gestures. This prevents Safari/Chrome from scrolling the page behind it. */
  #osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__panel,
  #osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__body {
    min-height: 0;
    overflow: hidden;
  }
  #osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__body {
    flex: 1 1 auto;
  }
  #osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__messages {
    flex: 1 1 0;
    min-height: 0;
    height: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
  #osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__header--messages-list,
  #osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__composer,
  #osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__tabs {
    flex: 0 0 auto;
  }
}

/* WEB-CHAT-MOBILE-AFTERHOURS-039 final cascade guard: Home and Messages use
   the same viewport-anchored shell; only conversation detail may keyboard-resize. */
@media (max-width: 760px) {
  #osp-staging-chat-root.osp-chat-root.osp-chat-root--open:not(.osp-chat-root--view-thread) {
    position: fixed !important;
    top: var(--osp-chat-shell-vtop, var(--osp-chat-vtop, 0px)) !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100vw !important;
    height: var(--osp-chat-shell-vh, var(--osp-chat-vh, 100dvh)) !important;
    margin: 0 !important;
    padding: max(8px, env(safe-area-inset-top)) 12px max(8px, env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
    transform: none !important;
    box-sizing: border-box !important;
  }
  #osp-staging-chat-root.osp-chat-root.osp-chat-root--open:not(.osp-chat-root--view-thread) > .osp-chat__panel {
    position: relative !important;
    inset: auto !important;
    width: min(380px, calc(100vw - 24px)) !important;
    max-width: min(380px, calc(100vw - 24px)) !important;
    height: calc(var(--osp-chat-shell-vh, var(--osp-chat-vh, 100dvh)) - max(8px, env(safe-area-inset-top)) - max(8px, env(safe-area-inset-bottom))) !important;
    min-height: 0 !important;
    max-height: calc(var(--osp-chat-shell-vh, var(--osp-chat-vh, 100dvh)) - max(8px, env(safe-area-inset-top)) - max(8px, env(safe-area-inset-bottom))) !important;
    margin: 0 auto !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  #osp-staging-chat-root.osp-chat-root.osp-chat-root--open:not(.osp-chat-root--view-thread) .osp-chat__header,
  #osp-staging-chat-root.osp-chat-root.osp-chat-root--open:not(.osp-chat-root--view-thread) .osp-chat__header--messages-list {
    flex: 0 0 58px !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  #osp-staging-chat-root.osp-chat-root.osp-chat-root--open:not(.osp-chat-root--view-thread) .osp-chat__body {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  #osp-staging-chat-root.osp-chat-root.osp-chat-root--open:not(.osp-chat-root--view-thread) .osp-chat__tabs {
    flex: 0 0 68px !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

/* WEB-CHAT-UI-003 final overrides (kept last to supersede legacy variants). */
#osp-staging-chat-root .osp-chat__panel { width:360px !important; max-width:calc(100vw - 24px) !important; height:min(680px,calc(100vh - 28px)) !important; border:1px solid rgba(15,118,110,.12) !important; border-radius:20px !important; box-shadow:0 18px 48px rgba(15,23,42,.16),0 4px 14px rgba(15,23,42,.07) !important; }
#osp-staging-chat-root .osp-chat__header,#osp-staging-chat-root .osp-chat__header--messages-list { min-height:58px !important; padding:9px 12px !important; background:#fff !important; border-bottom:1px solid #e8f2f1 !important; }
#osp-staging-chat-root .osp-chat__hero,#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero { min-height:0 !important; padding:12px 14px 14px !important; margin:0 !important; color:#172033 !important; background:#fff !important; border-bottom:3px solid #14b8a6 !important; border-radius:0 !important; }
#osp-staging-chat-root .osp-chat__hero-top,#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-top { margin:0 0 10px !important; align-items:center !important; }
#osp-staging-chat-root .osp-chat__hero-logo,#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-logo { min-width:0 !important; padding:0 !important; background:transparent !important; }
#osp-staging-chat-root .osp-chat__hero-logo-image,#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero-logo-image { display:block !important; width:auto !important; max-width:132px !important; max-height:34px !important; }
#osp-staging-chat-root .osp-chat__hero h3,#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__hero h3 { margin:0 !important; color:#172033 !important; font-size:18px !important; line-height:1.25 !important; }
#osp-staging-chat-root .osp-chat__home-cards,#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-cards { padding:12px !important; gap:10px !important; }
#osp-staging-chat-root .osp-chat__home-card,#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__home-card { padding:12px !important; border-radius:14px !important; }
#osp-staging-chat-root .osp-chat__composer { padding:8px 10px !important; }
#osp-staging-chat-root .osp-chat__tabs { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; height:68px !important; min-height:68px !important; padding:6px 24px 8px !important; gap:8px !important; background:#fff !important; border-top:1px solid #e7ecef !important; }
#osp-staging-chat-root .osp-chat__tab,#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__tab,#osp-staging-chat-root.osp-chat-root--tab-messages .osp-chat__tab,#osp-staging-chat-root.osp-chat-root--view-list .osp-chat__tab { width:100% !important; height:54px !important; min-height:54px !important; margin:0 !important; padding:6px 8px !important; display:flex !important; flex-direction:column !important; align-items:center !important; justify-content:center !important; gap:3px !important; color:#74808c !important; background:transparent !important; border:0 !important; border-radius:10px !important; font-size:12px !important; font-weight:600 !important; line-height:1 !important; }
#osp-staging-chat-root .osp-chat__tab span { width:22px !important; height:22px !important; margin:0 !important; display:flex !important; align-items:center !important; justify-content:center !important; }
#osp-staging-chat-root .osp-chat__tab small { margin:0 !important; font-size:12px !important; font-weight:600 !important; line-height:14px !important; color:inherit !important; }
#osp-staging-chat-root .osp-chat__tab-icon { width:20px !important; height:20px !important; }
#osp-staging-chat-root .osp-chat__tab--active { color:#0f8b80 !important; background:#effaf8 !important; }
#osp-staging-chat-root [aria-label="Insert GIF"],#osp-staging-chat-root [aria-label="Voice note"],#osp-staging-chat-root .osp-chat__gif-picker { display:none !important; }
@media (max-width:640px) { #osp-staging-chat-root .osp-chat__panel { width:100% !important; max-width:380px !important; height:min(680px,calc(var(--osp-chat-vh,100vh) - 24px)) !important; border-radius:18px !important; } #osp-staging-chat-root.osp-chat-root--open { padding:12px !important; } #osp-staging-chat-root .osp-chat__tabs { padding-left:18px !important; padding-right:18px !important; } }
@media (max-width:760px) {
  #osp-staging-chat-root.osp-chat-root--open { top:var(--osp-chat-vtop,0px) !important; bottom:auto !important; height:var(--osp-chat-vh,100dvh) !important; padding:8px 12px !important; overflow:hidden !important; }
  #osp-staging-chat-root.osp-chat-root--open .osp-chat__panel { height:calc(var(--osp-chat-vh,100dvh) - 16px) !important; max-height:calc(var(--osp-chat-vh,100dvh) - 16px) !important; }
  #osp-staging-chat-root .osp-chat__body,#osp-staging-chat-root .osp-chat__messages { min-height:0 !important; }
  #osp-staging-chat-root .osp-chat__composer { flex:0 0 auto !important; }
}
#osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__tab[data-tab="home"],
#osp-staging-chat-root.osp-chat-root--tab-messages .osp-chat__tab[data-tab="messages"] { color:#0f8b80 !important; background:#effaf8 !important; }

/* WEB-CHAT-FLOW-008: compact pre-chat service picker and optional contact card. */
#osp-staging-chat-root .osp-chat__prechat { position:fixed; right:24px; bottom:92px; z-index:2147483645; width:276px; padding:0; display:flex; flex-direction:column; align-items:flex-end; gap:10px; background:transparent; border:0; border-radius:0; box-shadow:none; color:#172033; backdrop-filter:none; -webkit-backdrop-filter:none; pointer-events:none; }
#osp-staging-chat-root .osp-chat__prechat>strong { align-self:stretch; padding:0 28px 4px 2px; font-size:14px; line-height:1.25; font-weight:600; text-align:right; text-shadow:0 1px 2px rgba(255,255,255,.9); }
#osp-staging-chat-root .osp-chat__prechat-close { position:absolute; top:-5px; right:0; width:24px; height:24px; padding:0; border:0; border-radius:0; background:transparent; color:#53616b; font-size:20px; line-height:24px; cursor:pointer; pointer-events:auto; text-shadow:0 1px 2px rgba(255,255,255,.95); }
#osp-staging-chat-root .osp-chat__prechat-option { width:fit-content; max-width:calc(100% - 20px); min-height:0; padding:10px 17px; text-align:center; border:1px solid rgba(227,229,232,.92); border-radius:999px; background:rgba(255,255,255,.92); color:#08749a; box-shadow:0 3px 10px rgba(15,23,42,.10); font:400 14px/1.3 inherit; cursor:pointer; pointer-events:auto; }
#osp-staging-chat-root .osp-chat__prechat-option:hover,#osp-staging-chat-root .osp-chat__prechat-option:focus-visible { border-color:#d5d9de; background:#fff; color:#08749a; box-shadow:0 5px 14px rgba(15,23,42,.12); outline:none; }
#osp-staging-chat-root .osp-chat__prechat-option:active { transform:translateY(1px); box-shadow:0 2px 6px rgba(15,23,42,.10); }
#osp-staging-chat-root .osp-chat__form[data-optional-contact="1"] { border-color:#cfe8e5; background:#f9fdfc; }
#osp-staging-chat-root .osp-chat__form-optional { display:block; margin-top:8px; color:#6b7782; font-size:11px; line-height:1.35; }
@media (max-width:640px) { #osp-staging-chat-root .osp-chat__prechat { left:auto; right:12px; bottom:82px; width:min(276px,calc(100vw - 24px)); max-width:none; margin:0; } }
@media (max-width:640px) {
  #osp-staging-chat-root:not(.osp-chat-root--open) {
    top:auto !important;
    bottom:12px !important;
    left:auto !important;
    right:12px !important;
  }
}

/* WEB-CHAT-MOBILE-037: Home and Messages share one stable mobile shell.
   Conversation detail keeps the existing visualViewport keyboard behavior. */
@media (max-width: 760px) {
  #osp-staging-chat-root.osp-chat-root.osp-chat-root--open.osp-chat-root--tab-home,
  #osp-staging-chat-root.osp-chat-root.osp-chat-root--open.osp-chat-root--tab-messages.osp-chat-root--view-list {
    top: var(--osp-chat-vtop, 0px) !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100% !important;
    height: var(--osp-chat-vh, 100dvh) !important;
    padding: 8px 12px !important;
    overflow: hidden !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  #osp-staging-chat-root.osp-chat-root.osp-chat-root--open.osp-chat-root--tab-home .osp-chat__panel,
  #osp-staging-chat-root.osp-chat-root.osp-chat-root--open.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__panel {
    width: min(380px, calc(100vw - 24px)) !important;
    max-width: min(380px, calc(100vw - 24px)) !important;
    height: calc(var(--osp-chat-vh, 100dvh) - 16px) !important;
    min-height: 0 !important;
    max-height: calc(var(--osp-chat-vh, 100dvh) - 16px) !important;
    margin: 0 auto !important;
    overflow: hidden !important;
  }

  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__body,
  #osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__body {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__messages,
  #osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__messages {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__tabs,
  #osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__tabs {
    flex: 0 0 68px !important;
    height: 68px !important;
    min-height: 68px !important;
  }
}

/* WEB-CHAT-MOBILE-037-REV: immutable Home/Messages mobile frame.
   Keep this final so legacy per-view sizing cannot move the outer shell. */
@media (max-width: 760px) {
  #osp-staging-chat-root.osp-chat-root.osp-chat-root--open:not(.osp-chat-root--view-thread) {
    position: fixed !important;
    inset: var(--osp-chat-shell-vtop, var(--osp-chat-vtop, 0px)) 0 auto 0 !important;
    width: 100vw !important;
    height: var(--osp-chat-shell-vh, var(--osp-chat-vh, 100dvh)) !important;
    margin: 0 !important;
    padding:
      max(8px, env(safe-area-inset-top))
      12px
      max(8px, env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  #osp-staging-chat-root.osp-chat-root.osp-chat-root--open:not(.osp-chat-root--view-thread) > .osp-chat__panel {
    position: relative !important;
    inset: auto !important;
    width: min(380px, calc(100vw - 24px)) !important;
    min-width: 0 !important;
    max-width: min(380px, calc(100vw - 24px)) !important;
    height: calc(
      var(--osp-chat-shell-vh, var(--osp-chat-vh, 100dvh))
      - max(8px, env(safe-area-inset-top))
      - max(8px, env(safe-area-inset-bottom))
    ) !important;
    min-height: 0 !important;
    max-height: calc(
      var(--osp-chat-shell-vh, var(--osp-chat-vh, 100dvh))
      - max(8px, env(safe-area-inset-top))
      - max(8px, env(safe-area-inset-bottom))
    ) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__header,
  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__header--messages-list,
  #osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__header,
  #osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__header--messages-list {
    flex: 0 0 58px !important;
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__body,
  #osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__body {
    flex: 1 1 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  #osp-staging-chat-root.osp-chat-root--tab-home .osp-chat__tabs,
  #osp-staging-chat-root.osp-chat-root--tab-messages.osp-chat-root--view-list .osp-chat__tabs {
    flex: 0 0 68px !important;
    width: 100% !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}
