.cb .ct-sections {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.ct [hidden] { display: none !important; }
.ct section[id] { scroll-margin-block-start: 6rem; }
.ct .ct-card { min-width: 0; }
.ct .ct-heading,
.ct .ct-subheading,
.ct .ct-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.ct h3,
.ct legend {
  color: var(--cb-ink, #122539);
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.02em;
  margin: 0;
}
.ct .ct-subheading { margin-top: 20px; }
.ct .ct-subheading .cb-text,
.ct .ct-heading .cb-text { text-align: start; }
.ct p, .ct strong, .ct a, .ct dd, .ct h3, .ct button { overflow-wrap: anywhere; }
.ct .ct-muted,
.ct .ct-note,
.ct .ct-field small {
  color: var(--cb-muted, #4a5c6c);
  font-size: .94rem;
  line-height: 1.5;
}
.ct .ct-note:not(:empty) { margin-top: 10px; }
.ct .ct-note.ct-error { color: #942432; }
.ct .ct-inset, .ct .ct-thread {
  margin-top: 17px;
  padding: clamp(14px, 2.5vw, 24px);
  border: 1px solid #cad9e5;
  border-radius: 10px;
}
.ct .ct-inset { background: #f3f8fb; }
.ct .ct-thread { background: #fcfdff; }
.ct fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.ct legend { padding: 0; margin-bottom: 13px; }
.ct .ct-field { display: grid; gap: 5px; min-width: 0; margin: 0 0 14px; }
.ct .ct-field label { margin: 0; color: #2f455a; font-size: .96rem; font-weight: 620; }
.ct .ct-field input,
.ct .ct-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #849bad;
  border-radius: 7px;
  background: #fff;
  color: var(--cb-ink, #122539);
  font: inherit;
}
.ct .ct-field textarea { resize: vertical; min-height: 6.4rem; }
.ct .ct-field input[type="file"] { font-size: .9rem; padding: 6px 8px; }
.ct .ct-field input[type="file"]::file-selector-button {
  margin-right: 8px;
  padding: 6px 9px;
  color: #21435f;
  background: #e9f1f7;
  border: 1px solid #b2c5d4;
  border-radius: 4px;
  font: inherit;
  cursor: pointer;
}
.ct .ct-tickets, .ct .ct-messages { padding: 0; list-style: none; }
.ct .ct-tickets:not(:empty) { margin-top: 8px; border-top: 1px solid #cfdae2; }
.ct .ct-ticket {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 8px;
  text-align: start;
  color: #18354c;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #d9e3ea;
}
.ct .ct-ticket:hover, .ct .ct-ticket[aria-current="true"] { background: #eef5fb; }
.ct .ct-ticket[aria-current="true"] { box-shadow: inset 3px 0 0 var(--cb-accent, #155aba); }
.ct .ct-ticket > span:first-child { min-width: 0; }
.ct .ct-ticket strong, .ct .ct-ticket time { display: block; }
.ct time, .ct .ct-state { font-size: .84rem; }
.ct time { color: #4f6575; }
.ct .ct-state {
  display: inline-block;
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 4px;
  background: #edf1f4;
  color: #3b4c58;
}
.ct .ct-state[data-state="open"] { background: #e0f2eb; color: #14593f; }
.ct .ct-thread-head h3 { min-width: 0; }
.ct .ct-messages { display: grid; gap: 9px; }
.ct .ct-messages:not(:empty) { margin: 16px 0; }
.ct .ct-message {
  justify-self: start;
  max-width: min(92%, 46rem);
  min-width: 0;
  padding: 10px 13px;
  background: #eef2f5;
  border-radius: 3px 10px 10px 10px;
}
.ct .ct-message[data-author="customer"] {
  justify-self: end;
  background: #e6f1fb;
  border-radius: 10px 3px 10px 10px;
}
.ct .ct-byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; }
.ct .ct-byline strong { font-size: .9rem; }
.ct .ct-message p { margin-top: 5px; white-space: pre-wrap; line-height: 1.45; }
.ct .ct-attachment {
  display: inline-block;
  margin-top: 5px;
  color: #124f88;
  text-underline-offset: 3px;
  font-size: .94rem;
}
.ct #ct-reply { margin-top: 16px; }
.ct #ct-toggle-state { margin-top: 8px; }
.ct .ct-stats { display: grid; gap: 6px; margin-top: 15px; }
.ct .ct-stats > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  min-width: 0;
  padding: 10px 12px;
  background: #f1f6fa;
  border-radius: 6px;
}
.ct .ct-stats dt { color: #40596c; font-size: .94rem; }
.ct .ct-stats dd { font-size: 1.3rem; font-weight: 650; line-height: 1.2; }
.ct #ct-ref-terms, .ct #ct-get-ref, .ct .ct-link-row { margin-top: 15px; }
.ct #ct-ref-terms { white-space: pre-wrap; }
.ct .ct-link-row .ct-field { margin-bottom: 8px; }
.ct .ct-setting {
  display: grid;
  gap: 10px 20px;
  min-width: 0;
  margin-top: 14px;
  padding-top: 15px;
  border-top: 1px solid #d6e1e8;
}
.ct .ct-setting > div, .ct .ct-setting form { min-width: 0; }
.ct .ct-setting .ct-muted:not(:empty) { margin-top: 4px; }
.ct .ct-setting .ct-field { margin-bottom: 8px; }
.ct .ct-setting-action { display: flex; flex-wrap: wrap; align-items: start; gap: 8px; }
.ct a.cb-button { text-decoration: none; }
.ct .ct-confirm { padding: 11px; background: #f8f0ee; border-radius: 6px; }
.ct .ct-confirm p { margin-bottom: 10px; }
.ct button:disabled, .ct fieldset:disabled button { opacity: .64; }
.ct a:focus-visible, .ct textarea:focus-visible, .ct [tabindex="-1"]:focus-visible {
  outline: 3px solid #2c88fa;
  outline-offset: 3px;
}
@media (min-width: 650px) {
  .ct .ct-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .ct .ct-stats > div { display: grid; align-content: space-between; gap: 9px; }
  .ct .ct-setting { grid-template-columns: minmax(10rem, 1fr) minmax(16rem, 1.5fr); }
}
