/* Messages below 1024px: on phones (768px and below) the list, then a full-screen thread; on tablets (769px to 1023px) the two side by side */

.ccp-messages {
  --ccp-msg-tx: 12px;
  /* The thread's gutters, clear of the notch on a phone turned sideways */
  --ccp-msg-tx-l: calc(var(--ccp-msg-tx) + var(--ccp-safe-l, 0px));
  --ccp-msg-tx-r: calc(var(--ccp-msg-tx) + var(--ccp-safe-r, 0px));
  --ccp-msg-bubble: 84%;
  position: relative;
  color: var(--ccp-text);
}

@media (min-width: 640px) {
  .ccp-messages {
    --ccp-msg-tx: 20px;
    --ccp-msg-bubble: 72%;
  }
}

.ccp-messages [hidden],
.ccp-msg-sheet [hidden] {
  display: none !important;
}

.ccp-messages .ccp-msg-sr,
.ccp-msg-sheet .ccp-msg-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ccp-messages button,
.ccp-msg-sheet button {
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  touch-action: manipulation;
}

.ccp-messages :focus-visible,
.ccp-msg-sheet :focus-visible {
  outline: 2px solid var(--ccp-active);
  outline-offset: 2px;
}

.ccp-messages .ccp-msg-title:focus,
.ccp-messages .ccp-msg-who-name:focus {
  outline: none;
}

.ccp-messages .ccp-msg-ico {
  display: block;
  flex-shrink: 0;
}

/* Desktop locks the page height for Messages below 1024px; the phone list scrolls the page. */
@media (max-width: 1023px) {
  html:has(body[data-phone-screen="messages"]:not([data-phone-fullscreen])) {
    height: 100%;
    overflow: visible;
  }

  body[data-phone-screen="messages"]:not([data-phone-fullscreen]) {
    height: auto;
    overflow: visible;
    overflow-x: hidden;
  }

  /* Desktop drawers whose content is shown in phone sheets instead */
  body[data-phone-screen="messages"] #msg-preview-drawer,
  body[data-phone-screen="messages"] #msg-preview-backdrop,
  body[data-phone-screen="messages"] #msg-job-drawer,
  body[data-phone-screen="messages"] #msg-job-drawer-backdrop {
    display: none !important;
  }
}

/* List: header */

.ccp-messages .ccp-msg-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px var(--ccp-gutter);
  background: rgba(249, 249, 249, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ccp-messages .ccp-msg-titlerow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ccp-messages .ccp-msg-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 1.54rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--ccp-text);
}

.ccp-messages .ccp-msg-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--ccp-brand);
  color: #000;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.792rem;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 0 0 3px rgba(99, 234, 113, 0.22);
}

/* List: search, view menu and filters */

.ccp-messages .ccp-msg-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ccp-messages .ccp-msg-search {
  flex: 1 1 auto;
  min-width: 0;
}

.ccp-messages .ccp-msg-search .ccp-search-icon {
  display: flex;
  left: 13px;
  top: 13.5px;
  width: 17px;
  height: 17px;
  color: var(--ccp-muted);
}

.ccp-messages .ccp-search .ccp-msg-q {
  height: 44px;
  padding: 0 40px;
  border: 1.5px solid transparent;
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.05);
  box-shadow: none;
  transition: background 0.15s ease;
}

#main-container #ccp-root .ccp-messages .ccp-msg-q {
  border-width: 1.5px;
  font-size: 17.6px;
}

.ccp-messages .ccp-msg-q::placeholder {
  color: var(--ccp-faint);
  opacity: 1;
}

.ccp-messages .ccp-msg-q::-webkit-search-decoration,
.ccp-messages .ccp-msg-q::-webkit-search-cancel-button,
.ccp-messages .ccp-msg-q::-webkit-search-results-button,
.ccp-messages .ccp-msg-q::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.ccp-messages .ccp-search .ccp-msg-q:focus,
.ccp-messages .ccp-search .ccp-msg-q:focus-visible {
  outline: none;
  background: rgba(0, 0, 0, 0.07);
}

.ccp-messages .ccp-msg-clear {
  color: var(--ccp-muted);
}

.ccp-messages .ccp-msg-clear:focus-visible {
  outline-offset: -4px;
  border-radius: 0.85rem;
}

.ccp-messages .ccp-msg-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  max-width: 190px;
  opacity: 1;
  transition:
    max-width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s ease;
}

.ccp-messages .ccp-msg-bar.is-searching .ccp-msg-tools {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transition:
    max-width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s ease,
    visibility 0s linear 0.3s;
}

.ccp-messages .ccp-msg-view {
  position: relative;
  flex-shrink: 0;
}

.ccp-messages .ccp-msg-vbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 10px 0 14px;
  border-radius: 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: var(--ccp-text);
  font-size: 1.24rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.ccp-messages .ccp-msg-vbtn.is-on {
  border-color: rgba(99, 234, 113, 0.55);
  background: rgba(99, 234, 113, 0.12);
}

.ccp-messages .ccp-msg-vbtn-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.814rem;
  color: var(--ccp-muted);
}

.ccp-messages .ccp-msg-chev {
  display: inline-flex;
  color: var(--ccp-text-2);
  transition: transform 0.2s ease;
}

.ccp-messages .ccp-msg-vbtn[aria-expanded="true"] .ccp-msg-chev {
  transform: rotate(180deg);
}

.ccp-messages .ccp-msg-vmenu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 41;
  min-width: 210px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow:
    0 16px 40px -12px rgba(15, 23, 42, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.05);
  transform-origin: top right;
  animation: ccpMsgMenuIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes ccpMsgMenuIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ccp-messages .ccp-msg-vopt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 10px;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: #111827;
  text-align: left;
  cursor: pointer;
}

.ccp-messages .ccp-msg-vopt.is-on {
  background: rgba(99, 234, 113, 0.1);
}

.ccp-messages .ccp-msg-vopt-label {
  flex: 1;
  min-width: 0;
  font-size: 1.045rem;
  font-weight: 500;
}

.ccp-messages .ccp-msg-vopt.is-on .ccp-msg-vopt-label {
  font-weight: 650;
}

.ccp-messages .ccp-msg-vopt-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.858rem;
  font-weight: 600;
  color: var(--ccp-muted);
}

.ccp-messages .ccp-msg-vopt-check {
  display: flex;
  justify-content: center;
  width: 18px;
  color: var(--ccp-active);
}

@media (hover: hover) {
  .ccp-messages .ccp-msg-vopt:hover {
    background: #f3f4f6;
  }
}

.ccp-messages .ccp-msg-scrim {
  position: fixed;
  inset: 0;
  z-index: 19;
}

.ccp-messages .ccp-msg-fbtn {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: var(--ccp-text);
  cursor: pointer;
}

.ccp-messages .ccp-msg-fbtn.is-on {
  border-color: rgba(99, 234, 113, 0.5);
  background: rgba(99, 234, 113, 0.1);
}

.ccp-messages .ccp-msg-fbadge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: var(--ccp-accent);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.682rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.ccp-messages .ccp-msg-cancel {
  flex-shrink: 0;
  height: 44px;
  padding: 0 4px;
  border: none;
  background: transparent;
  color: var(--ccp-deep);
  font-size: 1.24rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

/* List: active filters */

.ccp-messages .ccp-msg-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -4px calc(-1 * var(--ccp-gutter));
  padding: 4px var(--ccp-gutter);
  overflow-x: auto;
  scrollbar-width: none;
}

.ccp-messages .ccp-msg-pills::-webkit-scrollbar {
  display: none;
}

.ccp-messages .ccp-msg-pill {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.ccp-messages .ccp-msg-pill {
  max-width: 70vw;
  padding: 0 8px 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(99, 234, 113, 0.45);
  background: rgba(99, 234, 113, 0.12);
  color: var(--ccp-deep);
}

.ccp-messages .ccp-msg-pill-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ccp-messages .ccp-msg-pill::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -4px;
  bottom: -4px;
}

/* List: conversation rows */

.ccp-messages .ccp-msg-body {
  padding-bottom: 8px;
}

.ccp-messages .ccp-msg-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ccp-messages .ccp-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px var(--ccp-gutter);
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: transparent;
  color: var(--ccp-text);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ccp-messages .ccp-msg-row:active {
  background: rgba(99, 234, 113, 0.08);
}

.ccp-messages .ccp-msg-row:focus-visible {
  outline-offset: -2px;
}

@media (hover: hover) {
  .ccp-messages .ccp-msg-row:hover {
    background: rgba(99, 234, 113, 0.05);
  }
}

.ccp-messages .ccp-msg-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 14px;
  background: #9ca3af;
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.902rem;
  font-weight: 700;
}

.ccp-messages .ccp-msg-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ccp-messages .ccp-msg-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ccp-messages .ccp-msg-name {
  min-width: 0;
  overflow: hidden;
  font-size: 1.045rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ccp-messages .ccp-msg-row.is-unread .ccp-msg-name {
  font-weight: 750;
}

.ccp-messages .ccp-msg-flag {
  display: inline-flex;
  flex-shrink: 0;
}

.ccp-messages .ccp-msg-flag--muted,
.ccp-messages .ccp-msg-flag--closed {
  color: var(--ccp-faint);
}

.ccp-messages .ccp-msg-flag--viewed {
  color: #64748b;
}

.ccp-messages .ccp-msg-flag--fav {
  color: #d99a00;
}

.ccp-messages .ccp-msg-flag--fav svg {
  fill: #f5b301;
}

.ccp-messages .ccp-msg-time {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 0.814rem;
  font-weight: 500;
  color: var(--ccp-muted);
  white-space: nowrap;
}

.ccp-messages .ccp-msg-row.is-unread .ccp-msg-time {
  font-weight: 650;
  color: var(--ccp-active);
}

.ccp-messages .ccp-msg-row.is-unread.is-muted .ccp-msg-time {
  color: var(--ccp-muted);
}

.ccp-messages .ccp-msg-sub {
  min-width: 0;
  overflow: hidden;
  font-size: 0.858rem;
  color: #4b5563;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ccp-messages .ccp-msg-sub.is-explore {
  font-weight: 600;
  color: var(--ccp-deep);
}

.ccp-messages .ccp-msg-preview {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  font-size: 0.924rem;
  color: #4b5563;
}

.ccp-messages .ccp-msg-preview-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ccp-messages .ccp-msg-row.is-unread .ccp-msg-preview {
  font-weight: 600;
  color: #111827;
}

/* A deleted last message keeps the row's preview colour, in italics (as designed). */
.ccp-messages .ccp-msg-preview.is-deleted {
  font-style: italic;
}

/* An Explore Talents request: amber while it waits, grey once declined. */
.ccp-messages .ccp-msg-preview.is-pending,
.ccp-messages .ccp-msg-row.is-unread .ccp-msg-preview.is-pending {
  color: #b45309;
}

.ccp-messages .ccp-msg-preview.is-declined,
.ccp-messages .ccp-msg-row.is-unread .ccp-msg-preview.is-declined {
  color: #6b7280;
}

.ccp-messages .ccp-msg-preview .msg-ticks {
  width: 15px;
  height: 15px;
}

.ccp-messages .ccp-msg-preview .msg-ticks--circle {
  width: 16px;
  height: 16px;
}

.ccp-messages .ccp-msg-preview .msg-ticks--circle svg {
  width: 10px;
  height: 10px;
}

.ccp-messages .ccp-msg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ccp-accent);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.748rem;
  font-weight: 700;
}

.ccp-messages .ccp-msg-badge.is-muted {
  background: var(--ccp-faint);
}

/* List: no results and no messages */

.ccp-messages .ccp-msg-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.ccp-messages .ccp-msg-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  margin-bottom: 1rem;
  border-radius: 1.25rem;
  border: 1.5px dashed rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.025);
  color: #d1d5db;
}

.ccp-messages .ccp-msg-empty-title {
  max-width: 100%;
  font-size: 1.155rem;
  font-weight: 700;
  color: #4b5563;
  overflow-wrap: anywhere;
}

.ccp-messages .ccp-msg-empty-sub {
  max-width: 280px;
  margin-top: 0.4rem;
  font-size: 0.946rem;
  line-height: 1.5;
  color: var(--ccp-muted);
}

.ccp-messages .ccp-msg-empty-btn {
  min-height: 44px;
  margin-top: 1rem;
  padding: 0 1.2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.04);
  color: var(--ccp-text);
  font-size: 1.24rem;
  font-weight: 600;
  cursor: pointer;
}

.ccp-messages .ccp-msg-none {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(
    100dvh - var(--cc-demo-banner-h, 0px) - 59px - var(--ccp-nav-h) - 0.75rem - var(--ccp-safe-b)
  );
  padding: 24px 28px 40px;
  text-align: center;
}

body:not(.cc-demo) .ccp-messages .ccp-msg-none {
  min-height: calc(100dvh - 59px - var(--ccp-nav-h) - 0.75rem - var(--ccp-safe-b));
}

.ccp-messages .ccp-msg-none-art {
  position: relative;
  flex-shrink: 0;
  width: 240px;
  height: 176px;
}

.ccp-messages .ccp-msg-none-art span {
  display: block;
}

.ccp-messages .ccp-msg-none-in {
  position: absolute;
  left: 4px;
  top: 12px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  transform: rotate(-4deg);
}

.ccp-messages .ccp-msg-none-dot {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
}

.ccp-messages .ccp-msg-none-bubble,
.ccp-messages .ccp-msg-none-out {
  display: flex !important;
  flex-direction: column;
  gap: 7px;
  width: 150px;
  padding: 13px 14px;
}

.ccp-messages .ccp-msg-none-bubble {
  border-radius: 18px 18px 18px 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  box-shadow: 0 10px 24px -16px rgba(15, 23, 42, 0.35);
}

.ccp-messages .ccp-msg-none-bubble span,
.ccp-messages .ccp-msg-none-out span {
  height: 9px;
  border-radius: 5px;
}

.ccp-messages .ccp-msg-none-bubble span:first-child {
  width: 85%;
  background: #e5e7eb;
}

.ccp-messages .ccp-msg-none-bubble span:last-child {
  width: 55%;
  background: #eef0f3;
}

.ccp-messages .ccp-msg-none-out {
  position: absolute;
  right: 2px;
  top: 76px;
  border-radius: 18px 18px 6px 18px;
  background: linear-gradient(135deg, var(--ccp-brand), var(--ccp-brand-2));
  box-shadow: 0 16px 30px -16px rgba(39, 176, 121, 0.85);
  transform: rotate(3deg);
}

.ccp-messages .ccp-msg-none-out span:first-child {
  width: 80%;
  background: rgba(255, 255, 255, 0.75);
}

.ccp-messages .ccp-msg-none-out span:last-child {
  width: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.ccp-messages .ccp-msg-none-typing {
  position: absolute;
  left: 46px;
  top: 136px;
  display: flex !important;
  align-items: center;
  gap: 5px;
  padding: 11px 14px;
  border-radius: 16px 16px 16px 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  box-shadow: 0 8px 18px -14px rgba(15, 23, 42, 0.35);
}

.ccp-messages .ccp-msg-none-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ca3af;
}

.ccp-messages .ccp-msg-none-typing span:nth-child(2) {
  background: #c4c8cf;
}

.ccp-messages .ccp-msg-none-typing span:nth-child(3) {
  background: #d9dce1;
}

.ccp-messages .ccp-msg-none-title {
  margin: 28px 0 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: #111827;
}

/* Thread: full screen, the bottom bar hidden */

.ccp-messages .ccp-msg-thread {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: #f6f7f9;
}

body.cc-demo:not([data-route="landing"]) .ccp-messages .ccp-msg-thread {
  top: var(--cc-demo-banner-h, 0px);
}

.ccp-messages .ccp-msg-top {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  min-height: 68px;
  padding: 12px var(--ccp-msg-tx-r) 12px var(--ccp-msg-tx-l);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.98);
}

.ccp-messages .ccp-msg-back {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(39, 176, 121, 0.35);
  background: rgba(99, 234, 113, 0.16);
  color: var(--ccp-deep);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.ccp-messages .ccp-msg-back:active {
  transform: scale(0.95);
  background: rgba(99, 234, 113, 0.28);
}

.ccp-messages .ccp-msg-who {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  gap: 10px;
  min-width: 0;
}

.ccp-messages .ccp-msg-who-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 12px;
  background: #9ca3af;
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.814rem;
  font-weight: 700;
}

.ccp-messages .ccp-msg-who-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ccp-messages .ccp-msg-who-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ccp-text);
}

.ccp-messages .ccp-msg-who-btn,
.ccp-messages .ccp-msg-who-plain {
  display: flex;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.ccp-messages .ccp-msg-who-btn {
  cursor: pointer;
}

/* The whole identity area opens the preview; the job link sits above it. */
.ccp-messages .ccp-msg-who-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  bottom: -12px;
}

.ccp-messages .ccp-msg-who-label {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ccp-messages .ccp-msg-who-btn:focus-visible {
  outline: none;
}

.ccp-messages .ccp-msg-who-btn:focus-visible::after {
  border-radius: 12px;
  outline: 2px solid var(--ccp-active);
  outline-offset: -10px;
}

.ccp-messages .ccp-msg-who-sub {
  display: flex;
  align-items: baseline;
  gap: 0.28em;
  min-width: 0;
  font-size: 0.836rem;
  line-height: 1.35;
  color: #4b5563;
  white-space: nowrap;
}

.ccp-messages .ccp-msg-who-sub.is-explore {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ccp-messages .ccp-msg-more {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-right: -6px;
  padding: 0;
  border: none;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--ccp-text-2);
  cursor: pointer;
}

.ccp-messages .ccp-msg-more:active {
  background: rgba(0, 0, 0, 0.05);
}

/* The design's favourite star beside Manage: outline, or filled gold once
   favourited; it pops (bigger, tilted) for a moment after each change. */
.ccp-messages .ccp-msg-fav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #374151;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ccp-messages .ccp-msg-fav:active {
  transform: scale(0.88);
}

.ccp-messages .ccp-msg-fav svg {
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ccp-messages .ccp-msg-fav.is-pop svg {
  transform: scale(1.22) rotate(-12deg);
}

/* Without the editCandidates permission: dimmed, and a tap says why. */
.ccp-messages .ccp-msg-fav.is-locked {
  opacity: 0.55;
  cursor: default;
}

.ccp-messages .ccp-msg-fav.is-locked:active {
  transform: none;
}

/* Thread: desktop's thread, restyled */

.ccp-messages .ccp-msg-host {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.ccp-messages .ccp-msg-host #right-messages-content {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  opacity: 1;
  transform: none;
  transition: none;
}

.ccp-messages .ccp-msg-host .rp.msg-frame {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}

.ccp-messages .ccp-msg-host .rp-body {
  min-height: 0;
}

.ccp-messages .ccp-msg-host .msg-thread-header {
  display: none !important;
}

/* The design's thread has no notice above the messages. */
.ccp-messages .ccp-msg-host .msg-thread-notice {
  display: none !important;
}

.ccp-messages .ccp-msg-host .cd-chat-body {
  gap: 8px;
  padding: 16px var(--ccp-msg-tx-r) 16px var(--ccp-msg-tx-l);
  background: transparent;
  overscroll-behavior: contain;
}

/* The design's messages stack up from the composer (a column-reverse list): a short
   conversation sits just above it, not under the header. The spacer takes the free
   space and nothing more, so a long one still scrolls from its first message. */
.ccp-messages .ccp-msg-host .cd-chat-body:has(> .cd-msg, > .msg-system)::before {
  content: "";
  flex: 1 1 auto;
  margin-bottom: -8px;
}

.ccp-messages .ccp-msg-host .ccp-msg-day {
  display: flex;
  justify-content: center;
  margin: 6px 0 2px;
}

.ccp-messages .ccp-msg-host .ccp-msg-day span {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  color: #4b5563;
  font-size: 0.792rem;
  font-weight: 600;
}

.ccp-messages .ccp-msg-host .msg-system {
  margin: 0;
}

.ccp-messages .ccp-msg-host .msg-system-pill {
  max-width: 90%;
  padding: 0.35rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.04);
  color: #4b5563;
  font-size: 0.836rem;
  font-weight: 500;
  line-height: 1.4;
}

.ccp-messages .ccp-msg-host .msg-system.ccp-msg-sys-bad .msg-system-pill {
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(220, 38, 38, 0.06);
  color: #991b1b;
}

/* A system line is its text only, as designed. */
.ccp-messages .ccp-msg-host .msg-system-pill svg,
.ccp-messages .ccp-msg-host .msg-system-pill i[data-lucide] {
  display: none;
}

/* A system line is its text only; its day shows in the day separator. */
.ccp-messages .ccp-msg-host .msg-system-date {
  display: none;
}

.ccp-messages .ccp-msg-host .cd-msg {
  max-width: var(--ccp-msg-bubble);
  gap: 3px;
}

.ccp-messages .ccp-msg-host .cd-msg-meta {
  flex-wrap: wrap;
  row-gap: 0;
  max-width: 100%;
}

.ccp-messages .ccp-msg-host .cd-msg--out .cd-msg-meta {
  justify-content: flex-end;
}

/* A long author line wraps inside the bubble's column. */
.ccp-messages .ccp-msg-host .cd-msg-author {
  min-width: 0;
  font-size: 0.77rem;
  font-weight: 600;
  color: #374151;
  overflow-wrap: anywhere;
}

.ccp-messages .ccp-msg-host .cd-msg--out .cd-msg-author {
  text-align: right;
}

.ccp-messages .ccp-msg-host .cd-msg-date {
  font-size: 0.715rem;
  color: #a1a1aa;
  white-space: nowrap;
}

.ccp-messages .ccp-msg-host .cd-msg-bubble {
  padding: 0.6rem 0.75rem;
  font-size: 0.858rem;
  line-height: 1.5;
}

.ccp-messages .ccp-msg-host .cd-msg--in .cd-msg-bubble {
  border-radius: 0.25rem 0.8rem 0.8rem 0.8rem;
  border-color: rgba(229, 231, 235, 0.9);
  background: #fff;
  color: #374151;
}

.ccp-messages .ccp-msg-host .cd-msg--out .cd-msg-bubble {
  border-radius: 0.8rem 0.25rem 0.8rem 0.8rem;
  border-color: rgba(99, 234, 113, 0.5);
  background: linear-gradient(135deg, var(--ccp-brand), var(--ccp-brand-2));
  color: #000;
}

/* A deleted message keeps its bubble, as designed: its own colours, the text grey
   and italic, no icon ("You deleted this message" on your side, messages.js). */
.ccp-messages .ccp-msg-host .cd-msg-bubble--deleted {
  display: block;
  padding: 0.6rem 0.75rem !important;
  border-width: 1px !important;
  border-style: solid !important;
  font-size: 0.858rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: #6b7280 !important;
}

.ccp-messages .ccp-msg-host .cd-msg--in .cd-msg-bubble--deleted {
  border-color: rgba(229, 231, 235, 0.9) !important;
  background: #fff !important;
}

.ccp-messages .ccp-msg-host .cd-msg--out .cd-msg-bubble--deleted {
  border-color: rgba(99, 234, 113, 0.5) !important;
  background: linear-gradient(135deg, var(--ccp-brand), var(--ccp-brand-2)) !important;
}

.ccp-messages .ccp-msg-host .cd-msg-bubble--deleted :is(svg, i[data-lucide]) {
  display: none;
}

/* "Edited" sits after the date ("· Edited"), not in the bubble. */
.ccp-messages .ccp-msg-host .cd-msg-edited {
  display: none;
}

.ccp-messages .ccp-msg-host .ccp-msg-edited {
  font-size: 0.715rem;
  color: #a1a1aa;
  white-space: nowrap;
}

/* A reply quote is one line, "Name: text", as in the design. */
.ccp-messages .ccp-msg-host .cd-msg-bubble .cd-reply-quote {
  display: block;
  max-width: 100%;
  margin: 0 0 6px;
  padding: 5px 8px;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
}

.ccp-messages .ccp-msg-host .cd-msg-bubble .cd-reply-quote-bar {
  display: none;
}

.ccp-messages .ccp-msg-host .cd-msg-bubble .cd-reply-quote-body {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #4b5563;
  font-size: 0.836rem;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ccp-messages .ccp-msg-host .cd-msg-bubble .cd-reply-quote-author,
.ccp-messages .ccp-msg-host .cd-msg-bubble .cd-reply-quote-text {
  display: inline;
  margin: 0;
  color: inherit;
  font: inherit;
  white-space: nowrap;
  opacity: 1;
}

.ccp-messages .ccp-msg-host .cd-msg-bubble .cd-reply-quote-author::after {
  content: ": ";
}

.ccp-messages .ccp-msg-host .cd-msg--actionable .cd-msg-bubble-wrap {
  cursor: pointer;
  border-radius: 0.85rem;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.ccp-messages .ccp-msg-host .cd-msg-bubble-wrap:focus-visible {
  outline: 2px solid var(--ccp-active);
  outline-offset: 3px;
}

.ccp-messages .ccp-msg-host .cd-msg-react-btn {
  display: none !important;
}

.ccp-messages .ccp-msg-host .cd-msg-reactions {
  gap: 6px;
  margin-top: 4px;
}

.ccp-messages .ccp-msg-host .cd-msg-reaction {
  position: relative;
  height: 32px;
  padding: 0 10px;
  font-size: 0.85rem;
}

.ccp-messages .ccp-msg-host .cd-msg-reaction::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: -6px;
  bottom: -6px;
}

.ccp-messages .ccp-msg-host .cd-msg-reaction-emoji {
  font-size: 1rem;
}

.ccp-messages .ccp-msg-host .cd-msg-status {
  margin-top: 2px;
}

.ccp-messages .ccp-msg-host .cd-msg-status .msg-ticks {
  width: 15.4px;
  height: 15.4px;
}

.ccp-messages .ccp-msg-host .cd-msg-status .msg-ticks--sent {
  color: var(--ccp-faint);
}

.ccp-messages .ccp-msg-host .cd-msg-status .msg-ticks--delivered {
  color: var(--ccp-muted);
}

.ccp-messages .ccp-msg-host .cd-msg-status .msg-ticks--circle {
  width: 19.8px;
  height: 19.8px;
  border: 1.5px solid rgba(21, 128, 61, 0.3);
  background: rgba(21, 128, 61, 0.12);
  color: #15803d;
}

.ccp-messages .ccp-msg-host .cd-msg-status .msg-ticks--circle svg {
  width: 11px;
  height: 11px;
}

.ccp-messages .ccp-msg-host .cd-chat-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 1rem;
}

.ccp-messages .ccp-msg-host .cd-chat-empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #374151;
}

.ccp-messages .ccp-msg-host .cd-chat-empty-sub {
  max-width: 280px;
  font-size: 0.92rem;
  color: var(--ccp-muted);
}

/* An unanswered Explore Talents request: desktop's own panel gives way to the
   design's sent request (messages.js requestUi), in the middle of the thread. */
.ccp-messages .ccp-msg-host[data-ccp-req] .msg-request-lock {
  display: none;
}

.ccp-messages .ccp-msg-host .ccp-msg-req {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto 0;
  padding: 12px 4px;
  text-align: center;
}

.ccp-messages .ccp-msg-host .ccp-msg-req-ico {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fffbeb;
  box-shadow: inset 0 0 0 1.5px rgba(245, 158, 11, 0.35);
  color: #d97706;
}

.ccp-messages .ccp-msg-host .ccp-msg-req-title {
  margin: 14px 0 0;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #111827;
}

.ccp-messages .ccp-msg-host .ccp-msg-req-sub {
  max-width: 300px;
  margin: 6px 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #4b5563;
  text-wrap: pretty;
}

.ccp-messages .ccp-msg-host .ccp-msg-req-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 360px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  text-align: left;
}

.ccp-messages .ccp-msg-host .ccp-msg-req-job {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #15803d;
}

.ccp-messages .ccp-msg-host .ccp-msg-req-note {
  margin: 6px 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #111827;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ccp-messages .ccp-msg-host .ccp-msg-req-date {
  margin: 10px 0 0;
  font-size: 0.84rem;
  color: #6b7280;
}

/* Thread: composer */

.ccp-messages .ccp-msg-host .cd-chat-composer-wrap {
  padding: 10px var(--ccp-msg-tx-r) calc(12px + var(--ccp-safe-b)) var(--ccp-msg-tx-l);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

.ccp-messages .ccp-msg-host .cd-composer {
  border-radius: 0.75rem;
  border-color: #e5e7eb;
  background: rgba(250, 250, 250, 0.5);
  padding: 0.25rem 0.375rem;
}

.ccp-messages .ccp-msg-host .cd-composer-input:focus,
.ccp-messages .ccp-msg-host .cd-composer-input:focus-visible {
  outline: none;
}

/* The design's box looks the same while typing and while editing; an edit shows
   in its bar only, not around the message being edited. */
.ccp-messages .ccp-msg-host .cd-composer:focus-within,
.ccp-messages .ccp-msg-host .msg-composer--editing {
  border-color: #e5e7eb !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ccp-messages .ccp-msg-host .cd-msg-bubble--editing {
  outline: none;
  animation: none;
}

.ccp-messages .ccp-msg-host .cd-msg-edit-hint {
  display: none;
}

.ccp-messages .ccp-msg-host .cd-composer-row {
  align-items: center;
  gap: 0.25rem;
}

.ccp-messages .ccp-msg-host .cd-composer-attach.v-action-btn,
.ccp-messages .ccp-msg-host .cd-composer-send.v-action-btn {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 0.6rem;
  box-shadow: none;
}

.ccp-messages .ccp-msg-host .cd-composer-attach.v-action-btn {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: var(--ccp-text-2);
}

.ccp-messages .ccp-msg-host .cd-composer-send.v-action-btn {
  border: none;
  background: #171717;
  color: #fff;
  transition: opacity 0.15s ease;
}

.ccp-messages .ccp-msg-host .cd-composer-send.cd-composer-send--save {
  background: linear-gradient(135deg, var(--ccp-brand), var(--ccp-brand-2)) !important;
  color: #000 !important;
}

.ccp-messages .ccp-msg-host .cd-composer-send.is-idle {
  opacity: 0.55;
}

.ccp-messages .ccp-msg-host .v-action-btn:hover {
  transform: none;
}

.ccp-messages .ccp-msg-host .cd-composer-attach .v-action-btn-icon svg {
  width: 18px;
  height: 18px;
}

.ccp-messages .ccp-msg-host .cd-composer-send .v-action-btn-icon svg {
  width: 17px;
  height: 17px;
}

#main-container #ccp-root .ccp-messages .ccp-msg-host .cd-composer-input {
  font-size: 17.6px;
}

.ccp-messages .ccp-msg-host .cd-composer-input {
  min-height: 40px;
  max-height: 140px;
  padding: 0.6rem 0.25rem;
  line-height: 1.4;
  color: #27272a;
}

.ccp-messages .ccp-msg-host .cd-composer-input[data-ccp-hold] {
  opacity: 1;
}

.ccp-messages .ccp-msg-host .msg-edit-banner,
.ccp-messages .ccp-msg-host .cd-composer-reply.is-active {
  align-items: center;
  gap: 10px;
  margin: 0 0 0.45rem;
  padding: 8px 8px 8px 12px;
  border-radius: 0.75rem;
  border: 1px solid rgba(99, 234, 113, 0.3);
  background: rgba(99, 234, 113, 0.08);
}

.ccp-messages .ccp-msg-host .msg-edit-banner-title {
  font-size: 0.814rem;
  font-weight: 650;
  color: var(--ccp-deep);
}

.ccp-messages .ccp-msg-host .msg-edit-banner-preview,
.ccp-messages .ccp-msg-host .cd-composer-reply-snippet {
  font-size: 0.88rem;
  color: #374151;
}

.ccp-messages .ccp-msg-host .cd-composer-reply-label {
  font-size: 0.814rem;
  font-weight: 650;
  color: var(--ccp-deep);
}

.ccp-messages .ccp-msg-host .cd-composer-reply-label strong {
  color: var(--ccp-deep);
}

.ccp-messages .ccp-msg-host .cd-composer-reply-label::before,
.ccp-messages .ccp-msg-host .cd-composer-reply-bar {
  background: var(--ccp-accent);
}

.ccp-messages .ccp-msg-host .msg-edit-banner-close,
.ccp-messages .ccp-msg-host .cd-composer-reply-close.v-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--ccp-muted);
}

/* The design's reply and edit bars, lifted above the composer box (messages.js):
   8px above it, a 16px icon, the title and the message, and a plain x. */
.ccp-messages .ccp-msg-host .cd-chat-composer-wrap > [data-ccp-lifted] {
  margin: 0 0 8px;
  animation: none;
}

.ccp-messages .ccp-msg-host [data-ccp-lifted] .cd-composer-reply-bar,
.ccp-messages .ccp-msg-host [data-ccp-lifted] .msg-edit-banner-icon,
.ccp-messages .ccp-msg-host [data-ccp-lifted] .v-action-btn-icon {
  display: none;
}

.ccp-messages .ccp-msg-host [data-ccp-lifted] .cd-composer-reply-label::before {
  content: none;
}

.ccp-messages .ccp-msg-host .ccp-msg-barico {
  display: flex;
  flex-shrink: 0;
  color: #27b079;
}

.ccp-messages .ccp-msg-host .ccp-msg-barx {
  display: flex;
  color: #6b7280;
}

.ccp-messages .ccp-msg-host [data-ccp-lifted] :is(.cd-composer-reply-meta, .msg-edit-banner-body) {
  gap: 0;
}

.ccp-messages .ccp-msg-host [data-ccp-lifted] :is(.cd-composer-reply-label, .msg-edit-banner-title) {
  display: block;
  letter-spacing: normal;
  line-height: normal;
}

.ccp-messages .ccp-msg-host [data-ccp-lifted] .cd-composer-reply-label strong {
  font-weight: inherit;
}

.ccp-messages .ccp-msg-host [data-ccp-lifted] :is(.cd-composer-reply-snippet, .msg-edit-banner-preview) {
  line-height: normal;
  opacity: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ccp-messages .ccp-msg-host .msg-reopen-banner {
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-left: 3px solid #64748b;
  border-radius: 0.55rem;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.16), rgba(148, 163, 184, 0.08));
}

.ccp-messages .ccp-msg-host .msg-reopen-banner .msg-edit-banner-icon {
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 0.5rem;
  background: rgba(148, 163, 184, 0.2);
  color: #334155;
}

.ccp-messages .ccp-msg-host .msg-reopen-banner .msg-edit-banner-title {
  font-size: 0.814rem;
  font-weight: 700;
  color: #1e293b;
}

.ccp-messages .ccp-msg-host .msg-reopen-banner .msg-edit-banner-preview {
  font-size: 0.814rem;
  line-height: 1.4;
  color: #4b5563;
  white-space: normal;
}

.ccp-messages .ccp-msg-host .cd-attach-menu {
  min-width: 170px;
  padding: 4px;
  border-radius: 0.6rem;
  border-color: rgba(229, 231, 235, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.ccp-messages .ccp-msg-host .cd-attach-menu-item {
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.4rem 0.55rem;
  font-size: 1.24rem;
  color: #1f2937;
}

.ccp-messages .ccp-msg-host .cd-attach-menu-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

/* The design's tinted icon boxes */
.ccp-messages .ccp-msg-host .cd-attach-menu-icon--image {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.ccp-messages .ccp-msg-host .cd-attach-menu-icon--video {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}

.ccp-messages .ccp-msg-host .cd-attach-menu-icon--file {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
}

.ccp-messages .ccp-msg-host .cd-attach-menu-icon--business-card {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.ccp-messages .ccp-msg-host .cd-composer-chip-remove {
  min-width: 24px;
  min-height: 24px;
}

.ccp-messages .ccp-msg-host .cd-composer-chip--file .cd-composer-chip-remove {
  position: relative;
}

.ccp-messages .ccp-msg-host .cd-composer-chip-remove::after {
  content: "";
  position: absolute;
  inset: -10px;
}

/* A photo or video chip rounds its thumbnail instead of clipping its content,
   so the remove button's hit area isn't cut at the chip's edge; the wider gap
   keeps it off the next chip. */
.ccp-messages .ccp-msg-host .cd-composer-chips {
  gap: 8px;
}

.ccp-messages .ccp-msg-host .cd-composer-chip--media {
  overflow: visible;
}

.ccp-messages .ccp-msg-host .cd-composer-chip--media .cd-composer-chip-thumb {
  border-radius: inherit;
}

/* Thread: a closed conversation's banner in place of the composer, as designed: the
   white composer zone (its line on top, the card 10px under it and 12px above the
   bottom) holding a red-tinted card with the title, the line under it and Request to
   Reopen at its own width. The lock itself is the zone; ::before draws the card. */

.ccp-messages .ccp-msg-host .msg-archived-lock {
  position: relative;
  isolation: isolate;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  margin: 0;
  padding: 23px calc(var(--ccp-msg-tx-r) + 15px) calc(25px + var(--ccp-safe-b)) calc(var(--ccp-msg-tx-l) + 15px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

.ccp-messages .ccp-msg-host .msg-archived-lock::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10px var(--ccp-msg-tx-r) calc(12px + var(--ccp-safe-b)) var(--ccp-msg-tx-l);
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(245, 158, 11, 0.06));
}

.ccp-messages .ccp-msg-host .msg-archived-lock-icon {
  display: none;
}

.ccp-messages .ccp-msg-host .msg-archived-lock-body {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 8px;
}

.ccp-messages .ccp-msg-host .msg-archived-lock-title {
  font-size: 0.968rem;
  font-weight: 650;
  letter-spacing: normal;
  line-height: normal;
  color: #111827;
}

.ccp-messages .ccp-msg-host .msg-archived-lock-sub {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #4b5563;
}

.ccp-messages .ccp-msg-host .msg-archived-lock-btn,
.ccp-messages .ccp-msg-host .msg-archived-lock-sent {
  display: inline-flex;
  flex: none;
  align-items: center;
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 40px;
  margin: 0;
  padding: 0 14px;
  border-radius: 0.65rem;
  box-shadow: none;
  font-size: 1.24rem;
  font-weight: 650;
  line-height: normal;
  white-space: nowrap;
}

.ccp-messages .ccp-msg-host .msg-archived-lock-btn {
  border: 1px solid rgba(99, 234, 113, 0.4);
  background: rgba(99, 234, 113, 0.15);
  color: #1a1a2e;
}

.ccp-messages .ccp-msg-host .msg-archived-lock-btn:hover {
  transform: none;
}

/* The design's button is its label only; the locked one keeps its lock. */
.ccp-messages .ccp-msg-host .msg-archived-lock-btn:not([aria-disabled="true"]) .v-action-btn-icon,
.ccp-messages .ccp-msg-host .msg-archived-lock-sent :is(svg, i) {
  display: none;
}

/* Request to Reopen without the messaging team permission: drawn locked */
.ccp-messages .ccp-msg-host .msg-archived-lock-btn[aria-disabled="true"] {
  border-color: rgba(0, 0, 0, 0.08);
  background: #e5e7eb;
  color: var(--ccp-faint);
  cursor: default;
}

/* After the request: "Reopen request sent", greyed */
.ccp-messages .ccp-msg-host .msg-archived-lock-sent {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.04);
  color: #6b7280;
}

/* Sheets */

.ccp-msg-sheet .ccp-sheet-content {
  padding-bottom: calc(20px + var(--ccp-safe-b));
}

/* The design's sheet head: the grabber 10px down, then a 44px row with the title
   (1.43rem) and a plain close 10px into the right padding, 12px above the content. */
.ccp-msg-sheet .v-bs-sheet {
  max-height: 90dvh;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.2);
}

.ccp-msg-sheet .v-bs-handle-wrap {
  padding: 10px 0;
}

.ccp-msg-sheet .v-bs-body {
  padding: 0;
}

.ccp-msg-sheet .v-bs-body > .ccp-sheet-head {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 12px;
  padding: 0 64px 0 16px;
}

.ccp-msg-sheet .ccp-sheet-title {
  font-size: 1.43rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: normal;
}

.ccp-msg-sheet .v-bs-close.v-action-btn {
  top: 24px;
  right: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #6b7280;
}

.ccp-msg-sheet .v-bs-close.v-action-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.6;
}

/* Filters: the buttons 18px under the last job, 12px under the footer's line and
   26px above the bottom (its 6px and the sheet's 20px). */
.ccp-msg-fsheet .ccp-sheet-content {
  padding-bottom: 18px;
}

.ccp-msg-fsheet .ccp-sheet-foot {
  padding: 12px 16px calc(26px + var(--ccp-safe-b));
}

/* Confirms (Mute, Close Conversation, Request to Reopen): white, no close button,
   the centred block 18px from the top and the two equal buttons edge to edge,
   2px above the bottom. */
.ccp-msg-cfsheet .v-bs-close.v-action-btn {
  display: none;
}

.ccp-msg-sheet.ccp-msg-cfsheet .ccp-sheet-content {
  padding: 0 0 calc(2px + var(--ccp-safe-b));
}

.ccp-msg-cf {
  margin-top: -6px;
  text-align: center;
}

.ccp-msg-cf-top {
  padding: 1.85rem 1.5rem 1.5rem;
}

.ccp-msg-cf-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.1rem;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 1.1rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.07));
  color: #10b981;
}

.ccp-msg-cf.is-danger .ccp-msg-cf-ic {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(239, 68, 68, 0.08));
  color: #ef4444;
}

.ccp-msg-cf-title {
  margin: 0 0 0.55rem;
  font-size: 1.54rem;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.25;
  color: #1a1a2e;
  overflow-wrap: anywhere;
}

.ccp-msg-cf-desc {
  max-width: 32rem;
  margin: 0 auto;
  font-size: 1.045rem;
  line-height: 1.6;
  color: #6b7280;
  overflow-wrap: anywhere;
}

.ccp-msg-cf-foot {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem 1.1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.6);
}

.ccp-msg-cf-btn {
  flex: 1;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.6rem;
  background: rgba(0, 0, 0, 0.04);
  color: #1a1a2e;
  font-size: 1.24rem;
  font-weight: 600;
  cursor: pointer;
}

.ccp-msg-cf-btn.is-ok {
  border-color: rgba(99, 234, 113, 0.35);
  background: rgba(99, 234, 113, 0.15);
  white-space: nowrap;
}

.ccp-msg-cf.is-danger .ccp-msg-cf-btn.is-ok {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.ccp-msg-listsheet .v-bs-sheet,
.ccp-msg-fsheet .v-bs-sheet {
  background: linear-gradient(180deg, rgba(99, 234, 113, 0.1), rgba(99, 234, 113, 0) 150px), #fff;
}

.ccp-msg-sheet .ccp-msg-acts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ccp-msg-sheet .ccp-msg-act {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: var(--ccp-text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.ccp-msg-sheet .ccp-msg-act:active {
  transform: scale(0.985);
}

.ccp-msg-sheet .ccp-msg-act.is-danger {
  border-color: rgba(244, 63, 94, 0.25);
  background: rgba(244, 63, 94, 0.05);
}

.ccp-msg-sheet .ccp-msg-act-icon {
  display: flex;
  flex-shrink: 0;
  color: var(--ccp-accent);
}

.ccp-msg-sheet .ccp-msg-act.is-danger .ccp-msg-act-icon,
.ccp-msg-sheet .ccp-msg-act.is-danger .ccp-msg-act-label {
  color: #be123c;
}

/* Locked (the job is closed): pressing it says why */
.ccp-msg-sheet .ccp-msg-act.is-locked .ccp-msg-act-icon,
.ccp-msg-sheet .ccp-msg-act.is-locked .ccp-msg-act-label {
  color: #6b7280;
}

.ccp-msg-sheet .ccp-msg-act-label {
  flex: 1;
  min-width: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.ccp-msg-sheet .ccp-msg-react .msg-react-row {
  justify-content: space-between;
  gap: 2px;
  margin: 0 0 12px;
  padding: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: #fff;
}

.ccp-msg-sheet .ccp-msg-react .msg-react-emoji {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.45rem;
}

.ccp-msg-sheet .ccp-msg-react .msg-react-emoji:hover,
.ccp-msg-sheet .ccp-msg-react .msg-react-emoji:focus-visible {
  transform: none;
}

.ccp-msg-sheet .ccp-msg-react .msg-react-emoji--active {
  background: rgba(99, 234, 113, 0.18);
  box-shadow: inset 0 0 0 1px rgba(39, 176, 121, 0.35);
}

.ccp-msg-sheet .ccp-msg-reactors {
  margin-top: 16px;
}

.ccp-msg-sheet .ccp-msg-reactors .msg-ctx-reactors {
  max-height: none;
}

.ccp-msg-sheet .ccp-msg-reactors .msg-ctx-reactor {
  min-height: 40px;
  padding: 6px 4px;
}

.ccp-msg-sheet .ccp-msg-reactors .msg-ctx-reactor-avatar {
  width: 28px;
  height: 28px;
  font-size: 0.7rem;
}

.ccp-msg-sheet .ccp-msg-reactors .msg-ctx-reactor-name {
  font-size: 1rem;
}

.ccp-msg-sheet .ccp-msg-reactors .msg-ctx-reactor-emoji {
  font-size: 1.2rem;
}

/* Filters sheet */

.ccp-msg-sheet .ccp-msg-fgroup + .ccp-msg-fgroup {
  margin-top: 18px;
}

.ccp-msg-sheet .ccp-msg-flabel {
  margin-bottom: 8px;
  font-size: 0.858rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ccp-muted);
}

.ccp-msg-sheet .ccp-msg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ccp-msg-sheet .ccp-msg-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: var(--ccp-text-2);
  font-size: 1.24rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.ccp-msg-sheet .ccp-msg-chip[aria-checked="true"] {
  border-color: rgba(99, 234, 113, 0.55);
  background: rgba(99, 234, 113, 0.14);
  color: var(--ccp-deep);
}

.ccp-msg-sheet .ccp-msg-chip-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.ccp-msg-sheet .ccp-msg-jobs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ccp-msg-sheet .ccp-msg-jobopt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 6px 14px;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: var(--ccp-text);
  text-align: left;
  cursor: pointer;
}

.ccp-msg-sheet .ccp-msg-jobopt[aria-checked="true"] {
  border-color: rgba(99, 234, 113, 0.5);
  background: rgba(99, 234, 113, 0.12);
}

.ccp-msg-sheet .ccp-msg-jobopt-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ccp-msg-sheet .ccp-msg-jobopt-title {
  overflow: hidden;
  font-size: 1.24rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ccp-msg-sheet .ccp-msg-jobopt[aria-checked="true"] .ccp-msg-jobopt-title {
  font-weight: 650;
}

.ccp-msg-sheet .ccp-msg-jobopt-count {
  flex-shrink: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.814rem;
  color: var(--ccp-muted);
}

.ccp-msg-sheet .ccp-msg-ffoot {
  gap: 10px;
}

.ccp-msg-sheet .ccp-msg-fclear,
.ccp-msg-sheet .ccp-msg-fshow {
  min-width: 0;
  min-height: 48px;
  padding: 4px 12px;
  border-radius: 0.75rem;
  font-size: 1.1rem;
  line-height: 1.15;
  cursor: pointer;
}

.ccp-msg-sheet .ccp-msg-fclear {
  flex: 0 0 auto;
  padding: 4px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.04);
  color: var(--ccp-text-2);
  font-weight: 600;
  white-space: nowrap;
}

.ccp-msg-sheet .ccp-msg-fshow {
  flex: 1 1 auto;
  border: none;
  background: linear-gradient(135deg, var(--ccp-brand), var(--ccp-brand-2));
  color: #000;
  font-weight: 700;
}

/* Application preview and job details (desktop content) */

.ccp-msg-previewsheet .v-bs-sheet {
  background: #f6f7f9;
}

.ccp-msg-previewsheet .ccp-sheet-foot,
.ccp-msg-jobsheet .ccp-sheet-foot {
  display: none;
}

.ccp-msg-previewsheet .msg-preview-body,
.ccp-msg-jobsheet .msg-job-drawer-body {
  flex: none;
  padding: 4px 0 8px;
  overflow: visible;
}

/* The design's application runs 4px into the sheet's padding on each side. */
.ccp-msg-previewsheet .msg-preview-body {
  margin: 0 -4px;
}

.ccp-msg-jobsheet .msg-job-drawer-body .hd-details {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ccp-messages .ccp-msg-vmenu,
  .ccp-messages .ccp-msg-host .cd-msg,
  .ccp-messages .ccp-msg-host .msg-system,
  .ccp-messages .ccp-msg-host .msg-edit-banner,
  .ccp-messages .ccp-msg-host .cd-composer-reply,
  .ccp-messages .ccp-msg-host .cd-attach-menu {
    animation: none !important;
  }

  .ccp-messages .ccp-msg-tools,
  .ccp-messages .ccp-msg-bar.is-searching .ccp-msg-tools,
  .ccp-messages .ccp-msg-chev,
  .ccp-messages .ccp-msg-back,
  .ccp-messages .ccp-msg-row,
  .ccp-messages .ccp-msg-q,
  .ccp-messages .ccp-msg-host .cd-composer-send,
  .ccp-messages .ccp-msg-host .cd-msg-bubble,
  .ccp-msg-sheet .ccp-msg-act {
    transition: none;
  }

  .ccp-messages .ccp-msg-back:active,
  .ccp-messages .ccp-msg-host .cd-msg-bubble:active,
  .ccp-msg-sheet .ccp-msg-act:active {
    transform: none;
  }
}

/* Tablets (769px to 1023px): the design's two panes under the navbar, the list
   (320px) beside the open conversation, 16px around them and 12px between. */
@media (min-width: 769px) and (max-width: 1023px) {
  .ccp-messages.is-split {
    --ccp-gutter: 16px;
    --ccp-msg-tx: 18px;
    display: flex;
    gap: 12px;
    height: calc(100vh - var(--ccp-top));
    height: calc(100dvh - var(--ccp-top));
    padding: 16px;
  }

  body.cc-demo:not([data-route="landing"]) .ccp-messages.is-split {
    height: calc(100vh - var(--ccp-top) - var(--cc-demo-banner-h, 0px));
    height: calc(100dvh - var(--ccp-top) - var(--cc-demo-banner-h, 0px));
  }

  .ccp-messages .ccp-msg-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid #e0e0da;
    box-shadow:
      0 2px 8px rgba(0, 0, 0, 0.05),
      0 0 0 0.5px rgba(0, 0, 0, 0.04);
  }

  .ccp-messages .ccp-msg-pane--list {
    flex: 0 0 320px;
    width: 320px;
    background: #fff;
  }

  .ccp-messages .ccp-msg-pane--thread {
    flex: 1 1 0%;
    background: #f6f7f9;
  }

  /* List pane: the header stays, the rows scroll under it. */
  .ccp-messages.is-split .ccp-msg-list {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
  }

  .ccp-messages.is-split .ccp-msg-head,
  body.cc-demo:not([data-route="landing"]) .ccp-root .ccp-messages.is-split .ccp-msg-head {
    position: relative;
    top: auto;
    flex-shrink: 0;
    padding: 14px 16px;
    background: #fff;
  }

  .ccp-messages.is-split .ccp-msg-title {
    font-size: 1.375rem;
  }

  #main-container #ccp-root .ccp-messages.is-split .ccp-msg-q,
  #main-container #ccp-root .ccp-messages.is-split .ccp-msg-host .cd-composer-input {
    font-size: 0.99rem;
  }

  /* position: the rows' hidden labels (.ccp-msg-sr) scroll inside the list too, so
     rows below the pane never stretch the page under it. */
  .ccp-messages.is-split .ccp-msg-body {
    position: relative;
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 8px;
  }

  .ccp-messages.is-split .ccp-msg-row.is-active {
    background: rgba(99, 234, 113, 0.1);
  }

  .ccp-messages.is-split .ccp-msg-none,
  body:not(.cc-demo) .ccp-messages.is-split .ccp-msg-none {
    min-height: 100%;
  }

  /* Thread pane: the thread fills it instead of the screen. */
  .ccp-messages.is-split .ccp-msg-thread,
  body.cc-demo:not([data-route="landing"]) .ccp-messages.is-split .ccp-msg-thread {
    position: relative;
    inset: auto;
    z-index: auto;
    flex: 1 1 auto;
    min-height: 0;
    background: transparent;
  }

  .ccp-messages.is-split .ccp-msg-host .cd-chat-composer-wrap {
    padding-bottom: 12px;
  }
}

/* The tablet's thread pane with no conversation open */
.ccp-messages .ccp-msg-pane-empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.ccp-messages .ccp-msg-pane-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1rem;
  border-radius: 1.25rem;
  background: rgba(99, 234, 113, 0.1);
  color: #27b079;
}

.ccp-messages .ccp-msg-pane-ico {
  display: flex;
  color: #27b079;
}

.ccp-messages .ccp-msg-pane-title {
  font-size: 1.155rem;
  font-weight: 700;
  color: var(--ccp-text);
}

.ccp-messages .ccp-msg-pane-sub {
  margin-top: 4px;
  font-size: 0.946rem;
  color: #6b7280;
}

.ccp-messages .ccp-msg-pane-empty.is-none .ccp-msg-pane-title {
  margin-top: 14px;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #111827;
}

/* The application sheet draws the design's ApplicationView with the Candidate
   screen's rules (.ccp-cand-sheet--app in candidate.css, set on the sheet's
   content by messages.js); it has no name card on top (the sheet is titled
   Application). */
.ccp-msg-previewsheet .cd-identity-card {
  display: none;
}

/* Tablets (769px to 1023px): the design's Messages pop-ups are not bottom sheets.
   Manage and Message are centred dialogs 420px wide (18px 20px inside), Filters and
   the confirms 460px (20px 22px inside), and the application a full-height panel on
   the right. Done cards stay at the bottom, as designed. */
@media (min-width: 769px) and (max-width: 1023px) {
  .ccp-msg-sheet .v-bs-sheet,
  body[data-phone-screen="messages"] .ccp-sheet--confirm:not(.ccp-msg-sheet) .v-bs-sheet {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: calc(100% - 48px);
    max-width: 460px;
    height: auto;
    max-height: 88%;
    margin: 0;
    border-radius: 20px;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
  }

  .ccp-msg-sheet.is-open .v-bs-sheet,
  body[data-phone-screen="messages"] .ccp-sheet--confirm.is-open:not(.ccp-msg-sheet) .v-bs-sheet {
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  .ccp-msg-sheet .v-bs-handle-wrap,
  body[data-phone-screen="messages"] .ccp-sheet--confirm:not(.ccp-msg-sheet) .v-bs-handle-wrap {
    display: none;
  }

  /* Manage and Message */
  .ccp-msg-listsheet .v-bs-sheet {
    max-width: 420px;
  }

  .ccp-msg-listsheet .v-bs-body {
    padding-top: 18px;
  }

  .ccp-msg-listsheet .v-bs-body > .ccp-sheet-head {
    padding: 0 64px 0 20px;
  }

  .ccp-msg-listsheet .ccp-sheet-content {
    padding: 0 20px calc(18px + var(--ccp-safe-b));
  }

  .ccp-msg-listsheet .v-bs-close.v-action-btn {
    top: 18px;
    right: 10px;
  }

  /* Filters */
  .ccp-msg-fsheet .v-bs-body {
    padding-top: 20px;
  }

  .ccp-msg-fsheet .v-bs-body > .ccp-sheet-head {
    padding: 0 64px 0 22px;
  }

  .ccp-msg-fsheet .ccp-sheet-content {
    padding: 0 22px 18px;
  }

  /* The design pulls the footer 16px into the dialog's 22px padding. */
  .ccp-msg-fsheet .ccp-sheet-foot {
    margin: 0 6px;
  }

  /* Confirms: the same block, 6px into the dialog's 20px 22px padding */
  .ccp-msg-sheet.ccp-msg-cfsheet .ccp-sheet-content {
    padding: 20px 6px calc(2px + var(--ccp-safe-b));
  }

  .ccp-msg-fsheet .v-bs-close.v-action-btn {
    top: 20px;
    right: 12px;
  }

  /* The application (and desktop's job details, if one was left open): a panel
     on the right, the full height of the window */
  .ccp-msg-sheet:is(.ccp-msg-previewsheet, .ccp-msg-jobsheet) .v-bs-sheet {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(420px, 100%);
    max-width: 420px;
    height: 100%;
    max-height: 100%;
    border-radius: 20px 0 0 20px;
    opacity: 1;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .ccp-msg-sheet.is-open:is(.ccp-msg-previewsheet, .ccp-msg-jobsheet) .v-bs-sheet {
    transform: none;
  }

  .ccp-msg-sheet:is(.ccp-msg-previewsheet, .ccp-msg-jobsheet) .v-bs-body {
    padding-top: 20px;
  }

  .ccp-msg-sheet:is(.ccp-msg-previewsheet, .ccp-msg-jobsheet) .v-bs-body > .ccp-sheet-head {
    padding: 0 64px 0 22px;
  }

  .ccp-msg-sheet:is(.ccp-msg-previewsheet, .ccp-msg-jobsheet) .ccp-sheet-content {
    padding: 0 22px calc(20px + var(--ccp-safe-b));
  }

  .ccp-msg-sheet:is(.ccp-msg-previewsheet, .ccp-msg-jobsheet) .v-bs-close.v-action-btn {
    top: 20px;
    right: 12px;
  }

  /* Desktop's confirm pop-ups (Mute, Close Conversation, Favourite, Request to
     Reopen) on this screen: centred 460px dialogs too, until they turn into their
     done card, which slides up at the bottom as designed. */
  body[data-mobile-nav="company"][data-phone-screen="messages"] .v-modal-overlay:not(:has(.v-modal-success-layer)) {
    align-items: center;
    padding: 24px;
  }

  body[data-mobile-nav="company"][data-phone-screen="messages"] .v-modal-overlay:not(:has(.v-modal-success-layer)) .v-modal-box {
    max-width: 460px !important;
    max-height: 88dvh;
    border-bottom: 1px solid var(--modal-border);
    border-radius: 20px;
    padding-bottom: 0;
    animation: none;
  }

  body[data-mobile-nav="company"][data-phone-screen="messages"] .v-modal-overlay:not(:has(.v-modal-success-layer)) .v-modal-box::before {
    display: none;
  }
}
