trix-editor {
  border: 1px solid #bbb;
  border-radius: 3px;
  margin: 0;
  padding: 0.4em 0.6em;
  min-height: 5em;
  outline: none; }

trix-toolbar * {
  box-sizing: border-box; }

trix-toolbar .trix-button-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  overflow-x: auto; }

trix-toolbar .trix-button-group {
  display: flex;
  margin-bottom: 10px;
  border: 1px solid #bbb;
  border-top-color: #ccc;
  border-bottom-color: #888;
  border-radius: 3px; }
  trix-toolbar .trix-button-group:not(:first-child) {
    margin-left: 1.5vw; }
    @media (max-width: 768px) {
      trix-toolbar .trix-button-group:not(:first-child) {
        margin-left: 0; } }

trix-toolbar .trix-button-group-spacer {
  flex-grow: 1; }
  @media (max-width: 768px) {
    trix-toolbar .trix-button-group-spacer {
      display: none; } }

trix-toolbar .trix-button {
  position: relative;
  float: left;
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.75em;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 0.5em;
  margin: 0;
  outline: none;
  border: none;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  background: transparent; }
  trix-toolbar .trix-button:not(:first-child) {
    border-left: 1px solid #ccc; }
  trix-toolbar .trix-button.trix-active {
    background: #cbeefa;
    color: black; }
  trix-toolbar .trix-button:not(:disabled) {
    cursor: pointer; }
  trix-toolbar .trix-button:disabled {
    color: rgba(0, 0, 0, 0.125); }
  @media (max-width: 768px) {
    trix-toolbar .trix-button {
      letter-spacing: -0.01em;
      padding: 0 0.3em; } }

trix-toolbar .trix-button--icon {
  font-size: inherit;
  width: 2.6em;
  height: 1.6em;
  max-width: calc(0.8em + 4vw);
  text-indent: -9999px; }
  @media (max-width: 768px) {
    trix-toolbar .trix-button--icon {
      height: 2em;
      max-width: calc(0.8em + 3.5vw); } }
  trix-toolbar .trix-button--icon::before {
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.6;
    content: "";
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain; }
    @media (max-width: 768px) {
      trix-toolbar .trix-button--icon::before {
        right: 6%;
        left: 6%; } }
  trix-toolbar .trix-button--icon.trix-active::before {
    opacity: 1; }
  trix-toolbar .trix-button--icon:disabled::before {
    opacity: 0.125; }

trix-toolbar .trix-button--icon-attach::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M10.5%2018V7.5c0-2.25%203-2.25%203%200V18c0%204.125-6%204.125-6%200V7.5c0-6.375%209-6.375%209%200V18%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-miterlimit%3D%2210%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
  top: 8%;
  bottom: 4%; }

trix-toolbar .trix-button--icon-bold::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.522%2019.242a.5.5%200%200%201-.5-.5V5.35a.5.5%200%200%201%20.5-.5h5.783c1.347%200%202.46.345%203.24.982.783.64%201.216%201.562%201.216%202.683%200%201.13-.587%202.129-1.476%202.71a.35.35%200%200%200%20.049.613c1.259.56%202.101%201.742%202.101%203.22%200%201.282-.483%202.334-1.363%203.063-.876.726-2.132%201.12-3.66%201.12h-5.89ZM9.27%207.347v3.362h1.97c.766%200%201.347-.17%201.733-.464.38-.291.587-.716.587-1.27%200-.53-.183-.928-.513-1.198-.334-.273-.838-.43-1.505-.43H9.27Zm0%205.606v3.791h2.389c.832%200%201.448-.177%201.853-.497.399-.315.614-.786.614-1.423%200-.62-.22-1.077-.63-1.385-.418-.313-1.053-.486-1.905-.486H9.27Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-italic::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M9%205h6.5v2h-2.23l-2.31%2010H13v2H6v-2h2.461l2.306-10H9V5Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-link::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18.948%205.258a4.337%204.337%200%200%200-6.108%200L11.217%206.87a.993.993%200%200%200%200%201.41c.392.39%201.027.39%201.418%200l1.623-1.613a2.323%202.323%200%200%201%203.271%200%202.29%202.29%200%200%201%200%203.251l-2.393%202.38a3.021%203.021%200%200%201-4.255%200l-.05-.049a1.007%201.007%200%200%200-1.418%200%20.993.993%200%200%200%200%201.41l.05.049a5.036%205.036%200%200%200%207.091%200l2.394-2.38a4.275%204.275%200%200%200%200-6.072Zm-13.683%2013.6a4.337%204.337%200%200%200%206.108%200l1.262-1.255a.993.993%200%200%200%200-1.41%201.007%201.007%200%200%200-1.418%200L9.954%2017.45a2.323%202.323%200%200%201-3.27%200%202.29%202.29%200%200%201%200-3.251l2.344-2.331a2.579%202.579%200%200%201%203.631%200c.392.39%201.027.39%201.419%200a.993.993%200%200%200%200-1.41%204.593%204.593%200%200%200-6.468%200l-2.345%202.33a4.275%204.275%200%200%200%200%206.072Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-strike::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6%2014.986c.088%202.647%202.246%204.258%205.635%204.258%203.496%200%205.713-1.728%205.713-4.463%200-.275-.02-.536-.062-.781h-3.461c.398.293.573.654.573%201.123%200%201.035-1.074%201.787-2.646%201.787-1.563%200-2.773-.762-2.91-1.924H6ZM6.432%2010h3.763c-.632-.314-.914-.715-.914-1.273%200-1.045.977-1.739%202.432-1.739%201.475%200%202.52.723%202.617%201.914h2.764c-.05-2.548-2.11-4.238-5.39-4.238-3.145%200-5.392%201.719-5.392%204.316%200%20.363.04.703.12%201.02ZM4%2011a1%201%200%201%200%200%202h15a1%201%200%201%200%200-2H4Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-quote::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M4.581%208.471c.44-.5%201.056-.834%201.758-.995C8.074%207.17%209.201%207.822%2010%208.752c1.354%201.578%201.33%203.555.394%205.277-.941%201.731-2.788%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.121-.49.16-.764.294-.286.567-.566.791-.835.222-.266.413-.54.524-.815.113-.28.156-.597.026-.908-.128-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.674-2.7c0-.905.283-1.59.72-2.088Zm9.419%200c.44-.5%201.055-.834%201.758-.995%201.734-.306%202.862.346%203.66%201.276%201.355%201.578%201.33%203.555.395%205.277-.941%201.731-2.789%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.122-.49.16-.764.294-.286.567-.566.791-.835.222-.266.412-.54.523-.815.114-.28.157-.597.026-.908-.127-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.672-2.701c0-.905.283-1.59.72-2.088Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-heading-1::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.5%207.5v-3h-12v3H14v13h3v-13h4.5ZM9%2013.5h3.5v-3h-10v3H6v7h3v-7Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-code::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.293%2011.293a1%201%200%200%200%200%201.414l4%204a1%201%200%201%200%201.414-1.414L5.414%2012l3.293-3.293a1%201%200%200%200-1.414-1.414l-4%204Zm13.414%205.414%204-4a1%201%200%200%200%200-1.414l-4-4a1%201%200%201%200-1.414%201.414L18.586%2012l-3.293%203.293a1%201%200%200%200%201.414%201.414Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-bullet-list::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%207.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203ZM8%206a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-2.5-5a1.5%201.5%200%201%201-3%200%201.5%201.5%200%200%201%203%200ZM5%2019.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-number-list::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%204h2v4H4V5H3V4Zm5%202a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-3.5-7H6v1l-1.5%202H6v1H3v-1l1.667-2H3v-1h2.5ZM3%2017v-1h3v4H3v-1h2v-.5H4v-1h1V17H3Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-undo::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%2014a1%201%200%200%200%201%201h6a1%201%200%201%200%200-2H6.257c2.247-2.764%205.151-3.668%207.579-3.264%202.589.432%204.739%202.356%205.174%205.405a1%201%200%200%200%201.98-.283c-.564-3.95-3.415-6.526-6.825-7.095C11.084%207.25%207.63%208.377%205%2011.39V8a1%201%200%200%200-2%200v6Zm2-1Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-redo::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2014a1%201%200%200%201-1%201h-6a1%201%200%201%201%200-2h3.743c-2.247-2.764-5.151-3.668-7.579-3.264-2.589.432-4.739%202.356-5.174%205.405a1%201%200%200%201-1.98-.283c.564-3.95%203.415-6.526%206.826-7.095%203.08-.513%206.534.614%209.164%203.626V8a1%201%200%201%201%202%200v6Zm-2-1Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-decrease-nesting-level::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-3.707-5.707a1%201%200%200%200%200%201.414l2%202a1%201%200%201%200%201.414-1.414L4.414%2012l1.293-1.293a1%201%200%200%200-1.414-1.414l-2%202Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-increase-nesting-level::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-2.293-2.293%202-2a1%201%200%200%200%200-1.414l-2-2a1%201%200%201%200-1.414%201.414L3.586%2012l-1.293%201.293a1%201%200%201%200%201.414%201.414Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-dialogs {
  position: relative; }

trix-toolbar .trix-dialog {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-size: 0.75em;
  padding: 15px 10px;
  background: #fff;
  box-shadow: 0 0.3em 1em #ccc;
  border-top: 2px solid #888;
  border-radius: 5px;
  z-index: 5; }

trix-toolbar .trix-input--dialog {
  font-size: inherit;
  font-weight: normal;
  padding: 0.5em 0.8em;
  margin: 0 10px 0 0;
  border-radius: 3px;
  border: 1px solid #bbb;
  background-color: #fff;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none; }
  trix-toolbar .trix-input--dialog.validate:invalid {
    box-shadow: #F00 0px 0px 1.5px 1px; }

trix-toolbar .trix-button--dialog {
  font-size: inherit;
  padding: 0.5em;
  border-bottom: none; }

trix-toolbar .trix-dialog--link {
  max-width: 600px; }

trix-toolbar .trix-dialog__link-fields {
  display: flex;
  align-items: baseline; }
  trix-toolbar .trix-dialog__link-fields .trix-input {
    flex: 1; }
  trix-toolbar .trix-dialog__link-fields .trix-button-group {
    flex: 0 0 content;
    margin: 0; }

trix-editor [data-trix-mutable]:not(.attachment__caption-editor) {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none; }

trix-editor [data-trix-mutable]::-moz-selection,
trix-editor [data-trix-cursor-target]::-moz-selection, trix-editor [data-trix-mutable] ::-moz-selection {
  background: none; }

trix-editor [data-trix-mutable]::selection,
trix-editor [data-trix-cursor-target]::selection, trix-editor [data-trix-mutable] ::selection {
  background: none; }

trix-editor .attachment__caption-editor:focus[data-trix-mutable]::-moz-selection {
  background: highlight; }

trix-editor .attachment__caption-editor:focus[data-trix-mutable]::selection {
  background: highlight; }

trix-editor [data-trix-mutable].attachment.attachment--file {
  box-shadow: 0 0 0 2px highlight;
  border-color: transparent; }

trix-editor [data-trix-mutable].attachment img {
  box-shadow: 0 0 0 2px highlight; }

trix-editor .attachment {
  position: relative; }
  trix-editor .attachment:hover {
    cursor: default; }

trix-editor .attachment--preview .attachment__caption:hover {
  cursor: text; }

trix-editor .attachment__progress {
  position: absolute;
  z-index: 1;
  height: 20px;
  top: calc(50% - 10px);
  left: 5%;
  width: 90%;
  opacity: 0.9;
  transition: opacity 200ms ease-in; }
  trix-editor .attachment__progress[value="100"] {
    opacity: 0; }

trix-editor .attachment__caption-editor {
  display: inline-block;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  color: inherit;
  text-align: center;
  vertical-align: top;
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none; }

trix-editor .attachment__toolbar {
  position: absolute;
  z-index: 1;
  top: -0.9em;
  left: 0;
  width: 100%;
  text-align: center; }

trix-editor .trix-button-group {
  display: inline-flex; }

trix-editor .trix-button {
  position: relative;
  float: left;
  color: #666;
  white-space: nowrap;
  font-size: 80%;
  padding: 0 0.8em;
  margin: 0;
  outline: none;
  border: none;
  border-radius: 0;
  background: transparent; }
  trix-editor .trix-button:not(:first-child) {
    border-left: 1px solid #ccc; }
  trix-editor .trix-button.trix-active {
    background: #cbeefa; }
  trix-editor .trix-button:not(:disabled) {
    cursor: pointer; }

trix-editor .trix-button--remove {
  text-indent: -9999px;
  display: inline-block;
  padding: 0;
  outline: none;
  width: 1.8em;
  height: 1.8em;
  line-height: 1.8em;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid highlight;
  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.25); }
  trix-editor .trix-button--remove::before {
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.7;
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg%20height%3D%2224%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M19%206.41%2017.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22%2F%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 90%; }
  trix-editor .trix-button--remove:hover {
    border-color: #333; }
    trix-editor .trix-button--remove:hover::before {
      opacity: 1; }

trix-editor .attachment__metadata-container {
  position: relative; }

trix-editor .attachment__metadata {
  position: absolute;
  left: 50%;
  top: 2em;
  transform: translate(-50%, 0);
  max-width: 90%;
  padding: 0.1em 0.6em;
  font-size: 0.8em;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 3px; }
  trix-editor .attachment__metadata .attachment__name {
    display: inline-block;
    max-width: 100%;
    vertical-align: bottom;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; }
  trix-editor .attachment__metadata .attachment__size {
    margin-left: 0.2em;
    white-space: nowrap; }

.trix-content {
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word; }
  .trix-content * {
    box-sizing: border-box;
    margin: 0;
    padding: 0; }
  .trix-content h1 {
    font-size: 1.2em;
    line-height: 1.2; }
  .trix-content blockquote {
    border: 0 solid #ccc;
    border-left-width: 0.3em;
    margin-left: 0.3em;
    padding-left: 0.6em; }
  .trix-content [dir=rtl] blockquote,
  .trix-content blockquote[dir=rtl] {
    border-width: 0;
    border-right-width: 0.3em;
    margin-right: 0.3em;
    padding-right: 0.6em; }
  .trix-content li {
    margin-left: 1em; }
  .trix-content [dir=rtl] li {
    margin-right: 1em; }
  .trix-content pre {
    display: inline-block;
    width: 100%;
    vertical-align: top;
    font-family: monospace;
    font-size: 0.9em;
    padding: 0.5em;
    white-space: pre;
    background-color: #eee;
    overflow-x: auto; }
  .trix-content img {
    max-width: 100%;
    height: auto; }
  .trix-content .attachment {
    display: inline-block;
    position: relative;
    max-width: 100%; }
    .trix-content .attachment a {
      color: inherit;
      text-decoration: none; }
      .trix-content .attachment a:hover, .trix-content .attachment a:visited:hover {
        color: inherit; }
  .trix-content .attachment__caption {
    text-align: center; }
    .trix-content .attachment__caption .attachment__name + .attachment__size::before {
      content: ' \2022 '; }
  .trix-content .attachment--preview {
    width: 100%;
    text-align: center; }
    .trix-content .attachment--preview .attachment__caption {
      color: #666;
      font-size: 0.9em;
      line-height: 1.2; }
  .trix-content .attachment--file {
    color: #333;
    line-height: 1;
    margin: 0 2px 2px 2px;
    padding: 0.4em 1em;
    border: 1px solid #bbb;
    border-radius: 5px; }
  .trix-content .attachment-gallery {
    display: flex;
    flex-wrap: wrap;
    position: relative; }
    .trix-content .attachment-gallery .attachment {
      flex: 1 0 33%;
      padding: 0 0.5em;
      max-width: 33%; }
    .trix-content .attachment-gallery.attachment-gallery--2 .attachment, .trix-content .attachment-gallery.attachment-gallery--4 .attachment {
      flex-basis: 50%;
      max-width: 50%; }
/*
 * Provides a drop-in pointer for the default Trix stylesheet that will format the toolbar and
 * the trix-editor content (whether displayed or under editing). Feel free to incorporate this
 * inclusion directly in any other asset bundle and remove this file.
 *

*/

/*
 * We need to override trix.css’s image gallery styles to accommodate the
 * <action-text-attachment> element we wrap around attachments. Otherwise,
 * images in galleries will be squished by the max-width: 33%; rule.
*/
.trix-content .attachment-gallery > action-text-attachment,
.trix-content .attachment-gallery > .attachment {
  flex: 1 0 33%;
  padding: 0 0.5em;
  max-width: 33%;
}

.trix-content .attachment-gallery.attachment-gallery--2 > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--2 > .attachment, .trix-content .attachment-gallery.attachment-gallery--4 > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--4 > .attachment {
  flex-basis: 50%;
  max-width: 50%;
}

.trix-content action-text-attachment .attachment {
  padding: 0 !important;
  max-width: 100% !important;
}
@tailwind base;
@tailwind components;
@tailwind utilities;

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/
@import 'actiontext.css';
/* Scoped to the CS workspace. CMS navigation markup/icons remain shared. */
.chat-inbox {
  --cms-primary: #222b78;
  --cms-secondary: #cdd5fb;
  --cms-muted: #7b839c;
  --cms-border: #e9ecf4;
  --chat-rail-width: 72px;
  margin: 0; background: #f7f8fc; color: #27324d;
  font: 13px/1.5 "Segoe UI", system-ui, sans-serif;
}
.chat-inbox * { box-sizing: border-box; }
.chat-inbox [hidden] { display: none !important; }
.chat-inbox button, .chat-inbox input, .chat-inbox textarea, .chat-inbox select { font: inherit; }
.chat-inbox button, .chat-inbox select { cursor: pointer; }
.chat-inbox button { border: 1px solid var(--cms-border); background: white; border-radius: 9px; padding: 8px 12px; color: var(--cms-primary); transition: background .16s, box-shadow .16s; }
.chat-inbox button:hover { background: #f0f2fc; }
.chat-inbox button:disabled { opacity: .5; cursor: not-allowed; }
.chat-inbox input, .chat-inbox select, .chat-inbox textarea { border: 1px solid #e1e5ef; border-radius: 9px; background: white; padding: 9px 11px; width: 100%; color: #27324d; }
.chat-inbox :is(input, select, textarea, button, a):focus-visible { outline: 3px solid #8e9ee9; outline-offset: 2px; }
.chat-inbox input::placeholder, .chat-inbox textarea::placeholder { color: #9199af; }
.chat-inbox label { display: block; font-size: 11px; color: #7c859c; }
.chat-inbox svg { flex-shrink: 0; vertical-align: middle; }
.chat-inbox p { margin: 0; }
.chat-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.chat-inbox #chat-inbox { padding-left: var(--chat-rail-width); height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.chat-inbox .chat-primary { background: var(--cms-primary); color: #fff; border-color: var(--cms-primary); font-weight: 600; }
.chat-inbox .chat-primary:hover { background: #303c94; }
.chat-inbox .chat-icon-button { width: 36px; height: 36px; flex-shrink: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-color: transparent; background: transparent; color: #7b85a1; }
.chat-inbox .chat-icon-button:hover { background: #eef1fc; color: var(--cms-primary); }
/* The real CMS sidebar in compact mode: original SVGs, links and hierarchy. */
.chat-brand-rail { position: fixed; inset: 0 auto 0 0; width: var(--chat-rail-width); z-index: 40; background: var(--cms-primary); color: white; }
.chat-brand-rail #default-sidebar { position: static; width: 100%; height: 100%; display: flex; flex-direction: column; padding: 16px 10px 10px; }
.chat-brand-rail #default-sidebar > div:first-child { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-brand-rail #default-sidebar > div:first-child > div:first-child { display: flex; justify-content: center; margin: 4px 0 18px; }
.chat-brand-rail img { width: 42px; height: 42px; }
.chat-brand-rail [data-mobile-sidebar-close] { display: none; }
.chat-brand-rail #default-sidebar > div:first-child > div:nth-child(2) { display: none; }
.chat-brand-rail ul { list-style: none; margin: 0; padding: 0; }
.chat-brand-rail #default-sidebar > div:first-child > ul { display: flex; flex-direction: column; gap: 5px; }
.chat-brand-rail li { position: relative; }
.chat-brand-rail #default-sidebar > div:first-child > ul > li > :is(a, button),
.chat-brand-rail #default-sidebar > div:not(:first-child):not(:last-child) > a { display: flex; align-items: center; justify-content: center; width: 46px; height: 43px; border: 0; padding: 0; border-radius: 11px; color: #e1e5ff; text-decoration: none; background: transparent; }
.chat-brand-rail :is(a, button) > svg { width: 23px; height: 23px; }
.chat-brand-rail #default-sidebar > div:first-child > ul > li > :is(a, button) > :not(svg:first-child),
.chat-brand-rail #default-sidebar > div:not(:first-child):not(:last-child) > a > span { display: none; }
.chat-brand-rail #default-sidebar > div:first-child > ul > li > div { height: 1px; background: #ffffff20; margin: 7px 8px; }
.chat-brand-rail #default-sidebar > div:first-child > ul > li > div > span { display: none; }
.chat-brand-rail #default-sidebar > div:first-child > ul > li > :is(a, button):hover,
.chat-brand-rail #default-sidebar > div:first-child > ul > li > :is(a, button)[aria-expanded=true],
.chat-brand-rail #default-sidebar > div:first-child > ul > li > a[aria-current=page] { background: #ffffff19; color: #fff; }
.chat-brand-rail #default-sidebar > div:first-child > ul > li > a[aria-current=page] { box-shadow: inset 3px 0 #cdd5fb; }
.chat-brand-rail #default-sidebar > div:not(:first-child) { padding: 5px 0; border-top: 1px solid #ffffff13; }
.chat-brand-rail #default-sidebar > div:last-child { color: #b6bde5; text-align: center; font-size: 9px; white-space: nowrap; padding: 10px 0 0; }
.chat-brand-rail #default-sidebar > div:last-child p { font-size: 9px; }
.chat-brand-rail #default-sidebar > div:first-child > ul > li > ul { display: none; }
/* Fixed flyouts escape the narrow rail and keep nested archive links reachable. */
.chat-brand-rail #default-sidebar > div:first-child > ul > li > ul.chat-rail-flyout {
  display: block; position: fixed; left: calc(var(--chat-rail-width) - 2px); top: var(--flyout-top, 80px);
  width: 264px; max-height: calc(100dvh - var(--flyout-top, 80px) - 12px); overflow-y: auto;
  padding: 10px; border: 1px solid #e3e7f2; border-radius: 0 14px 14px 14px;
  background: #fff; color: #293553; box-shadow: 8px 12px 36px #202b5b24;
  animation: chat-flyout-in .14s ease-out;
}
.chat-rail-flyout::before { content: attr(aria-label); display: block; color: #8b94ab; text-transform: uppercase; letter-spacing: 1px; font-size: 10px; padding: 7px 9px 10px; }
.chat-brand-rail .chat-rail-flyout :is(a, button) { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: #344064; text-decoration: none; text-align: left; font-size: 12px; }
.chat-brand-rail .chat-rail-flyout :is(a, button):hover { background: #f0f2fe; color: var(--cms-primary); }
.chat-brand-rail .chat-rail-flyout :is(a, button) > svg { width: 18px; height: 18px; }
.chat-brand-rail .chat-rail-flyout svg [fill=white] { fill: currentColor; }
.chat-brand-rail .chat-rail-flyout button > svg:last-child { width: 10px; margin-left: auto; }
.chat-brand-rail .chat-rail-flyout ul { display: none; padding-left: 16px; border-left: 1px solid #e9ecf6; margin-left: 10px; }
.chat-brand-rail .chat-rail-flyout li:is(:hover, :focus-within, .chat-nav-expanded) > ul { display: block; }
.chat-rail-tooltip { position: fixed; z-index: 45; left: calc(var(--chat-rail-width) + 8px); background: #25305b; color: white; border-radius: 7px; padding: 7px 11px; font-size: 11px; pointer-events: none; box-shadow: 0 4px 15px #18235020; white-space: nowrap; }
@keyframes chat-flyout-in { from { opacity: 0; translate: -4px 0; } to { opacity: 1; translate: 0 0; } }
/* Workspace shell */
.chat-topbar { height: 76px; flex-shrink: 0; display: flex; align-items: center; gap: 20px; padding: 14px 25px; background: white; border-bottom: 1px solid var(--cms-border); }
.chat-breadcrumb { font-size: 10px; color: #9aa3b8; margin-bottom: 3px !important; }
.chat-breadcrumb span { margin: 0 6px; color: #c1c6d8; }
.chat-topbar h1 { font-size: 22px; letter-spacing: -.6px; margin: 0; font-weight: 650; color: #222d4c; }
.chat-workspace-badge { vertical-align: middle; background: #f0f2ff; color: #6571ac; font-size: 9px; padding: 4px 8px; border: 1px solid #e5e9fb; border-radius: 6px; margin-left: 8px; font-weight: 500; letter-spacing: 0; }
.chat-agent { margin-left: auto; display: flex; align-items: center; gap: 9px; font-size: 11px; color: #536080; }
.chat-agent a { margin-left: 12px; color: #8993aa; text-decoration: none; }
.chat-dot { width: 7px; height: 7px; border-radius: 100%; background: #43aa89; box-shadow: 0 0 0 4px #ecf8f1; }
.chat-workspace { display: grid; grid-template-columns: 316px minmax(0,1fr); flex: 1; min-height: 0; }
.chat-threads { background: white; border-right: 1px solid var(--cms-border); display: flex; flex-direction: column; min-height: 0; }
.chat-inbox-heading { padding: 20px 18px 12px; display: flex; align-items: center; justify-content: space-between; }
.chat-eyebrow { color: #8995b1; font-size: 9px; letter-spacing: 1.5px; font-weight: 600; }
.chat-inbox-heading h2 { font-size: 21px; letter-spacing: -.5px; margin: 2px 0 0; font-weight: 650; }
.chat-inbox-heading h2 span { display: inline-block; vertical-align: middle; font-size: 10px; background: #eff1fc; color: #5966a4; border-radius: 7px; padding: 2px 6px; margin-left: 5px; letter-spacing: 0; }
.chat-filters { padding: 0 16px 12px; border-bottom: 1px solid var(--cms-border); }
.chat-search-toolbar { display: flex; align-items: center; gap: 7px; }
.chat-inbox .chat-search-field { display: flex; align-items: center; background: #f6f7fb; border: 1px solid #edf0f6; border-radius: 9px; padding-left: 10px; flex: 1; min-width: 0; }
.chat-search-field svg { width: 16px; color: #9ba4b9; }
.chat-inbox .chat-search-field input { background: transparent; border: 0; min-width: 0; padding: 10px 6px; font-size: 11px; }
.chat-new-button { display: flex; align-items: center; gap: 4px; height: 37px; padding: 0 9px !important; white-space: nowrap; font-size: 11px !important; }
.chat-new-button svg { width: 15px; }
.chat-filter-row { display: flex; gap: 7px; margin-top: 9px; }
.chat-filter-row > * { width: 50%; min-width: 0; }
.chat-filter-row select { font-size: 11px; padding: 6px 7px; background-color: #fff; height: 31px; }
.chat-filter-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; }
.chat-inbox .chat-checkbox { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.chat-checkbox input { width: 13px; height: 13px; accent-color: var(--cms-primary); margin: 0; }
.chat-inbox .chat-apply-filters { border: 0; color: #5968a6; font-size: 10px; padding: 5px 7px; }
.chat-active-filters { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 7px; }
.chat-inbox .chat-filter-chip { font-size: 10px; background: #f0f2ff; border: 0; padding: 3px 7px; color: #5664a1; }
#chat-thread-list { flex: 1; overflow: auto; padding: 7px 8px; }
.chat-inbox .chat-thread-card { display: flex; align-items: center; gap: 10px; width: 100%; height: 84px; padding: 11px 10px; margin: 3px 0; border: 1px solid transparent; border-radius: 11px; text-align: left; }
.chat-thread-card:hover { background: #f7f8fc !important; }
.chat-thread-card[aria-current=true] { background: #f0f2ff !important; border-color: #e4e8fc !important; box-shadow: inset 3px 0 #5969c0; }
.chat-card-avatar, .chat-header-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 14px; background: #eef1fd; color: #6978b4; font-size: 12px; font-weight: 600; }
.chat-thread-card[aria-current=true] .chat-card-avatar { background: #dfe5ff; color: var(--cms-primary); }
.chat-card-content { flex: 1; min-width: 0; }
.chat-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.chat-card-heading strong { font-size: 12px; font-weight: 600; color: #303c60; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-card-time { font-size: 9px; color: #a1a9ba; flex-shrink: 0; }
.chat-card-preview { font-size: 11px; color: #8790a7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 3px 0 !important; }
.chat-card-meta { display: flex; align-items: center; gap: 7px; color: #98a1b7; font-size: 9px; min-width: 0; }
.chat-card-meta > span:not(.chat-card-unread) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-card-status { text-transform: capitalize; }
.chat-card-status::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #68ad94; margin-right: 4px; vertical-align: middle; }
.chat-needs-reply { color: #ad7726; }
.chat-card-unread { margin-left: auto; background: var(--cms-primary); color: white; border-radius: 6px; padding: 0 5px; font-size: 9px; }
.chat-inbox #chat-more-threads { margin: 8px 16px; font-size: 11px; flex-shrink: 0; }
.chat-conversation { overflow: hidden; position: relative; background: #f7f8fc; min-width: 0; }
.chat-empty-selection { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 25px; color: #939db5; background: radial-gradient(ellipse at center,#edf0ff,#f8f9fd 65%); }
.chat-empty-selection h2 { color: #344273; font-size: 28px; letter-spacing: -.7px; line-height: 1.4; font-weight: 550; margin: 14px 0; }
.chat-empty-selection p { font-size: 12px; max-width: 340px; }
.chat-empty-symbol { width: 76px; height: 76px; border-radius: 23px; background: white; color: #8b9edb; display: grid; place-items: center; font-size: 38px; border: 1px solid #e2e7fa; margin-bottom: 24px; }
.chat-inbox #chat-thread { height: 100%; display: grid; grid-template-columns: minmax(0,1fr) 238px; grid-template-rows: auto minmax(0,1fr) auto; }
.chat-thread-header { min-height: 82px; grid-column: 1; display: flex; align-items: center; gap: 11px; padding: 14px 22px; background: white; border-bottom: 1px solid var(--cms-border); min-width: 0; }
.chat-customer-heading { min-width: 0; }
.chat-thread-header h2 { font-size: 15px; font-weight: 650; margin: 0 0 3px; color: #2c3857; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 250px; }
.chat-thread-header p { font-size: 10px; color: #9aa3b8; }
.chat-state { font-size: 9px; border-radius: 5px; background: #edf7f2; color: #5c9c83; padding: 3px 7px; text-transform: capitalize; }
.chat-state[data-status=resolved] { color: #8991a6; background: #f1f3f7; }
.chat-thread-actions { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.chat-thread-actions label { font-size: 9px; margin: 0; color: #929bb1; }
.chat-thread-actions select { font-size: 10px; padding: 5px 7px; width: 130px; max-width: 14vw; border-color: #e8ebf5; }
.chat-thread-actions > button:not(.chat-icon-button) { font-size: 10px; height: 32px; padding: 5px 9px; background: #f7f8fe; }
.chat-history { grid-column: 1; grid-row: 2; overflow: auto; min-height: 0; padding: 20px 26px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d3d9eb transparent; background: #f7f8fc; }
.chat-history > button { display: block; margin: 0 auto 20px; border-color: #e4e9f6; background: #fff; font-size: 10px; border-radius: 20px; }
.chat-date-separator { display: flex; align-items: center; gap: 16px; margin: 12px 0 23px; color: #a5aec2; font-size: 9px; text-align: center; }
.chat-date-separator::before, .chat-date-separator::after { content: ''; flex: 1; height: 1px; background: #e9ecf5; }
.chat-message { width: fit-content; max-width: min(78%,640px); margin: 0 0 17px; }
.chat-message.agent { margin-left: auto; }
.chat-message-author { font-size: 9px; font-weight: 500; color: #8a96af; margin: 0 2px 5px; }
.chat-message.agent .chat-message-author { text-align: right; color: #8b96b6; }
.chat-message-bubble { white-space: pre-wrap; overflow-wrap: anywhere; background: white; border: 1px solid #e9edf5; border-radius: 13px 13px 13px 3px; padding: 10px 14px; line-height: 1.65; font-size: 12px; box-shadow: 0 2px 4px #27367002; }
.chat-message.agent .chat-message-bubble { background: var(--cms-primary); color: #fff; border-color: var(--cms-primary); border-radius: 13px 13px 3px 13px; box-shadow: 0 3px 8px #222b780d; }
.chat-message-time { color: #a6aec1; font-size: 8px; margin: 5px 2px 0; }
.chat-message.agent .chat-message-time { text-align: right; }
.chat-message a { color: inherit; }
.chat-text-link { text-decoration: underline; text-underline-offset: 3px; }
.chat-text-link:hover { text-decoration-thickness: 2px; }
/* Contact panel / responsive drawer */
.chat-contact-details { grid-column: 2; grid-row: 1/4; min-height: 0; background: #fff; border-left: 1px solid var(--cms-border); padding: 0 20px; overflow: auto; }
.chat-details-heading { height: 60px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f0f2f7; }
.chat-details-heading h3 { color: #65718c; font-size: 11px; font-weight: 500; margin: 0; }
.chat-contact-profile { text-align: center; padding: 26px 0 23px; }
.chat-contact-avatar { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 21px; background: #edf1ff; box-shadow: 0 0 0 6px #f8f9ff; color: #6274b2; display: grid; place-items: center; font-size: 21px; font-weight: 600; }
.chat-contact-profile h3 { font-size: 13px; color: #3c4967; margin: 0; overflow-wrap: anywhere; }
.chat-contact-kind { font-size: 10px; color: #a7afc1; margin-top: 4px !important; }
.chat-contact-section { border-top: 1px solid #eef1f7; padding: 23px 0; }
.chat-contact-section h4 { font-size: 8px; letter-spacing: 1.25px; color: #a3acc2; margin: 0 0 14px; font-weight: 600; }
.chat-contact-section label { font-size: 10px; color: #a0a9bd; }
.chat-contact-section p { font-size: 11px; line-height: 1.8; color: #8190a8; margin-top: 4px; overflow-wrap: anywhere; }
.chat-private-note { display: flex; align-items: flex-start; gap: 7px; background: #f7f8fd; border-radius: 9px; padding: 12px; font-size: 10px; color: #7581a5; margin-top: 23px; }
.chat-private-note svg { width: 14px; height: 17px; }
.chat-private-note span { display: block; font-size: 9px; line-height: 1.8; color: #a4adc3; margin-top: 5px; }
.chat-details-backdrop { position: absolute; inset: 0; z-index: 21; border: 0 !important; border-radius: 0 !important; background: #17204d33 !important; }
.chat-inbox .chat-mobile-back { display: none; }
/* Compact composer; all media / recording / location controls remain real. */
.chat-composer { grid-column: 1; grid-row: 3; padding: 11px 20px 8px; background: #fff; border-top: 1px solid var(--cms-border); min-width: 0; }
.chat-compose-heading { display: flex; justify-content: space-between; align-items: center; margin: 0 3px 6px; }
.chat-compose-heading label { color: #a0a8ba; font-size: 9px; }
.chat-compose-heading strong { font-weight: 500; color: #7d88a4; }
.chat-compose-heading select { width: auto; font-size: 9px; border: 0; background: #f7f8fc; padding: 3px 7px; }
.chat-composer-bar { display: flex; align-items: flex-end; gap: 7px; padding: 5px; background: #f7f8fc; border: 1px solid #eceff6; border-radius: 16px; }
.chat-composer-bar:focus-within { border-color: #c6cfee; box-shadow: 0 0 0 2px #edf0fd; }
.chat-inbox .chat-composer-bar textarea { display: block; flex: 1; min-width: 0; min-height: 35px; max-height: 142px; height: 35px; padding: 8px 5px; border: 0; border-radius: 0; resize: none; background: transparent; font-size: 12px; line-height: 20px; outline: none; overflow-y: auto; }
.chat-inbox .chat-send-button { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; padding: 0; border-radius: 11px; flex-shrink: 0; }
.chat-send-button.is-empty { display: none !important; }
.chat-send-button.is-sending svg { animation: chat-send-pulse .8s ease-in-out infinite alternate; }
@keyframes chat-send-pulse { to { opacity: .3; } }
.chat-attachment-control { position: relative; flex-shrink: 0; }
.chat-attachment-menu { position: absolute; bottom: calc(100% + 12px); left: 0; width: 175px; padding: 6px; background: white; border: 1px solid #e3e8f5; border-radius: 12px; box-shadow: 0 10px 35px #202b5b21; z-index: 15; }
.chat-inbox .chat-attachment-menu button { display: flex; align-items: center; gap: 10px; border: 0; width: 100%; padding: 9px; text-align: left; font-size: 12px; }
.chat-attachment-menu svg { width: 17px; }
.chat-special-compose-label { flex: 1; padding: 9px 5px; font-size: 11px; color: #8792ae; }
.chat-compose-footer { display: flex; justify-content: space-between; gap: 8px; margin: 5px 4px 0; color: #a4adc0; font-size: 8px; }
.chat-media-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 9px 2px; color: #929bb0; font-size: 10px; }
.chat-file-picker { display: flex !important; align-items: center; gap: 8px; color: #68789b !important; font-size: 11px !important; }
.chat-file-picker input { max-width: 210px; padding: 4px; font-size: 10px; border: 0; }
#chat-record-controls { display: flex; align-items: center; gap: 10px; padding: 5px 0 10px; }
#chat-record-controls button { font-size: 11px; padding: 6px 9px; }
#chat-record-time { font-size: 11px; color: #b35c6c; font-variant-numeric: tabular-nums; }
#chat-media-preview { background: #f7f8ff; border: 1px solid #e4e9f9; border-radius: 10px; padding: 10px; margin-bottom: 9px; }
#chat-media-preview-content { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11px; }
#chat-media-preview img { max-width: 130px; max-height: 90px; border-radius: 8px; }
#chat-media-preview audio, .chat-message audio { max-width: 100%; width: 260px; height: 38px; }
.chat-attachment-image { display: block; max-width: min(280px,100%); max-height: 300px; border-radius: 8px; object-fit: contain; }
.chat-pdf-link { display: block; padding: 10px; background: #cdd5fb22; border-radius: 7px; }
.chat-media-meta { display: block; font-size: 10px; margin-top: 5px; }
#chat-upload-progress { width: 100%; height: 6px; accent-color: var(--cms-primary); }
.chat-inbox #chat-discard-media { margin-top: 6px; color: #ae5267; padding: 4px 8px; font-size: 10px; }
#chat-location { padding: 0 0 10px; }
#chat-location input { padding: 5px 8px; font-size: 11px; }
#chat-location > label { margin-top: 7px; }
.chat-empty, .chat-readonly { padding: 25px; color: #9aa3b6; text-align: center; font-size: 12px; }
.chat-readonly { grid-column: 1; grid-row: 3; }
#chat-alert { background: #fff3e9; color: #9b6248; padding: 9px 22px; font-size: 12px; flex-shrink: 0; }
/* Existing outreach flow */
.chat-start-dialog { width: min(560px,94vw); border: 1px solid #e4e8f6; border-radius: 19px; padding: 26px; box-shadow: 0 30px 100px #19257d30; color: #293756; max-height: 90dvh; }
.chat-start-dialog::backdrop { background: #151e4d60; backdrop-filter: blur(4px); }
.chat-dialog-heading { display: flex; justify-content: space-between; align-items: start; }
.chat-dialog-heading h2 { font-size: 22px; letter-spacing: -.4px; margin: 4px 0; }
.chat-dialog-heading button { font-size: 23px; padding: 0 8px; border: 0; }
.chat-dialog-description { font-size: 12px; color: #8b95ae; line-height: 1.8; margin: 10px 0 20px !important; }
.chat-search-row { display: flex; gap: 8px; }
.chat-patient-result { display: block; width: 100%; text-align: left; margin: 7px 0; padding: 12px !important; }
.chat-patient-result[aria-current=true] { background: #f0f2ff !important; border-color: #c3cdef !important; }
.chat-patient-result strong { display: block; font-size: 12px; }
.chat-patient-result span { font-size: 10px; color: #929cb1; }
#chat-patient-results { max-height: 210px; overflow: auto; margin: 14px 0; }
#chat-first-body { margin-top: 6px; resize: vertical; font-size: 12px; }
#chat-start-send { width: 100%; font-size: 12px; margin-top: 5px; }
#chat-start-error { font-size: 11px; color: #a35a3a; }
@media (max-width: 1450px) {
  .chat-workspace { grid-template-columns: 294px minmax(0,1fr); }
  .chat-inbox #chat-thread { grid-template-columns: minmax(0,1fr) 210px; }
  .chat-thread-header { padding: 12px 16px; gap: 8px; }
  .chat-thread-header h2 { max-width: 170px; font-size: 14px; }
  .chat-contact-details { padding: 0 16px; }
  .chat-thread-actions select { width: 110px; }
}
@media (max-width: 1250px) {
  .chat-inbox #chat-thread { grid-template-columns: minmax(0,1fr); }
  .chat-contact-details { display: none; }
  .chat-inbox #chat-details-toggle { color: #6f7fa6; }
}
@media (min-width: 1251px) {
  #chat-thread.chat-details-collapsed { grid-template-columns: minmax(0,1fr); }
  #chat-thread.chat-details-collapsed .chat-contact-details { display: none; }
}
@media (max-width: 850px) {
  .chat-inbox { --chat-rail-width: 60px; }
  .chat-brand-rail #default-sidebar { padding: 12px 7px 8px; }
  .chat-topbar { height: 66px; padding: 10px 16px; }
  .chat-topbar h1 { font-size: 19px; }
  .chat-workspace { grid-template-columns: 265px minmax(0,1fr); }
  .chat-workspace-badge, .chat-agent a { display: none; }
  .chat-thread-header { flex-wrap: wrap; gap: 6px; padding: 10px 13px; }
  .chat-header-avatar { width: 33px; height: 33px; border-radius: 10px; }
  .chat-thread-actions { gap: 4px; }
  .chat-thread-actions label > span { display: none; }
  .chat-thread-actions select { max-width: none; width: 100px; }
  .chat-history { padding: 15px; }
  .chat-message { max-width: 92%; }
  .chat-composer { padding: 10px 11px 7px; }
  .chat-keyboard-hint { display: none; }
}
@media (max-width: 680px) {
  .chat-workspace { display: block; position: relative; }
  .chat-threads, .chat-conversation { height: 100%; }
  .chat-conversation { display: none; }
  #chat-inbox.chat-thread-open .chat-threads { display: none; }
  #chat-inbox.chat-thread-open .chat-conversation { display: block; }
  .chat-inbox .chat-mobile-back { display: inline-flex; width: 27px; }
  .chat-thread-header { gap: 7px; }
  .chat-thread-header h2 { max-width: 150px; font-size: 13px; }
  .chat-thread-header .chat-header-avatar { display: none; }
  .chat-thread-actions { margin-left: auto; }
  .chat-thread-actions select { width: 93px; }
  .chat-thread-header .chat-state { display: none; }
  .chat-thread-actions > button:not(.chat-icon-button) { padding: 4px 6px; }
  .chat-agent { font-size: 10px; }
  .chat-inbox #chat-thread { grid-template-rows: auto minmax(0,1fr) auto; }
  .chat-inbox-heading { padding-top: 16px; }
  .chat-message { max-width: 96%; }
  .chat-compose-heading label { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-height: 720px) {
  .chat-brand-rail #default-sidebar > div:first-child > div:first-child { margin-bottom: 8px; }
  .chat-brand-rail #default-sidebar > div:first-child > ul { gap: 1px; }
  .chat-brand-rail #default-sidebar > div:first-child > ul > li > :is(a, button), .chat-brand-rail #default-sidebar > div:not(:first-child):not(:last-child) > a { height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-inbox *, .chat-inbox *::before, .chat-inbox *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Reference composition: floating panels on a soft indigo workspace. */
.chat-inbox { --cms-primary: #2034b1; --cms-border: #e1e5f6; --chat-rail-width: 74px; color: #1c264d; background: #edf0ff; }
.chat-inbox #chat-inbox { background: radial-gradient(ellipse at 80% -10%,#dce3ff80,transparent 48%),linear-gradient(120deg,#fafbff,#eef1ff 72%,#e9eeff); }
.chat-brand-rail { background: linear-gradient(165deg,#293368,#242d6c 75%,#283270); box-shadow: 1px 0 5px #28316922; }
.chat-brand-rail #default-sidebar { padding: 18px 10px 10px; }
.chat-brand-rail #default-sidebar > div:first-child > div:first-child { margin: 4px 0 35px; }
.chat-brand-rail #default-sidebar > div:first-child > ul { gap: 7px; }
.chat-brand-rail #default-sidebar > div:first-child > ul > li > :is(a,button) { width: 46px; height: 44px; }
.chat-brand-rail #default-sidebar > div:first-child > ul > li > div { display: none; }
.chat-brand-rail #default-sidebar > div:first-child > ul > li > a[aria-current=page] { background: linear-gradient(135deg,#4352c7,#3948ad); box-shadow: 0 5px 14px #14205833; }
.chat-topbar { height: 90px; padding: 15px 25px; border: 0; background: transparent; }
.chat-topbar h1 { color: #182349; font-size: 24px; letter-spacing: -.7px; }
.chat-breadcrumb { color: #6f7caa; font-size: 11px; margin-bottom: 4px !important; }
.chat-workspace-badge { background: #dfe4ff; border: 0; color: #354bc6; border-radius: 16px; padding: 5px 12px; font-size: 11px; margin-left: 10px; }
.chat-agent { gap: 14px; color: #273355; font-size: 12px; }
.chat-account-menu { position: relative; }
.chat-account-menu summary { display: flex; align-items: center; gap: 9px; list-style: none; padding: 8px 13px; background: #ffffff9c; border: 1px solid #ecedff; box-shadow: 0 3px 6px #38418508; border-radius: 25px; cursor: pointer; font-weight: 600; }
.chat-account-menu summary::-webkit-details-marker { display: none; }
.chat-chevron { margin-left: 4px; }
.chat-account-menu > div { position: absolute; top: calc(100% + 7px); right: 0; padding: 8px; min-width: 160px; background: white; border: 1px solid var(--cms-border); box-shadow: 0 7px 25px #25336a18; border-radius: 10px; z-index: 30; }
.chat-agent .chat-account-menu a { display: block; color: #43528c; padding: 6px; margin: 0; font-size: 12px; }
.chat-agent .chat-notifications-link { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #ffffffa8; color: #26355f; margin: 0; }
.chat-notifications-link span { position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; background: #df6578; border-radius: 50%; }
.chat-agent-avatar { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; background: #dce2ff; color: #263db7; font-weight: 650; }
.chat-workspace { grid-template-columns: 380px minmax(0,1fr); gap: 8px; padding: 0 8px 8px; }
.chat-threads { border: 1px solid #e6e9f7; border-radius: 16px; box-shadow: 0 2px 6px #26316a04; background: #ffffffdd; overflow: hidden; }
.chat-filters { position: relative; padding: 25px 11px 0; border-bottom: 1px solid #edf0fa; }
.chat-search-toolbar { gap: 11px; }
.chat-inbox .chat-search-field { background: #f8f9ff; border-color: #dde3f5; border-radius: 11px; height: 36px; padding-left: 11px; }
.chat-inbox .chat-search-field input { font-size: 11px; padding: 8px; }
.chat-search-field svg { color: #6877a7; }
.chat-search-field kbd { color: #7e8cb9; font-size: 10px; border: 1px solid #dce3f8; border-radius: 5px; padding: 0 4px; margin-right: 7px; white-space: nowrap; font-family: inherit; }
.chat-inbox .chat-new-button { height: 35px; padding: 0 13px !important; border-radius: 10px; background: var(--cms-primary); box-shadow: none; }
.chat-filter-row { position: relative; align-items: flex-start; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.chat-filter-row > label:first-child { width: 132px; }
.chat-filter-row > label:nth-child(2) { width: 90px; }
.chat-filter-row select { border-color: #dce2f5; box-shadow: 0 1px 2px #27356a08; font-size: 10px; border-radius: 10px; height: 32px; padding: 4px 6px; }
.chat-filter-row > .chat-active-filters { width: auto; flex: 1; min-width: 0; padding: 0; }
.chat-active-filters { gap: 4px; }
.chat-inbox .chat-filter-chip { display: flex; align-items: center; gap: 4px; min-height: 31px; border: 1px solid #dcebe8; border-radius: 10px; padding: 4px 8px; background: #f1f8f6; color: #3e8879; max-width: 100%; overflow-wrap: anywhere; }
.chat-filter-chip::before { content: ''; width: 6px; height: 6px; background: #25a780; border-radius: 50%; flex-shrink: 0; }
.chat-inbox #chat-filter-toggle { width: 32px; height: 32px; border: 1px solid #dce2f5; border-radius: 10px; box-shadow: 0 1px 2px #27356a08; color: #34467b; margin-left: auto; }
.chat-filter-toggle svg { width: 17px; }
.chat-filter-options { display: flex; align-items: center; justify-content: space-between; padding: 10px; margin: 8px 0; border: 1px solid #e2e7f8; border-radius: 10px; background: #f8f9ff; }
.chat-list-summary { display: flex; align-items: center; gap: 7px; height: 52px; font-size: 11px; color: #465681; }
.chat-list-summary button { display: flex; align-items: center; gap: 5px; margin-left: auto; background: transparent; border: 0; padding: 4px; font-size: 11px; color: #4e5d8c; }
.chat-list-summary button svg { width: 14px; height: 14px; }
.chat-unread-badge { padding: 0 5px; border-radius: 8px; color: #fff; background: #3449ba; font-size: 9px; }
#chat-thread-list { padding: 8px 10px; }
.chat-inbox .chat-thread-card { height: 84px; padding: 10px 12px; border-radius: 12px; }
.chat-thread-card[aria-current=true] { background: linear-gradient(110deg,#e7eaff,#e0e5fc) !important; border-color: #8e9bff !important; box-shadow: 0 0 0 1px #a9b3ff22,inset 0 0 15px #e1e5ff !important; }
.chat-card-avatar { width: 43px; height: 43px; border-radius: 50%; background: #e4e9ff; color: #2941b9; font-size: 14px; box-shadow: 0 4px 9px #5165bd0a; }
.chat-thread-card[aria-current=true] .chat-card-avatar { color: #2941b9; background: #dce2ff; }
.chat-card-heading strong { font-size: 13px; color: #263154; }
.chat-card-time { color: #6d7caa; font-size: 9px; }
.chat-card-preview { color: #53618b; font-size: 11px; margin: 2px 0 5px !important; }
.chat-card-meta { color: #4e608b; font-size: 10px; }
.chat-card-status { background: #ccece1; color: #358872; padding: 0 10px; border-radius: 10px; }
.chat-card-status::before { display: none; }
.chat-card-assignee { margin-left: auto; }
.chat-card-assignee::before { content: '♙'; font-size: 14px; margin-right: 4px; }
.chat-conversation { background: transparent; overflow: visible; }
.chat-inbox #chat-thread { grid-template-columns: minmax(0,1fr) 282px; column-gap: 8px; }
.chat-thread-header { min-height: 105px; padding: 16px 20px; border: 1px solid #dfe5f9; border-radius: 16px 16px 0 0; background: #ffffffba; gap: 12px; }
.chat-customer-heading { flex: 1; }
.chat-customer-title { display: flex; align-items: center; gap: 12px; margin: 3px 0 2px; }
.chat-thread-header h2 { font-size: 19px; letter-spacing: -.35px; color: #1f294a; max-width: 280px; margin: 0; }
.chat-thread-header .chat-eyebrow { font-size: 9px; color: #7783b1; letter-spacing: 1.5px; }
.chat-phone-line { display: flex; align-items: center; gap: 8px; }
.chat-thread-header .chat-phone-line p { color: #50618a; font-size: 12px; }
#chat-verified-icon { color: #31a47f; }
#chat-verified-icon svg { width: 15px; height: 15px; }
.chat-state { font-size: 10px; padding: 1px 11px; border-radius: 12px; background: #d6eee4; color: #318a70; font-weight: 600; }
.chat-thread-actions { gap: 9px; padding-left: 22px; border-left: 1px solid #d2daf2; }
.chat-thread-actions label { font-size: 11px; color: #45557b; }
.chat-thread-actions label > span { display: block; margin-bottom: 3px; }
.chat-assignment-field { position: relative; }
.chat-assignment-field > svg { position: absolute; left: 10px; top: 8px; width: 16px; height: 16px; color: #566491; pointer-events: none; }
.chat-thread-actions select { background: #fcfcff; width: 138px; max-width: none; font-size: 11px; padding: 7px 8px 7px 30px; height: 34px; border-radius: 10px; border-color: #dce2f5; box-shadow: 0 1px 2px #27356a08; }
.chat-thread-actions > button { align-self: flex-end; }
.chat-thread-actions #chat-resolve { background: #f3f5ff; color: #293e9f; height: 34px; padding: 5px 10px; border: 1px solid #dfe4f7; box-shadow: 0 1px 2px #27356a08; border-radius: 10px; }
#chat-resolve::before { content: '⊙'; font-size: 15px; margin-right: 5px; vertical-align: -1px; }
.chat-inbox #chat-details-toggle { height: 34px; width: 33px; border: 1px solid #dfe4f7; border-radius: 10px; background: #fcfcff; color: #293d7d; box-shadow: 0 1px 2px #27356a08; }
.chat-history { border-left: 1px solid #dfe5f9; border-right: 1px solid #dfe5f9; padding: 20px 18px; background-color: #f1f4ff; background-image: linear-gradient(145deg,transparent 42%,#e8edff66 42%,#f5f7ff99 75%,transparent 75%),radial-gradient(ellipse at 100% 0%,#dde5ff55,transparent 65%); }
.chat-date-separator { margin: 0 0 25px; display: block; width: fit-content; border: 1px solid #dfe5fa; border-radius: 14px; background: #f3f5ff; padding: 2px 15px; margin-left: auto; margin-right: auto; font-size: 10px; color: #53638b; }
.chat-date-separator::before, .chat-date-separator::after { display: none; }
.chat-message { position: relative; max-width: 85%; width: fit-content; padding-left: 48px; margin-bottom: 23px; }
.chat-message.agent { padding-left: 0; padding-right: 48px; }
.chat-message-avatar { position: absolute; left: 0; top: 18px; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: linear-gradient(#e1e6ff,#d6ddff); box-shadow: 0 2px 5px #5260b80a; color: #3046bb; font-size: 11px; font-weight: 650; }
.chat-message.agent .chat-message-avatar { left: auto; right: 0; }
.chat-message-author { color: #55648c; font-size: 10px; margin-bottom: 5px; }
.chat-message.agent .chat-message-author { color: #53618c; }
.chat-message-bubble { background: #ffffffd9; border-color: #e3e7f5; border-radius: 14px; font-size: 13px; line-height: 1.55; padding: 10px 13px; box-shadow: 0 7px 14px #35499c05; }
.chat-message.agent .chat-message-bubble { background: linear-gradient(115deg,#2034be,#2032a5); border-color: #3345c9; border-radius: 13px; box-shadow: 0 5px 10px #2b3fb011; }
.chat-message-time { font-size: 9px; color: #6c7da8; margin-top: 5px; }
.chat-contact-details { border: 1px solid #e0e6f9; border-radius: 16px; padding: 0 16px; background: #ffffffdf; position: relative; }
.chat-customer-dialog { width: min(400px,calc(100vw - 28px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #e0e6f9; border-radius: 20px; background: #fcfdff; color: #27324d; box-shadow: 0 24px 80px #17204d33; overflow: auto; }
.chat-customer-dialog::backdrop { background: #17204d66; backdrop-filter: blur(5px); }
.chat-customer-dialog .chat-contact-details { display: block; position: relative; inset: auto; width: 100%; padding: 0 20px 22px; border: 0; border-radius: 0; overflow: visible; }
.chat-summary-card { background: #f0f3ff; border-radius: 14px; padding: 16px; }
.chat-summary-values { margin: 0; display: grid; gap: 11px; }
.chat-summary-values > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.chat-summary-values dt { color: #67779c; font-size: 11px; }
.chat-summary-values dd { margin: 0; color: #273d85; font-size: 12px; font-weight: 650; text-align: right; }
.chat-summary-note { color: #8995b3; font-size: 10px; line-height: 1.5; margin-top: 13px !important; }
.chat-patient-details-link { display: inline-block; margin-top: 10px; color: #344bb4; font-size: 11px; text-decoration: none; }
.chat-patient-details-link:hover { text-decoration: underline; }
/* Location picker: actual map and browser geolocation, with an explicit pin confirmation. */
.chat-location-dialog { width: min(640px,calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 20px; border: 1px solid #dce3fa; border-radius: 20px; background: #fcfdff; color: #27324d; overflow: auto; box-shadow: 0 25px 90px #17204d33; }
.chat-location-dialog::backdrop { background: #17204d66; backdrop-filter: blur(5px); }
.chat-location-dialog .chat-dialog-heading { margin-bottom: 15px; }
.chat-map-search { position: relative; display: flex; gap: 8px; margin-bottom: 12px; z-index: 2; }
.chat-map-suggestions { position: absolute; top: calc(100% + 6px); left: 0; right: 0; max-height: 260px; overflow: auto; padding: 5px; border: 1px solid #dce3f7; border-radius: 13px; background: #fff; box-shadow: 0 12px 30px #27386c20; }
.chat-inbox .chat-map-suggestions button { display: block; width: 100%; text-align: start; padding: 10px 12px; margin: 0; background: transparent; border: 0; border-radius: 9px; color: #34466e; }
.chat-inbox .chat-map-suggestions button:hover,.chat-inbox .chat-map-suggestions button.is-active { background: #eef2ff; }
.chat-map-suggestions strong { display: block; font-size: 12px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.chat-map-suggestions span { display: block; color: #8996b2; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-map-search input { min-width: 0; border-radius: 11px; background: #f5f7ff; }
.chat-map-search button { flex-shrink: 0; width: 40px; padding: 7px; color: #344bb4; background: #edf1ff; border-color: #dce3fa; }
.chat-map-surface { position: relative; overflow: hidden; border: 1px solid #dfe5f6; border-radius: 14px; background: #edf1fa; }
.chat-location-map { height: clamp(220px,40dvh,340px); width: 100%; }
.chat-location-map button { padding: 0; }
.chat-map-pin { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-100%); width: 38px; height: 44px; pointer-events: none; color: #7181ad; filter: drop-shadow(0 4px 3px #192d6b33); }
.chat-map-pin svg { width: 38px; height: 44px; fill: #f4f6ff; stroke-width: 1.8; }
.chat-map-pin.is-selected { color: #344bc4; }
.chat-map-pin.is-selected svg { fill: #e3e9ff; }
.chat-map-loading { position: absolute; inset: 0; display: grid; place-items: center; background: #edf1faee; color: #687aa3; font-size: 13px; }
.chat-map-actions { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-top: 12px; }
.chat-inbox #chat-map-current { display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: #3149b6; border-color: #d4defb; background: #eef2ff; font-size: 12px; white-space: nowrap; }
#chat-map-coordinates { color: #7a88a8; font-size: 10px; text-align: right; font-variant-numeric: tabular-nums; }
.chat-map-status { min-height: 18px; margin: 9px 0 !important; color: #64749d; font-size: 11px; line-height: 1.5; }
.chat-inbox .chat-map-label { color: #56688f; font-size: 11px; }
.chat-map-label > span { color: #95a0b9; }
.chat-map-label input { display: block; margin-top: 5px; border-radius: 11px; }
.chat-map-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.chat-map-footer button { font-size: 12px; padding: 9px 15px; }
.chat-location-preview { display: flex; align-items: center; gap: 10px; padding: 12px; margin: 6px 0 12px; border: 1px solid #dce4ff; border-radius: 13px; background: #f0f4ff; }
.chat-location-preview-icon { color: #425bc3; flex-shrink: 0; }
.chat-location-preview > div { min-width: 0; flex: 1; }
.chat-location-preview strong { display: block; font-size: 12px; color: #334a91; overflow-wrap: anywhere; }
.chat-location-preview span:not(.chat-location-preview-icon) { display: block; font-size: 10px; color: #7b8caf; margin-top: 2px; }
.chat-inbox .chat-location-preview button { font-size: 11px; padding: 6px 10px; color: #4059b2; }
@media(max-width:500px) { .chat-location-dialog { padding: 15px; } .chat-map-actions { align-items: flex-start; flex-direction: column; gap: 7px; } #chat-map-coordinates { text-align: left; } .chat-location-map { height: clamp(180px,32dvh,280px); } }
.chat-contact-profile { padding: 31px 0 22px; border-bottom: 1px solid #edf0f8; margin-bottom: 16px; }
.chat-contact-avatar { width: 59px; height: 59px; border-radius: 19px; margin-bottom: 18px; color: #233bb6; background: #e4e8ff; box-shadow: 0 0 0 5px #f3f5ff,0 3px 4px #bfc9ef55; font-size: 21px; }
.chat-contact-profile h3 { color: #1f2a4e; font-size: 18px; letter-spacing: -.3px; font-weight: 650; }
.chat-contact-kind { color: #7686b2; font-size: 12px; margin-top: 5px !important; }
.chat-inbox .chat-details-close { position: absolute; top: 6px; right: 6px; width: 25px; height: 25px; opacity: .55; }
.chat-contact-section { border: 0; margin: 0 0 20px; padding: 14px; border-radius: 13px; }
.chat-contact-card { background: linear-gradient(120deg,#f2f9f6,#eaf5f1); }
.chat-contact-section h4, .chat-private-note h4 { display: flex; align-items: center; gap: 10px; color: #253152; font-size: 13px; letter-spacing: -.1px; font-weight: 650; margin: 0 0 20px; }
.chat-contact-section h4 svg, .chat-private-note h4 svg { width: 17px; height: 17px; color: #31447f; }
.chat-contact-card h4 svg { color: #359780; }
.chat-contact-phone-row { display: flex; align-items: flex-start; gap: 12px; }
.chat-contact-phone-row > svg { width: 16px; height: 16px; color: #5b6b97; margin: 4px 0 0 2px; }
.chat-contact-phone-row label { color: #7e8bb1; font-size: 10px; }
.chat-contact-section .chat-contact-phone-row p { color: #35466d; font-size: 12px; margin-top: 1px; }
.chat-about-card { background: #f5f6fc; }
.chat-about-card h4 { margin-bottom: 15px; }
.chat-about-card p { color: #61709a; line-height: 1.7; font-size: 12px; }
.chat-private-note { display: block; background: #eceeff; padding: 14px; border-radius: 12px; margin-top: 0; }
.chat-private-note h4 { color: #2e40ac; margin-bottom: 6px; }
.chat-private-note h4 svg { color: #344ad6; }
.chat-private-note p { color: #7282b0; font-size: 12px; line-height: 1.5; }
.chat-composer { border: 1px solid #dfe5f9; border-top: 1px solid #e1e6f5; border-radius: 0 0 16px 16px; background: #ffffffdf; }
@media (max-width: 1450px) and (min-width:1251px) {
  .chat-workspace { grid-template-columns: 340px minmax(0,1fr); }
  .chat-inbox #chat-thread { grid-template-columns: minmax(0,1fr) 254px; }
  .chat-thread-header { padding: 13px 17px; }
  .chat-thread-header h2 { font-size: 18px; max-width: 210px; }
  .chat-thread-actions { padding-left: 12px; gap: 7px; }
  .chat-thread-actions select { width: 118px; }
  .chat-inbox .chat-thread-actions #chat-resolve { padding: 5px 7px; }
}
@media (max-width:1250px) {
  .chat-workspace { grid-template-columns: 325px minmax(0,1fr); }
  .chat-inbox #chat-thread { grid-template-columns: minmax(0,1fr); }
  .chat-thread-header h2 { font-size: 17px; }
  .chat-thread-actions { padding-left: 12px; gap: 6px; }
  .chat-thread-actions select { width: 115px; }
  .chat-thread-actions > button:not(.chat-icon-button) { font-size: 10px; }
}
@media (max-width:850px) {
  .chat-inbox { --chat-rail-width: 60px; }
  .chat-workspace { grid-template-columns: 274px minmax(0,1fr); }
  .chat-topbar { height: 76px; padding: 12px 16px; }
  .chat-agent-avatar, .chat-notifications-link, .chat-workspace-badge, .chat-search-field kbd { display: none !important; }
  .chat-account-menu summary { font-size: 10px; padding: 6px 8px; }
  .chat-thread-header { padding: 12px; min-height: 105px; flex-wrap: wrap; }
  .chat-thread-actions { border: 0; padding-left: 0; width: 100%; }
  .chat-thread-actions label > span { display: none; }
  .chat-customer-heading { flex: 1; }
  .chat-thread-header h2 { max-width: 230px; font-size: 16px; }
  .chat-inbox .chat-filter-row > label:first-child { width: 123px; }
  .chat-inbox .chat-filter-row > label:nth-child(2) { width: 82px; }
  .chat-filter-row > .chat-active-filters { order: 5; flex-basis: 100%; }
  .chat-inbox #chat-filter-toggle { margin-left: 0; }
  .chat-new-button { padding: 0 8px !important; font-size: 10px !important; }
  .chat-message { padding-left: 36px; max-width: 98%; }
  .chat-message.agent { padding-left: 0; padding-right: 36px; }
  .chat-message-avatar { width: 28px; height: 28px; font-size: 9px; }
  .chat-brand-rail #default-sidebar > div:first-child > div:first-child { margin-bottom: 25px; }
}
@media (max-width:680px) {
  .chat-workspace { display: block; padding: 0 6px 6px; }
  .chat-thread-header .chat-state { display: inline-block; }
  .chat-thread-header .chat-thread-actions { padding-left: 34px; }
  .chat-filter-row > .chat-active-filters { order: 0; flex-basis: auto; }
  .chat-thread-header h2 { max-width: 190px; }
  .chat-search-field kbd { display: none; }
  .chat-topbar h1 { font-size: 21px; }
  .chat-contact-profile h3 { font-size: 18px; }
}
@media (max-height:650px) {
  .chat-brand-rail #default-sidebar > div:first-child > div:first-child { margin-bottom: 25px; }
  .chat-brand-rail #default-sidebar > div:first-child > ul { gap: 4px; }
  .chat-brand-rail #default-sidebar > div:first-child > ul > li > :is(a,button) { height: 42px; }
}
.chat-delivery-status { display: inline-block; color: #91a0cd; font-size: 11px; letter-spacing: -4px; margin-left: 7px; padding-right: 4px; }
.chat-delivery-status[data-read=true] { color: #3b50cc; }
.chat-card-assignee::before { content: ''; display: inline-block; width: 12px; height: 12px; vertical-align: -2px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='12' cy='7' r='3.5'/%3E%3Cpath d='M5 20v-2a7 7 0 0 1 14 0v2c-4 2-10 2-14 0Z'/%3E%3C/svg%3E") center/contain no-repeat; }
#chat-resolve::before { content: '✓'; display: inline-grid; place-items: center; width: 12px; height: 12px; border: 1px solid currentColor; border-radius: 50%; font-size: 8px; line-height: 1; vertical-align: 0; }
@media (max-width:1450px) and (min-width:1251px) {
  .chat-workspace { grid-template-columns: 360px minmax(0,1fr); }
  .chat-inbox #chat-thread { grid-template-columns: minmax(0,1fr) 260px; }
  .chat-filter-row > label:first-child { width: 124px; }
  .chat-filter-row > label:nth-child(2) { width: 86px; }
}
/* Keep the composer in the viewport even with a long conversation. */
.chat-workspace { grid-template-rows: minmax(0,1fr); }
.chat-conversation { min-height: 0; height: 100%; overflow: hidden; }
.chat-inbox #chat-thread { min-height: 0; max-height: 100%; }
.chat-history { min-height: 0; }
/* Explicit shell rows prevent message content from sizing the workspace. */
.chat-inbox #chat-inbox { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto minmax(0,1fr); }
.chat-topbar { grid-row: 1; }
#chat-alert { grid-row: 2; }
.chat-workspace { grid-row: 3; min-height: 0; }
.chat-inbox #chat-thread { position: absolute; inset: 0; height: auto; }
@media (min-width:1251px) {
  .chat-inbox #chat-thread.chat-details-collapsed { grid-template-columns: minmax(0,1fr); }
}
.chat-card-heading strong { font-size: 14px; }
.chat-thread-header h2 { font-size: 20px; }
.chat-thread-header .chat-phone-line p { font-size: 13px; }
.chat-state { font-size: 11px; }
.chat-thread-actions #chat-resolve { min-width: 88px; font-size: 12px; }
.chat-message-author { font-size: 11px; }
.chat-message-bubble { font-size: 14px; }
.chat-message-time { font-size: 10px; }
.chat-contact-profile h3 { font-size: 20px; }
.chat-about-card p, .chat-private-note p { font-size: 13px; }
.chat-contact-section .chat-contact-phone-row p { font-size: 13px; }
@media (min-width:1451px) {
  .chat-workspace { padding-right: 28px; }
  .chat-topbar { padding-right: 45px; }
}
@media (max-width:850px) {
  .chat-thread-header h2 { font-size: 16px; }
  .chat-message-bubble { font-size: 13px; }
  .chat-thread-actions #chat-resolve { min-width: 0; font-size: 11px; }
}
.chat-compose-context { display: flex; align-items: center; gap: 5px; color: #8390b0; font-size: 10px; }
.chat-inbox .chat-compose-context .chat-icon-button { width: 22px; height: 22px; }
.chat-compose-context svg { width: 13px; height: 13px; }
.chat-message-time { display: block; }
.chat-inbox .chat-filter-chip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chat-brand-rail #default-sidebar > div:last-child { display: none; }
/* Composer actions remain distinct from the message input surface. */
.chat-inbox .chat-composer-bar #chat-attach,
.chat-inbox .chat-composer-bar #chat-mic {
  width: 36px;
  height: 36px;
  border: 1px solid #d8def6;
  border-radius: 11px;
  background: #e9edff;
  color: #3549b7;
  box-shadow: 0 1px 2px #263d8c08;
}
.chat-inbox .chat-composer-bar #chat-mic {
  background: #e2e8ff;
  border-color: #cdd7fc;
  color: #293eaf;
}
.chat-inbox .chat-composer-bar :is(#chat-attach, #chat-mic):hover {
  background: #d6dfff;
  border-color: #a9b9ef;
  color: #1f3197;
}
.chat-inbox .chat-composer-bar :is(#chat-attach, #chat-mic):active {
  background: #cbd6fc;
}
.chat-inbox .chat-composer-bar :is(#chat-attach, #chat-mic):disabled {
  background: #eef0f7;
  color: #929bb2;
  border-color: #e0e4ee;
  box-shadow: none;
}
.chat-agent .chat-account-menu .chat-logout { display: block; width: 100%; text-align: left; color: #a3435c; border: 0; background: transparent; padding: 7px 6px; font-size: 12px; }
.chat-agent .chat-account-menu .chat-logout:hover { background: #fff0f3; }
.chat-inbox #chat-file[hidden] { display: none !important; }
.chat-inbox #chat-record-controls { padding: 12px; margin: 3px 0 7px; border: 1px solid #e4dff7; border-radius: 13px; background: #f8f5ff; gap: 9px; }
.chat-inbox #chat-record { display: inline-flex; align-items: center; gap: 7px; border: 0; background: #edf0ff; color: #3349b7; }
.chat-inbox #chat-recording-live { display: flex; align-items: center; flex: 1; min-width: 0; gap: 9px; color: #9c526a; font-size: 12px; }
.chat-record-pulse { width: 8px; height: 8px; background: #db6c86; border-radius: 50%; box-shadow: 0 0 0 4px #fce4eb; animation: chat-send-pulse .8s ease-in-out infinite alternate; }
.chat-record-wave { color: #a3a9d6; letter-spacing: 3px; margin-left: auto; white-space: nowrap; overflow: hidden; }
.chat-inbox #chat-stop-record { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #dacdf3; color: #6c5296; background: white; border-radius: 9px; }
.chat-stop-symbol { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.chat-inbox #chat-media-preview { display: flex; align-items: center; gap: 10px; background: #f7f9ff; border-color: #e0e6f7; padding: 11px 12px; border-radius: 13px; }
#chat-media-preview-content { flex: 1; min-width: 0; }
.chat-file-summary { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chat-file-summary > svg { width: 32px; height: 36px; padding: 6px; border-radius: 9px; background: #e5ebff; color: #4456ba; }
.chat-file-summary > div { min-width: 0; }
.chat-file-summary strong { display: block; max-width: 300px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; font-weight: 550; color: #42517b; }
.chat-file-summary span { display: block; margin-top: 2px; color: #8a97b6; font-size: 10px; }
.chat-preview-actions { display: flex; align-items: center; gap: 8px; }
.chat-inbox .chat-preview-actions button { font-size: 10px; border: 0; background: transparent; padding: 5px; color: #7080ab; }
.chat-inbox #chat-discard-media { display: grid; place-items: center; margin: 0; width: 25px; height: 25px; border-radius: 8px; color: #9b6d83; }
#chat-discard-media svg { width: 15px; height: 15px; }
.chat-later-badge { margin-left: auto; font-size: 9px; border-radius: 5px; background: #eef0f6; color: #9098ad; padding: 1px 5px; }
.chat-inbox .chat-attachment-menu button:disabled { opacity: .5; background: transparent; }
.chat-notifications-dialog { width: min(560px,94vw); max-height: 85dvh; padding: 22px; border: 1px solid #e0e6f7; border-radius: 18px; color: #2c395e; box-shadow: 0 20px 70px #24326a30; }
.chat-notifications-dialog::backdrop { background: #1c285444; backdrop-filter: blur(3px); }
.chat-notifications-dialog h2 { font-size: 20px; margin: 0; }
.chat-notification-group { margin-top: 20px; }
.chat-notification-heading { display: flex; align-items: center; justify-content: space-between; }
.chat-notification-heading h3 { color: #7d8bad; font-size: 11px; font-weight: 500; }
.chat-notification-heading button { border: 0; font-size: 10px; }
.chat-notification-item { display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid #edf0f8; padding: 12px 9px; border-radius: 8px; margin-top: 3px; }
.chat-notification-item.unread { background: #f4f6ff; }
.chat-notification-item > div { flex: 1; min-width: 0; }
.chat-notification-item p { font-size: 12px; overflow-wrap: anywhere; }
.chat-notification-item time { font-size: 9px; color: #9aa6bd; }
.chat-notification-item a { color: #445abb; font-size: 11px; text-decoration: none; }
@media(max-width:680px) { .chat-record-wave { display: none; } .chat-file-summary strong { max-width: 150px; } #chat-media-preview audio { width: 210px; } }
.chat-brand-rail #default-sidebar > div:first-child > ul > li > a { position: relative; }
.chat-brand-rail #default-sidebar > div:first-child > ul > li > a > [data-chat-unread-badge]:not([hidden]) {
  display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 1px; right: 0;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 10px; border: 2px solid #293368;
  background: #e86682; color: white; font-size: 9px; font-weight: 700; line-height: 1;
}
.chat-inbox .chat-agent .chat-notifications-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  line-height: 1;
}
.chat-notifications-link > svg { display: block; width: 20px; height: 20px; margin: 0; }
@media (max-width:850px) {
  .chat-inbox .chat-agent #chat-notifications { display: inline-flex !important; width: 30px; height: 30px; }
  .chat-agent { gap: 6px; }
}
@media (max-width:680px) {
  .chat-topbar { height: 64px; gap: 10px; }
  .chat-topbar h1 { font-size: 19px; }
  .chat-topbar .chat-breadcrumb { display: none; }
  .chat-account-name { max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* Message cards: shared geometry for the indigo and white variants. */
.chat-message { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; margin-bottom: 0; max-width: min(88%,620px); }
.chat-message.agent { align-items: flex-end; }
.chat-message + .chat-message { margin-top: 12px; }
.chat-message + .chat-message--continuation { margin-top: 4px; }
.chat-message--continuation :is(.chat-message-author,.chat-message-avatar) { display: none; }
.chat-message-author { max-width: 100%; overflow-wrap: anywhere; margin: 0 3px 4px; color: #53608e; font-size: 11px; line-height: 1.5; }
.chat-message-avatar { top: 21px; }
.chat-message-bubble { --chat-tail-color: #fff; --chat-document-ink: #3448bd; position: relative; isolation: isolate; width: fit-content; max-width: 100%; min-width: 0; border-radius: 22px; padding: 9px 13px; background: #fff; border: 1px solid #e2e7f5; box-shadow: 0 7px 18px #34458d08; line-height: 1.65; }
.chat-message.agent .chat-message-bubble { --chat-tail-color: #2031a4; border-radius: 22px; border-color: #354bc6; background: linear-gradient(115deg,#283dc3,#2031a4); box-shadow: inset 0 1px 0 #ffffff17,0 8px 20px #263ba719; }
.chat-message-text, .chat-message-caption { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; font-weight: 450; line-height: 1.65; letter-spacing: normal; color: #25314b; text-align: start; }
.chat-message.agent :is(.chat-message-text,.chat-message-caption) { color: #fff; font-weight: 500; }
.chat-link-title, .chat-link-description { text-align: start; unicode-bidi: plaintext; }
.chat-message-bubble::after { content: ''; position: absolute; bottom: -1px; left: -9px; width: 18px; height: 18px; background: var(--chat-tail-color); transform: scaleX(-1); clip-path: path('M 0 0 C 7 3 2 12 18 17 C 9 19 1 18 0 14 Z'); z-index: -1; pointer-events: none; }
.chat-message.agent .chat-message-bubble::after { left: auto; right: -9px; transform: none; }
.chat-message-time { margin: 3px 3px 0; color: #7e8fb9; font-size: 10px; line-height: 1.4; }
.chat-delivery-status { margin-left: 7px; padding: 0; letter-spacing: 0; vertical-align: -2px; }
.chat-delivery-status svg { width: 17px; height: 13px; overflow: visible; stroke-width: 2.4; }
.chat-message-caption { margin: 10px 2px 0 !important; }
/* Documents and locations are a single click target, with no auxiliary preview link. */
.chat-message--file .chat-message-bubble, .chat-message--location .chat-message-bubble { padding: 14px; }
.chat-document-card, .chat-location-card { display: flex; align-items: center; gap: 13px; width: 100%; min-width: 0; min-height: 57px; padding: 12px 15px; border-radius: 14px; background: #f0f3ff; border: 1px solid #e5eafa; color: #344572 !important; text-decoration: none; transition: background .16s,box-shadow .16s; }
.chat-document-symbol { flex-shrink: 0; display: grid; place-items: center; width: 39px; padding-right: 12px; border-right: 1px solid #cad3f3; color: #6b7bd1; }
.chat-document-symbol svg { display: block; width: 24px; height: 31px; stroke-width: 1; }
.chat-document-copy { flex: 1; min-width: 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.chat-document-name { font-weight: 500; }
.chat-document-size { font-size: 13px; opacity: .85; white-space: nowrap; }
.chat-message.agent :is(.chat-document-card,.chat-location-card) { color: #fff !important; border-color: #ffffff0e; background: linear-gradient(110deg,#7285ed70,#6376df48); box-shadow: inset 0 1px 1px #ffffff08; }
.chat-message.agent .chat-document-symbol { color: #fff; border-color: #cbd5ff52; }
.chat-message :is(.chat-document-card,.chat-location-card):hover { background: #e5ebff; box-shadow: 0 2px 7px #263d9b10; }
.chat-message.agent :is(.chat-document-card,.chat-location-card):hover { background: #8495f36e; box-shadow: inset 0 0 0 1px #ffffff1a; }
.chat-location-card strong { display: block; font-size: 13px; font-weight: 550; }
.chat-location-coordinates { display: block; font-size: 12px; opacity: .8; }
.chat-location-card .chat-document-symbol svg { fill: none; stroke-width: 1.6; }
/* Image: only the actual image is clickable; the full-size viewer owns zoom/download. */
.chat-message--image .chat-message-bubble { max-width: min(100%,360px); }
.chat-message--image .chat-message-bubble { padding: 8px; overflow: hidden; border-radius: 20px; }
.chat-message--image .chat-message-bubble::after { display: none; }
.chat-inbox .chat-image-open { display: block; width: 100%; padding: 0; border: 0; border-radius: 13px; background: transparent; overflow: hidden; cursor: zoom-in; }
.chat-inbox .chat-image-open:hover { background: transparent; }
.chat-image-open .chat-attachment-image { display: block; width: 100%; max-width: 100%; max-height: 340px; min-height: 64px; border-radius: 13px; object-fit: contain; }
.chat-image-shell[data-image-state="ready"] { width: fit-content; max-width: 100%; }
.chat-image-shell[data-image-state="ready"] .chat-image-open { width: fit-content; max-width: 100%; }
.chat-image-shell[data-image-state="ready"] .chat-attachment-image { width: auto; }
.chat-image-shell { position: relative; border-radius: 13px; overflow: hidden; }
.chat-image-shell:not([data-image-state="ready"]) { width: 220px; max-width: 100%; min-height: 180px; background: #e9edfa; }
.chat-image-status { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 180px; padding: 24px; color: #53618a; font: 500 13px/1.5 system-ui,sans-serif; text-align: center; }
.chat-image-status-symbol { width: 26px; height: 26px; display: grid; place-items: center; }
[data-image-state="loading"] > .chat-image-status .chat-image-status-symbol { border: 2px solid #657bc32b; border-top-color: #526ad0; border-radius: 50%; animation: chat-image-spin .8s linear infinite; }
.chat-image-status-symbol svg { width: 26px; height: 26px; }
.chat-inbox .chat-image-retry { width: auto; height: auto; display: inline-flex; padding: 7px 14px; border: 1px solid #bcc8f1; background: #f8faff; border-radius: 9px; color: #3045b1; font-size: 12px; }
.chat-image-retry:hover { background: #e1e8ff; }
@keyframes chat-image-spin { to { transform: rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { [data-image-state="loading"] > .chat-image-status .chat-image-status-symbol { animation: none; } }
.chat-message--image .chat-message-caption { margin: 7px 6px 3px !important; }
.chat-image-viewer { width: calc(100vw - 36px); max-width: 1500px; height: calc(100dvh - 36px); max-height: 100dvh; padding: 0; border: 1px solid #ffffff26; border-radius: 18px; background: #111932f5; color: white; box-shadow: 0 25px 90px #0a102c88; overflow: hidden; }
.chat-image-viewer::backdrop { background: #0b1125b8; backdrop-filter: blur(8px); }
.chat-image-viewer > header { height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 18px; border-bottom: 1px solid #ffffff12; }
.chat-image-viewer > header > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #d7dff8; }
.chat-image-viewer > header > div { display: flex; gap: 7px; }
.chat-inbox .chat-image-viewer :is(button,a) { width: 34px; height: 34px; display: grid; place-items: center; color: #e0e7ff; background: #ffffff0e; border: 1px solid #ffffff17; border-radius: 9px; padding: 0; cursor: pointer; }
.chat-inbox .chat-image-viewer :is(button,a):hover { background: #ffffff20; }
.chat-viewer-canvas { height: calc(100% - 58px); overflow: auto; padding: 18px; }
.chat-viewer-stage { width: max-content; min-width: 100%; min-height: 100%; display: grid; place-items: center; }
.chat-viewer-canvas .chat-image-status { color: #dbe3ff; }
.chat-viewer-canvas img { display: block; max-width: none; max-height: none; height: auto; object-fit: contain; border-radius: 5px; cursor: zoom-in; }
.chat-inbox #chat-viewer-fit { width: 53px; font-size: 11px; font-variant-numeric: tabular-nums; }
@media(max-width:500px) { .chat-image-viewer > header { gap: 7px; padding: 8px; } .chat-image-viewer > header > div { gap: 3px; } .chat-inbox .chat-image-viewer :is(button,a) { width: 29px; height: 32px; } }
.chat-viewer-canvas img.is-zoomed { max-width: none; max-height: none; cursor: zoom-out; }
/* Voice player uses the retained native audio element for real playback. */
.chat-message--audio .chat-message-bubble { width: 320px; max-width: 100%; padding: 12px; }
.chat-voice-card { display: flex; align-items: center; gap: 12px; min-height: 55px; padding: 8px 12px; border-radius: 40px; background: linear-gradient(100deg,#ffffff,#eef2ff); color: #263caa; }
.chat-inbox .chat-voice-toggle { display: grid; place-items: center; width: 35px; height: 35px; flex-shrink: 0; border: 1px solid #dce3ff; border-radius: 50%; padding: 0; background: linear-gradient(#e9edff,#d9e1ff); color: #243dcc; box-shadow: 0 2px 4px #5267bf12; }
.chat-inbox .chat-voice-toggle:hover { background: #d1dcff; }
.chat-voice-toggle svg { width: 21px; height: 21px; stroke-width: 0; }
.chat-voice-toggle[aria-label^=Play] svg { margin-left: 2px; }
.chat-voice-track { position: relative; flex: 1; min-width: 45px; height: 34px; padding-left: 12px; border-left: 1px solid #cbd4f1; }
.chat-voice-wave { display: block; width: 100%; height: 34px; color: #99aaf4; }
.chat-voice-wave rect { fill: currentColor; transition: fill .1s; }
.chat-voice-wave rect.played { fill: #536fdf; }
.chat-inbox .chat-voice-seek { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; margin: 0; opacity: 0; cursor: pointer; }
.chat-voice-track:focus-within { outline: 2px solid #8195e8; outline-offset: 3px; border-radius: 4px; }
.chat-voice-time { display: block; color: #30374d; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; border-left: 1px solid #cbd4f1; }
.chat-voice-download { display: grid; place-items: center; width: 20px; height: 28px; opacity: .55; flex-shrink: 0; }
.chat-voice-download:hover { opacity: 1; }
.chat-voice-download svg { width: 15px; height: 15px; }
.chat-inbox .chat-message .chat-voice-source { display: none; }
/* Link metadata is optional: a failed preview leaves the original clickable text. */
.chat-message-bubble.has-link-card { padding: 10px; }
.chat-message-bubble.has-link-card .chat-message-text { padding: 2px 5px 10px; }
.chat-link-card { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 10px; border-radius: 16px; background: linear-gradient(115deg,#fff,#edf1ff); color: #34446d !important; text-decoration: none; box-shadow: 0 2px 6px #2f438b08; transition: background .16s; }
.chat-link-card:hover { background: #e8edff; }
.chat-link-thumbnail { display: block; width: 70px; height: 74px; flex-shrink: 0; border-radius: 10px; object-fit: cover; }
.chat-link-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.chat-link-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14px; line-height: 1.35; color: #263154; font-weight: 650; overflow-wrap: anywhere; }
.chat-link-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 12px; line-height: 1.45; color: #7382a7; }
.chat-link-domain { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 11px; color: #6378ad; overflow-wrap: anywhere; }
.chat-link-domain svg { width: 14px; height: 14px; }
@media(max-width:850px) {
  .chat-message { max-width: 98%; padding-left: 36px; }
  .chat-message.agent { padding-left: 0; padding-right: 36px; }
  .chat-message--audio .chat-message-bubble, .chat-message--file .chat-message-bubble, .chat-message--location .chat-message-bubble { padding: 10px; }
  .chat-document-card,.chat-location-card { padding: 10px; gap: 9px; }
  .chat-document-copy { font-size: 13px; }
  .chat-document-size { font-size: 11px; }
  .chat-voice-card { gap: 7px; padding: 6px 8px; }
  .chat-voice-track,.chat-voice-time { padding-left: 7px; }
  .chat-voice-toggle { width: 31px !important; height: 31px !important; }
  .chat-voice-time { font-size: 12px; }
  .chat-voice-download { display: none; }
  .chat-link-card { gap: 9px; padding: 8px; }
  .chat-link-thumbnail { width: 51px; height: 59px; }
  .chat-link-title { font-size: 13px; }
  .chat-link-description { font-size: 11px; }
}
@media(prefers-reduced-motion:reduce) { .chat-message *, .chat-message *::after { transition: none !important; } }
@font-face {
    font-family: 'Inter';
    src: url(/assets/fonts/Inter-Regular) format('tff');
    font-weight: normal;
    font-style: normal;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

.simple-calendar table {
    -webkit-border-horizontal-spacing: 0px;
    -webkit-border-vertical-spacing: 0px;
    background-color: rgba(0, 0, 0, 0);
    border-top: 1px solid rgba(221, 221, 221, 0.4);
    border-collapse: collapse;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
}

.simple-calendar tr {
    border-collapse: collapse;
}

.simple-calendar th {
    padding: 6px;
    border-bottom: 0px solid rgb(221, 221, 221);
    border-collapse: collapse;
    border-left: 0px solid rgb(221, 221, 221);
    border-right: 0px solid rgb(221, 221, 221);
    border-top: 0px none rgb(51, 51, 51);
    box-sizing: border-box;
    text-align: left;
}

.simple-calendar td {
    padding: 0px;
    vertical-align: top;
    width: 14%;
    border: 0px solid #ddd;
    border-top-color: rgba(221, 221, 221, 0.4);
    border-top-style: solid;
    border-top-width: 1px;
    border-right-color: rgba(221, 221, 221, 0.4);
    border-right-style: solid;
    border-right-width: 1px;
    border-bottom-color: rgba(221, 221, 221, 0.4);
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-left-color: rgba(221, 221, 221, 0.4);
    border-left-style: solid;
    border-left-width: 1px;
}

.simple-calendar .day {
    height: 135px;
}

.simple-calendar .today {
    /*background: #FF4081;*/
    /*color: #FFFFFF;*/
}

.simple-calendar .prev-month {
    background: #f8f8f8;
}

.simple-calendar .next-month {
    background: #f8f8f8;
}

.calendar-heading {
    display: flex;
    justify-content: space-between;
    align-items: center; /* optional, if you want to align items vertically as well */
    padding: 2px;
    margin: 22px;
}

.calendar-heading .calendar-title {
    font-weight: bold;
}

.ts-control {
    border: 0 solid #d0d0d0 !important;
    padding: 3px 4px !important;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    box-shadow: none;
    border-radius: 3px;
    display: flex;
    flex-wrap: wrap;
}
