/* Messages with our team (applicant pages). Scoped so the theme cannot restyle it. */
.chf-msg-fab, .chf-msg-panel, .chf-msg-panel * { box-sizing: border-box; }
.chf-msg-fab { position: fixed; right: 20px; bottom: 20px; z-index: 99990; display: inline-flex; align-items: center; gap: 10px; height: 54px; margin: 0; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: #067647; color: #fff; font: 600 15px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; letter-spacing: normal; text-transform: none; cursor: pointer; box-shadow: 0 10px 24px rgba(6, 118, 71, .32), 0 2px 6px rgba(16, 24, 40, .12); transition: transform .15s, box-shadow .15s; }
.chf-msg-fab:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(6, 118, 71, .38), 0 2px 6px rgba(16, 24, 40, .12); background: #05603a; color: #fff; }
.chf-msg-fab:focus-visible { outline: 3px solid #84e1bc; outline-offset: 3px; }
.chf-msg-fab svg { flex: 0 0 auto; }
.chf-msg-fab.is-open .chf-msg-fab-t { display: none; }
.chf-msg-fab.is-open { padding: 0 15px; }
.chf-msg-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border: 2px solid #fff; border-radius: 999px; background: #d92d20; color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; }
.chf-msg-badge[hidden] { display: none; }
.chf-msg-fab.has-new { animation: chf-msg-pulse 2s ease-out 3; }
@keyframes chf-msg-pulse { 0% { box-shadow: 0 0 0 0 rgba(6, 118, 71, .5); } 100% { box-shadow: 0 0 0 18px rgba(6, 118, 71, 0); } }

.chf-msg-panel { position: fixed; right: 20px; bottom: 86px; z-index: 99991; display: flex; flex-direction: column; width: 380px; max-width: calc(100vw - 24px); height: 580px; max-height: calc(100vh - 110px); overflow: hidden; border: 1px solid #e4e7ec; border-radius: 20px; background: #fff; color: #101828; font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; text-align: left; box-shadow: 0 24px 56px rgba(16, 24, 40, .22), 0 4px 12px rgba(16, 24, 40, .08); animation: chf-msg-in .18s ease-out; }
.chf-msg-panel[hidden] { display: none; }
@keyframes chf-msg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.chf-msg-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: linear-gradient(135deg, #067647, #05603a); color: #fff; }
.chf-msg-ava { display: inline-flex; flex: 0 0 40px; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.chf-msg-ava svg { width: 20px; height: 20px; }
.chf-msg-headt { flex: 1 1 auto; min-width: 0; }
.chf-msg-headt strong { display: block; font-size: 15.5px; line-height: 1.3; color: #fff; }
.chf-msg-headt span { display: block; font-size: 12.5px; color: #d1fadf; }
.chf-msg-x { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; box-shadow: none; }
.chf-msg-x:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.chf-msg-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.chf-msg-body { flex: 1 1 auto; overflow-y: auto; padding: 14px 14px 6px; background: #f6f7f9; overscroll-behavior: contain; }
.chf-msg-list { margin: 0; padding: 0; list-style: none; }
.chf-msg-empty { margin: 30px 12px; padding: 16px; border-radius: 14px; background: #fff; color: #475467; font-size: 14px; text-align: center; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.chf-msg-day { display: flex; justify-content: center; margin: 10px 0; }
.chf-msg-day span { padding: 3px 10px; border-radius: 999px; background: #eaecf0; color: #475467; font-size: 12px; font-weight: 600; }
.chf-msg-item { display: flex; flex-direction: column; margin: 0 0 8px; }
.chf-msg-item.is-me { align-items: flex-end; }
.chf-msg-item.is-them { align-items: flex-start; }
.chf-msg-bubble { max-width: 82%; padding: 9px 12px; border-radius: 18px; overflow-wrap: anywhere; }
.chf-msg-item.is-me .chf-msg-bubble { border-bottom-right-radius: 6px; background: #067647; color: #fff; }
.chf-msg-item.is-them .chf-msg-bubble { border-bottom-left-radius: 6px; background: #fff; color: #101828; box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
.chf-msg-who { display: block; margin: 0 0 2px; color: #067647; font-size: 12px; font-weight: 700; }
.chf-msg-text { margin: 0; white-space: pre-wrap; }
.chf-msg-meta { margin: 3px 6px 0; color: #667085; font-size: 11.5px; }
.chf-msg-item.is-pending .chf-msg-bubble { opacity: .7; }
.chf-msg-item.is-failed .chf-msg-bubble { background: #fef3f2; color: #912018; border: 1px solid #fecdca; }
.chf-msg-item.is-failed { cursor: pointer; }
.chf-msg-item.is-failed .chf-msg-meta { color: #b42318; font-weight: 600; }
.chf-msg-file { margin: 0 0 6px; }
.chf-msg-file:last-child { margin: 0; }
.chf-msg-file.is-img { cursor: zoom-in; }
.chf-msg-file img { display: block; max-width: 100%; max-height: 240px; min-width: 80px; min-height: 60px; border-radius: 12px; background: rgba(16, 24, 40, .06); object-fit: cover; }
.chf-msg-filechip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin: 0; padding: 8px 12px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .18); color: inherit; font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; box-shadow: none; }
.chf-msg-item.is-them .chf-msg-filechip { background: #f2f4f7; color: #101828; }
.chf-msg-filechip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chf-msg-form { flex: 0 0 auto; margin: 0; padding: 10px 12px 12px; border-top: 1px solid #eaecf0; background: #fff; }
.chf-msg-row { display: flex; align-items: flex-end; gap: 8px; }
.chf-msg-form textarea { flex: 1 1 auto; min-width: 0; height: 44px; min-height: 44px; max-height: 140px; margin: 0; padding: 11px 14px; border: 1px solid #d0d5dd; border-radius: 22px; background: #f9fafb; color: #101828; font: inherit; font-size: 15px; line-height: 1.4; resize: none; box-shadow: none; }
.chf-msg-form textarea:focus { border-color: #079455; background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(7, 148, 85, .15); }
.chf-msg-attach { position: relative; display: inline-flex; flex: 0 0 44px; width: 44px; height: 44px; align-items: center; justify-content: center; margin: 0; border-radius: 50%; color: #475467; cursor: pointer; }
.chf-msg-attach:hover { background: #f2f4f7; color: #101828; }
.chf-msg-attach:focus-within { outline: 2px solid #079455; outline-offset: 1px; }
.chf-msg-attach input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chf-msg-send { display: inline-flex; flex: 0 0 44px; width: 44px; height: 44px; align-items: center; justify-content: center; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #067647; color: #fff; cursor: pointer; box-shadow: none; }
.chf-msg-send:hover { background: #05603a; color: #fff; }
.chf-msg-send:focus-visible { outline: 3px solid #84e1bc; outline-offset: 2px; }
.chf-msg-chosen { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 6px 6px 6px 12px; border-radius: 10px; background: #ecfdf3; color: #054f31; font-size: 13.5px; font-weight: 600; }
.chf-msg-chosen[hidden] { display: none; }
.chf-msg-chosen-n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chf-msg-chosen-x { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #054f31; cursor: pointer; box-shadow: none; }
.chf-msg-chosen-x svg { width: 16px; height: 16px; }
.chf-msg-err { margin: 0 0 8px; color: #b42318; font-size: 13.5px; }
.chf-msg-err[hidden] { display: none; }

/* phones: full screen */
@media (max-width: 639px) {
    .chf-msg-fab { right: 14px; bottom: 14px; height: 52px; }
    .chf-msg-panel { inset: 0; right: 0; bottom: 0; width: 100%; max-width: none; height: 100%; max-height: none; border: 0; border-radius: 0; }
    .chf-msg-fab.is-open { display: none; }
    html.chf-msg-lock, html.chf-msg-lock body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .chf-msg-panel, .chf-msg-fab.has-new { animation: none; } .chf-msg-fab { transition: none; } }

/* the "still having trouble" button under upload problems */
.chf-wrap .chf-onb-help { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 9px 14px; border: 1px solid #b42318; border-radius: 10px; background: #fff; color: #912018; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.chf-wrap .chf-onb-help:hover { background: #fef3f2; }
.chf-msg-item.is-me .chf-msg-filechip, .chf-msg-item.is-me .chf-msg-filechip span { color: #fff !important; }
.chf-msg-item.is-them .chf-msg-filechip, .chf-msg-item.is-them .chf-msg-filechip span { color: #101828 !important; }
@media (max-width: 639px) { .chf-msg-panel { z-index: 2147483000; } }

.chf-msg-fab[hidden], .chf-msg-panel[hidden] { display: none !important; }
.chf-msg-pic { display: block; max-width: 100%; height: auto; max-height: 240px; border-radius: 12px; background: rgba(16, 24, 40, .06); }
.chf-msg-file.is-img { cursor: zoom-in; min-height: 60px; }
.chf-msg-blocked { margin: 0 0 8px; padding: 10px 12px; border-radius: 10px; background: #fef3f2; color: #912018; font-size: 13.5px; font-weight: 600; }
.chf-msg-form.is-blocked .chf-msg-row { opacity: .5; }

.chf-msg-pic { cursor: zoom-in; }

/* support requests */
.chf-msg-back { flex: 0 0 auto; display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 9px; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; }
.chf-msg-back[hidden] { display: none; }
.chf-msg-tlist { flex: 1 1 auto; overflow-y: auto; padding: 12px; background: #f9fafb; }
.chf-msg-tlist[hidden], .chf-msg-tbar[hidden], .chf-msg-body[hidden], .chf-msg-form[hidden], .chf-msg-newf[hidden] { display: none !important; }
.chf-msg-tnew-row { margin: 0 0 10px; }
.chf-msg-tnew { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border: 0; border-radius: 12px; background: #067647; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.chf-msg-tnew:hover { background: #05603a; }
.chf-msg-tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chf-msg-tk { display: grid; gap: 4px; width: 100%; padding: 12px 14px; border: 1px solid #e4e7ec; border-radius: 12px; background: #fff; color: #101828; font: inherit; text-align: left; cursor: pointer; }
.chf-msg-tk:hover { border-color: #067647; }
.chf-msg-tk.has-new { border-color: #067647; }
.chf-msg-tk-top { display: flex; justify-content: space-between; gap: 8px; }
.chf-msg-tk-top strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.chf-msg-tk-top time { flex: 0 0 auto; font-size: 12px; color: #667085; }
.chf-msg-tk-mid { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.chf-msg-tk-no { font-size: 12px; color: #667085; }
.chf-msg-tk-n { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: #067647; color: #fff; font-size: 11.5px; line-height: 20px; text-align: center; }
.chf-msg-tk-last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #475467; }
.chf-msg-tnone { padding: 18px 8px; color: #475467; text-align: center; }
.chf-msg-tst { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 20px; background: #fef0c7; color: #93370d; }
.chf-msg-tst.is-waiting { background: #eff8ff; color: #175cd3; }
.chf-msg-tst.is-solved { background: #ecfdf3; color: #067647; }
.chf-msg-tbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; border-bottom: 1px solid #eaecf0; background: #fff; }
.chf-msg-solve { padding: 5px 10px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; color: #344054; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.chf-msg-solve:hover { border-color: #067647; color: #067647; }
.chf-msg-solve[hidden] { display: none; }
.chf-msg-newf { display: grid; gap: 8px; margin: 0 0 8px; }
.chf-msg-newf label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: #344054; }
.chf-msg-newf select, .chf-msg-newf input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; color: #101828; font: inherit; font-size: 14.5px; box-sizing: border-box; }
.chf-msg-newf select:focus, .chf-msg-newf input:focus { outline: 2px solid #067647; outline-offset: 0; border-color: #067647; }

/* the Help page: the panel fills the page */
.chf-msg-panel.is-page { position: static; width: 100%; max-width: none; height: min(720px, calc(100vh - 230px)); min-height: 460px; max-height: none; border-radius: 16px; box-shadow: 0 10px 30px -12px rgba(16, 24, 40, .18); animation: none; }
.chf-msg-panel.is-page[hidden] { display: grid !important; }
.chf-msg-panel.is-page .chf-msg-x { display: none; }
@media (max-width: 640px) { .chf-msg-panel.is-page { height: calc(100vh - 210px); border-radius: 12px; } }

/* ---- Help page: a standard help centre (requests on the left, the open one on the right) */
.chf-msg-panel.is-page { display: grid !important; grid-template-columns: 340px minmax(0, 1fr); height: min(760px, calc(100vh - 220px)); min-height: 520px; border: 1px solid #e4e7ec; border-radius: 14px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); background: #fff; overflow: hidden; }
.chf-msg-panel.is-page .chf-hp-left { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid #eaecf0; background: #fcfcfd; }
.chf-msg-panel.is-page .chf-hp-right { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; }
.chf-hp-tools { padding: 16px 16px 12px; border-bottom: 1px solid #eaecf0; background: #fff; }
.chf-hp-tools-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.chf-hp-title { font-size: 15px; font-weight: 700; color: #101828; }
.chf-msg-panel.is-page .chf-msg-tnew-row { margin: 0; }
.chf-msg-panel.is-page .chf-msg-tnew { width: auto; padding: 8px 14px; border-radius: 9px; font-size: 13.5px; }
.chf-hp-filters { display: flex; gap: 4px; padding: 3px; margin: 0 0 10px; border-radius: 10px; background: #f2f4f7; }
.chf-hp-f { flex: 1 1 0; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; color: #475467; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.chf-hp-f.is-on { background: #fff; color: #101828; box-shadow: 0 1px 2px rgba(16, 24, 40, .1); }
.chf-hp-q { width: 100%; height: 38px; padding: 0 12px; border: 1px solid #d0d5dd; border-radius: 9px; font: inherit; font-size: 14px; box-sizing: border-box; }
.chf-hp-q:focus { outline: 2px solid #067647; outline-offset: -1px; border-color: #067647; }
.chf-msg-panel.is-page .chf-msg-tlist { flex: 1 1 auto; padding: 8px; background: transparent; }
.chf-msg-panel.is-page .chf-msg-tlist[hidden] { display: block !important; }
.chf-msg-panel.is-page .chf-msg-tickets { gap: 2px; }
.chf-msg-panel.is-page .chf-msg-tk { border: 0; border-radius: 10px; background: transparent; padding: 11px 12px; }
.chf-msg-panel.is-page .chf-msg-tk:hover { background: #f2f4f7; }
.chf-msg-panel.is-page .chf-msg-tk.is-on { background: #ecfdf3; }
.chf-msg-panel.is-page .chf-msg-tk.has-new strong { font-weight: 800; }
/* the open request: a plain header */
.chf-msg-panel.is-page .chf-msg-head { background: #fff; color: #101828; border-bottom: 1px solid #eaecf0; padding: 14px 20px; }
.chf-msg-panel.is-page .chf-msg-head[hidden] { display: none !important; }
.chf-msg-panel.is-page .chf-msg-ava { display: none; }
.chf-msg-panel.is-page .chf-msg-headt strong { color: #101828; font-size: 17px; }
.chf-msg-panel.is-page .chf-msg-headt span { color: #667085; font-size: 13px; }
.chf-msg-panel.is-page .chf-msg-back { display: none; }
.chf-msg-panel.is-page .chf-msg-tbar { padding: 8px 20px; background: #fcfcfd; }
.chf-msg-panel.is-page .chf-msg-body { flex: 1 1 auto; background: #f9fafb; }
.chf-msg-panel.is-page .chf-msg-form { border-top: 1px solid #eaecf0; background: #fff; padding: 12px 20px 14px; }
.chf-hp-empty { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 30px; text-align: center; color: #475467; }
.chf-hp-empty[hidden] { display: none; }
.chf-hp-empty strong { font-size: 16px; color: #101828; }
.chf-hp-empty p { margin: 0; max-width: 340px; font-size: 14px; }
.chf-hp-empty-i { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; margin: 0 0 6px; border-radius: 14px; background: #ecfdf3; color: #067647; }
@media (max-width: 760px) {
  .chf-msg-panel.is-page { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  .chf-msg-panel.is-page .chf-hp-right { display: none; min-height: 70vh; }
  .chf-msg-panel.is-page.has-pick .chf-hp-left { display: none; }
  .chf-msg-panel.is-page.has-pick .chf-hp-right { display: flex; }
  .chf-msg-panel.is-page .chf-msg-back { display: inline-flex; background: #f2f4f7; color: #344054; }
  .chf-msg-panel.is-page .chf-msg-tlist { max-height: none; }
}

/* a solved request: closed, with a rating */
.chf-msg-closed { padding: 16px 20px; border-top: 1px solid #eaecf0; background: #fff; }
.chf-msg-closed-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.chf-msg-closed-top strong { flex: 1 1 100%; font-size: 15px; color: #101828; }
.chf-msg-closed-top span { flex: 1 1 auto; font-size: 13.5px; color: #475467; }
.chf-msg-closed-new { padding: 8px 14px; border: 0; border-radius: 9px; background: #067647; color: #fff; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.chf-msg-rate { display: grid; gap: 8px; margin: 14px 0 0; padding: 14px; border: 1px solid #eaecf0; border-radius: 12px; background: #f9fafb; }
.chf-msg-rate-q { margin: 0; font-weight: 700; color: #101828; }
.chf-msg-stars { display: flex; gap: 4px; }
.chf-msg-star { width: 40px; height: 40px; padding: 0; border: 1px solid #e4e7ec; border-radius: 10px; background: #fff; color: #d0d5dd; font-size: 22px; line-height: 1; cursor: pointer; }
.chf-msg-star:hover, .chf-msg-star.is-on { color: #f79009; border-color: #fedf89; background: #fffaeb; }
.chf-msg-star:focus-visible { outline: 2px solid #067647; outline-offset: 2px; }
.chf-msg-rate-note { width: 100%; padding: 8px 10px; border: 1px solid #d0d5dd; border-radius: 9px; font: inherit; font-size: 14px; box-sizing: border-box; resize: vertical; }
.chf-msg-rate-send { justify-self: start; padding: 8px 14px; border: 0; border-radius: 9px; background: #067647; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.chf-msg-rate-send:disabled { opacity: .5; cursor: default; }
.chf-msg-rated { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #ecfdf3; color: #067647; font-weight: 600; font-size: 14px; }
.chf-msg-tk-rate { font-size: 12px; font-weight: 700; color: #b54708; }

.chf-msg-tst:empty { display: none; }
.chf-msg-tbar:has(.chf-msg-tst:empty):has(.chf-msg-solve[hidden]) { display: none !important; }

/* ticket thread: full-width posts (not chat bubbles) */
.chf-msg-list .chf-tk-post { display: block; margin: 0 0 12px; padding: 0; border: 1px solid #e4e7ec; border-radius: 12px; background: #fff; overflow: hidden; }
.chf-msg-list .chf-tk-post.is-them { }
.chf-tk-phead { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #f2f4f7; background: #f9fafb; }
.chf-tk-post.is-them .chf-tk-phead { background: #f6fef9; }
.chf-tk-av { flex: 0 0 auto; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #eaecf0; color: #344054; font-weight: 700; font-size: 13px; }
.chf-tk-post.is-them .chf-tk-av { background: #067647; color: #fff; }
.chf-tk-who { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.chf-tk-who strong { font-size: 14px; color: #101828; }
.chf-tk-role { padding: 1px 8px; border-radius: 999px; background: #dcfae6; color: #067647; font-size: 11.5px; font-weight: 700; }
.chf-tk-phead .chf-msg-meta { flex: 0 0 auto; margin: 0 !important; color: #667085; font-size: 12.5px; }
.chf-msg-list .chf-tk-post .chf-tk-pbody { max-width: none; padding: 12px 14px 14px; border-radius: 0; background: transparent !important; color: #101828 !important; box-shadow: none !important; }
.chf-tk-post .chf-msg-text { margin: 0; font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; }
.chf-tk-post .chf-msg-text + * { margin-top: 10px; }
.chf-tk-post.is-me .chf-msg-filechip, .chf-tk-post.is-me .chf-msg-filechip span { background: #f2f4f7; color: #101828 !important; }
.chf-tk-post.is-pending { opacity: .7; }
.chf-tk-post.is-failed { border-color: #fecdca; }
.chf-msg-tk { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.chf-msg-tk-top strong { flex: 1 1 auto; }
.chf-hp-left, .chf-msg-tickets { overflow-x: hidden; }

.chf-msg-attach[hidden] { display: none !important; }
.chf-msg-fileask { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; background: #eff8ff; color: #175cd3; font-size: 13.5px; font-weight: 600; }
.chf-msg-link { color: #067647; text-decoration: underline; overflow-wrap: anywhere; }
.chf-msg-pagelink { display: inline-block; margin: 2px 0; padding: 4px 10px; border: 1px solid #abefc6; border-radius: 8px; background: #ecfdf3; color: #067647 !important; font-weight: 600; text-decoration: none; }
.chf-msg-pagelink:hover { background: #dcfae6; }

/* Help page: ticket layout */
.chf-msg-panel.is-page .chf-msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 16px 22px; }
.chf-msg-panel.is-page .chf-msg-headt { flex: 1 1 260px; min-width: 0; }
.chf-msg-panel.is-page .chf-msg-headt strong { display: block; font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.chf-msg-panel.is-page .chf-msg-tbar.in-head { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; border: 0; background: none; }
.chf-msg-panel.is-page .chf-msg-tbar.in-head[hidden] { display: none !important; }
.chf-msg-panel.is-page .chf-msg-tbar.in-head .chf-msg-tst:empty { display: none; }
.chf-msg-panel.is-page .chf-msg-body { padding: 16px 22px; }
.chf-msg-panel.is-page .chf-msg-form { padding: 14px 22px 16px; }
.chf-msg-panel.is-page .chf-msg-rlbl { display: block; margin: 0 0 6px; color: #344054; font-size: 13.5px; font-weight: 700; }
.chf-msg-panel.is-page .chf-msg-row { display: block; }
.chf-msg-panel.is-page .chf-msg-row textarea { display: block; width: 100%; min-height: 110px; max-height: 40vh; height: auto; padding: 12px 14px; border: 1px solid #d0d5dd; border-radius: 12px; background: #fff; font-size: 15px; line-height: 1.55; resize: vertical; box-sizing: border-box; }
.chf-msg-panel.is-page .chf-msg-rfoot { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.chf-msg-panel.is-page .chf-msg-rhint { flex: 1 1 auto; color: #667085; font-size: 12.5px; }
.chf-msg-panel.is-page .chf-msg-rfoot .chf-msg-send { display: inline-flex; align-items: center; gap: 8px; width: auto; height: 42px; padding: 0 18px; border-radius: 10px; font: inherit; font-size: 14.5px; font-weight: 700; }
.chf-msg-panel.is-page .chf-msg-rfoot .chf-msg-send svg { width: 17px; height: 17px; }
.chf-msg-panel.is-page .chf-msg-newf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; margin: 0 0 12px; }
.chf-msg-panel.is-page .chf-msg-newf[hidden] { display: none; }
@media (max-width: 640px) { .chf-msg-panel.is-page .chf-msg-newf { grid-template-columns: minmax(0, 1fr); } .chf-msg-panel.is-page .chf-msg-rhint { display: none; } }
.chf-msg-panel.is-page .chf-msg-rfoot .chf-msg-send { flex: 0 0 auto; white-space: nowrap; }
.chf-msg-panel.is-page .chf-msg-body[hidden] + .chf-msg-form, .chf-msg-panel.is-page .chf-msg-body[hidden] ~ .chf-msg-form { flex: 1 1 auto; border-top: 0; }

/* Help page: one thing at a time like a helpdesk - the list of requests (a queue), or one request full width */
.chf-msg-panel.is-page { grid-template-columns: minmax(0, 1fr) !important; height: auto !important; min-height: 0 !important; }
.chf-msg-panel.is-page .chf-hp-left { border-right: 0; background: #fff; }
.chf-msg-panel.is-page .chf-hp-right { display: none; }
.chf-msg-panel.is-page.has-pick .chf-hp-left { display: none; }
.chf-msg-panel.is-page.has-pick .chf-hp-right { display: flex; min-height: min(780px, calc(100vh - 200px)); }
.chf-msg-panel.is-page .chf-hp-empty { display: none !important; }
.chf-msg-panel.is-page .chf-msg-head { position: relative; padding-top: 52px; }
.chf-msg-panel.is-page .chf-msg-back { position: absolute; top: 14px; left: 18px; display: inline-flex !important; align-items: center; gap: 6px; width: auto; height: auto; padding: 4px 8px; border: 0; border-radius: 8px; background: none; color: #344054; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.chf-msg-panel.is-page .chf-msg-back svg { width: 18px; height: 18px; }
.chf-msg-panel.is-page .chf-msg-back:hover { background: #f2f4f7; color: #067647; }
.chf-msg-panel.is-page .chf-hp-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 16px; padding: 18px 22px; }
.chf-msg-panel.is-page .chf-hp-tools-top { grid-column: 1 / -1; margin: 0; }
.chf-msg-panel.is-page .chf-hp-filters { width: max-content; }
.chf-msg-panel.is-page .chf-hp-q { width: min(320px, 100%); }
.chf-msg-panel.is-page .chf-msg-tlist { padding: 0; }
.chf-msg-panel.is-page .chf-msg-tickets { gap: 0; }
.chf-msg-panel.is-page .chf-msg-tickets > li + li { border-top: 1px solid #eaecf0; }
.chf-msg-panel.is-page .chf-msg-tk { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 22px; border-radius: 0; }
.chf-msg-panel.is-page .chf-msg-tk:hover { background: #f9fafb; }
.chf-msg-panel.is-page .chf-msg-tk.is-on { box-shadow: none; background: transparent; }
.chf-msg-panel.is-page .chf-msg-tk.has-new { }
.chf-msg-panel.is-page .chf-msg-tk-top { grid-column: 1 / -1; }
.chf-msg-panel.is-page .chf-msg-tk-top strong { font-size: 15px; }
.chf-msg-panel.is-page .chf-msg-tk-last { grid-column: 1 / -1; }
.chf-msg-panel.is-page .chf-msg-tnone { padding: 40px 22px; text-align: center; }
@media (max-width: 640px) { .chf-msg-panel.is-page .chf-hp-tools { grid-template-columns: minmax(0, 1fr); } .chf-msg-panel.is-page .chf-hp-filters { width: auto; } .chf-msg-panel.is-page .chf-hp-q { width: 100%; } }
.chf-msg-panel.is-page .chf-msg-pic, .chf-msg-panel.is-page .chf-msg-item canvas, .chf-msg-panel.is-page .chf-msg-item img { max-width: min(100%, 320px) !important; height: auto !important; }

/* a long request scrolls inside its box; earlier messages load at the top */
.chf-msg-panel.is-page .chf-msg-body { max-height: min(68vh, 760px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.chf-msg-list .chf-msg-older { display: flex; justify-content: center; margin: 0 0 12px; list-style: none; }
.chf-msg-older-btn { padding: 7px 14px; border: 1px solid #d0d5dd; border-radius: 999px; background: #fff; color: #344054; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.chf-msg-file.is-img.is-wait { min-height: 160px; min-width: 200px; border-radius: 12px; background: #f2f4f7; }
@media (max-width: 600px) { .chf-msg-panel.is-page .chf-msg-body { max-height: 62vh; } }

/* drag and drop a file onto the message box */
.is-drag { outline: 2px dashed #17b26a !important; outline-offset: 3px; background-color: rgba(23, 178, 106, .08) !important; border-radius: 12px; }
