.clst-support {
  --clst-accent: var(--cl-ui-accent, #007da3);
  --clst-accent-dark: var(--cl-ui-accent-dark, #006783);
  --clst-pink: var(--cl-ui-pink, #e21270);
  --clst-ink: var(--cl-ui-ink, #1f2937);
  --clst-muted: var(--cl-ui-muted, #526373);
  --clst-panel: var(--cl-ui-panel, #eef9fb);
  --clst-line: var(--cl-ui-line, #d4e7ec);
  color: var(--clst-ink);
  display: grid;
  gap: 24px;
  inline-size: 100%;
}

body.clst-embed-document {
  background: #f6fafb;
  color: var(--clst-ink, #1f2937);
  margin: 0;
  min-inline-size: 280px;
}

.clst-embed-document__main {
  margin-inline: auto;
  max-inline-size: 1040px;
  padding: 16px;
}

.clst-support .clst-card,
.clst-support .care-ui-card {
  background: #fff;
  border: 1px solid var(--clst-line);
  border-radius: 8px;
  padding: clamp(16px, 3vw, 24px);
}

.clst-support .care-ui-kicker {
  color: var(--clst-accent-dark);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.clst-support h2 { margin-block: 0 8px; }
.clst-summary { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 16px; }
.clst-summary span { background: var(--clst-panel); border-radius: 6px; padding: 8px 12px; }
.clst-form { display: grid; gap: 8px; margin-block-start: 16px; max-inline-size: 760px; }
.clst-form label { font-weight: 700; margin-block-start: 8px; }
.clst-form :where(input, select, textarea) { border: 1px solid #9aacb3; border-radius: 6px; font: inherit; inline-size: 100%; padding: 10px 12px; }
.clst-form textarea { min-block-size: 130px; resize: vertical; }
.clst-form__help, .clst-ticket__meta { color: var(--clst-muted); font-size: .92rem; margin: 0; }
.clst-button { background: var(--clst-accent); border: 0; border-radius: 6px; color: #fff; cursor: pointer; font: inherit; font-weight: 700; justify-self: start; min-block-size: 44px; padding: 10px 18px; }
.clst-button:hover { background: var(--clst-accent-dark); color: #fff; }
.clst-support :where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--clst-accent); outline-offset: 2px; }
.clst-table { border-collapse: collapse; inline-size: 100%; }
.clst-table :where(th, td) { border-block-end: 1px solid var(--clst-line); padding: 12px; text-align: start; vertical-align: middle; }
.clst-table th small { color: var(--clst-muted); display: block; font-weight: 400; }
.clst-table__unread { background: #f1fbfd; }
.clst-unread { color: var(--clst-pink); display: block; font-size: .82rem; font-weight: 700; margin-block-start: 4px; }
.clst-status { border: 1px solid var(--clst-line); border-radius: 999px; display: inline-block; font-size: .82rem; font-weight: 700; padding: 4px 8px; }
.clst-status--open { background: #eef9fb; color: #006783; }
.clst-status--awaiting_learner { background: #fff8df; color: #715500; }
.clst-status--resolved { background: #edf8f1; color: #166534; }
.clst-status--closed { background: #f2f3f4; color: #4b5563; }
.clst-ticket__header { align-items: flex-start; display: flex; gap: 16px; justify-content: space-between; }
.clst-support .clst-back { color: var(--clst-accent-dark); font-weight: 600; }
.clst-message { border-inline-start: 4px solid var(--clst-line); margin-block-start: 16px; padding: 12px 16px; }
.clst-message--admin { background: var(--clst-panel); border-inline-start-color: var(--clst-accent); }
.clst-message__author { font-weight: 700; margin: 0 0 8px; }
.clst-message__author span { color: var(--clst-muted); font-size: .85rem; font-weight: 400; margin-inline-start: 8px; }
.clst-message__content > :first-child { margin-block-start: 0; }
.clst-message__content > :last-child { margin-block-end: 0; }
.clst-message__content a { color: var(--clst-accent-dark); font-weight: 600; overflow-wrap: anywhere; }
.clst-reply-signoff { margin-block-start: 18px; }
.clst-reply-disclosure { color: var(--clst-muted); font-size: .82rem; }
.clst-inline-form { margin-block-start: 16px; }
.clst-notice { background: var(--clst-panel); border-inline-start: 4px solid var(--clst-accent); padding: 10px 16px; }
.clst-notice--success { background: #edf8f1; border-inline-start-color: #1a7f4b; }
.clst-notice--error { background: #fff1f2; border-inline-start-color: #c0152b; }
.clst-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.clst-pagination a, .clst-pagination span { border: 1px solid var(--clst-line); border-radius: 4px; display: inline-block; padding: 6px 10px; }

@media (max-width: 640px) {
  .clst-embed-document__main { padding: 10px; }
  .clst-ticket__header { display: grid; }
  .clst-support .care-ui-table-wrap { overflow-x: visible; }
  .clst-table, .clst-table tbody, .clst-table tr, .clst-table :where(th, td) { display: block; }
  .clst-table thead { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
  .clst-table tr { border-block-end: 1px solid var(--clst-line); padding-block: 10px; }
  .clst-table :where(th, td) { border: 0; padding: 5px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .clst-support *, .clst-support *::before, .clst-support *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}

.clst-form .clst-diagnostic-fields { display: grid; gap: 10px; min-width: 0; margin: 12px 0; padding: 16px; border: 1px solid var(--cl-ui-line, #d4e7ec); }
.clst-form input[type="file"] { width: 100%; min-width: 0; max-width: 100%; }

/* Contact form honeypot: hidden from people and assistive technology, visible to naive bots. */
.clst-contact .clst-hp { block-size: 1px; inline-size: 1px; inset-inline-start: -10000px; overflow: hidden; position: absolute; }
.clst-support .clst-ticket__header .clst-status { justify-self: start; }
.clst-form :where(input, textarea)[readonly] { background: #f2f5f6; color: var(--clst-muted, #526373); cursor: default; }

/* Self-help suggestions under the ticket message box. */
.clst-self-help { background: var(--clst-panel, #eef9fb); border: 1px solid var(--clst-line, #d4e7ec); border-inline-start: 4px solid var(--clst-accent, #007da3); border-radius: 6px; display: grid; gap: 10px; padding: 12px 14px; }
.clst-self-help[hidden] { display: none; }
.clst-self-help__heading { color: var(--clst-accent-dark, #006783); font-size: .8rem; font-weight: 700; letter-spacing: .06em; margin: 0; text-transform: uppercase; }
.clst-self-help__card { background: #fff; border-radius: 6px; padding: 10px 12px; }
.clst-self-help__title { font-weight: 700; margin: 0 0 4px; }
.clst-self-help__answer { margin: 0 0 10px; }
.clst-self-help__actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.clst-self-help__link, .clst-self-help__solved, .clst-self-help__continue { border-radius: 6px; cursor: pointer; font: inherit; font-size: .92rem; font-weight: 700; min-block-size: 40px; padding: 8px 12px; text-decoration: none; }
.clst-self-help__link { background: var(--clst-accent, #007da3); border: 0; color: #fff; display: inline-flex; align-items: center; }
.clst-self-help__link:hover, .clst-self-help__link:focus { background: var(--clst-accent-dark, #006783); color: #fff; }
.clst-self-help__solved { background: #fff; border: 1px solid #1a7f4b; color: #14653c; }
.clst-self-help__continue { background: transparent; border: 1px solid #9aacb3; color: var(--clst-ink, #1f2937); }
.clst-self-help :where(a, button):focus-visible { outline: 3px solid var(--clst-accent, #007da3); outline-offset: 2px; }
.clst-self-help__thanks p { margin: 0 0 8px; }
.clst-self-help .screen-reader-text { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

/* Signed-in learner's own certificates inside the certificates suggestion. */
.clst-self-help__items-heading { font-weight: 700; margin: 0 0 4px; }
.clst-self-help__items { margin: 0 0 10px; padding-inline-start: 20px; }
.clst-self-help__items a { color: var(--clst-accent-dark, #006783); font-weight: 600; overflow-wrap: anywhere; }

/* Known-issue notice above ticket forms. */
.clst-known-issue { background: #fff8df; border-inline-start: 4px solid #b78a00; border-radius: 6px; margin-block: 12px; padding: 10px 14px; }
.clst-known-issue p { margin: 0; }
.clst-known-issue a { color: #5c4300; font-weight: 700; }
.clst-known-issue .clst-known-issue__note { color: #5c4300; font-size: .9rem; margin-block-start: 4px; }

/* Response time and priority support message above ticket forms. */
.clst-response-time { background: var(--clst-panel, #eef9fb); border-inline-start: 4px solid var(--clst-accent, #007da3); border-radius: 6px; margin-block: 12px; padding: 10px 14px; }
.clst-response-time p { margin: 0; }
.clst-response-time .clst-response-time__promo { margin-block-start: 6px; }
.clst-response-time a { color: var(--clst-accent-dark, #006783); font-weight: 700; }
.clst-response-time--priority { background: #fde8f1; border-inline-start-color: #e21270; }
