.ce-client-messages { box-sizing: border-box; width: 100%; min-width: 0; max-width: 1100px; margin: 0 auto; color: #102a43; font-family: "Tilda Sans", Arial, sans-serif; }
.ce-client-messages *, .ce-client-messages *::before, .ce-client-messages *::after { box-sizing: border-box; }
.ce-client-messages__title { margin: 0 0 8px; font-size: 30px; }
.ce-client-messages__status, .ce-client-messages__muted { color: #667085; }
.ce-client-messages__client { display: grid; gap: 5px; margin: 16px 0; padding: 16px; border: 1px solid #b9e1df; border-radius: 14px; background: #f7ffff; }
.ce-client-messages__client strong { font-size: 20px; }
.ce-client-messages__identity { display: grid; gap: 12px; margin: 16px 0; }
.ce-client-messages__linked, .ce-client-messages__identify-tools { display: grid; gap: 8px; padding: 16px; border: 1px solid #b9e1df; border-radius: 14px; background: #fff; }
.ce-client-messages__linked a { width: max-content; color: #067486; font-weight: 700; }
.ce-client-messages__identify-tools h3 { margin: 0; }
.ce-client-messages__search, .ce-client-messages__create-form input { width: 100%; min-width: 0; border: 1px solid #98a2b3; border-radius: 9px; padding: 11px 12px; font: inherit; }
.ce-client-messages__candidates { display: grid; gap: 8px; }
.ce-client-messages__candidate { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 10px; align-items: center; padding: 10px; border: 1px solid #d8eeee; border-radius: 10px; background: #f8ffff; }
.ce-client-messages__candidate small { grid-column: 1; color: #667085; }
.ce-client-messages__candidate button, .ce-client-messages__create-form button { grid-column: 2; grid-row: 1 / span 2; border: 0; border-radius: 9px; padding: 10px 14px; background: #078fa3; color: #fff; cursor: pointer; font: inherit; font-weight: 700; }
.ce-client-messages__create { border: 1px solid #d8eeee; border-radius: 10px; padding: 11px; }
.ce-client-messages__create summary { color: #067486; cursor: pointer; font-weight: 700; }
.ce-client-messages__create-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 12px; }
.ce-client-messages__create-form button { grid-column: 1 / -1; grid-row: auto; }
.ce-client-messages__spam { width: max-content; border: 1px solid #d92d20; border-radius: 9px; padding: 10px 14px; background: #fff; color: #b42318; cursor: pointer; font: inherit; font-weight: 700; }
.ce-client-messages__notice { margin: 0; border: 1px solid #f5c26b; border-radius: 10px; padding: 12px; background: #fff8e8; }
.ce-client-messages__error { color: #b42318; }
.ce-client-messages__channels { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 18px 0; }
.ce-client-messages__channel { display: grid; gap: 4px; min-width: 0; border: 1px solid #7ccbd1; border-radius: 12px; padding: 12px; background: #fff; color: #155e68; cursor: pointer; text-align: left; font: inherit; }
.ce-client-messages__channel strong { font-size: 16px; }
.ce-client-messages__channel span { color: #667085; font-size: 13px; }
.ce-client-messages__channel--active { border-color: #078fa3; background: #e8f7f6; box-shadow: 0 0 0 2px rgba(7,143,163,.14); }
.ce-client-messages__badge { display: inline-block; width: max-content; border-radius: 999px; padding: 3px 8px; background: #d92d20; color: #fff !important; font-weight: 700; }
.ce-client-messages__thread { min-height: 260px; padding: 16px; border: 1px solid #b9e1df; border-radius: 14px; background: #f8ffff; }
.ce-client-messages__messages { display: grid; gap: 10px; }
.ce-client-messages__message { width: min(78%,720px); padding: 11px 13px; border-radius: 12px; background: #fff; border: 1px solid #d8eeee; overflow-wrap: anywhere; }
.ce-client-messages__message--outbound { margin-left: auto; background: #e8f7f6; border-color: #8dd2d5; }
.ce-client-messages__message p { margin: 5px 0; white-space: pre-wrap; }
.ce-client-messages__message small { color: #667085; }
.ce-client-messages__attachment { display: inline-block; margin-top: 7px; color: #067486; font-weight: 700; }
.ce-client-messages__future { margin-top: 14px; padding: 14px; border: 1px dashed #98a2b3; border-radius: 12px; background: #fff; color: #475467; }
.ce-client-messages__future textarea { width: 100%; min-height: 84px; margin-top: 10px; border: 1px solid #98a2b3; border-radius: 9px; padding: 10px; font: inherit; resize: vertical; }
.ce-client-messages__future button { margin-top: 8px; border: 0; border-radius: 9px; padding: 11px 16px; background: #98a2b3; color: #fff; font: inherit; }
.ce-client-messages__breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; color: #667085; }
.ce-client-messages__breadcrumbs a { color: #067486; text-decoration: none; }
@media (max-width: 760px) {
  .ce-client-messages__title { text-align: center; font-size: 28px; }
  .ce-client-messages__channels { grid-template-columns: minmax(0,1fr); }
  .ce-client-messages__message { width: 92%; }
  .ce-client-messages__candidate { grid-template-columns: minmax(0,1fr); }
  .ce-client-messages__candidate small, .ce-client-messages__candidate button { grid-column: 1; grid-row: auto; }
  .ce-client-messages__candidate button, .ce-client-messages__spam { width: 100%; }
  .ce-client-messages__create-form { grid-template-columns: minmax(0,1fr); }
}
