.cm-support {
  --font-site: var(--font-geist-sans, Geist), Arial, sans-serif;
  --cm-support-surface: #161618;
  --cm-support-line: #29292d;
  --cm-support-text: #f5f5f7;
  --cm-support-muted: #8b8b94;
  --cm-support-accent: #ff536b;
  --cm-support-bottom: max(12px, env(safe-area-inset-bottom));
  position: fixed;
  z-index: 250;
  left: max(10px, env(safe-area-inset-left));
  bottom: var(--cm-support-bottom);
  font: 15px/1.45 var(--font-site);
  color: var(--cm-support-text);
}
.cm-support, .cm-support *, .cm-support *::before, .cm-support *::after { box-sizing: border-box; }
.cm-support [hidden] { display: none !important; }
.cm-support .cm-support-guest-notice {
  margin: 0 0 12px;
  padding: 9px 11px;
  border: 1px solid #5b3942;
  border-radius: 7px;
  background: #291e24;
  color: #f0cfd8;
  font-size: 12px;
  line-height: 1.5;
}
.cm-support .cm-support-guest-notice a { color: #ff9bac; font-weight: 650; text-decoration: underline; }
.cm-support .cm-support-wizard { display: grid; gap: 12px; padding: 2px 2px 16px; }
.cm-support .cm-support-wizard-title { margin: 0; color: var(--cm-support-text); font-weight: 650; }
.cm-support .cm-support-wizard-options { display: grid; gap: 8px; }
.cm-support .cm-support-wizard-option { text-align: left; width: 100%; padding: 10px 12px; border: 1px solid var(--cm-support-line); border-radius: 8px; background: #202024; color: var(--cm-support-text); }
.cm-support .cm-support-wizard-option:hover { border-color: var(--cm-support-accent); }
.cm-support .cm-support-wizard-option.cm-support-wizard-general { color: var(--cm-support-muted); background: transparent; }
.cm-support .cm-support-wizard-back { justify-self: start; color: var(--cm-support-muted); font-size: 13px; }
.cm-support .cm-support-wizard-back:hover { color: var(--cm-support-text); }
.cm-support .cm-support-wizard-context { margin: 0; color: var(--cm-support-muted); font-size: 13px; }
.cm-support :where(button, textarea, input) { font: inherit; }
.cm-support button:focus-visible, .cm-support a:focus-visible, .cm-support textarea:focus-visible,
.cm-support input:focus-visible, .cm-support-attach:focus-within {
  outline: 2px solid var(--cm-support-accent);
  outline-offset: 3px;
}
.cm-support-launch {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 0 6px 10px;
  padding: 0;
  border: 1px solid #ff9aa54d;
  border-radius: 50%;
  background: linear-gradient(180deg,#ef4a60,#cd243d);
  color: #fff;
  box-shadow: inset 0 1px 0 #ffffff40, 0 8px 28px #0005;
  cursor: pointer;
}
.cm-support-launch svg { width: 28px; height: 28px; }
.cm-support.is-open .cm-support-launch { display: none; }
.cm-support-panel {
  position: absolute;
  left: 0;
  bottom: 0;
  display: grid;
  grid-template-rows: 62px minmax(0, 1fr) auto auto;
  width: min(440px, calc(100vw - max(10px, env(safe-area-inset-left)) - max(10px, env(safe-area-inset-right))));
  height: min(720px, calc(100dvh - var(--cm-support-bottom) - max(10px, env(safe-area-inset-top))));
  border-radius: 16px;
  background: var(--cm-support-surface);
  box-shadow: 0 14px 45px #0007;
  overflow: hidden;
  isolation: isolate;
  animation: cm-support-in .16s ease-out;
}
.cm-support-panel:focus { outline: none; }
@keyframes cm-support-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.cm-support-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 62px;
  padding: 0 15px 0 17px;
  border-bottom: 1px solid var(--cm-support-line);
}
.cm-support .cm-support-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--cm-support-text);
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.cm-support-heading-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-support-heading svg { width: 13px; height: 13px; flex: none; color: var(--cm-support-muted); }
.cm-support-heading[aria-expanded='true'] svg { transform: rotate(180deg); }
.cm-support-head-actions { display: flex; align-items: center; flex: none; gap: 4px; }
.cm-support-icon {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  place-items: center;
  flex: none;
  color: #83838c;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.cm-support-icon svg { width: 20px; height: 20px; }
.cm-support-icon:hover { background: #242427; color: #c9c9cf; }
.cm-support-nav {
  position: absolute;
  z-index: 2;
  top: 55px;
  left: 13px;
  display: grid;
  gap: 2px;
  width: max-content;
  max-width: calc(100% - 26px);
  padding: 6px;
  border: 1px solid #2c2c32;
  border-radius: 10px;
  background: #1d1d20;
  box-shadow: 0 10px 24px #0006;
}
.cm-support .cm-support-nav button,
.cm-support .cm-support-nav label {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  color: #e5e5e8;
  background: transparent;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.cm-support .cm-support-nav button:hover,
.cm-support .cm-support-nav label:hover { background: #29292d; }
.cm-support-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  padding: 8px 14px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: #161618;
  font-weight: 700;
  cursor: pointer;
}
.cm-support-primary:hover { background: #e7e7ea; }
.cm-support-link {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #bdc0c7;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}
.cm-support-link:hover { color: #f2f2f4; }
.cm-support button:disabled { opacity: .55; cursor: default; }
.cm-support-body {
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
  padding: 18px 22px;
  scrollbar-color: #53535b transparent;
  scrollbar-width: thin;
}
.cm-support-ticket-title { margin: 0; color: var(--cm-support-text); font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.cm-support-muted { margin: 0; color: #c6c6cb; font-size: 15px; }
.cm-support-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  min-height: 200px;
  padding: 20px 12px;
  text-align: center;
}
.cm-support-empty > svg { width: 28px; height: 28px; color: var(--cm-support-accent); }
.cm-support-empty p { max-width: 235px; margin: 0 0 4px; }
.cm-support-ticket {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-top: 9px;
  padding: 11px;
  border: 1px solid var(--cm-support-line);
  border-radius: 9px;
  background: #1d1d20;
  text-align: left;
  color: var(--cm-support-text);
  cursor: pointer;
}
.cm-support-ticket:hover { background: #27272b; }
.cm-support-ticket-info { display: grid; min-width: 0; gap: 4px; overflow-wrap: anywhere; }
.cm-support-ticket-info small { color: var(--cm-support-muted); }
.cm-support-status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  border: 1px solid #34343a;
  border-radius: 99px;
  padding: 3px 7px;
  background: #252529;
  color: #cccbd1;
  font-size: 11px;
  white-space: nowrap;
}
.cm-support-status[data-status='needs_staff'] { color: #ffd29f; border-color: #6a4b31; background: #3a2a23; }
.cm-support-status[data-status='resolved'] { color: #9ae6b3; border-color: #375e49; background: #203429; }
.cm-support-panel[data-view='create'] { grid-template-rows: 62px auto auto auto minmax(0, 1fr); overflow: auto; }
.cm-support-panel[data-view='create'] .cm-support-body { padding: 24px 22px 0; overflow: visible; }
.cm-support-panel[data-view='create'] .cm-support-form { padding: 27px 22px 22px; }
.cm-support-create-caption { display: block; margin: 0 0 11px; color: #a9a9b0; font-size: 14px; font-weight: 650; }
.cm-support .cm-support-start { width: 100%; margin-top: 22px; font-weight: 700; }
.cm-support-panel[data-view='create'] .cm-support-controls { display: none; }
.cm-support-panel[data-view='create'] .cm-support-compose {
  display: block;
  min-width: 0;
  min-height: 71px;
  padding: 0;
  border-radius: 12px;
}
.cm-support-panel[data-view='create'] .cm-support-text { min-height: 69px; padding: 12px 14px; }
.cm-support-panel[data-view='thread'] .cm-support-body { display: flex; flex-direction: column; padding: 0 10px 0 9px; }
.cm-support-thread { display: flex; flex-direction: column; flex: 1 0 auto; min-width: 0; }
.cm-support-messages { display: flex; flex-direction: column; gap: 14px; margin-top: auto; padding: 16px 0 0; }
.cm-support-day {
  display: flex;
  align-items: center;
  gap: clamp(16px, 10vw, 48px);
  margin: 0 0 3px;
  color: var(--cm-support-muted);
  font-size: 14px;
}
.cm-support-day::before, .cm-support-day::after { content: ''; flex: 1; height: 1px; background: #343437; }
.cm-support-message { position: relative; align-self: flex-start; min-width: 0; max-width: min(77%, 309px); margin-inline-start: 44px; }
.cm-support-message[data-author='customer'] { align-self: flex-end; margin-inline: 0 12px; }
.cm-support-message-name { margin: 0 0 5px; color: #93939b; font-size: 13px; font-weight: 550; }
.cm-support-bubble { border-radius: 18px 18px 18px 7px; padding: 10px 15px; background: #202024; color: #dddde1; }
.cm-support-message[data-author='customer'] .cm-support-bubble { border-radius: 18px 18px 7px 18px; background: #3b2228; color: #fff1f3; }
.cm-support-bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.52; }
.cm-support-bubble-part + .cm-support-bubble-part { margin-top: 4px; }
.cm-support-bubble .cm-support-inline-link { color: var(--cm-support-accent); text-decoration: underline; font-weight: 600; }
.cm-support-bubble .cm-support-inline-link:hover { color: #ff8293; }
.cm-support-message[data-author='customer'] .cm-support-bubble .cm-support-inline-link { color: #ffb3bd; }
.cm-support-time { display: block; margin-top: 4px; color: var(--cm-support-muted); font-size: 12px; line-height: 1.2; }
.cm-support-message[data-author='customer'] .cm-support-time { text-align: right; }
.cm-support-agent-mark {
  position: absolute;
  left: -35px;
  bottom: 18px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid #67323f;
  border-radius: 50%;
  color: var(--cm-support-accent);
  background: #291c22;
}
.cm-support-agent-mark svg { width: 16px; height: 16px; }
.cm-support-message[data-author='assistant'] .cm-support-agent-mark {
  width: 30px;
  height: 30px;
  border-color: #503740;
  background: #291c22 url('/assets/support-ai-avatar-v1.png') center / cover no-repeat;
}
.cm-support-message[data-author='assistant'] .cm-support-agent-mark svg { display: none; }
.support-customer-inbox .support-message[data-author='assistant'] header::before {
  content: '';
  width: 22px;
  height: 22px;
  flex: none;
  align-self: center;
  border-radius: 50%;
  background: #291c22 url('/assets/support-ai-avatar-v1.png') center / cover no-repeat;
}
.cm-support-image { display: block; margin-top: 6px; }
.cm-support-image:first-child { margin-top: 0; }
.cm-support-image img { display: block; max-width: 100%; max-height: 150px; border-radius: 8px; }
.cm-support-feedback { margin: 0; padding: 5px 22px 0; color: #ffb7c2; font-size: 13px; }
.cm-support-form { position: relative; margin: 0; padding: 9px 20px 28px; }
.cm-support-compose {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 55px;
  padding: 7px 8px 7px 3px;
  border: 1px solid var(--cm-support-line);
  border-radius: 14px;
  background: #141416;
}
.cm-support-compose:focus-within { border-color: #c33e56; box-shadow: 0 0 0 3px #43252d; }
.cm-support .cm-support-text, .cm-support-field input {
  display: block;
  width: 100%;
  min-width: 0;
  color: var(--cm-support-text);
  font-size: 16px;
}
.cm-support .cm-support-text {
  flex: 1 1 auto;
  min-height: 39px;
  max-height: 108px;
  padding: 8px 11px;
  border: 0;
  background: transparent;
  line-height: 1.4;
  resize: none;
}
.cm-support .cm-support-text:focus-visible { outline: none; }
.cm-support-panel[data-view='thread'] .cm-support-text { height: 39px; }
@supports (field-sizing: content) {
  .cm-support-panel[data-view='thread'] .cm-support-text { height: auto; field-sizing: content; }
}
.cm-support-text::placeholder, .cm-support-field input::placeholder { color: #777780; opacity: 1; }
.cm-support-field { display: grid; gap: 5px; margin: 0 0 13px; color: #a9a9b0; font-size: 14px; }
.cm-support-field input { padding: 8px 11px; border: 1px solid var(--cm-support-line); border-radius: 8px; background: #141416; }
.cm-support-controls { display: flex; align-items: center; gap: 2px; flex: none; padding-bottom: 2px; }
.cm-support-attachment { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 6px; }
.cm-support-filename { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-size: 12px; color: #afb0b8; }
.cm-support .cm-support-send {
  display: grid;
  width: 35px;
  height: 35px;
  min-height: 35px;
  margin-left: 5px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #9999a1;
  background: #27272b;
  cursor: pointer;
}
.cm-support .cm-support-send:hover { color: #fff; background: #303035; }
.cm-support-send svg { width: 21px; height: 21px; }
.cm-support-emoji-picker {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: calc(100% + 9px);
  display: grid;
  grid-template-columns: repeat(4, 32px);
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--cm-support-line);
  border-radius: 10px;
  background: #202024;
  box-shadow: 0 8px 20px #0006;
}
.cm-support .cm-support-emoji-picker button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.cm-support .cm-support-emoji-picker button:hover { background: #323237; }
.cm-support-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 480px) {
  .cm-support-launch { width: 57px; height: 57px; margin-left: 4px; }
  .cm-support-panel[data-view='create'] .cm-support-body,
  .cm-support-panel[data-view='create'] .cm-support-form { padding-inline: 18px; }
  .cm-support-form { padding-inline: 14px; padding-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .cm-support-panel { animation: none; }
}

.reference-navbar :is(.primary-nav,.mobile-nav) a:is([href="/downloads"],[href="/downloads/"]) { display: none !important; }

.cm-support-bubble-part + .cm-support-bubble-part { margin-top: 4px; }
