.wm-msg-root {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1250;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.wm-msg-launcher {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #eff6ff;
  cursor: pointer;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.24);
  position: relative;
}

.wm-msg-launcher:hover {
  transform: translateY(-1px);
}

.wm-msg-launcher svg,
.wm-msg-icon-button svg,
.wm-msg-send-button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wm-msg-launcher-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wm-msg-widget-shell,
.wm-msg-page-shell {
  display: none;
}

.wm-msg-widget-shell.is-open {
  display: block;
}

.wm-msg-page-shell.is-open {
  position: fixed;
  z-index: 1240;
  display: block;
}

.wm-msg-panel {
  width: min(920px, calc(100vw - 32px));
  height: min(76vh, 760px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #cbd5e1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #0f172a;
}

.wm-msg-page-shell .wm-msg-panel {
  width: 100%;
  height: 100%;
  border-radius: 24px;
}

.wm-msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #dbeafe;
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
}

.wm-msg-header-copy {
  min-width: 0;
}

.wm-msg-eyebrow {
  margin: 0;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wm-msg-title {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 800;
}

.wm-msg-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wm-msg-header-mini-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wm-msg-icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wm-msg-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.wm-msg-contacts {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-right: 1px solid #dbeafe;
  background: linear-gradient(#f8fbff, #eef4ff);
}

.wm-msg-contacts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wm-msg-contacts-header strong {
  color: #0f172a;
  font-size: 14px;
}

.wm-msg-search input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: #0f172a;
  background: #fff;
}

.wm-msg-search input:focus,
.wm-msg-composer textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.16);
  border-color: #2563eb;
}

.wm-msg-contact-list {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding-right: 4px;
}

.wm-msg-contact-card {
  width: 100%;
  text-align: left;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  background: #fff;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  cursor: pointer;
}

.wm-msg-contact-card:hover,
.wm-msg-contact-card.is-selected {
  background: #eff6ff;
  border-color: #60a5fa;
}

.wm-msg-presence-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 5px;
  box-shadow: 0 0 0 4px #fff;
}

.wm-msg-presence-dot.is-online {
  background: #22c55e;
}

.wm-msg-presence-dot.is-offline {
  background: #cbd5e1;
}

.wm-msg-contact-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.wm-msg-section {
  display: grid;
  align-content: start;
  gap: 10px;
}

.wm-msg-section-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.wm-msg-section + .wm-msg-section {
  margin-top: 6px;
}

.wm-msg-section-label {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wm-msg-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wm-msg-contact-topline {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.wm-msg-contact-name {
  color: #0f172a;
  font-weight: 700;
}

.wm-msg-stage-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.wm-msg-stage-badge.is-experimental {
  background: #fef3c7;
  color: #92400e;
}

.wm-msg-group-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wm-msg-group-avatar svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wm-msg-ai-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0891b2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wm-msg-ai-avatar svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wm-msg-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.wm-msg-status-pill.is-online {
  background: #dcfce7;
  color: #166534;
}

.wm-msg-status-pill.is-offline {
  background: #e2e8f0;
  color: #475569;
}

.wm-msg-contact-preview,
.wm-msg-thread-subcopy,
.wm-msg-empty-copy,
.wm-msg-muted {
  color: #64748b;
  font-size: 13px;
}

.wm-msg-unread {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wm-msg-thread {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 18px;
  background: linear-gradient(#fff, #f8fbff);
}

.wm-msg-thread-header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
}

.wm-msg-thread-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wm-msg-thread-heading {
  min-width: 0;
}

.wm-msg-thread-title {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
}

.wm-msg-info-button {
  flex: 0 0 auto;
}

.wm-msg-thread-body {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px 4px 8px;
}

.wm-msg-bubble {
  max-width: min(82%, 640px);
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 16px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wm-msg-bubble p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wm-msg-typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 18px;
}

.wm-msg-typing span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.35;
  animation: wm-msg-typing-bounce 1.1s infinite ease-in-out;
}

.wm-msg-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.wm-msg-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

.wm-msg-bubble-author {
  font-size: 12px;
  font-weight: 800;
}

.wm-msg-bubble span {
  font-size: 12px;
  font-weight: 700;
}

.wm-msg-bubble.is-peer {
  justify-self: start;
  background: #eff6ff;
  color: #0f172a;
  border-top-left-radius: 6px;
}

.wm-msg-bubble.is-own {
  justify-self: end;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #eff6ff;
  border-top-right-radius: 6px;
}

@keyframes wm-msg-typing-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  40% {
    transform: translateY(-3px);
    opacity: 0.85;
  }
}

.wm-msg-composer {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 6px;
  border-top: 1px solid #e2e8f0;
}

.wm-msg-composer textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 106px;
  resize: none;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  padding: 14px 16px;
}

.wm-msg-composer-actions {
  display: flex;
  justify-content: flex-end;
}

.wm-msg-send-button {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #eff6ff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
}

.wm-msg-send-button:disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

.wm-msg-empty-state {
  min-height: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.wm-msg-empty-state-inline {
  place-items: start;
  text-align: left;
  padding: 8px 4px 16px;
}

.wm-msg-empty-state h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 22px;
}

.wm-msg-modal-backdrop {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.18);
}

.wm-msg-modal {
  width: min(540px, 100%);
  max-height: min(82vh, 760px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.wm-msg-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
}

.wm-msg-modal-title {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
}

.wm-msg-modal-body {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px 20px 20px;
}

.wm-msg-modal-field {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.wm-msg-modal-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: #0f172a;
  background: #fff;
}

.wm-msg-modal-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 120px;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: #0f172a;
  background: #fff;
}

.wm-msg-modal-field input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.16);
  border-color: #2563eb;
}

.wm-msg-modal-textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.16);
  border-color: #2563eb;
}

.wm-msg-modal-meta {
  margin: -4px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.wm-msg-modal-user-list {
  min-height: 220px;
  max-height: 320px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding-right: 4px;
}

.wm-msg-info-modal {
  width: min(640px, 100%);
}

.wm-msg-inline-button {
  padding: 10px 14px;
  font-size: 13px;
}

.wm-msg-inline-form {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: linear-gradient(#ffffff, #f8fbff);
}

.wm-msg-inline-user-list {
  min-height: 0;
  max-height: 220px;
}

.wm-msg-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wm-msg-info-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: linear-gradient(#ffffff, #f8fbff);
}

.wm-msg-info-card strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
}

.wm-msg-member-list {
  max-height: 320px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding-right: 4px;
}

.wm-msg-member-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: #fff;
}

.wm-msg-member-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.wm-msg-member-detail {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.wm-msg-modal-user {
  width: 100%;
  text-align: left;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: #fff;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}

.wm-msg-modal-user.is-selected,
.wm-msg-modal-user:hover {
  background: #eff6ff;
  border-color: #60a5fa;
}

.wm-msg-modal-check {
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}

.wm-msg-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.wm-msg-secondary-button {
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
}

.wm-msg-secondary-button:hover {
  background: #f8fafc;
}

.wm-msg-hidden {
  display: none !important;
}

.setup-workspace.wm-ai-mode > .setup-main-column:not(.wm-ai-setup-column),
.setup-workspace.wm-ai-mode > .setup-side-column:not(.wm-ai-setup-column) {
  display: none;
}

.setup-workspace.wm-msg-pref-mode > .setup-main-column:not(.wm-msg-pref-column),
.setup-workspace.wm-msg-pref-mode > .setup-side-column:not(.wm-msg-pref-column) {
  display: none;
}

.setup-section-pill[data-wm-setup-section="ai-users"] {
  position: relative;
}

.setup-section-pill[data-wm-setup-section="ai-users"]:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0ea5e9;
  display: inline-flex;
  margin-right: 8px;
  vertical-align: middle;
}

.setup-section-pill[data-wm-setup-section="messaging"] {
  position: relative;
}

.setup-section-pill[data-wm-setup-section="messaging"]:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  display: inline-flex;
  margin-right: 8px;
  vertical-align: middle;
}

.wm-ai-setup-root {
  display: contents;
}

.wm-msg-pref-column {
  min-width: 0;
}

.wm-msg-pref-hero {
  background: radial-gradient(circle at 100% 0, rgba(34, 197, 94, 0.12), transparent 36%), linear-gradient(#fff 0%, #f8fbff 100%);
}

.wm-msg-pref-option-grid {
  display: grid;
  gap: 12px;
}

.wm-msg-pref-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid #dbe3f0;
  border-radius: 16px;
  background: #fff;
  padding: 14px 16px;
  cursor: pointer;
}

.wm-msg-pref-option:hover,
.wm-msg-pref-option.is-selected {
  border-color: #60a5fa;
  background: #f8fbff;
}

.wm-msg-pref-option input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.wm-msg-pref-option-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.wm-msg-pref-option-copy strong {
  color: #0f172a;
  font-size: 15px;
}

.wm-msg-pref-option-copy span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.wm-msg-pref-actions {
  margin-top: 16px;
}

.wm-ai-setup-column {
  min-width: 0;
}

.wm-ai-setup-hero {
  background: radial-gradient(circle at 100% 0, #0ea5e91a, transparent 36%), linear-gradient(#fff 0%, #f8fbff 100%);
}

.wm-ai-setup-list-controls {
  align-items: center;
}

.wm-ai-inline-check {
  color: #475569;
}

.wm-ai-inline-check span {
  white-space: nowrap;
}

.wm-ai-setup-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
  display: grid;
}

.wm-ai-setup-stat-card {
  background: #fff;
  border: 1px solid #dbe3f0;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 6px;
}

.wm-ai-setup-stat-card span {
  color: #1d4ed8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}

.wm-ai-setup-stat-card strong {
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
}

.wm-ai-setup-stat-card p {
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.wm-ai-setup-list-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wm-ai-setup-card-list {
  gap: 12px;
}

.wm-ai-setup-card {
  background: linear-gradient(#fff 0%, #fbfdff 100%);
  border: 1px solid #dbe3f0;
  border-radius: 18px;
  padding: 16px;
}

.wm-ai-setup-card-heading h4 {
  color: #0f172a;
  margin: 0 0 6px;
  font-size: 18px;
}

.wm-ai-setup-card-heading p {
  color: #475569;
  margin: 0;
  line-height: 1.55;
}

.wm-ai-setup-card-body {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
  display: grid;
}

.wm-ai-setup-card-section {
  background: #f8fbff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
}

.wm-ai-setup-card-label {
  color: #2563eb;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  display: block;
  margin-bottom: 8px;
}

.wm-ai-setup-card-section p,
.wm-ai-setup-card-footer {
  color: #64748b;
  margin: 0;
  line-height: 1.55;
}

.wm-ai-setup-card-footer {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
}

.wm-ai-setup-card-actions {
  margin-top: 14px;
}

.wm-ai-setup-card-statuses {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wm-ai-chip-active {
  color: #166534;
  background: #dcfce7;
}

.wm-ai-chip-inactive {
  color: #475569;
  background: #e2e8f0;
}

.wm-ai-chip-experimental {
  color: #92400e;
  background: #fef3c7;
}

.wm-ai-setup-guidance {
  gap: 12px;
  margin-top: 14px;
  display: grid;
}

.wm-ai-setup-guidance div {
  background: #f8fbff;
  border: 1px solid #dbe3f0;
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.wm-ai-setup-guidance span {
  color: #1d4ed8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}

.wm-ai-setup-guidance strong {
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}

.wm-ai-setup-form {
  gap: 12px;
}

.wm-ai-setup-mini-grid {
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  gap: 12px;
  display: grid;
  align-items: end;
}

.wm-ai-active-toggle {
  align-self: center;
  padding-top: 30px;
}

.wm-ai-source-picker {
  border: 1px solid #dbe3f0;
  border-radius: 16px;
  background: #f8fbff;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.wm-ai-source-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.wm-ai-source-picker-title {
  display: grid;
  gap: 4px;
}

.wm-ai-source-picker-header strong {
  color: #0f172a;
}

.wm-ai-source-picker-header span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.wm-ai-source-picker-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.wm-ai-source-picker-action {
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.wm-ai-source-picker-action.is-secondary {
  border-color: #dbe3f0;
  background: #fff;
  color: #475569;
}

.wm-ai-source-picker-action[disabled] {
  opacity: 0.45;
  cursor: default;
}

.wm-ai-source-doc-list {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
  display: grid;
  gap: 8px;
}

.wm-ai-source-doc {
  text-align: left;
  border: 1px solid #dbe3f0;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.wm-ai-source-doc:hover,
.wm-ai-source-doc.is-selected {
  border-color: #93c5fd;
  background: #eff6ff;
}

.wm-ai-source-doc-check-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
}

.wm-ai-source-doc-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #2563eb;
  cursor: pointer;
}

.wm-ai-source-doc-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.wm-ai-source-doc-copy strong {
  color: #0f172a;
  font-size: 14px;
}

.wm-ai-source-doc-copy span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.wm-ai-source-summary {
  display: grid;
  gap: 8px;
}

.wm-ai-source-summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wm-ai-setup-form-actions {
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .wm-msg-root {
    right: 16px;
    bottom: 16px;
  }

  .wm-msg-panel {
    width: min(100vw - 24px, 720px);
    height: min(82vh, 780px);
  }

  .wm-msg-body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 240px) minmax(0, 1fr);
  }

  .wm-msg-contacts {
    border-right: 0;
    border-bottom: 1px solid #dbeafe;
  }

  .wm-msg-page-shell {
    left: 12px !important;
    top: 12px !important;
    width: calc(100vw - 24px) !important;
    height: calc(100vh - 24px) !important;
  }

  .wm-msg-info-grid {
    grid-template-columns: 1fr;
  }

  .wm-msg-member-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .wm-ai-setup-mini-grid,
  .wm-ai-setup-card-body {
    grid-template-columns: 1fr;
  }
}
