
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: rgb(0, 0, 0);
}
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-mutable]::-moz-selection,
trix-editor [data-trix-cursor-target]::-moz-selection {
  background: none;
}
trix-editor [data-trix-mutable] ::selection, trix-editor [data-trix-mutable]::selection,
trix-editor [data-trix-cursor-target]::selection {
  background: none;
}

trix-editor [data-trix-mutable].attachment__caption-editor:focus::-moz-selection {
  background: highlight;
}
trix-editor [data-trix-mutable].attachment__caption-editor:focus::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: " •";
}
.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;
}

/*
 * Suppress browser :invalid red highlight on Trix's URL input — Trix handles
 * its own validation, and the browser's native style fires on bare domains.
 */
trix-toolbar input[type="url"]:invalid,
trix-toolbar .trix-input--dialog.validate:invalid {
  background-color: inherit;
  color: inherit;
  box-shadow: none;
}

/*
 * Restore list styles reset by Tailwind preflight inside Trix editor content
 * and the editable area itself.
 */
.trix-content ol,
trix-editor ol {
  list-style: decimal;
  padding-left: 1.5em;
}

.trix-content ul,
trix-editor ul {
  list-style: disc;
  padding-left: 1.5em;
}

/* Hide file attachment button — attachments are not supported. */
trix-toolbar .trix-button-group--file-tools {
  display: none;
}

/*
 * Tailwind preflight resets h1-h6 (font-size: inherit) and a (text-decoration: inherit),
 * which makes heading and link tools appear to do nothing inside the editor.
 * Restore those defaults for the trix-editor content area only.
 */
trix-editor h1 {
  font-size: 1.2em;
  font-weight: bold;
  line-height: 1.4;
}

trix-editor a {
  color: LinkText;
  text-decoration: underline;
}

trix-editor blockquote {
  border-left: 3px solid #ccc;
  margin-left: 0.5em;
  padding-left: 0.5em;
}

trix-editor pre {
  display: inline-block;
  width: 100%;
  font-family: monospace;
  font-size: 0.9em;
  padding: 0.5em;
  white-space: pre;
  background-color: #f5f5f5;
  overflow-x: auto;
}
@import url('https://fonts.cdnfonts.com/css/gotham');
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&family=Shrikhand&family=JetBrains+Mono:wght@400;500&display=swap');

@tailwind base;
@tailwind components;

@layer components {
  .card { @apply bg-white shadow rounded-lg overflow-hidden mb-6; }
  .card-header { @apply px-6 py-4 border-b border-gray-200; }
  .card-title { @apply text-lg font-medium; }
  .card-subtitle { @apply text-sm text-gray-500 mt-2; }
  .card-body { @apply p-6; }
  .card-buttons-right { @apply flex justify-end pt-6 border-t border-gray-200 mt-8 pb-4; }
  .ping-link { @apply text-indigo-600 hover:text-indigo-700 hover:underline; }
}

@layer components {
  .ping-shell { @apply h-dvh overflow-hidden bg-canvas text-brown font-sans antialiased; font-size: 15px; line-height: 22px; }

  .ping-shell__frame { @apply flex h-dvh overflow-hidden; }
  .ping-shell__main { @apply flex min-w-0 flex-1 flex-col; }
  .ping-shell__content { @apply flex-1 overflow-y-auto px-4 py-5 sm:p-6; }

  .ping-sidebar-backdrop { @apply fixed inset-0 z-40 bg-brown/30 lg:hidden; }
  .ping-sidebar {
    @apply fixed inset-y-0 left-0 z-50 flex h-dvh w-[280px] max-w-[85vw] shrink-0 invisible -translate-x-full flex-col border-r border-border-warm bg-white transition-[transform,visibility] duration-200 ease-out lg:visible lg:static lg:z-30 lg:w-[260px] lg:max-w-none lg:translate-x-0;
  }
  .ping-sidebar.is-open { @apply visible translate-x-0 shadow-2xl lg:shadow-none; }
  .ping-sidebar__logo { @apply flex h-16 shrink-0 items-center justify-between px-5; }
  .ping-logo-link { @apply block h-[34px] w-24 overflow-hidden; }
  .ping-logo-image { @apply block h-[46px] max-w-none; margin-left: -46px; margin-top: -6px; }
  .ping-sidebar__close { @apply flex h-9 w-9 items-center justify-center rounded-lg text-brown-light hover:bg-canvas hover:text-brown lg:hidden; }
  .ping-sidebar__scroll {
    @apply min-h-0 flex-1 overflow-y-auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: #e4ddd0 transparent;
  }
  .ping-sidebar__nav { @apply px-3 pb-4 pt-1; }
  .ping-sidebar-section-label { @apply px-3 pb-1.5 pt-6 text-xs font-semibold uppercase tracking-[0.08em] text-brown-light; }
  .ping-sidebar-section-label:first-child { @apply pt-3; }
  .ping-sidebar-archive { @apply mt-4 border-t border-border-warm pt-3; }

  .ping-nav-item {
    @apply flex h-10 w-full items-center gap-3 rounded-lg px-3 text-left text-[15px] font-medium leading-[22px] text-brown-mid transition-colors hover:bg-canvas hover:text-brown;
  }
  .ping-nav-item.is-active { @apply font-semibold; background: rgba(239, 70, 61, 0.07); color: #c9342c; }
  .ping-nav-item--quiet { @apply text-brown-light; }
  .ping-nav-icon { @apply h-5 w-5 shrink-0 text-brown-light transition-colors; }
  .ping-nav-item:hover .ping-nav-icon { @apply text-brown-mid; }
  .ping-nav-item.is-active .ping-nav-icon { @apply text-coral; }
  .ping-nav-label { @apply min-w-0 flex-1 truncate; }
  .ping-nav-chevron { @apply h-4 w-4 shrink-0 text-brown-light transition-transform duration-200; }

  .ping-nav-group.is-open > .ping-nav-item { @apply text-brown; }
  .ping-nav-group.is-open .ping-nav-chevron { transform: rotate(180deg); }
  .ping-nav-group.has-active > .ping-nav-item { @apply font-semibold text-brown; }
  .ping-nav-group.has-active > .ping-nav-item .ping-nav-icon { @apply text-coral; }
  .ping-nav-children { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.2s ease; }
  .ping-nav-children > div { @apply invisible overflow-hidden transition-[visibility] duration-200; }
  .ping-nav-group.is-open > .ping-nav-children { grid-template-rows: 1fr; }
  .ping-nav-group.is-open > .ping-nav-children > div { @apply visible; }
  .ping-nav-children__list { @apply mb-1 ml-[21px] mt-0.5 border-l border-border-warm pl-2.5; }
  .ping-nav-child {
    @apply block h-9 truncate rounded-md py-2 pl-3 pr-2 text-sm leading-5 text-brown-mid transition-colors hover:bg-canvas hover:text-brown;
  }
  .ping-nav-child.is-active { @apply font-semibold; background: rgba(239, 70, 61, 0.07); color: #c9342c; }

  .ping-sidebar-command-menu-trigger {
    @apply mx-3 mb-1 flex h-10 items-center gap-3 rounded-lg border border-border-warm bg-canvas px-3 text-left text-sm text-brown-light transition hover:border-[#d4cab8];
  }
  .ping-sidebar-command-menu-trigger .ping-nav-icon { @apply h-[18px] w-[18px]; }
  .ping-sidebar-command-menu-trigger kbd { @apply ml-auto rounded border border-border-warm bg-white px-1.5 py-0.5 font-sans text-xs text-brown-light; }

  .ping-user-block { @apply relative shrink-0 border-t border-border-warm px-4 py-3.5; }
  .ping-account { @apply -m-2 flex w-[calc(100%+16px)] items-center gap-3 rounded-[10px] p-2 text-left transition-colors hover:bg-canvas; }
  .ping-account[aria-expanded="true"] { @apply bg-canvas; }
  .ping-user-avatar { @apply grid h-9 w-9 shrink-0 place-items-center rounded-full text-sm font-semibold; background: rgba(239, 70, 61, 0.07); color: #c9342c; }
  .ping-user-name { @apply block truncate text-sm font-semibold leading-5 text-brown; }
  .ping-user-sub { @apply block truncate text-[13px] leading-[18px] text-brown-light; }
  .ping-account-menu {
    @apply absolute bottom-[calc(100%+8px)] left-3 z-50 w-[300px] max-w-[calc(100vw-24px)] overflow-hidden rounded-xl border border-border-warm bg-white;
    box-shadow: 0 12px 32px rgba(43, 36, 29, 0.14);
  }
  .ping-account-menu__user { @apply flex items-center gap-3 border-b border-row-line px-4 py-3.5; }
  .ping-account-menu__section { @apply border-b border-row-line p-2 last:border-b-0; }
  .ping-account-menu__label { @apply px-2.5 pb-1 pt-1.5 text-xs font-semibold uppercase tracking-[0.08em] text-brown-light; }
  .ping-account-menu__item { @apply flex w-full items-center gap-2.5 rounded-lg px-2.5 py-[9px] text-left text-sm text-brown hover:bg-canvas; }
  .ping-account-menu__item svg { @apply h-5 w-5 shrink-0 text-brown-light; }
  .ping-account-scope { @apply mx-0.5 mb-1.5 mt-0.5 rounded-[10px] bg-canvas px-3 py-2.5; }
  .ping-account-scope__name { @apply text-[15px] font-semibold leading-[22px] text-brown; }
  .ping-account-scope__sub { @apply text-[13px] leading-[18px] text-brown-light; }

  .ping-menu-button { @apply -ml-1 mr-1 flex h-10 w-10 shrink-0 items-center justify-center rounded-lg text-brown-mid hover:bg-canvas hover:text-brown lg:hidden; }
  .ping-mobile-bar { @apply flex h-14 shrink-0 items-center gap-2 border-b border-border-warm bg-white px-4 lg:hidden; }

  .ping-topbar { @apply relative z-20 flex h-14 shrink-0 items-center gap-2 border-b border-border-warm bg-white px-3 sm:h-16 sm:gap-4 sm:px-6; }
  .ping-breadcrumb { @apply flex min-w-0 items-center gap-0.5 text-[13px]; }
  .ping-breadcrumb--topbar { @apply flex-1 text-sm sm:text-[15px] sm:leading-[22px]; }
  .ping-breadcrumb-link,
  .ping-breadcrumb-muted,
  .ping-breadcrumb-current { @apply min-w-[3.5em] truncate rounded-lg px-1.5 py-[5px] font-medium text-brown-mid sm:px-2; flex: 0 30 auto; }
  .ping-breadcrumb-link { @apply transition-colors hover:bg-canvas hover:text-brown; }
  .ping-breadcrumb-current { @apply font-semibold text-brown; flex: 0 1 auto; }
  .ping-breadcrumb-sep { @apply shrink-0 select-none px-0.5 text-xl font-light leading-none text-[#d4cab8]; }
  .ping-breadcrumb-mid { @apply hidden sm:block; }
  .ping-scope-crumb {
    @apply inline-flex min-w-[4.5em] items-center gap-1.5 rounded-[10px] border border-transparent py-1 pl-1.5 pr-1 font-semibold text-brown transition-colors hover:border-border-warm hover:bg-canvas sm:max-w-[320px] sm:gap-2 sm:pl-1 sm:pr-2;
    flex: 0 2 auto;
  }
  .ping-scope-crumb__icon { @apply hidden h-[30px] sm:grid w-[30px] shrink-0 place-items-center rounded-[7px] bg-cream text-coral; }
  .ping-scope-crumb__name { @apply truncate; }
  .ping-scope-crumb--count { @apply sm:max-w-[460px]; }
  .ping-scope-crumb__count { @apply shrink-0 whitespace-nowrap font-medium text-brown-mid; }
  .ping-back { @apply mr-1 inline-flex min-w-0 max-w-[260px] shrink-0 items-center gap-1 rounded-md py-0.5 pl-1 pr-2 font-medium text-brown-mid transition-colors hover:bg-cream hover:text-brown; }
  .ping-back__label { @apply hidden truncate sm:inline; }
  .ping-back-divider { @apply mr-1.5 h-4 w-px shrink-0 bg-border-warm; }

  .ping-picker { @apply fixed inset-0 z-[90] flex items-stretch justify-center bg-brown/30 sm:items-start sm:px-3 sm:pt-[9vh]; }
  .ping-picker__panel {
    @apply flex h-full w-full flex-col overflow-hidden bg-white sm:h-auto sm:max-h-[78vh] sm:max-w-[600px] sm:rounded-[14px] sm:border sm:border-border-warm;
    box-shadow: 0 24px 64px rgba(43, 36, 29, 0.22);
  }
  .ping-picker__search { @apply flex items-center gap-3 border-b border-border-warm px-4 py-3; }
  .ping-picker__input { @apply min-w-0 flex-1 border-0 bg-transparent p-0 text-[15px] leading-[22px] text-brown placeholder:text-brown-light focus:ring-0; }
  .ping-picker__input::-webkit-search-cancel-button { display: none; }
  .ping-picker__close { @apply grid h-8 w-8 shrink-0 place-items-center rounded-lg text-brown-light hover:bg-canvas hover:text-brown; }
  .ping-picker__tools { @apply flex items-center gap-2 border-b border-row-line px-4 py-2.5; }
  .ping-picker__tools .ping-button-sm { @apply hover:border-[#d4cab8] hover:text-brown disabled:cursor-not-allowed disabled:opacity-50; }
  .ping-picker__body { @apply min-h-0 flex-1 overflow-y-auto overscroll-contain px-2 pb-2 pt-1; }
  .ping-picker__section:not(.hidden) ~ .ping-picker__section { @apply mt-1 border-t border-row-line pt-1; }
  .ping-picker__company { @apply flex cursor-pointer items-center gap-3 rounded-[10px] px-3 pb-2 pt-3 hover:bg-canvas; }
  .ping-picker__company-name { @apply min-w-0 flex-1 truncate text-xs font-semibold uppercase tracking-[0.08em] text-brown-mid; }
  .ping-picker__heading { @apply px-3 pb-1.5 pt-3.5 text-xs font-semibold uppercase tracking-[0.08em] text-brown-light; }
  .ping-picker__business-row { @apply flex items-center gap-1 rounded-[10px] pl-1 hover:bg-canvas; min-height: 48px; }
  .ping-picker__toggle { @apply grid h-8 w-8 shrink-0 place-items-center rounded-lg text-brown-light hover:bg-cream hover:text-brown; }
  .ping-picker__toggle svg { @apply transition-transform duration-150; }
  .ping-picker__business:not(.is-collapsed) .ping-picker__toggle svg { transform: rotate(90deg); }
  .ping-picker__business-label { @apply flex min-w-0 flex-1 cursor-pointer items-center gap-3 py-1.5 pr-3; }
  .ping-picker__name { @apply block break-words text-[15px] font-medium leading-[22px] text-brown; }
  .ping-picker__meta { @apply block shrink-0 truncate text-[13px] leading-[18px] text-brown-light; }
  .ping-picker__business.is-collapsed .ping-picker__stores { display: none; }
  .ping-picker__body.is-searching .ping-picker__stores { display: block; }
  .ping-picker__body.is-searching .ping-picker__toggle { visibility: hidden; }
  .ping-picker__store {
    @apply flex cursor-pointer items-center gap-3 rounded-[10px] py-2 pl-16 pr-3 hover:bg-canvas;
    min-height: 40px;
    content-visibility: auto;
    contain-intrinsic-size: auto 40px;
  }
  .ping-picker__heading + .ping-picker__stores .ping-picker__store { @apply pl-3; }
  .ping-picker__store-name { @apply min-w-0 break-words text-[15px] leading-[22px] text-brown; }
  .ping-picker .ping-filter-check { @apply h-[18px] w-[18px] focus:ring-0 focus:ring-offset-0 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-coral; }
  .ping-picker__empty { @apply px-6 py-10 text-center text-[15px] text-brown-mid; }
  .ping-picker__foot {
    @apply flex flex-wrap items-center justify-end gap-2 border-t border-row-line bg-canvas px-4 pt-3;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .ping-picker__foot .ping-action-primary:disabled { @apply cursor-not-allowed opacity-50 hover:bg-coral; }
  .ping-picker__error { @apply mr-auto min-w-0 basis-full text-[13px] font-medium text-coral-dark sm:basis-auto sm:truncate; }
  .ping-search {
    @apply flex w-64 items-center gap-2 rounded-xl border border-border-warm bg-white px-3.5 py-2 transition-all duration-200;
  }
  .ping-search-kbd { @apply rounded border border-border-warm bg-cream px-1.5 py-0.5 font-mono text-[12px] font-medium text-brown-light/50; }
  .ping-search:focus-within { box-shadow: 0 0 0 3px rgba(239, 70, 61, 0.12); border-color: #ef463d; }
  .ping-topbar-icon-button {
    @apply relative flex h-9 w-9 items-center justify-center rounded-xl border border-border-warm bg-white transition hover:bg-mint/30;
  }

  .ping-command-menu-trigger {
    @apply ml-auto flex h-10 w-10 shrink-0 items-center justify-center gap-2.5 rounded-lg border border-border-warm bg-canvas text-sm text-brown-light transition hover:border-[#d4cab8] hover:text-brown lg:w-[240px] lg:justify-start lg:px-3;
  }
  .ping-command-menu-trigger kbd { @apply ml-auto rounded border border-border-warm bg-white px-1.5 py-0.5 font-sans text-xs text-brown-light; }

  .ping-command-menu {
    @apply fixed inset-0 z-[100] bg-brown/30 px-4 pb-4 pt-[10vh] backdrop-blur-sm;
  }
  .ping-command-menu__panel {
    @apply mx-auto flex max-h-[75vh] w-full max-w-2xl flex-col overflow-hidden rounded-2xl border border-border-warm bg-white shadow-2xl;
  }
  .ping-command-menu__search { @apply flex items-center gap-3 border-b border-border-warm px-4 py-3; }
  .ping-command-menu__search-icon { @apply h-5 w-5 shrink-0 text-brown-light/50; }
  .ping-command-menu__input {
    @apply min-w-0 flex-1 border-0 bg-transparent p-0 text-base font-semibold text-brown placeholder:font-medium placeholder:text-brown-light/45 focus:ring-0;
  }
  .ping-command-menu__shortcut { @apply hidden shrink-0 rounded-md border border-border-warm bg-cream/40 px-2 py-1 font-mono text-[12px] font-medium text-brown-light/70 sm:inline-flex; }
  .ping-command-menu__close { @apply flex h-8 w-8 shrink-0 items-center justify-center rounded-lg text-brown-light/50 transition hover:bg-cream hover:text-brown sm:hidden; }
  .ping-command-menu__results { @apply min-h-0 flex-1 overflow-y-auto p-2; }
  .ping-command-menu__result { @apply flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left transition; }
  .ping-command-menu__result.is-active { @apply bg-cream/70; }
  .ping-command-menu__result-icon { @apply flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-border-warm bg-white text-xs font-bold text-brown-light shadow-sm; }
  .ping-command-menu__result-icon svg { @apply h-[18px] w-[18px] text-brown-light/70; }
  .ping-command-menu__result.is-active .ping-command-menu__result-icon svg { @apply text-coral; }
  .ping-command-menu__result-copy { @apply flex min-w-0 flex-1 flex-col; }
  .ping-command-menu__result-label { @apply truncate text-sm font-semibold text-brown; }
  .ping-command-menu__result-category { @apply text-[12px] font-bold uppercase tracking-wider text-brown-light/50; }
  .ping-command-menu__result-arrow { @apply opacity-0 font-mono text-sm text-coral transition; }
  .ping-command-menu__result.is-active .ping-command-menu__result-arrow { @apply opacity-100; }
  .ping-command-menu__empty { @apply flex flex-1 flex-col items-center justify-center px-6 py-14 text-brown-light/40; }
  .ping-command-menu__empty p { @apply mt-3 text-sm font-bold text-brown-mid; }
  .ping-command-menu__empty span { @apply mt-1 text-xs font-medium; }
  .ping-command-menu__footer { @apply flex items-center justify-between border-t border-border-warm bg-cream/25 px-4 py-2 text-[12px] font-semibold text-brown-light/60; }
  .ping-command-menu__hints { @apply hidden items-center gap-3 sm:flex; }
  .ping-command-menu__hints > span { @apply flex items-center gap-1; }
  .ping-command-menu__hints kbd { @apply rounded border border-border-warm bg-white px-1.5 py-0.5 font-mono text-[12px] text-brown-light shadow-sm; }

  .ping-detail-grid { @apply grid grid-cols-2 gap-4; }
  .ping-detail-field { @apply rounded-xl border border-border-warm bg-cream/15 px-3 py-2; }
  .ping-detail-field--full { @apply col-span-2; }
  .ping-detail-label { @apply text-[12px] font-bold uppercase tracking-wider text-brown-light/60; }
  .ping-detail-value { @apply mt-1 text-[13px] font-semibold text-brown-mid break-words; }
  .ping-detail-value--mono { @apply font-mono; }

  .ping-textarea {
    @apply w-full rounded-2xl border border-border-warm bg-white px-4 py-3 text-[13px] font-medium text-brown outline-none transition focus:border-coral;
  }
  .ping-textarea--mono { @apply font-mono text-[13px] leading-relaxed; }

  .ping-modal-backdrop { @apply fixed inset-0 z-50 bg-brown/20 p-4; }
  .ping-modal-wrap { @apply flex min-h-full items-center justify-center; }
  .ping-modal-panel { @apply w-full overflow-hidden rounded-3xl border border-border-warm bg-white shadow-2xl; }
  .ping-modal-head { @apply flex items-start justify-between gap-4 border-b border-border-warm bg-cream/30 px-6 py-4; }
  .ping-modal-body { @apply px-6 py-5; }
  .ping-modal-close { @apply inline-flex h-9 w-9 items-center justify-center rounded-xl border border-border-warm bg-white text-brown-light/60 transition hover:bg-cream hover:text-brown; }

  .ping-spinner { @apply h-9 w-9 animate-spin rounded-full border-2 border-border-warm border-t-coral; }

  .ping-hover-popover {
    @apply absolute right-0 top-full z-40 mt-2 hidden w-[520px] max-w-[80vw] rounded-2xl border border-border-warm bg-white p-4 shadow-xl;
  }
  .group:hover > .ping-hover-popover { display: block; }

  .ping-diff-line { @apply rounded-md px-2 py-1 text-[12px] font-semibold text-brown-mid; }
  .ping-diff-line--add { @apply border border-brand-green/30 bg-brand-green/15; }
  .ping-diff-line--del { @apply border border-coral/20 bg-coral/10 text-coral; }
  .ping-diff-line--hunk { @apply border border-brand-teal/20 bg-brand-teal/10 text-brand-teal; }

  .ping-block-item { @apply flex items-center gap-3 rounded-xl border border-border-warm bg-cream/15 px-3 py-2; }
  .ping-block-item__pos { @apply w-6 shrink-0 text-center text-[13px] font-bold text-brown-light/50; }

  .ping-version-item[open] .ping-version-chevron { transform: rotate(180deg); }
  .ping-version-summary {
    @apply flex cursor-pointer list-none items-start justify-between gap-4 px-4 py-4 transition hover:bg-cream/20;
  }
  .ping-version-summary::-webkit-details-marker { display: none; }
  .ping-version-label { @apply inline-flex items-center rounded-lg border border-border-warm bg-white px-2 py-1 text-[13px] font-bold text-brown; }
  .ping-version-chevron { @apply mt-1 inline-flex h-8 w-8 items-center justify-center rounded-xl border border-border-warm bg-white text-brown-light/60 transition; }
  .ping-version-body { @apply px-4 pb-5 pt-0 space-y-4; }

  .ping-page { @apply flex flex-1 min-h-0 flex-col bg-canvas; }
  .ping-shell__content--shellless { @apply flex flex-col min-h-0 bg-canvas p-0 overflow-hidden; }
  .ping-page-body { @apply relative flex flex-1 flex-col min-h-0; }
  .ping-page-header { @apply sticky top-0 z-10 bg-canvas px-4 pt-5 pb-3 sm:px-6 sm:pt-6; }
  .ping-page-header--static { @apply static; }
  .ping-page-title { @apply font-sans text-[26px] font-semibold leading-8 tracking-[-0.01em] text-brown; }
  .ping-page-subtitle { @apply mt-1 text-[15px] leading-[22px] text-brown-mid; }

  .ping-shell__content--shellless .ping-page-body { @apply overflow-y-auto; }

  .ping-stats-strip { @apply mt-4 grid gap-3; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .ping-stat-card { @apply rounded-xl border border-border-warm bg-white px-4 py-3; }
  .ping-stat-label { @apply mb-1 text-[12px] font-bold uppercase tracking-wider text-brown-light/50; }
  .ping-stat-value { @apply text-xl font-bold text-brown leading-none; }
  .ping-stat-card--coral { @apply border-coral/25 bg-coral/5; }
  .ping-stat-card--mint { @apply border-brand-green/25 bg-mint/35; }
  .ping-stat-card--yellow { @apply border-brand-yellow/30 bg-brand-yellow/10; }
  .ping-stat-card--teal { @apply border-brand-teal/25 bg-brand-teal/10; }
  .ping-stat-icon { @apply inline-flex h-9 w-9 items-center justify-center rounded-xl border border-border-warm bg-white/70 text-brown-mid; }
  .ping-stat-icon--coral { @apply border-coral/20 text-coral; }
  .ping-stat-icon--mint { @apply border-brand-green/25 text-brand-teal; }
  .ping-stat-icon--yellow { @apply border-brand-yellow/30 text-brown; }
  .ping-stat-icon--teal { @apply border-brand-teal/25 text-brand-teal; }

  .ping-results-header { @apply flex flex-wrap items-center justify-between gap-3 px-6 py-4; }
  .ping-results-count { @apply text-sm font-semibold text-brown-mid; }
  .ping-controls { @apply flex flex-wrap items-center gap-3; }
  .ping-select { @apply cursor-pointer rounded-lg border border-border-warm bg-white px-2.5 py-1.5 text-[13px] font-semibold text-brown outline-none transition hover:border-brand-green; }
  .ping-button-sm { @apply inline-flex items-center gap-1.5 rounded-lg border border-border-warm bg-white px-3 py-1.5 text-[13px] font-semibold text-brown-mid transition; }
  .ping-button-sm--filters { @apply hover:border-coral; }

  .ping-form-label { @apply text-[12px] font-bold uppercase tracking-wider text-brown-light/50; }
  .ping-input { @apply mt-2 w-full rounded-xl border border-border-warm bg-white px-3 py-2 text-[13px] font-semibold text-brown outline-none transition focus:border-coral; }
  .ping-input--number { -moz-appearance: textfield; appearance: textfield; }
  .ping-input--number::-webkit-inner-spin-button, .ping-input--number::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
  .ping-form-error { @apply rounded-xl border border-coral/30 bg-coral/5 px-4 py-3 text-[13px] font-semibold text-coral; }

  .ping-filter-drawer-close { @apply flex h-7 w-7 items-center justify-center rounded-lg transition text-brown-light/40 hover:text-brown-mid; }
  .ping-filter-drawer-close:hover { background: rgba(255, 255, 255, 0.8); }

  .ping-filter-field {
    @apply flex items-center gap-2 rounded-xl border border-border bg-cream/40 px-3 py-2 transition-all;
  }
  .ping-filter-field:focus-within {
    border-color: #ef463d;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(239, 70, 61, 0.06);
  }
  .ping-filter-field-icon { @apply h-3.5 w-3.5 shrink-0 text-brown-light/30; }

  .ping-filter-input-field { @apply w-full flex-1 border-0 bg-transparent p-0 text-[13px] font-medium text-brown placeholder:text-brown-light/35 outline-none shadow-none focus:ring-0; }
  .ping-filter-date { @apply w-full rounded-lg border border-border bg-cream/40 px-2.5 py-1.5 text-[13px] font-medium text-brown outline-none transition focus:border-coral focus:bg-white; }

  .ping-filter-check {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #e4ddd0;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
    flex-shrink: 0;
    background: white;
  }
  .ping-filter-check:hover { border-color: #96C2AC; }
  .ping-filter-check:checked,
  .ping-filter-check:indeterminate { background: #ef463d; border-color: #ef463d; }
  .ping-filter-check:checked::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
  }
  .ping-filter-check:indeterminate::after { content: ''; position: absolute; left: 2px; right: 2px; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px; background: white; }

  .ping-filter-pill-group { @apply flex flex-wrap gap-2; }
  .ping-filter-pill-input { @apply sr-only; }
  .ping-filter-pill { @apply inline-flex items-center justify-center rounded-lg border border-border bg-cream/40 px-3.5 py-1.5 text-[13px] font-semibold text-brown-mid transition; }
  .ping-filter-pill:hover { background: rgba(239, 70, 61, 0.04); border-color: #ef463d; }
  .ping-filter-pill-input:checked + .ping-filter-pill {
    @apply bg-coral text-white border-transparent;
    box-shadow: 0 2px 6px rgba(239, 70, 61, 0.2);
  }

  .ping-tabs-bar { @apply border-b border-border-warm bg-canvas; }
  .ping-tabs-nav { @apply relative flex items-center gap-6 overflow-x-auto px-6 py-2; }
  .ping-tab {
    @apply relative cursor-pointer whitespace-nowrap rounded-md px-1 py-3 text-[15px] font-medium text-brown-mid transition hover:text-brown focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-coral/30;
  }
  .ping-tab.is-active { @apply font-semibold text-brown; }
  .ping-tab-indicator { @apply absolute bottom-0 left-0 h-1 rounded-full bg-coral transition-all duration-200; }
  /* A tab bar above a pane that needs the height, such as a call's transcript. */
  .ping-tabs-bar--compact .ping-tabs-nav { @apply pb-0 pt-1; }
  .ping-tabs-bar--compact .ping-tab { @apply py-2.5; }
  .vapi-conv-show #tab-chat .ping-card__head { @apply py-2.5; }
  .vapi-conv-show #tab-chat .ping-card__title { @apply text-[15px] leading-[22px]; }

  .ping-avatar-chip { @apply flex h-7 w-7 shrink-0 items-center justify-center rounded-lg text-[12px] font-bold; background-image: linear-gradient(to bottom right, rgba(239, 70, 61, 0.2), rgba(239, 70, 61, 0.45)); color: #ef463d; }
  .ping-avatar-chip--empty { @apply bg-brown-light/10 text-brown-light/40; background-image: none; }
  .ping-person-name { @apply truncate text-[15px] font-semibold leading-[22px] text-brown; }
  .ping-person-name--empty { @apply font-medium text-brown-light; }

  .ping-grid-card { @apply mx-6 mb-4 overflow-hidden rounded-xl border border-border-warm bg-white flex flex-1 flex-col min-h-0; }
  .ping-grid-overflow { @apply min-h-0 flex-1 overflow-y-auto overflow-x-hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .ping-grid-head {
    @apply border-b border-border-warm bg-cream/50 px-4 py-2.5 text-[12px] font-bold uppercase tracking-wider text-brown-light/50;
    position: sticky;
    top: 0;
    z-index: 2;
  }
  .ping-grid-row { @apply border-b border-border-warm/60 px-4 py-2.5; }
  .ping-grid-row:hover { background: rgba(246, 241, 228, 0.3); }
  .ping-grid { @apply grid min-w-0 items-center gap-2; }
  .ping-grid-head > * {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ping-grid-row > * { min-width: 0; overflow: hidden; }
  .ping-grid-row [data-col] { min-width: 0; }

  .ping-badge { @apply inline-flex h-[26px] items-center justify-center whitespace-nowrap rounded-full px-2.5 text-[13px] font-medium; }
  .ping-badge--vapi { background: rgba(32, 178, 170, 0.1); color: #20B2AA; }
  .ping-badge--delivery { background: #e0f2f0; color: #12645f; }
  .ping-badge--pickup { background: #e6f0ea; color: #36584a; }
  .ping-badge--reservation { background: #fdf2cf; color: #6b5300; }
  .ping-badge--unknown { @apply bg-[#f1ede5] text-brown-mid; }
  .ping-lang-chip { @apply rounded bg-cream px-1.5 py-0.5 text-center text-[12px] font-bold text-brown-light/50; }

  .ping-table-card { @apply bg-white border border-border-warm rounded-2xl overflow-hidden shadow-[0_1px_4px_rgba(43,36,29,0.04)]; }
  .ping-table-card-header { @apply flex items-center justify-between gap-4 border-b border-border-warm px-4 py-4; }
  .ping-table-card-title { @apply text-lg font-semibold text-brown; }
  .ping-table-card-meta { @apply text-sm font-medium text-brown-light; }
  .ping-chart-frame { @apply rounded-2xl border border-border-warm bg-cream/20 p-4; }
  .ping-table-scroll { @apply overflow-x-auto; }
  .ping-table { @apply w-full text-left; }
  .ping-thead-row { @apply border-b border-border-warm bg-cream/40; }
  .ping-thead-row--sticky { position: sticky; top: 0; z-index: 1; }
  .ping-th { @apply px-4 py-3 text-[12px] font-bold uppercase tracking-wider text-brown-light/60; }
  .ping-td { @apply px-4 py-3.5 text-sm text-brown-mid; }
  .ping-td--mono { @apply font-mono font-semibold text-brown; }
  .ping-row { @apply border-b border-border-warm/60 transition-colors; }
  .ping-row:hover { background: rgba(43, 36, 29, 0.02); }
  .ping-table-link { @apply font-semibold text-brown hover:text-coral transition; }
  .ping-table-action { @apply inline-flex items-center justify-center rounded-lg border border-border-warm bg-white px-2.5 py-1.5 text-[13px] font-bold text-brown-mid hover:bg-cream transition; }
  .ping-table-action--danger { @apply border-coral/30 text-coral hover:bg-coral/10; }
  .ping-button-primary { @apply inline-flex items-center justify-center rounded-xl bg-coral px-4 py-2 text-[13px] font-bold text-white shadow-[0_4px_16px_rgba(239,70,61,0.2)] transition hover:bg-coral-dark active:scale-[0.97]; }
  .ping-confirm { @apply fixed inset-0 z-[100] p-4; }
  .ping-confirm__backdrop { @apply absolute inset-0 bg-brown/20 opacity-0 transition-opacity duration-150; }
  .ping-confirm__wrap { @apply relative flex min-h-full items-center justify-center; }
  .ping-confirm__panel { @apply opacity-0 translate-y-2 scale-[0.98] transition-all duration-150; }
  .ping-confirm.is-open .ping-confirm__backdrop { @apply opacity-100; }
  .ping-confirm.is-open .ping-confirm__panel { @apply opacity-100 translate-y-0 scale-100; }
  .ping-confirm__icon { @apply flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-coral/10 text-coral; }
  .ping-confirm__eyebrow { @apply text-[12px] font-bold uppercase tracking-wider text-brown-light/60; }
  .ping-confirm__title { @apply text-lg font-semibold text-brown; }
  .ping-confirm__message { @apply text-[13px] font-medium leading-5 text-brown-light; }
  .ping-confirm__actions { @apply flex justify-end gap-2 border-t border-border-warm px-6 py-4; }
  .ping-toast-stack { @apply pointer-events-none fixed inset-x-4 top-4 z-[100] flex flex-col gap-2 sm:left-auto sm:w-96; }
  .ping-toast {
    @apply pointer-events-auto flex w-full -translate-y-2 items-start gap-3 rounded-2xl border border-border-warm bg-white p-3 opacity-0 shadow-xl transition-all duration-150;
  }
  .ping-toast.is-open { @apply translate-y-0 opacity-100; }
  .ping-toast__icon { @apply flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-coral/10 text-coral; }
  .ping-toast--success .ping-toast__icon { @apply bg-brand-green/15 text-brand-teal; }
  .ping-toast__message { @apply min-w-0 flex-1 pt-1.5 text-[13px] font-medium leading-5 text-brown; }
  .ping-toast__close { @apply inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-lg text-brown-light/50 transition hover:bg-cream hover:text-brown; }
  .ping-pill { @apply inline-flex items-center gap-1 rounded-lg px-2 py-0.5 text-[13px] font-bold; }
  .ping-pill--neutral { @apply bg-cream text-brown-mid; }
  .ping-pill--mint { @apply bg-mint text-brand-teal; }
  .ping-pill--warn { @apply bg-brand-yellow/15 text-brown-mid; }
  .ping-pill--danger { @apply bg-coral/10 text-coral; }
  .ping-pill--yellow { @apply bg-brand-yellow/20 text-brown-mid; }
  .ping-pill--blue { @apply bg-[#dbeafe] text-[#1e40af]; }
  .ping-pill--purple { @apply bg-[#ede9fe] text-[#6d28d9]; }

  .ping-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
  }

  .ping-line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
  }

  .ping-builder-preview {
    @apply max-h-96 overflow-auto whitespace-pre-wrap rounded-2xl border border-border-warm bg-cream/20 p-4 text-[13px] leading-relaxed font-mono text-brown;
  }

  .ping-markdown { @apply text-[13px] font-medium leading-relaxed text-brown-mid; }
  .ping-markdown > * + * { margin-top: 12px; }
  .ping-markdown h1 { @apply text-xl font-bold text-brown; }
  .ping-markdown h2 { @apply text-lg font-bold text-brown; }
  .ping-markdown h3 { @apply text-base font-bold text-brown; }
  .ping-markdown h4 { @apply text-sm font-bold text-brown; }
  .ping-markdown ul { @apply list-disc pl-5; }
  .ping-markdown ol { @apply list-decimal pl-5; }
  .ping-markdown li { @apply text-[13px]; }
  .ping-markdown a { @apply font-semibold text-coral underline decoration-coral/30 underline-offset-2 hover:decoration-coral; }
  .ping-markdown blockquote { @apply rounded-xl border border-border-warm bg-white px-4 py-3 text-brown-light/80; }
  .ping-markdown code { @apply rounded-md border border-border-warm bg-white px-1.5 py-0.5 font-mono text-[13px] font-semibold text-brown; }
  .ping-markdown pre { @apply overflow-auto rounded-xl border border-border-warm bg-white px-4 py-3; }
  .ping-markdown pre code { @apply border-0 bg-transparent px-0 py-0; }
  .ping-markdown table { @apply w-full border-separate border-spacing-0 overflow-hidden rounded-xl border border-border-warm bg-white; }
  .ping-markdown th { @apply border-b border-border-warm bg-cream/30 px-3 py-2 text-left text-[12px] font-bold uppercase tracking-wider text-brown-light/60; }
  .ping-markdown td { @apply border-b border-border-warm/60 px-3 py-2 text-[13px] font-medium text-brown-mid; }
  .ping-markdown tr:last-child td { border-bottom: 0; }

  .ping-markdown-panel { @apply rounded-xl border border-border-warm bg-cream/30 px-4 py-4; }

  .ping-md-toggle { @apply inline-flex items-center gap-1 rounded-xl border border-border-warm bg-white p-1; }
  .ping-md-toggle-btn { @apply rounded-lg px-2.5 py-1 text-[13px] font-bold text-brown-light transition hover:bg-cream; }
  .ping-md-toggle-btn.is-active { @apply bg-coral text-white shadow-[0_2px_8px_rgba(239,70,61,0.2)]; }

  .ping-panel-scroll { @apply min-h-0 flex-1 overflow-y-auto; }
  .ping-panel-footer { @apply mt-3 border-t border-border-warm/60 pt-2; }
  .ping-code-plain { @apply whitespace-pre-wrap font-mono text-[13px] leading-relaxed text-brown-mid; }

  .ping-overflow-fade { @apply relative; }
  .ping-overflow-fade::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 44px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    background: linear-gradient(to bottom, rgba(246, 241, 228, 0), rgba(246, 241, 228, 0.98));
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }
  .ping-overflow-fade.has-more-below::after { opacity: 1; }

  .ping-diff ul { @apply list-none pl-0; }
  .ping-diff li { @apply my-1; }
  .ping-diff del {
    @apply block rounded-lg border border-coral/15 bg-coral/10 px-3 py-2 text-[13px] font-mono font-semibold text-coral;
    text-decoration-thickness: 2px;
  }
  .ping-diff ins {
    @apply block rounded-lg border border-brand-green/30 bg-brand-green/15 px-3 py-2 text-[13px] font-mono font-semibold text-brown;
    text-decoration: none;
  }

  .ping-builder-block { @apply overflow-hidden rounded-2xl border border-border-warm bg-white shadow-[0_1px_4px_rgba(43,36,29,0.04)]; }
  .ping-builder-block__top { @apply flex items-center gap-3 border-b border-border-warm px-4 py-3; }
  .ping-builder-block__drag { @apply inline-flex h-8 w-8 items-center justify-center rounded-xl border border-border-warm bg-cream/20 text-brown-light/60 transition hover:bg-cream hover:text-brown; }
  .ping-builder-block__content { @apply px-4 py-3; }
  .ping-builder-block__code { @apply rounded-xl border border-border-warm bg-cream/30 p-3 text-[13px] font-mono leading-relaxed text-brown-mid whitespace-pre-wrap; }
  .ping-builder-icon-btn {
    @apply inline-flex h-8 w-8 items-center justify-center rounded-xl border border-border-warm bg-white text-brown-light/60 transition hover:bg-cream hover:text-brown;
  }

  .ping-available-blocks { @apply max-h-[520px] overflow-auto space-y-2 pr-1; }
  .ping-available-block { @apply cursor-pointer rounded-2xl border border-border-warm bg-white px-3 py-3 transition hover:bg-cream/30; }
  .ping-entity-shell { @apply grid gap-6 lg:grid-cols-[260px_minmax(0,1fr)]; }
  .ping-entity-nav { @apply lg:sticky lg:top-6 self-start; }
  .ping-entity-nav-card { @apply overflow-hidden rounded-2xl border border-border-warm bg-white shadow-[0_1px_4px_rgba(43,36,29,0.04)]; }
  .ping-entity-nav-title { @apply border-b border-border-warm bg-cream/40 px-4 py-3 text-[12px] font-bold uppercase tracking-wider text-brown-light/60; }
  .ping-entity-nav-list { @apply p-2 space-y-1; }
  .ping-entity-nav-item {
    @apply relative flex items-center justify-between gap-3 rounded-xl px-3 py-2 text-[13px] font-semibold text-brown-light/70 transition hover:bg-cream/40 hover:text-brown;
  }
  .ping-entity-nav-item.is-active { @apply bg-cream text-brown; }
  .ping-entity-nav-item.is-active::before {
    content: '';
    @apply absolute left-0 top-2 bottom-2 w-1 rounded-full bg-coral;
  }

  .ping-tools-wall { @apply flex flex-wrap gap-x-2 gap-y-1; }
  .ping-tool-chip { @apply inline-flex items-center rounded-md border border-border-warm bg-cream/40 px-2 py-0.5 text-[13px] font-semibold text-brown-mid hover:bg-cream transition; }
  .ping-assistant-chip { @apply inline-flex items-center rounded-md border border-border-warm bg-mint/30 px-2 py-0.5 text-[13px] font-semibold text-brown-mid hover:bg-mint/50 transition; }
  .ping-code-pill { @apply inline-flex items-center gap-1 rounded-lg border border-border-warm bg-cream px-2 py-1 font-mono text-[13px] font-semibold text-brown; }

  .ping-filter-bar { @apply flex flex-wrap items-center gap-3; }
  .ping-filter-input {
    @apply w-full rounded-xl border border-border-warm bg-cream px-3 py-2 text-sm font-medium text-brown placeholder:text-brown-light/50 outline-none transition-all;
  }
  .ping-filter-input:focus { box-shadow: 0 0 0 3px rgba(239, 70, 61, 0.08); border-color: #ef463d; }
  .ping-filter-button { @apply rounded-xl bg-coral px-4 py-2 text-sm font-bold text-white shadow-[0_4px_16px_rgba(239,70,61,0.25)] transition-all hover:bg-coral-dark active:scale-[0.97]; }
  .ping-filter-clear { @apply rounded-xl border border-border-warm bg-white px-4 py-2 text-sm font-semibold text-brown-mid hover:bg-cream transition-all active:scale-[0.97]; }

  .ping-typeahead-menu {
    @apply absolute left-0 right-0 top-full z-30 mt-2 overflow-hidden rounded-2xl border border-border-warm bg-white shadow-[0_12px_30px_rgba(43,36,29,0.10)];
  }
  .ping-typeahead-results { @apply max-h-64 overflow-auto py-1; }
  .ping-typeahead-item {
    @apply flex w-full items-center justify-between gap-3 px-4 py-2 text-left text-[13px] font-semibold text-brown-mid transition hover:bg-cream/50;
  }
  .ping-typeahead-status { @apply px-4 py-3 text-[13px] font-semibold text-brown-light/70; }
  .ping-typeahead-clear {
    @apply absolute right-3 top-1/2 -translate-y-1/2 rounded-lg border border-border-warm bg-white p-1.5 text-brown-light/60 transition hover:bg-cream hover:text-brown;
  }

  .ping-scope-chip {
    @apply inline-flex items-center rounded-full border border-border-warm bg-white px-3 py-1 text-[13px] font-semibold text-brown-mid transition hover:border-coral;
  }
  .ping-scope-chip--on { @apply border-coral bg-coral/10 text-coral-dark; }
  .ping-scope-check {
    @apply flex h-4 w-4 shrink-0 items-center justify-center rounded border border-border-warm text-[12px] font-bold text-brown-light/50;
  }
  .ping-scope-check--on { @apply border-coral bg-coral/10 text-coral; }
  .ping-tree-row { @apply flex items-center gap-1 rounded-lg transition hover:bg-cream/40; }
  .ping-tree-row--on { @apply bg-coral/5; }
  .ping-tree-chevron {
    @apply flex h-6 w-5 shrink-0 items-center justify-center text-[12px] font-bold text-brown-light/50 transition hover:text-brown;
  }
  .ping-tree-label {
    @apply flex min-w-0 flex-1 items-center gap-2 rounded-lg px-2 py-1.5 text-[13px] font-semibold text-brown-mid;
  }

  /* FAQ index table: stacked labelled rows on phones, six columns from md up. */
  .ping-pagination { @apply w-full flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between; }
  .ping-page-list { @apply flex items-center gap-1; }
  .ping-page-btn {
    @apply inline-flex h-8 w-8 items-center justify-center rounded-lg border border-border-warm bg-white text-sm font-semibold text-brown-mid transition;
  }
  .ping-page-btn:hover { background: rgba(246, 241, 228, 1); }
  .ping-page-btn[aria-disabled="true"] { @apply cursor-not-allowed opacity-50; }
  .ping-page-btn--active { @apply border-coral bg-coral text-white shadow-[0_2px_8px_rgba(239,70,61,0.25)]; }
  .ping-page-meta { @apply text-[13px] font-medium text-brown-light; }

  .ping-settings-section { @apply border border-border-warm rounded-2xl bg-white overflow-hidden shadow-[0_1px_4px_rgba(43,36,29,0.04)]; }
  .ping-settings-summary { @apply flex cursor-pointer list-none items-center justify-between gap-4 border-b border-border-warm px-4 py-4 select-none; }
  .ping-settings-summary::-webkit-details-marker { display: none; }
  .ping-settings-summary::marker { content: ''; }
  .ping-settings-chevron { @apply h-5 w-5 text-brown-light/50 transition-transform duration-200 group-open:rotate-180; }
  .ping-settings-body { @apply bg-white; }
  .ping-settings-head { @apply grid grid-cols-12 gap-4 border-b border-border-warm bg-cream/40 px-6 py-3 text-[12px] font-bold uppercase tracking-wider text-brown-light/60; }
  .ping-settings-head > :nth-child(1) { @apply col-span-12 md:col-span-4; }
  .ping-settings-head > :nth-child(2) { @apply col-span-12 md:col-span-5; }
  .ping-settings-head > :nth-child(3) { @apply col-span-6 md:col-span-2; }
  .ping-settings-head > :nth-child(4) { @apply col-span-6 md:col-span-1; }

  .ping-settings-row { @apply grid grid-cols-12 gap-4 px-6 py-5; }
  .ping-settings-setting { @apply col-span-12 md:col-span-4 min-w-0; }
  .ping-settings-setting__name { @apply text-[13px] font-semibold text-brown; }
  .ping-settings-setting__desc { @apply mt-1 text-[13px] font-medium text-brown-light; }
  .ping-settings-setting__key { @apply mt-2 font-mono text-[13px] font-semibold text-brown-light/60; }
  .ping-settings-value { @apply col-span-12 md:col-span-5 min-w-0 text-sm text-brown-mid; }
  .ping-settings-source { @apply col-span-6 md:col-span-2 flex items-start; }
  .ping-settings-actions { @apply col-span-6 md:col-span-1 flex items-start justify-end gap-2; }

  .ping-settings-empty { @apply text-[13px] font-medium italic text-brown-light; }
  .ping-settings-pre { @apply max-w-full whitespace-pre-wrap break-words rounded-xl border border-border-warm bg-cream/20 p-3 text-[13px] leading-relaxed font-mono text-brown; }
  .ping-settings-pre--preview { @apply max-h-48 overflow-auto; }
  .ping-settings-pre--expanded { @apply max-h-96 overflow-auto; }
  .ping-settings-text { @apply rounded-xl border border-border-warm bg-cream/10 px-3 py-2 text-[13px] font-medium text-brown-mid; }
  .ping-settings-expand { @apply mt-2 inline-flex items-center rounded-lg border border-border-warm bg-white px-2.5 py-1.5 text-[13px] font-bold text-brown-mid hover:bg-cream transition; }

  .ping-kv-row { @apply grid grid-cols-12 gap-4 px-6 py-4; }
  .ping-kv-key { @apply col-span-5 text-[12px] font-bold uppercase tracking-wider text-brown-light/50; }
  .ping-kv-val { @apply col-span-7 text-[13px] font-semibold text-brown-mid break-words; }

  .ping-role-grid { @apply grid grid-cols-1 gap-2 sm:grid-cols-2; }
  .ping-role-option { @apply flex items-center gap-2 rounded-xl border border-border-warm bg-cream/15 px-3 py-2 transition hover:bg-cream/30; }
  .ping-role-checkbox { @apply h-4 w-4 rounded border-border-warm text-coral focus:ring-coral/20; }
}

.ping-sidebar__scroll::-webkit-scrollbar { width: 5px; }
.ping-sidebar__scroll::-webkit-scrollbar-track { background: transparent; }
.ping-sidebar__scroll::-webkit-scrollbar-thumb { background: #e4ddd0; border-radius: 99px; }
.ping-sidebar__scroll::-webkit-scrollbar-thumb:hover { background: #d4cab8; }

.select2-container {
  /* The container where the selectbox is housing*/
  @apply relative box-border align-middle inline-block m-0 mb-2;
}
.select2-container .select2-selection--single {
  /* Selection box itself */
  @apply box-border cursor-pointer block select-none shadow border rounded;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  /* DIV inside Selection box with text, clear button and arrow down*/
  @apply block h-6 pl-1 pr-6 truncate;
}
.select2-container .select2-selection--single .select2-selection__clear {
  /* The DIV where the X is housing to clear the chosen option */
  @apply relative -m-1;
}
.select2-container[dir="rtl"]
  .select2-selection--single
  .select2-selection__rendered {
  /*@apply;*/
}

.select2-container .select2-selection--multiple {
  @apply box-border overflow-hidden h-4 cursor-pointer block select-none;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
  @apply inline-block pl-2 truncate whitespace-nowrap;
}
.select2-container .select2-search--inline {
  /* Search box*/
  @apply float-left;
}
.select2-container .select2-search--inline .select2-search__field {
  @apply box-border border dark:border-gray-600 pl-1 my-1 w-full text-base;
}
.select2-container
  .select2-search--inline
  .select2-search__field::-webkit-search-cancel-button {
  @apply appearance-none;
}

.select2-dropdown {
  /* Dropdown area after the arrow down is clicked */
  @apply absolute block w-auto box-border bg-white dark:bg-slate-700 border-solid border border-gray-200 z-50 float-left;
}

.select2-results {
  @apply block text-black dark:text-gray-300;
}

.select2-results__options {
  @apply list-none m-0 p-0;
}

.select2-results__option {
  /* The rows with results that you see after dropdown.
	Increase p-1 to p-2 to have more space between results */
  @apply p-1 select-none;
}
.select2-results__option[aria-selected] {
  @apply cursor-pointer;
}

.select2-container--open .select2-dropdown {
  /* Dropdown container opened and results are shown*/
  @apply mt-3 left-0;
}

.select2-container--open .select2-dropdown--above {
  /* The left and right borders of the option rows */
  @apply rounded border-gray-400 dark:border-gray-700 shadow;
}

.select2-container--open .select2-dropdown--below {
  /* The left and right borders of the option rows */
  @apply rounded border-gray-400 dark:border-gray-700 shadow;
}

.select2-search--dropdown {
  /* Search dropdown element*/
  @apply block p-2;
}
.select2-search--dropdown .select2-search__field {
  /* Search box itself where you can enter text*/
  @apply h-10 p-1 bg-white dark:bg-slate-500 box-border rounded border-2 border-blue-300 dark:border-gray-700 dark:text-gray-200 outline-none;
  width: 100%;
}
.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
  @apply appearance-none;
}
.select2-search--dropdown.select2-search--hide {
  @apply hidden;
}

.select2-close-mask {
  @apply block w-12 min-w-full m-0 p-0;
  border: 0;
  position: fixed;
  left: 0;
  top: 0;
  min-height: 100%;
  height: auto;
  width: auto;
  opacity: 0;
  z-index: 99;
  background-color: #fff;
  filter: alpha(opacity=0);
}

.select2-hidden-accessible {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

/*

	Default template settings:

*/

.select2-container--default .select2-selection--single {
  /* Selection bar - Self */
  @apply p-2 h-10 bg-white dark:bg-slate-700 border border-solid dark:border-gray-700;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  /* Selection bar - Text color of the item you selected from the results */
  @apply text-gray-700 dark:text-gray-200;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__clear {
  /* Selection bar - Clear button - If this property is enabled*/
  @apply cursor-pointer float-right text-red-700;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  /* Selection bar - Color of the placeholder text before selection - If this property is enabled */
  @apply text-gray-600 dark:text-gray-300;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  /* Selection bar - DIV where the arrow pointing down is living*/
  @apply absolute right-0 top-0 h-10 w-8;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow
  b {
  /* Arrow is a CSS triangle that does not exists in Tailwind without a package */
  @apply absolute border-solid h-0 w-0 border-t-4 border-r-4 border-b-0 border-l-4;
  border-color: #000 transparent transparent transparent;
  left: 50%;
  margin-left: -4px;
  margin-top: -2px;
  top: 50%;
}

.select2-container--default[dir="rtl"]
  .select2-selection--single
  .select2-selection__clear {
  /* Selection bar - Clear button - If this property is enabled from right to left*/
  @apply float-left ml-4;
}

.select2-container--default[dir="rtl"]
  .select2-selection--single
  .select2-selection__arrow {
  /* Placement of the dropdown arrow when in rtl mode */
  @apply left-0 right-auto;
}

.select2-container--default.select2-container--disabled
  .select2-selection--single {
  /* Selection by property disabled*/
  @apply cursor-default bg-gray-300;
}
.select2-container--default.select2-container--disabled
  .select2-selection--single
  .select2-selection__clear {
  /* Selection bar - Hide the clear cross when selection bar is disabled*/
  @apply hidden;
}

.select2-container--default.select2-container--open
  .select2-selection--single
  .select2-selection__arrow
  b {
  border-color: transparent transparent #888 transparent;
  border-width: 0 4px 5px 4px;
}

.select2-container--default .select2-selection--multiple {
  @apply p-1 min-h-full h-full border border-solid dark:border-gray-700 rounded shadow bg-white dark:bg-slate-700;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__rendered {
  @apply box-border list-none m-0 px-1 min-w-full;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__rendered
  li {
  @apply list-none;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__clear {
  @apply float-right cursor-pointer mt-1 mr-2 p-1;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice {
  @apply bg-white dark:bg-slate-700 text-gray-700 dark:text-gray-200 border cursor-default rounded my-1 mr-1 px-2 float-left;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove {
  @apply text-gray-700 dark:text-gray-200 cursor-pointer inline-block mr-1;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove:hover {
  @apply text-gray-700 dark:text-gray-200;
}
.select2-container--default.select2-container--focus
  .select2-selection--multiple {
  @apply border-2 outline-none;
}

.select2-container--default.select2-container--disabled
  .select2-selection__choice__remove {
  @apply hidden;
}
.select2-container--classic
  .select2-selection--multiple
  .select2-selection__choice {
  @apply bg-gray-300 border-2 dark:border-gray-700 shadow rounded float-left cursor-default mt-1 mr-1 px-1;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
  /* The border of the search textbox */
  @apply border-solid;
}

.select2-container--default .select2-search--inline .select2-search__field {
  /* Search textbox */
  @apply border-none bg-transparent outline-none shadow-none select-text;
}

.select2-container--default .select2-results > .select2-results__options {
  /* Hight of the dropdown zone where the options or results are visible */
  @apply h-full max-h-32 overflow-y-auto;
}

.select2-container--default .select2-results__option[role="group"] {
  /* No clue what this does */
  @apply p-0;
}

.select2-container--default .select2-results__option[aria-disabled="true"] {
  @apply text-gray-700;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
  /* The already selected option row color */
  @apply bg-gray-300 dark:text-gray-700;
}
.select2-results__option--selected {
  @apply hidden;
}
.select2-container--default .select2-results__option .select2-results__option {
  padding-left: 1em;
}
.select2-container--default
  .select2-results__option
  .select2-results__option
  .select2-results__group {
  padding-left: 0;
}
.select2-container--default
  .select2-results__option
  .select2-results__option
  .select2-results__option {
  margin-left: -1em;
  padding-left: 2em;
}
.select2-container--default
  .select2-results__option
  .select2-results__option
  .select2-results__option
  .select2-results__option {
  margin-left: -2em;
  padding-left: 3em;
}
.select2-container--default
  .select2-results__option
  .select2-results__option
  .select2-results__option
  .select2-results__option
  .select2-results__option {
  margin-left: -3em;
  padding-left: 4em;
}
.select2-container--default
  .select2-results__option
  .select2-results__option
  .select2-results__option
  .select2-results__option
  .select2-results__option
  .select2-results__option {
  margin-left: -4em;
  padding-left: 5em;
}
.select2-container--default
  .select2-results__option
  .select2-results__option
  .select2-results__option
  .select2-results__option
  .select2-results__option
  .select2-results__option
  .select2-results__option {
  margin-left: -5em;
  padding-left: 6em;
}

.select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  /* Background color and text color of the options rows when select is open */
  @apply bg-gray-100 dark:bg-gray-500 text-gray-700 dark:text-gray-200;
}

.select2-container--default .select2-results__group {
  /* Have no idea what this is for */
  @apply cursor-default block;
  padding: 6px;
}

.select2-container--ping {
  @apply relative box-border inline-block w-full align-middle font-body;
  margin-bottom: 0;
}

.select2-container--ping .select2-selection--single {
  @apply box-border flex min-h-[42px] cursor-pointer items-center rounded-xl border border-border-warm bg-white px-3 py-2 shadow-none outline-none transition;
}

.select2-container--ping.select2-container--open .select2-selection--single,
.select2-container--ping.select2-container--focus .select2-selection--single {
  @apply border-coral bg-white shadow-[0_0_0_3px_rgba(239,70,61,0.08)];
}

.select2-container--ping .select2-selection--single .select2-selection__rendered {
  @apply h-auto flex-1 truncate p-0 pr-8 text-[13px] font-semibold leading-5 text-brown;
}

.select2-container--ping .select2-selection--single .select2-selection__placeholder {
  @apply text-brown-light/50;
}

.select2-container--ping .select2-selection--single .select2-selection__clear {
  @apply mr-2 cursor-pointer text-[14px] font-bold text-brown-light/50 transition hover:text-coral;
}

.select2-container--ping .select2-selection--single .select2-selection__arrow {
  @apply absolute right-3 top-1/2 h-5 w-5 -translate-y-1/2;
}

.select2-container--ping .select2-selection--single .select2-selection__arrow b {
  @apply absolute left-1/2 top-1/2 h-0 w-0 -translate-x-1/2 -translate-y-1/2 border-b-0 border-l-4 border-r-4 border-t-4 border-solid;
  border-color: #5b4f42 transparent transparent transparent;
}

.select2-container--ping.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #5b4f42 transparent;
  border-width: 0 4px 5px 4px;
}

.select2-container--ping.select2-container--disabled .select2-selection--single {
  @apply cursor-default bg-cream/30 text-brown-light;
}

.select2-container--ping .select2-dropdown {
  @apply mt-2 overflow-hidden rounded-xl border border-border-warm bg-white shadow-xl;
}

.select2-container--ping .select2-dropdown--above,
.select2-container--ping .select2-dropdown--below {
  @apply border-border-warm;
}

.select2-container--ping .select2-search--dropdown {
  @apply border-b border-border-warm bg-cream/20 p-2;
}

.select2-container--ping .select2-search--dropdown .select2-search__field {
  @apply h-9 w-full rounded-lg border border-border-warm bg-white px-2.5 py-1.5 text-[13px] font-medium text-brown outline-none transition placeholder:text-brown-light/40 focus:border-coral focus:ring-0;
}

.select2-container--ping .select2-results {
  @apply bg-white text-brown;
}

.select2-container--ping .select2-results > .select2-results__options {
  @apply max-h-56 overflow-y-auto py-1;
}

.select2-container--ping .select2-results__option {
  @apply mx-1 rounded-lg px-3 py-2 text-[13px] font-medium text-brown-mid transition;
}

.select2-container--ping .select2-results__option[aria-disabled="true"] {
  @apply text-brown-light/40;
}

.select2-container--ping .select2-results__option[aria-selected="true"],
.select2-container--ping .select2-results__option--selected {
  @apply block bg-cream/60 text-brown;
}

.select2-container--ping .select2-results__option--highlighted[aria-selected] {
  @apply bg-coral text-white;
}

.select2-container--ping .select2-results__group {
  @apply px-3 py-2 text-[12px] font-bold uppercase tracking-wider text-brown-light/50;
}
@tailwind utilities;

@layer components {
  .link-label-blue {
    @apply font-bold text-sm text-blue-500 hover:text-blue-800;
  }

  .black-button {
    @apply text-sm bg-slate-900 text-white px-4 py-2 rounded-lg hover:bg-slate-800 flex items-center;
  }

  .gray-button {
    @apply text-sm bg-slate-200 text-slate-500 px-4 py-2 rounded-lg hover:bg-slate-300 flex items-center;
  }

  .auth-button {
    @apply bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded;
  }

  .link-sidebar {
    @apply flex items-center px-2 py-2 text-sm font-medium text-gray-700 rounded-md hover:bg-gray-100;
  }

  .dropdown-button {
    @apply inline-flex items-center justify-center gap-1.5 rounded-xl border border-border-warm bg-white px-3 py-1.5 text-[13px] font-semibold text-brown-mid transition hover:bg-cream;
  }

  .dropdown-menu {
    @apply absolute right-0 z-20 mt-2 w-56 overflow-hidden rounded-2xl border border-border-warm bg-white shadow-xl;
  }

  .dropdown-option {
    @apply flex w-full items-center gap-2 px-4 py-2.5 text-[13px] font-semibold text-brown-mid transition hover:bg-cream;
  }

  .dropdown-option-not-allowed {
    @apply flex w-full items-center gap-2 px-4 py-2.5 text-[13px] font-semibold text-brown-light/50 cursor-not-allowed;
  }

  .minimal-dropdown-button {
    @apply text-brown-light/60 hover:text-brown p-1 rounded-full hover:bg-cream focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-coral/30;
  }

  .minimal.dropdown-menu {
    @apply origin-top-right absolute right-0 mt-2 w-56 overflow-hidden rounded-2xl border border-border-warm bg-white shadow-xl focus:outline-none;
  }

  .popover-content {
    @apply z-50 min-w-[200px] max-w-[300px] overflow-hidden text-left;
    box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 1023px) {
  .dashboard-page {
    display: block;
    overflow-y: auto;
  }
  .dashboard-page .ping-page-header {
    padding-left: 1rem;
    padding-right: 1rem;
    position: static;
  }
  .dashboard-page .ping-page-body {
    display: block;
    overflow: visible;
  }
  .dashboard-page .ping-stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-page .ping-table { table-layout: fixed; }
  .dashboard-page .ping-th,
  .dashboard-page .ping-td {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .dashboard-page .ping-th:first-child,
  .dashboard-page .ping-td:first-child { padding-left: 0.75rem; }
  .dashboard-page .ping-th:last-child,
  .dashboard-page .ping-td:last-child { padding-left: 0.25rem; padding-right: 0.75rem; }
  .dashboard-page .ping-table th:nth-child(1) { width: 6.5rem; }
  .dashboard-page .ping-table th:nth-child(4) { width: 5rem; }
  .dashboard-page .ping-table th:nth-child(6) { width: 5rem; }
}

.vapi-store-links-content {
  padding: 0 1.5rem 1.5rem;
}
.vapi-store-links-table-scroll { overflow: auto; }
.vapi-store-links-table { table-layout: fixed; }
.vapi-store-links-field {
  min-width: 0;
  overflow: hidden;
}
.vapi-store-links-action { text-align: right; }
.vapi-store-links-mobile-label {
  display: none;
  margin-bottom: 0.5rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1rem;
  text-transform: uppercase;
  color: rgb(119 107 95);
}

@media (max-width: 1023px) {
  .vapi-store-links-page {
    display: block;
    overflow-y: auto;
  }
  .vapi-store-links-page .ping-page-header {
    padding-left: 1rem;
    padding-right: 1rem;
    position: static;
  }
  .vapi-store-links-page .ping-page-body {
    display: block;
    overflow: visible;
  }
  .vapi-store-links-content {
    padding-bottom: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .vapi-store-links-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }
  .vapi-store-links-table-scroll { overflow: visible; }
  .vapi-store-links-table {
    display: block;
    table-layout: auto !important;
    width: 100%;
  }
  .vapi-store-links-table colgroup,
  .vapi-store-links-table thead { display: none; }
  .vapi-store-links-table tbody {
    display: block;
    padding: 0;
  }
  .vapi-store-links-table .vapi-store-links-row {
    background: white;
    border: 1px solid #e4ddd0;
    border-radius: 0.75rem;
    display: block;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(43, 36, 29, 0.04);
    width: 100%;
  }
  .vapi-store-links-table .vapi-store-links-row + .vapi-store-links-row { margin-top: 0.75rem; }
  .vapi-store-links-table .vapi-store-links-row > td {
    border-top: 1px solid rgb(228 221 208 / 0.6);
    box-sizing: border-box;
    display: block;
    text-align: left;
    width: 100%;
  }
  .vapi-store-links-table .vapi-store-links-row > td:first-child { border-top: 0; }
  .vapi-store-links-store { background: rgb(246 241 228 / 0.3); }
  .vapi-store-links-mobile-label { display: block; }
  .vapi-store-links-save {
    padding-bottom: 0.625rem;
    padding-top: 0.625rem;
    width: 100%;
  }
  .vapi-store-links-pagination {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 1023px) {
  .vapi-conv-show {
    display: block;
    overflow-y: auto;
  }
  .vapi-conv-show .ping-tabs-nav {
    gap: 1.25rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .vapi-conv-split,
  .vapi-conv-main {
    display: block;
    overflow: visible;
  }
  /* never reference .hidden in a selector: Tailwind rewrites it into one rule per
     `@apply hidden` class and drops the literal case, which would force every
     tab panel visible. Panels stay display:flex so .hidden still wins on them. */
  .vapi-conv-show [role="tabpanel"] { overflow: visible; }
  .vapi-conv-side { overflow: visible; }
}

/* Phone call header: the secondary actions become rows of the "More actions" menu. */
@media (max-width: 639px) {
  .call-head-more__menu > .ping-tool-button {
    @apply h-auto w-full rounded-none border-0 px-4 py-2.5 text-[13px] font-semibold text-brown-mid hover:bg-cream;
  }
  .call-head-actions > .ping-tool-button { display: none; }
  .call-head-actions .dropdown-menu { @apply static mt-0 block w-full rounded-none border-0 border-t shadow-none; }
}


/* ---------- Operator list pattern: toolbar, Filter panel, chips, list rows ---------- */
@layer components {
  .ping-list-toolbar { @apply relative flex flex-wrap items-center gap-2.5 px-4 pb-3 pt-4 sm:px-6 sm:pt-5; }
  .ping-list-search { @apply flex h-10 w-full items-center gap-2 rounded-lg border border-border-warm bg-white px-3 transition sm:w-[300px]; }
  .ping-list-search:focus-within { border-color: #ef463d; box-shadow: 0 0 0 3px rgba(239, 70, 61, 0.12); }
  .ping-list-search input { @apply w-full min-w-0 border-0 bg-transparent p-0 text-[15px] text-brown placeholder:text-brown-light focus:outline-none focus:ring-0; }
  .ping-list-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
  .ping-list-count { @apply ml-auto text-[14px] text-brown-mid; }
  .ping-list-count strong { @apply font-semibold text-brown; }

  .ping-tool-button { @apply inline-flex h-10 items-center gap-2 whitespace-nowrap rounded-lg border border-border-warm bg-white px-3.5 text-[14px] font-medium text-brown transition hover:border-[#d4cab8]; }
  .ping-tool-button svg { @apply h-[18px] w-[18px] text-brown-light; }
  .ping-tool-button[aria-expanded="true"] { @apply border-[#d4cab8] bg-canvas; }
  .ping-filter__badge { @apply inline-grid h-5 min-w-5 place-items-center rounded-full bg-brown px-1.5 text-[12px] font-semibold leading-4 text-white; }
  .ping-filter__panel { @apply absolute left-4 right-4 top-full z-30 -mt-1 rounded-xl border border-border-warm bg-white shadow-[0_12px_32px_rgba(43,36,29,0.14)] sm:left-6 sm:right-auto sm:w-[640px] sm:max-w-[calc(100%-3rem)]; }
  .ping-filter__body { @apply grid max-h-[60vh] gap-x-5 gap-y-4 overflow-y-auto p-3.5; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .ping-filter__section { @apply m-0 min-w-0 border-0 p-0; }
  .ping-filter__label { @apply block px-2 pb-1 text-[12px] font-semibold uppercase leading-4 tracking-[0.08em] text-brown-light; }
  .ping-filter__opt { @apply flex cursor-pointer items-center gap-2.5 rounded-lg px-2 py-1.5 text-[14px] leading-5 text-brown hover:bg-canvas; }
  .ping-filter__opt input { @apply h-4 w-4 shrink-0 border-border-warm text-brown focus:ring-brown/30; }
  .ping-filter__field { @apply ml-2 mt-1 block w-[calc(100%-0.5rem)] rounded-lg border-border-warm px-3 py-2 text-[14px] text-brown focus:border-coral focus:ring-coral/20; }
  .ping-filter__field-label { @apply ml-2 mt-2 block text-[13px] text-brown-light; }
  .ping-filter__foot { @apply flex items-center justify-between rounded-b-xl border-t border-row-line bg-canvas px-3.5 py-2.5; }
  .ping-filter__clear { @apply rounded-md px-2 py-1 text-[14px] font-semibold text-brown-mid hover:text-brown hover:underline; }
  .ping-filter__apply { @apply inline-flex h-9 items-center rounded-lg bg-brown px-4 text-[14px] font-semibold text-white transition hover:bg-black; }

  .ping-chips { @apply flex flex-wrap items-center gap-2 px-4 pb-3 sm:px-6; }
  .ping-chip { @apply inline-flex h-8 max-w-full items-center gap-1.5 rounded-full border border-border-warm bg-white pl-3 pr-1 text-[14px] leading-5 text-brown-mid; }
  .ping-chip strong { @apply truncate font-semibold text-brown; }
  .ping-chip__remove { @apply grid h-6 w-6 shrink-0 place-items-center rounded-full text-brown-light hover:bg-cream hover:text-brown; }
  .ping-chips__clear { @apply rounded-md px-2 py-1 text-[14px] font-semibold text-brown-mid hover:text-brown hover:underline; }

  .ping-list { @apply mx-4 mb-4 overflow-x-auto rounded-xl border border-border-warm bg-white sm:mx-6 sm:mb-6; container-type: inline-size; }
  .ping-list__grid { @apply grid items-center gap-x-4; }
  .ping-list__head { @apply hidden h-11 border-b border-border-warm bg-canvas px-5 text-[13px] font-semibold leading-[18px] text-brown-light; }
  .ping-list__row { @apply border-b border-row-line px-4 py-3.5 text-brown transition-colors hover:bg-canvas focus-visible:bg-canvas focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-coral/40 sm:px-5; }
  .ping-list__row:last-child { border-bottom: 0; }
  .ping-list__row > *, .ping-list__head > * { min-width: 0; }
  .ping-list__chev { @apply hidden h-4 w-4 text-[#cfc6b6]; }
  .ping-list__row:hover .ping-list__chev { @apply text-brown-mid; }
  .ping-list-empty { @apply px-6 py-12 text-center text-[15px] leading-[22px] text-brown-mid; }
  .ping-list-pages { @apply px-4 pb-6 sm:px-6; }

  .ping-cell { @apply truncate text-[14px] leading-5 text-brown-mid; }
  .ping-cell-primary { @apply truncate text-[15px] font-medium leading-[22px] text-brown; }
  .ping-cell-secondary { @apply truncate text-[13px] leading-[18px] text-brown-light; }
  .ping-cell-summary { @apply text-[14px] leading-5 text-brown-mid; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .ping-cell-mono { @apply truncate font-mono text-[13px] text-brown-mid; }
  .ping-channel-dot { @apply grid h-[30px] w-[30px] shrink-0 place-items-center rounded-lg bg-cream text-brown-mid; }

  /* Phones: each row is a small stacked card laid out by grid areas (set per list below). */
  .ping-list [data-cell] { min-width: 0; }
  .ping-list [data-cell="wide"] { display: none; }

  @container (min-width: 600px) {
    .ping-list__head { display: grid; align-items: center; }
    .ping-list__chev { display: block; }
    .ping-list [data-cell="wide"] { display: block; }
  }

  /* Conversations */
  .ping-list--conv .ping-list__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "customer when" "store kind" "summary summary"; row-gap: 6px; }
  .ping-list--conv [data-cell="when"] { grid-area: when; text-align: right; }
  .ping-list--conv [data-cell="customer"] { grid-area: customer; }
  .ping-list--conv [data-cell="store"] { grid-area: store; }
  .ping-list--conv [data-cell="kind"] { grid-area: kind; justify-self: end; }
  .ping-list--conv [data-cell="summary"] { grid-area: summary; }
  .ping-list--conv [data-cell="length"], .ping-list--conv [data-cell="tech"] { display: none; }
  @container (min-width: 600px) {
    .ping-list--conv .ping-list__grid { grid-template-columns: 112px minmax(0, 1.2fr) minmax(0, 1.2fr) 84px minmax(0, 1.6fr) 52px 16px; grid-template-areas: none; }
    .ping-list--conv .ping-list__grid > * { grid-area: auto; }
    .ping-list--conv [data-cell="when"] { text-align: left; }
    .ping-list--conv [data-cell="kind"] { justify-self: start; }
    .ping-list--conv [data-cell="length"] { display: block; }
  }
  @container (min-width: 880px) {
    .ping-list--conv .ping-list__grid { grid-template-columns: 112px minmax(150px, 1.2fr) minmax(100px, 0.9fr) 92px minmax(160px, 2.4fr) 52px 16px; }
  }
  @container (min-width: 1100px) {
    .ping-list--conv-tech .ping-list__grid { grid-template-columns: 112px minmax(150px, 1.2fr) minmax(100px, 0.9fr) 92px minmax(160px, 2.4fr) 52px 96px 44px 88px 16px; }
    .ping-list--conv-tech [data-cell="tech"] { display: block; }
  }

  /* Orders */
  .ping-list--orders .ping-list__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "order total" "customer status" "store kind"; row-gap: 6px; }
  .ping-list--orders [data-cell="order"] { grid-area: order; }
  .ping-list--orders [data-cell="customer"] { grid-area: customer; }
  .ping-list--orders [data-cell="store"] { grid-area: store; }
  .ping-list--orders [data-cell="kind"] { grid-area: kind; justify-self: end; }
  .ping-list--orders [data-cell="total"] { grid-area: total; text-align: right; }
  .ping-list--orders [data-cell="status"] { grid-area: status; justify-self: end; }
  .ping-list--orders [data-cell="source"], .ping-list--orders [data-cell="pos"] { display: none; }
  @container (min-width: 600px) {
    .ping-list--orders .ping-list__grid { grid-template-columns: minmax(128px, 0.8fr) minmax(72px, 0.5fr) minmax(0, 1.4fr) minmax(0, 1fr) 84px 124px 16px; grid-template-areas: none; }
    .ping-list--orders [data-cell="pos"] { display: block; }
    .ping-list--orders .ping-list__grid > * { grid-area: auto; }
    .ping-list--orders [data-cell="kind"] { display: none; }
    .ping-list--orders [data-cell="status"] { justify-self: start; }
  }
  @container (min-width: 980px) {
    .ping-list--orders .ping-list__grid { grid-template-columns: minmax(128px, 0.8fr) minmax(80px, 0.6fr) minmax(150px, 1.4fr) minmax(110px, 1fr) minmax(160px, 1.4fr) minmax(96px, 0.8fr) 84px 124px 16px; }
    .ping-list--orders [data-cell="kind"] { display: flex; justify-self: stretch; }
    .ping-list--orders [data-cell="source"] { display: block; }
  }

  /* Customers */
  .ping-list--customers .ping-list__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "customer spend" "phone orders" "stores stores"; row-gap: 4px; }
  .ping-list--customers [data-cell="customer"] { grid-area: customer; }
  .ping-list--customers [data-cell="phone"] { grid-area: phone; }
  .ping-list--customers [data-cell="stores"] { grid-area: stores; }
  .ping-list--customers [data-cell="orders"] { grid-area: orders; text-align: right; }
  .ping-list--customers [data-cell="spend"] { grid-area: spend; text-align: right; }
  .ping-list--customers [data-cell="latest"], .ping-list--customers [data-cell="tech"] { display: none; }
  @container (min-width: 600px) {
    .ping-list--customers .ping-list__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 72px 96px 16px; grid-template-areas: none; }
    .ping-list--customers .ping-list__grid > * { grid-area: auto; }
    .ping-list--customers [data-cell="stores"] { display: none; }
  }
  @container (min-width: 880px) {
    .ping-list--customers .ping-list__grid { grid-template-columns: minmax(170px, 1.4fr) 150px minmax(120px, 1fr) 72px 96px 120px 16px; }
    .ping-list--customers [data-cell="stores"], .ping-list--customers [data-cell="latest"] { display: block; }
    .ping-list--customers-tech .ping-list__grid { grid-template-columns: minmax(170px, 1.4fr) 150px minmax(120px, 1fr) 72px 96px 120px 104px 16px; }
    .ping-list--customers-tech [data-cell="tech"] { display: block; }
  }

  /* Transfers */
  .ping-list--transfers .ping-list__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "caller when" "store forwarded" "reason reason"; row-gap: 6px; }
  .ping-list--transfers [data-cell="when"] { grid-area: when; text-align: right; }
  .ping-list--transfers [data-cell="caller"] { grid-area: caller; }
  .ping-list--transfers [data-cell="store"] { grid-area: store; }
  .ping-list--transfers [data-cell="forwarded"] { grid-area: forwarded; text-align: right; }
  .ping-list--transfers [data-cell="reason"] { grid-area: reason; }
  @container (min-width: 600px) {
    .ping-list--transfers .ping-list__grid { grid-template-columns: 112px minmax(0, 1.1fr) minmax(0, 2fr) 16px; grid-template-areas: none; }
    .ping-list--transfers .ping-list__grid > * { grid-area: auto; }
    .ping-list--transfers [data-cell="when"], .ping-list--transfers [data-cell="forwarded"] { text-align: left; }
    .ping-list--transfers [data-cell="store"], .ping-list--transfers [data-cell="forwarded"] { display: none; }
  }
  @container (min-width: 880px) {
    .ping-list--transfers .ping-list__grid { grid-template-columns: 112px minmax(150px, 1.1fr) minmax(110px, 0.9fr) minmax(200px, 2fr) 150px 16px; }
    .ping-list--transfers [data-cell="store"], .ping-list--transfers [data-cell="forwarded"] { display: block; }
  }

  /* Feedback */
  .ping-sort { @apply inline-flex items-center gap-1 hover:text-brown; }
  .ping-sort.is-on { @apply text-brown; }
  .ping-list--feedback .ping-pill { white-space: nowrap; }
  .ping-list--feedback .ping-list__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "feedback feedback" "conversation status" "author submitted"; row-gap: 6px; }
  .ping-list--feedback [data-cell="feedback"] { grid-area: feedback; }
  .ping-list--feedback [data-cell="conversation"] { grid-area: conversation; }
  .ping-list--feedback [data-cell="status"] { grid-area: status; justify-self: end; }
  .ping-list--feedback [data-cell="author"] { grid-area: author; }
  .ping-list--feedback [data-cell="submitted"] { grid-area: submitted; text-align: right; }
  .ping-list--feedback [data-cell="engine"], .ping-list--feedback [data-cell="updated"] { display: none; }
  @container (max-width: 599px) {
    .ping-list--feedback:not(.ping-list--feedback-all) .ping-list__row { grid-template-areas: "feedback feedback" "conversation status" "submitted submitted"; }
    .ping-list--feedback:not(.ping-list--feedback-all) [data-cell="submitted"] { display: flex; gap: 6px; text-align: left; }
  }
  @container (min-width: 600px) {
    .ping-list--feedback .ping-list__grid { grid-template-columns: 96px minmax(0, 2fr) minmax(0, 1fr) 156px 16px; grid-template-areas: none; }
    .ping-list--feedback .ping-list__grid > * { grid-area: auto; }
    .ping-list--feedback [data-cell="submitted"] { text-align: left; }
    .ping-list--feedback [data-cell="status"] { justify-self: start; }
    .ping-list--feedback [data-cell="author"] { display: none; }
  }
  @container (min-width: 980px) {
    .ping-list--feedback .ping-list__grid { grid-template-columns: 96px minmax(220px, 3fr) minmax(140px, 1.1fr) 150px 156px 72px 16px; }
    .ping-list--feedback-all .ping-list__grid { grid-template-columns: 96px minmax(200px, 3fr) minmax(130px, 1.1fr) 150px minmax(130px, 1fr) 156px 72px 16px; }
    .ping-list--feedback [data-cell="engine"], .ping-list--feedback [data-cell="updated"], .ping-list--feedback [data-cell="author"] { display: block; }
  }

  /* List pages scroll as one page below 1024px so the header doesn't eat a phone screen. */
  @media (max-width: 1023px) {
    .ping-page--list { display: block; overflow-y: auto; }
    .ping-page--list .ping-page-header { position: static; }
    .ping-page--list .ping-page-body { display: block; overflow: visible; }
  }

  /* ---------- Detail pages: header, two-column body, cards ---------- */
  .ping-detail-head { @apply min-w-0; }
  .ping-title-row { @apply flex flex-wrap items-start justify-between gap-x-6 gap-y-3; }
  .ping-title-row h1 { @apply min-w-0 break-words; }
  .ping-meta { @apply mt-1 flex flex-wrap items-center gap-x-2 gap-y-1 text-[14px] leading-5 text-brown-mid; }
  .ping-meta-sep { @apply text-[#cfc6b6]; }
  .ping-detail { @apply grid items-start gap-4 pt-5 lg:gap-6; grid-template-columns: minmax(0, 1fr); }
  @media (min-width: 1024px) { .ping-detail { grid-template-columns: minmax(0, 1fr) 340px; } }
  .ping-stack { @apply flex min-w-0 flex-col gap-4 lg:gap-6; }
  .ping-stack--rail { @apply gap-4; }
  .ping-card { @apply overflow-hidden rounded-xl border border-border-warm bg-white; }
  .ping-card__head { @apply flex items-center justify-between gap-3 border-b border-row-line px-5 py-3.5; }
  .ping-card__title { @apply text-[18px] font-semibold leading-[26px] text-brown; }
  .ping-card__title--rail { @apply text-[15px] leading-[22px]; }
  .ping-card__aside { @apply text-[13px] leading-[18px] text-brown-light; }
  .ping-card__body { @apply px-5 py-4; }
  .ping-card__foot { @apply flex flex-wrap items-center justify-between gap-2 border-t border-row-line px-5 py-3 text-[14px]; }
  .ping-kv { @apply grid gap-x-3 gap-y-2.5 text-[14px] leading-5; grid-template-columns: 104px minmax(0, 1fr); }
  .ping-kv dt { @apply text-brown-light; }
  .ping-kv dd { @apply min-w-0 text-brown; overflow-wrap: anywhere; }
  .ping-text-link { @apply font-semibold text-brown underline decoration-[#d4cab8] underline-offset-[3px] hover:decoration-brown; }
  .ping-muted { @apply text-brown-light; }
  .ping-item { @apply grid gap-3 border-b border-row-line px-5 py-3; grid-template-columns: 36px minmax(0, 1fr) auto; }
  .ping-item__mods { @apply mt-0.5 text-[13px] leading-[18px] text-brown-light; }
  .ping-totals { @apply grid gap-y-1.5 px-5 pb-4 pt-3.5 text-right text-[14px] leading-5 text-brown-mid; grid-template-columns: 1fr 102px; }
  .ping-totals .is-total { @apply mt-1 border-t border-row-line pt-2 text-[15px] font-semibold text-brown; }
  .ping-steps { @apply px-5 pb-1 pt-[18px]; }
  .ping-step { @apply relative grid gap-3 pb-[18px]; grid-template-columns: 24px minmax(0, 1fr); }
  .ping-step:not(:last-child)::before { content: ''; @apply absolute bottom-0.5 left-[11px] top-[26px] w-0.5 rounded-sm bg-border-warm; }
  .ping-step__dot { @apply grid h-6 w-6 place-items-center rounded-full; }
  .ping-step__dot svg { @apply h-3.5 w-3.5; }
  .ping-step__dot--done { @apply bg-[#e3f3ec] text-[#1f6b4f]; }
  .ping-step__dot--fail { @apply bg-[#fde6e4] text-[#b52e27]; }
  .ping-step__dot--todo { @apply border-2 border-border-warm bg-white; }
  .ping-step__title { @apply text-[15px] font-medium leading-[22px] text-brown; }
  .ping-step__sub { @apply text-[13px] leading-[18px] text-brown-light; }
  .ping-stats { @apply grid grid-cols-2 sm:grid-cols-4; }
  .ping-stat { @apply border-row-line px-5 py-4; }
  .ping-stat:nth-child(even) { @apply border-l; }
  .ping-stat:nth-child(n + 3) { @apply border-t sm:border-t-0; }
  @media (min-width: 640px) { .ping-stat + .ping-stat { border-left-width: 1px; } }
  .ping-stat__label { @apply text-[13px] leading-[18px] text-brown-light; }
  .ping-stat__value { @apply mt-0.5 text-[18px] font-semibold leading-[26px] text-brown; }
  .ping-stat__sub { @apply mt-0.5 text-[13px] leading-[18px] text-brown-light; }
  a.ping-stat { @apply transition-colors hover:bg-canvas focus-visible:bg-canvas focus-visible:outline-none; }
  .ping-outcome { @apply flex items-center gap-3; }
  .ping-outcome__tile { @apply grid h-10 w-10 shrink-0 place-items-center rounded-[10px]; }
  .ping-outcome__tile svg { @apply h-5 w-5; }
  .ping-tone-mint { @apply bg-[#e3f3ec] text-[#1f6b4f]; }
  .ping-tone-warn { @apply bg-[#fdf2cf] text-[#7a5b00]; }
  .ping-tone-teal { @apply bg-[#e0f2f0] text-[#12645f]; }
  .ping-tone-neutral { @apply bg-[#f1ede5] text-brown-mid; }
  .ping-tone-danger { @apply bg-[#fde6e4] text-[#b52e27]; }
  .ping-notice { @apply flex items-start gap-3 rounded-[10px] border border-border-warm bg-white px-3.5 py-2.5 text-[14px] leading-5 text-brown-mid; }
  .ping-notice--danger { @apply border-[#f6c9c5] bg-[#fde6e4] text-[#8e241e]; }
  .ping-mini-row { @apply grid items-center gap-x-4 gap-y-2 border-b border-row-line px-5 py-3 transition-colors last:border-b-0 hover:bg-canvas focus-visible:bg-canvas focus-visible:outline-none; grid-template-columns: minmax(0, 1fr); }
  @media (min-width: 640px) { .ping-mini-row { grid-template-columns: minmax(0, 1fr) auto; } }

  /* Call page tabs: a padded scrolling panel, small grey units, data tables that scroll inside their card. */
  .ping-tab-panel { @apply min-h-0 flex-1 space-y-4 overflow-y-auto px-4 py-4 sm:px-6; }
  .ping-unit { @apply ml-px text-[13px] font-normal text-brown-light; }
  .ping-card__sub { @apply mb-2 text-[13px] font-semibold leading-[18px] text-brown-mid; }
  .ping-data-table { @apply w-full text-left text-[14px] leading-5 tabular-nums; }
  .ping-data-table th { @apply h-11 whitespace-nowrap border-b border-border-warm bg-canvas px-5 text-[13px] font-semibold text-brown-light; }
  .ping-data-table td { @apply whitespace-nowrap border-b border-row-line px-5 py-3 text-brown; }
  .ping-data-table tbody tr:last-child td { @apply border-b-0; }
  .ping-data-table .is-num { @apply text-right; }
  .ping-data-table .is-empty { @apply text-[#b9ad9d]; }
  .ping-data-table .is-label { @apply text-brown-mid; }
  .ping-data-table .is-wrap { @apply min-w-[220px] whitespace-normal; }
  .ping-code { @apply rounded-md bg-canvas px-1.5 py-0.5 font-mono text-[13px] text-brown; overflow-wrap: anywhere; }
  .ping-pre { @apply max-h-96 overflow-auto whitespace-pre-wrap break-words rounded-lg border border-row-line bg-canvas p-3 font-mono text-[13px] leading-5 text-brown; }
}


/* ---------- Admin pages: overview, lists with a --cols grid, create dialogs ---------- */
@layer components {
  .ping-action-primary { @apply inline-flex h-10 items-center gap-2 whitespace-nowrap rounded-lg bg-coral px-4 text-[14px] font-semibold text-white transition hover:bg-coral-dark; }
  .ping-action-primary svg { @apply h-[18px] w-[18px]; }

  /* Each admin list sets --cols on .ping-list. Under 760px of card width a row stacks: its first cell, then the
     others on one wrapping line. */
  .ping-list--admin .ping-list__head { display: none; }
  .ping-list--admin .ping-list__row { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 2px; }
  .ping-list--admin .ping-list__row > * { max-width: 100%; }
  .ping-list--admin .ping-list__row > :first-child { flex-basis: 100%; }
  .ping-list--admin [data-cell="wide"], .ping-list--admin .ping-list__chev { display: none; }
  @container (min-width: 760px) {
    .ping-list--admin .ping-list__grid { display: grid; grid-template-columns: var(--cols); align-items: center; }
    .ping-list--admin [data-cell="wide"], .ping-list--admin .ping-list__chev { display: block; }
  }

  /* A row holding its own controls: the main link stretches over the row, the controls sit above it. */
  .ping-list__row--stretch { @apply relative cursor-pointer; }
  .ping-row-link::after { content: ''; @apply absolute inset-0; }
  .ping-row-link:focus-visible { @apply outline-none; }
  .ping-list__row--stretch:has(.ping-row-link:focus-visible) { @apply bg-canvas ring-2 ring-inset ring-coral/40; }
  .ping-row-action { @apply relative z-[1]; }
  .ping-list__group { @apply border-b border-row-line bg-canvas px-4 py-2 text-[13px] font-semibold leading-[18px] text-brown-mid sm:px-5; }

  .ping-admin-overview { @apply flex flex-col gap-5 px-4 pb-10 sm:px-6; }
  .ping-admin-grid { @apply grid gap-5; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
  .ping-admin-links { @apply px-2 pb-2.5 pt-1; }
  .ping-admin-link { @apply flex h-10 items-center justify-between gap-3 rounded-lg px-3 text-[15px] text-brown-mid hover:bg-canvas hover:text-brown; }
  .ping-admin-link__count { @apply ml-auto tabular-nums text-[14px] text-brown-light; }
  .ping-admin-link__flag { @apply ml-auto rounded-full bg-[#fdf2cf] px-2 py-0.5 text-[13px] font-medium text-[#7a5b00]; }

  .ping-modal-backdrop { overflow-y: auto; }
  .ping-dialog-form { @apply flex flex-col gap-4; }
  .ping-dialog-foot { @apply -mx-6 -mb-5 mt-1 flex items-center justify-end gap-2 border-t border-row-line px-6 py-3.5; }
}

/* ---------- View as user: banner above the shell while a superadmin views as someone else ---------- */
@layer components {
  .ping-view-as { @apply flex h-12 shrink-0 items-center gap-2.5 border-b-2 border-coral bg-brown px-3 text-[14px] leading-5 text-white/80 sm:gap-3 sm:px-5; }
  .ping-view-as__icon { @apply h-5 w-5 shrink-0 text-white/70; }
  .ping-view-as__text { @apply min-w-0 flex-1 truncate; }
  .ping-view-as__text strong { @apply font-semibold text-white; }
  .ping-view-as__pill { @apply hidden shrink-0 items-center gap-1 rounded-full bg-cream px-2.5 py-0.5 text-[13px] font-semibold text-brown md:inline-flex; }
  .ping-view-as__pill svg { @apply h-3.5 w-3.5; }
  .ping-view-as__true { @apply hidden shrink-0 text-[13px] text-white/70 lg:inline; }
  .ping-view-as__exit { @apply inline-flex h-8 shrink-0 items-center gap-1.5 rounded-lg bg-coral px-3 text-[14px] font-semibold text-white transition hover:bg-coral-dark; }
  .ping-view-as__exit svg { @apply h-4 w-4; }
  .ping-view-as-action { @apply gap-1.5 whitespace-nowrap; }
  .ping-view-as-action svg { @apply h-4 w-4 text-brown-light; }
  .ping-view-as-action--off { @apply cursor-not-allowed bg-canvas text-brown-light hover:bg-canvas; }
  .ping-shell__frame--viewing { @apply h-auto min-h-0 flex-1; }
  .ping-shell__frame--viewing .ping-sidebar { @apply lg:h-auto; }
  .ping-shell__frame--viewing .ping-toast-stack { @apply top-16; }
}

/* ---------- QA service pages ---------- */
@layer components {
  .qa-tab-admin { @apply ml-auto inline-flex items-center gap-1.5; }
  .qa-tab-admin svg { @apply text-brown-light; }
  .qa-tab-admin.is-active svg { @apply text-coral; }

  .qa-subnav { @apply flex gap-1 overflow-x-auto pt-3.5; }
  .qa-subnav a { @apply inline-flex h-[34px] shrink-0 items-center gap-1.5 whitespace-nowrap rounded-lg px-3 text-[14px] font-medium text-brown-mid hover:bg-[#f4efe4] hover:text-brown; }
  .qa-subnav a.is-active { @apply bg-cream font-semibold text-brown; }
  .qa-subnav__n { @apply inline-grid h-5 min-w-5 place-items-center rounded-full bg-coral/10 px-1.5 text-[12px] font-semibold text-coral-dark; }

  /* The QA tabs span the header, their first tab lined up with the title. */
  .ping-page-header .qa-tabs-bar { @apply -mx-4 sm:-mx-6; }
  .qa-tabs-bar .ping-tabs-nav { @apply px-4 sm:px-6; }
  /* Each QA tab is a link to its own page, so the active one draws its own underline. -bottom-2 matches the nav's py-2,
     which puts the line at the foot of the bar. */
  .qa-tabs-bar .ping-tab.is-active::after { @apply absolute inset-x-0 -bottom-2 h-1 rounded-full bg-coral content-['']; }
  .qa-count { @apply ml-3 align-[2px] text-[18px] font-medium text-brown-light; }
  /* A time on the QA pages says how long ago it was after when it was (run_time). */
  .qa-when[data-ago]::after { content: " · " attr(data-ago); @apply font-normal text-brown-light; }
  /* A dense list shows only how long ago; the time itself is still read out, and shown on hover. */
  .qa-short-times .qa-when__at { @apply sr-only; }
  .qa-short-times .qa-when[data-ago]::after { content: attr(data-ago); font-weight: inherit; color: inherit; }

  /* Simple list pages: toolbar and chips sit in the padded body, above the table card. */
  .qa-list-body { @apply flex flex-col gap-4 px-4 py-5 sm:px-6; }
  .qa-list-body .ping-list-toolbar, .qa-list-body .ping-chips { @apply p-0; }
  .qa-list-body .ping-filter__panel { @apply left-0 right-0 sm:right-auto; }
  .qa-list-body .ping-chips { @apply -mt-1; }

  .qa-dialog-label { @apply block text-[14px] font-semibold text-brown; }
  .qa-dialog-hint { @apply mt-1.5 text-[13px] leading-[18px] text-brown-light; }
  .qa-invalid { @apply border-[#e08a84] bg-[#fffafa]; }
}


.ping-scroll::-webkit-scrollbar,
.ping-shell__content--shellless .ping-page-body::-webkit-scrollbar { width: 5px; }
.ping-scroll::-webkit-scrollbar-track,
.ping-shell__content--shellless .ping-page-body::-webkit-scrollbar-track { background: transparent; }
.ping-scroll::-webkit-scrollbar-thumb,
.ping-shell__content--shellless .ping-page-body::-webkit-scrollbar-thumb { background: #e4ddd0; border-radius: 99px; }
.ping-scroll::-webkit-scrollbar-thumb:hover,
.ping-shell__content--shellless .ping-page-body::-webkit-scrollbar-thumb:hover { background: #d4cab8; }
@import 'actiontext.css';
dialog.assistant-delete-dialog {
  width: 560px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brown);
  overflow: visible;
}

dialog.assistant-delete-dialog::backdrop {
  background: rgba(43, 36, 29, .36);
}

.assistant-delete-dialog .ping-modal-panel {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
/* Dashboard candidate (dashboard_candidates/show). Ported from the Recommended dashboard prototype (d11); sizes follow its container. */
.dash { container: dash / inline-size; display: flex; flex-direction: column; gap: 24px; padding: 28px 32px 72px; }
.dash-pair { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: stretch; }
.dash-card { display: flex; flex-direction: column; min-width: 0; }
.dash .ping-card { overflow: visible; }
.dash-grow { flex: 1; }
.dash-anchor { scroll-margin-top: 20px; }
.dash .ping-card__head { min-height: 56px; flex-wrap: wrap; row-gap: 2px; }
.dash .ping-card__aside { font-size: 14px; line-height: 20px; }

/* Verdict first, figures linked */
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 32px; }
.dash-verdict { max-width: 1040px; font-size: 28px; line-height: 38px; font-weight: 400; letter-spacing: -0.012em; color: #2b241d; text-wrap: pretty; }
.dash-verdict strong { font-weight: 600; }
.dash-verdict a { font-weight: 600; color: #2b241d; text-decoration: underline; text-decoration-thickness: 1.5px; text-decoration-color: #ddd3c3; text-underline-offset: 6px; transition: text-decoration-color .15s; }
.dash-verdict a:hover, .dash-verdict a:focus-visible { text-decoration-color: #ef463d; outline: none; }
.dash-verdict a.is-alert { color: #c9342c; text-decoration-color: rgba(201, 52, 44, .35); }
.dash-verdict a.is-alert:hover { text-decoration-color: #c9342c; }
.dash-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-size: 14px; line-height: 20px; color: #5b4f42; }
.dash-meta__sep { color: #cfc6b6; }
.dash-meta__live { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #2b241d; }
.dash-pulse { display: inline-block; width: 8px; height: 8px; flex-shrink: 0; border-radius: 999px; background: #1f8a5b; box-shadow: 0 0 0 3px rgba(31, 138, 91, .16); }
.dash-pulse--idle { background: #b9ad9d; box-shadow: 0 0 0 3px rgba(185, 173, 157, .2); }
.dash-range { display: inline-flex; flex-shrink: 0; height: 40px; padding: 3px; gap: 2px; background: #fff; border: 1px solid #e4ddd0; border-radius: 8px; }
.dash-range__opt { display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 6px; font-size: 14px; font-weight: 500; color: #5b4f42; white-space: nowrap; }
.dash-range__opt:hover { color: #2b241d; }
.dash-range__opt.is-on { background: #f6f1e4; color: #2b241d; font-weight: 600; }

/* Labels for numbers that aren't final */
.dash-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; vertical-align: 1px; }
.dash-tag--draft { background: #fdf2cf; color: #6b5300; cursor: help; }
.dash-tag--soon { border: 1px dashed #cfc6b6; color: #776b5f; }
.dash-tip { position: relative; display: inline-flex; border-radius: 999px; outline: none; }
.dash-tip:focus-visible { box-shadow: 0 0 0 2px rgba(239, 70, 61, .4); }
.dash-tip__body { display: none; position: absolute; z-index: 20; bottom: calc(100% + 8px); left: 0; width: max-content; max-width: min(320px, 80vw); padding: 10px 12px; border-radius: 10px; background: #2b241d; color: #f1ebe0; font-size: 13px; line-height: 19px; font-weight: 400; text-align: left; white-space: normal; box-shadow: 0 10px 28px rgba(43, 36, 29, .28); }
.dash-tip:hover .dash-tip__body, .dash-tip:focus .dash-tip__body { display: block; }

/* KPI tiles */
.dash-sechead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; }
.dash-sectitle { font-size: 18px; line-height: 26px; font-weight: 600; color: #2b241d; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dash-kpis:not(:has(> :nth-child(5))) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-kpi { display: flex; flex-direction: column; min-width: 0; padding: 18px 20px; background: #fff; border: 1px solid #e4ddd0; border-radius: 12px; transition: border-color .12s, box-shadow .12s; }
a.dash-kpi:hover, a.dash-kpi:focus-visible { border-color: #d4cab8; box-shadow: 0 4px 14px rgba(43, 36, 29, .06); outline: none; }
.dash-kpi__label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; line-height: 22px; font-weight: 500; color: #5b4f42; }
.dash-kpi__value { margin-top: 6px; font-size: 34px; line-height: 40px; font-weight: 500; letter-spacing: -0.022em; color: #2b241d; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-kpi__value small { font-size: 22px; letter-spacing: -0.01em; }
.dash-kpi__value--long { font-size: 28px; }
.dash-kpi__value--long small { font-size: 18px; }
.dash-kpi__sub { margin-top: 4px; font-size: 14px; line-height: 20px; color: #776b5f; }
.dash-kpi--soon .dash-kpi__value { color: #b9ad9d; }

/* Needs attention */
.dash-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-left: 8px; padding: 0 7px; border-radius: 999px; background: #fde6e4; color: #b52e27; font-size: 13px; font-weight: 600; vertical-align: 2px; }
.dash-att { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 14px; padding: 16px 20px; border-bottom: 1px solid #efe9de; }
.dash-att__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
.dash-att__icon svg { width: 20px; height: 20px; }
.dash-att__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 16px; line-height: 23px; font-weight: 600; color: #2b241d; }
.dash-att__body { margin-top: 2px; font-size: 15px; line-height: 22px; color: #5b4f42; overflow-wrap: anywhere; }
.dash-att__body b { font-weight: 600; color: #2b241d; }
.dash-att__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 10px; }
.dash-att__n { align-self: start; text-align: right; font-size: 28px; line-height: 32px; font-weight: 500; letter-spacing: -0.02em; color: #2b241d; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-att__n small { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: 0; color: #776b5f; }
a.dash-att__n:hover { color: #c9342c; }
.dash-att--soon { border-bottom: 0; }
.dash-att--soon .dash-att__icon { border: 1px dashed #cfc6b6; color: #776b5f; }
.dash-att--soon .dash-att__title { font-weight: 500; color: #5b4f42; }
.dash-att--soon .dash-att__body { font-size: 14px; line-height: 21px; color: #776b5f; }
.dash-calm { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 20px; border-bottom: 1px solid #efe9de; }
.dash-calm__icon { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: #e3f3ec; color: #1f6b4f; }
.dash-calm__icon--wait { background: #f6f1e4; color: #5b4f42; }
.dash-calm__icon svg { width: 20px; height: 20px; }
.dash-act { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 600; color: #2b241d; text-decoration: underline; text-decoration-color: #d4cab8; text-underline-offset: 4px; overflow-wrap: anywhere; }
.dash-act:hover { text-decoration-color: #2b241d; }

/* What callers asked */
.dash-q { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 14px 20px; border-bottom: 1px solid #efe9de; }
.dash-q:last-child { border-bottom: 0; }
.dash-q__rank { grid-row: span 2; align-self: start; padding-top: 1px; font-size: 15px; line-height: 22px; font-weight: 600; color: #776b5f; font-variant-numeric: tabular-nums; }
.dash-q__text { grid-column: 2 / -1; font-size: 16px; line-height: 23px; font-weight: 500; color: #2b241d; overflow-wrap: anywhere; }
.dash-q__meta { grid-column: 2; font-size: 14px; line-height: 20px; color: #776b5f; }
.dash-q__meta b { font-weight: 600; color: #5b4f42; }
.dash-q__meta a { white-space: nowrap; font-weight: 600; color: #5b4f42; text-decoration: underline; text-decoration-color: #d4cab8; text-underline-offset: 3px; }
.dash-q__meta a:hover { color: #2b241d; }
.dash-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid #e4ddd0; background: #fff; font-size: 14px; font-weight: 600; color: #2b241d; white-space: nowrap; transition: border-color .12s, background .12s; }
.dash-btn:hover { border-color: #cbbfab; background: #fbf8f1; }
.dash-btn svg { width: 16px; height: 16px; color: #ef463d; }
.dash-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 12px 20px; border-top: 1px solid #efe9de; font-size: 14px; line-height: 20px; color: #776b5f; }
.dash-foot > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.dash-foot > a { font-weight: 600; color: #2b241d; text-decoration: underline; text-decoration-color: #d4cab8; text-underline-offset: 4px; }
.dash-foot > a:hover { text-decoration-color: #2b241d; }
.dash-empty { padding: 32px 24px; text-align: center; }
.dash-empty__title { font-size: 16px; line-height: 23px; font-weight: 600; color: #2b241d; }
.dash-empty__body { max-width: 420px; margin: 4px auto 0; font-size: 14px; line-height: 21px; color: #5b4f42; }

/* How calls ended: one stacked bar */
.dash-rates { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; }
.dash-rate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.dash-rate__value { font-size: 32px; line-height: 38px; font-weight: 500; letter-spacing: -0.02em; color: #2b241d; font-variant-numeric: tabular-nums; }
.dash-rate__label { font-size: 15px; line-height: 22px; color: #5b4f42; }
.dash-bar { display: flex; gap: 2px; height: 14px; margin-top: 18px; }
.dash-bar > span { display: block; height: 100%; min-width: 3px; border-radius: 2px; }
.dash-bar > span:first-child { border-radius: 7px 2px 2px 7px; }
.dash-bar > span:last-child { border-radius: 2px 7px 7px 2px; }
.dash-bar > span:only-child { border-radius: 7px; }
.dash-bar--empty { border-radius: 7px; background: #f1ece2; }
.dash-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 24px; margin-top: 16px; }
.dash-legend__group > p { margin-bottom: 4px; font-size: 13px; line-height: 18px; font-weight: 600; color: #776b5f; }
.dash-legend__row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 40px; align-items: center; gap: 8px; margin: 0 -6px; padding: 4px 6px; border-radius: 6px; font-size: 14px; line-height: 20px; color: #5b4f42; }
.dash-legend__row.is-link:hover { background: #fbf8f1; color: #2b241d; }
.dash-legend__row.is-link .dash-legend__label { text-decoration: underline; text-decoration-color: #e4ddd0; text-underline-offset: 3px; }
.dash-legend__row i { width: 10px; height: 10px; border-radius: 3px; }
.dash-legend__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-legend__n { font-weight: 600; color: #2b241d; text-align: right; font-variant-numeric: tabular-nums; }
.dash-legend__pct { text-align: right; font-size: 13px; color: #776b5f; font-variant-numeric: tabular-nums; }
.dash-note { margin-top: 14px; font-size: 14px; line-height: 21px; color: #5b4f42; }

/* Store comparison: worst first */
.dash-st-scroll { overflow-x: auto; }
.dash-st { display: grid; grid-template-columns: minmax(240px, 3fr) repeat(7, minmax(64px, 1fr)) 16px; align-items: center; column-gap: 16px; padding: 0 20px; }
.dash-st--no-orders { grid-template-columns: minmax(240px, 3fr) repeat(3, minmax(80px, 1fr)) 16px; }
.dash-st--head { min-height: 44px; background: #fbf8f1; border-bottom: 1px solid #e4ddd0; }
.dash-st--head > span { font-size: 13px; line-height: 18px; font-weight: 600; color: #776b5f; text-align: right; white-space: nowrap; }
.dash-st--head > span:first-child { text-align: left; }
.dash-st--row { min-height: 60px; padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid #efe9de; transition: background .12s; }
.dash-st--row:hover, .dash-st--row:focus-visible { background: #fbf8f1; outline: none; }
.dash-st--row:hover .dash-st__chev { color: #5b4f42; }
.dash-st--row > span, .dash-st--total > span { text-align: right; font-size: 15px; line-height: 22px; color: #2b241d; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-st .dash-st__name { min-width: 0; text-align: left; white-space: normal; }
.dash-st__name b { display: block; font-weight: 600; overflow-wrap: break-word; }
.dash-st__sub { display: block; font-size: 13px; line-height: 18px; color: #776b5f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-st--total .dash-st__sub { white-space: normal; font-weight: 400; }
.dash-st__chev { width: 16px; height: 16px; color: #cfc6b6; }
.dash-st .is-bad { color: #b52e27; font-weight: 600; }
.dash-st--total { min-height: 52px; background: #fdfbf7; }
.dash-st--total > span { font-weight: 600; }
.dash-flags { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; }
.dash-flag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.dash-flag::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.dash-flag--bad { background: #fde6e4; color: #b52e27; }
.dash-flag--warn { background: #fdf2cf; color: #7a5b00; }

/* Recent calls feed */
.dash-call { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0 14px; padding: 14px 20px; border-bottom: 1px solid #efe9de; transition: background .12s; }
.dash-call:last-child { border-bottom: 0; }
a.dash-call:hover, a.dash-call:focus-visible { background: #fbf8f1; outline: none; }
.dash-call__icon { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: #f6f1e4; color: #5b4f42; }
.dash-call__icon svg { width: 16px; height: 16px; }
.dash-call__top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dash-call__who { min-width: 0; flex: 1; font-size: 15px; line-height: 22px; font-weight: 600; color: #2b241d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-call__amt { min-width: 64px; text-align: right; font-size: 15px; line-height: 22px; font-weight: 600; color: #2b241d; font-variant-numeric: tabular-nums; }
.dash-call__amt.is-muted { font-weight: 400; color: #776b5f; }
.dash-call__meta { display: block; font-size: 13px; line-height: 18px; color: #776b5f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-call__sum { display: block; margin-top: 3px; font-size: 14px; line-height: 20px; color: #5b4f42; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.dash-pill::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.dash-pill--mint { background: #e3f3ec; color: #1f6b4f; }
.dash-pill--teal { background: #e0f2f0; color: #12645f; }
.dash-pill--warn { background: #fdf2cf; color: #7a5b00; }
.dash-pill--danger { background: #fde6e4; color: #b52e27; }
.dash-pill--neutral { background: #f1ede5; color: #5b4f42; }

@container dash (min-width: 1240px) {
  .dash-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dash-kpis:not(:has(> :nth-child(5))) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dash-kpi__value { font-size: 30px; }
  .dash-kpi__value small { font-size: 20px; }
  .dash-kpi__value--long { font-size: 26px; }
}

/* Narrower content: tablet and small laptop */
@container dash (max-width: 1080px) {
  .dash-pair { grid-template-columns: minmax(0, 1fr); }
  .dash-st { grid-template-columns: minmax(180px, 2fr) repeat(5, minmax(64px, 1fr)) 16px; }
  .dash-st.dash-st--no-orders { grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(64px, 1fr)) 16px; }
  .dash-st .dash-st--wide { display: none; }
}

/* Phone */
@container dash (max-width: 640px) {
  .dash { gap: 16px; padding: 18px 16px 40px; }
  .dash-head { flex-direction: column; gap: 14px; }
  .dash-verdict { font-size: 22px; line-height: 31px; }
  .dash-verdict a { text-underline-offset: 5px; }
  .dash-range { display: flex; width: 100%; }
  .dash-range__opt { flex: 1; padding: 0 6px; }
  .dash-kpis, .dash-kpis:not(:has(> :nth-child(5))) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dash-kpi { padding: 14px; }
  .dash-kpi__value { font-size: 26px; line-height: 32px; }
  .dash-kpi__value small { font-size: 17px; }
  .dash-kpi__value--long { font-size: 22px; }
  .dash-kpi__value--long small { font-size: 15px; }
  .dash-att { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px; }
  .dash-att__icon { width: 36px; height: 36px; }
  .dash-att__n { font-size: 24px; line-height: 28px; }
  .dash-q { grid-template-columns: 20px minmax(0, 1fr); gap: 4px 10px; padding: 14px 16px; }
  .dash-q__rank { grid-row: span 3; }
  .dash-q__cta { grid-column: 2; justify-self: start; margin-top: 4px; }
  .dash-legend { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .dash-st, .dash-st.dash-st--no-orders { grid-template-columns: minmax(0, 1fr) 44px 52px 80px; column-gap: 8px; padding: 0 16px; }
  .dash-st.dash-st--no-orders { grid-template-columns: minmax(0, 1fr) 60px 64px; }
  .dash-st .dash-st--mid, .dash-st .dash-st__chev { display: none; }
  .dash-st__sub { white-space: normal; overflow: visible; }
  .dash-st--row > span, .dash-st--total > span { font-size: 14px; }
  .dash-st--head > span { white-space: normal; }
  .dash-call { padding: 14px 16px; gap: 0 12px; }
  .dash-call__top { flex-wrap: wrap; row-gap: 4px; }
  .dash-call__who { flex-basis: calc(100% - 80px); }
  .dash-call__top .dash-pill { order: 3; }
  .dash-call__sum { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .dash .ping-card__head { padding: 12px 16px; }
  .dash .ping-card__body { padding: 14px 16px; }
  .dash-foot { padding: 12px 16px; }
  /* The tip opens under its tag across the card, so it never runs off a narrow screen. */
  .dash .ping-card { position: relative; }
  .dash-tip { position: static; }
  .dash-tip__body { bottom: auto; left: 12px; right: 12px; width: auto; max-width: none; margin-top: 30px; }
}
/* People & access (superadmin/users): People list, person page and their dialogs. Ported from the approved prototype
   (scratchpad prototypes/access/access.css). Nothing under 12px; buttons and filters 40px tall. */

.acc-page {
  --cream: #f6f1e4; --canvas: #fbf8f1; --coral: #ef463d; --coral-dark: #d93a32; --coral-tint: rgba(239,70,61,.07); --coral-ink: #c9342c;
  --brown: #2b241d; --brown-mid: #5b4f42; --brown-light: #776b5f; --border-warm: #e4ddd0; --row-line: #efe9de;
  color: var(--brown);
}
.acc-page :focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }
.acc-page input:focus-visible, .acc-page textarea:focus-visible { outline: 0; }
.acc-page [hidden] { display: none !important; }

/* ---------- Page ---------- */
.acc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.acc-head__actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.acc-head__actions form { display: contents; }
.acc-lead { max-width: 720px; margin-top: 4px; font-size: 15px; line-height: 22px; color: var(--brown-mid); }
.acc-head .ping-meta { margin-top: 6px; }
.acc-break { overflow-wrap: anywhere; white-space: normal !important; }
.acc-you { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin-left: 6px; border-radius: 6px; background: var(--cream); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--brown-mid); vertical-align: middle; letter-spacing: 0; }
.acc-muted-sm { font-size: 13px; line-height: 18px; color: var(--brown-light); }
.acc-key { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 4px; background: var(--canvas); border: 1px solid var(--row-line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 18px; font-weight: 400; color: var(--brown-light); vertical-align: 1px; }
.acc-plain-list { margin: 8px 0 0 20px; list-style: disc; font-size: 15px; line-height: 22px; color: var(--brown); text-align: left; }
.acc-plain-list li + li { margin-top: 4px; }
.acc-plain-list strong, .acc-confirm strong { font-weight: 600; }
.acc-show-sm { display: none; }
.acc-link { color: var(--brown); font-weight: 600; text-decoration: underline; text-decoration-color: #d4cab8; text-underline-offset: 3px; }
.acc-link:hover { text-decoration-color: var(--brown); }
.acc-empty { padding: 48px 32px; text-align: center; font-size: 15px; line-height: 22px; color: var(--brown-mid); }

/* ---------- Buttons ---------- */
.acc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 8px; font-size: 15px; line-height: 20px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.acc-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.acc-btn--small { padding: 0 12px; font-size: 14px; }
.acc-btn--small svg { width: 16px; height: 16px; }
.acc-btn--primary { background: var(--coral); color: #fff; }
.acc-btn--primary:hover { background: var(--coral-dark); }
.acc-btn--secondary { background: #fff; border-color: var(--border-warm); color: var(--brown); font-weight: 500; }
.acc-btn--secondary:hover { border-color: #cbbfab; }
.acc-btn--secondary svg { color: var(--brown-light); }
.acc-btn--danger { background: #b52e27; color: #fff; }
.acc-btn--danger:hover { background: #9c251f; }
.acc-btn--danger-quiet { background: #fff; border-color: var(--border-warm); color: #b52e27; font-weight: 500; }
.acc-btn--danger-quiet:hover { background: #fdf3f2; border-color: #f6c9c5; }
.acc-btn:disabled, .acc-btn.is-disabled { opacity: .45; cursor: not-allowed; }
.acc-btn--primary:disabled:hover { background: var(--coral); }
.acc-viewas { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-warm); background: #fff; font-size: 14px; font-weight: 500; color: var(--brown); white-space: nowrap; }
.acc-viewas:hover { border-color: var(--brown-mid); }
.acc-viewas svg { width: 16px; height: 16px; color: var(--brown-light); }
.acc-viewas.ping-view-as-action--off, .acc-btn.ping-view-as-action--off { color: var(--brown-light); background: var(--canvas); cursor: not-allowed; }
.acc-icon-btn { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; color: var(--brown-light); }
.acc-icon-btn:hover { background: var(--canvas); color: var(--brown); }

/* ---------- People list ---------- */
.acc-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.acc-search { display: flex; align-items: center; gap: 8px; width: 320px; height: 40px; padding: 0 12px; background: #fff; border: 1px solid var(--border-warm); border-radius: 8px; color: var(--brown-light); }
.acc-search:focus-within { border-color: var(--brown-mid); box-shadow: 0 0 0 3px rgba(43,36,29,.10); }
.acc-search input { width: 100%; min-width: 0; border: 0; padding: 0; background: transparent; font-size: 15px; color: var(--brown); box-shadow: none; }
.acc-search input:focus { outline: 0; box-shadow: none; }
.acc-search input::placeholder { color: var(--brown-light); }
.acc-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.acc-filter-scroll { max-width: 100%; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.acc-filter-scroll::-webkit-scrollbar { display: none; }
.acc-seg { display: inline-flex; min-height: 46px; padding: 3px; gap: 2px; background: #fff; border: 1px solid var(--border-warm); border-radius: 8px; }
.acc-seg__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--brown-mid); white-space: nowrap; }
.acc-seg__btn:hover { color: var(--brown); }
.acc-seg__btn.is-on { background: var(--cream); color: var(--brown); font-weight: 600; }
.acc-seg__btn svg { color: var(--brown-light); }
.acc-count { font-size: 13px; font-weight: 500; color: var(--brown-light); font-variant-numeric: tabular-nums; }
.acc-list { overflow: hidden; }
.acc-list-group { display: flex; align-items: center; gap: 8px; padding: 14px 20px 10px; border-bottom: 1px solid var(--row-line); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brown-light); }
.acc-list-group .acc-count { letter-spacing: 0; font-size: 13px; }
.acc-list-group__note { margin-left: 4px; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--brown-light); }
.acc-list-head, .acc-row { display: grid; grid-template-columns: minmax(250px, 1.25fr) minmax(0, 1.5fr) 150px 160px 16px; column-gap: 20px; align-items: center; }
.acc-list-head { height: 40px; padding: 0 20px; background: var(--canvas); border-bottom: 1px solid var(--border-warm); font-size: 13px; font-weight: 600; color: var(--brown-light); }
.acc-row { padding: 14px 20px; border-bottom: 1px solid var(--row-line); transition: background .12s; }
.acc-row:last-child { border-bottom: 0; }
.acc-row.ping-list__row--stretch:hover { background: var(--canvas); }
.acc-row--invite { background: #fffdf8; }
.acc-row > * { min-width: 0; }
.acc-row__who { display: flex; align-items: center; gap: 12px; }
.acc-row__act { display: flex; justify-content: flex-end; gap: 8px; }
.acc-row__act form { display: contents; }
.acc-row__chev { display: flex; color: #cfc6b6; }
.acc-row:hover .acc-row__chev { color: var(--brown-mid); }
.acc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--brown); }
.acc-row__email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 18px; color: var(--brown-light); }
.acc-rowlink { color: inherit; }
.acc-rowlink:hover { text-decoration: underline; text-decoration-color: #cbbfab; text-underline-offset: 3px; }
.acc-line { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--brown); }
.acc-line svg { width: 18px; height: 18px; flex-shrink: 0; }
.acc-line--staff svg { color: var(--coral); }
.acc-line--none { color: #7a5b00; }
.acc-access { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.acc-access .acc-role { flex-shrink: 0; }
.acc-access__place { font-size: 15px; line-height: 22px; color: var(--brown); }
.acc-access__n { color: var(--brown-light); font-size: 14px; }
.acc-why { font-size: 14px; line-height: 20px; color: var(--brown-mid); }
.acc-sub { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--brown-light); }
.acc-last { font-size: 14px; line-height: 20px; color: var(--brown-mid); }
.acc-role { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.acc-role--superadmin { background: var(--coral-tint); color: var(--coral-ink); }
.acc-role--owner { background: #e3f3ec; color: #1f6b4f; }
.acc-role--manager { background: #e0f2f0; color: #12645f; }
.acc-role--agent { background: #fdf2cf; color: #6b5300; }
.acc-role--other { background: #f1ede5; color: var(--brown-mid); }
.acc-avatar { width: 34px; height: 34px; flex-shrink: 0; border-radius: 999px; background: var(--cream); color: var(--brown-mid); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.acc-avatar--staff { background: var(--coral-tint); color: var(--coral-ink); }
.acc-avatar--invite { background: #fff; border: 1.5px dashed #cbbfab; color: var(--brown-light); }
.acc-avatar--lg { width: 56px; height: 56px; font-size: 18px; }
.acc-badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.acc-badge--invited { background: #fdf2cf; color: #6b5300; }
.acc-badge--expired { background: #fde6e4; color: #b52e27; }
.acc-invsum { border-bottom: 1px solid var(--row-line); background: #fffdf8; }
.acc-invsum__btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 20px; cursor: pointer; list-style: none; }
.acc-invsum__btn::-webkit-details-marker { display: none; }
.acc-invsum__btn:hover { background: var(--canvas); }
.acc-invsum__title { display: block; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--brown); }
.acc-invsum__show { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brown-mid); }
.acc-invsum__open, .acc-invsum[open] .acc-invsum__closed { display: none; }
.acc-invsum[open] .acc-invsum__open { display: inline; }
.acc-invsum[open] .acc-invsum__show svg { transform: rotate(180deg); }
.acc-invsum .acc-row--invite { border-top: 1px solid var(--row-line); border-bottom: 0; }
.acc-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--border-warm); font-size: 14px; color: var(--brown-mid); }
.acc-empty-card { padding: 44px 24px; margin-bottom: 24px; text-align: center; }
.acc-empty-art { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 999px; background: var(--cream); color: var(--coral); display: grid; place-items: center; }
.acc-empty-title { font-size: 20px; line-height: 28px; font-weight: 600; color: var(--brown); }
.acc-empty-text { max-width: 500px; margin: 6px auto 18px; font-size: 15px; line-height: 22px; color: var(--brown-mid); }
.acc-placemode__head { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px 12px; }
.acc-placemode__title { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--brown); }
.acc-placemode__others { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 20px 14px 74px; }
.acc-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--border-warm); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; color: var(--brown); }
.acc-chip:hover { border-color: #cbbfab; }
.acc-chip svg { color: var(--brown-light); }

/* ---------- Person ---------- */
.acc-head--person .ping-page-title { font-size: 26px; }
.acc-meta { display: flex; flex-wrap: wrap; gap: 2px 0; margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--brown-mid); }
.acc-meta > span + span::before { content: '·'; margin: 0 8px; color: #cfc6b6; }
.acc-sentence { max-width: 760px; margin-top: 10px; font-size: 18px; line-height: 27px; color: var(--brown); }
.acc-sentence strong { font-weight: 600; }
.acc-warnline { display: flex; gap: 8px; max-width: 760px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fdf2cf; font-size: 14px; line-height: 20px; color: #5c4500; }
.acc-warnline svg { margin-top: 1px; }
.acc-person { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.acc-grants { list-style: none; margin: 0; padding: 0; }
.acc-grant { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 20px; border-bottom: 1px solid var(--row-line); }
.acc-grant:last-child { border-bottom: 0; }
.acc-grant.is-new { background: #fdfbf6; box-shadow: inset 3px 0 0 var(--coral); }
.acc-place-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: var(--cream); color: var(--brown-mid); display: grid; place-items: center; }
.acc-grant__title { font-size: 16px; line-height: 24px; color: var(--brown); }
.acc-grant__title strong { font-weight: 600; }
.acc-grant__path { font-size: 13px; line-height: 18px; color: var(--brown-light); }
.acc-grant__means { display: flex; flex-wrap: wrap; align-items: center; margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--brown-mid); }
.acc-grant__feats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.acc-grant__feats .acc-muted-sm { flex-basis: 100%; }
.acc-feat { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: #e3f3ec; color: #1f6b4f; font-size: 13px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.acc-feat--off { background: #f1ede5; color: var(--brown-light); font-weight: 500; }
.acc-warn-inline { display: inline-flex; align-items: flex-start; gap: 6px; font-size: 14px; line-height: 20px; color: #7a5b00; }
.acc-warn-inline .acc-link { color: #5c4500; white-space: nowrap; }
.acc-warn-inline svg { margin-top: 2px; }
.acc-card-note { display: flex; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--row-line); background: var(--canvas); font-size: 14px; line-height: 20px; color: var(--brown-mid); }
.acc-card-note svg { color: var(--coral); margin-top: 1px; }
.acc-noaccess { display: flex; gap: 14px; padding: 20px; font-size: 15px; line-height: 22px; color: var(--brown-mid); }
.acc-noaccess__icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 999px; background: #fdf2cf; color: #7a5b00; display: grid; place-items: center; }
.acc-noaccess__title { font-size: 16px; font-weight: 600; color: var(--brown); }
.acc-quiet .ping-card__head { padding: 12px 20px; }
.acc-kv { grid-template-columns: 100px minmax(0, 1fr); }
.acc-kv dd { overflow-wrap: anywhere; }
.acc-check { margin-top: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid; font-size: 15px; line-height: 22px; }
.acc-check strong { font-weight: 700; }
.acc-check--yes { background: #eef7f2; border-color: #cfe7da; color: #1f4f3b; }
.acc-check--no { background: #fdf3f2; border-color: #f6c9c5; color: #8e241e; }
.acc-check--partial { background: #fdf8e6; border-color: #f0dc9a; color: #5c4500; }
.acc-check--big { margin-top: 4px; font-size: 16px; line-height: 24px; }
.acc-staffsec { display: flex; align-items: center; gap: 20px; margin-top: 32px; padding: 16px 20px; border-top: 1px solid var(--border-warm); }
.acc-staffsec__title { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--brown); }
.acc-staffsec__text { margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--brown-mid); }
.acc-staff__own { display: flex; gap: 8px; margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--brown-mid); }
.acc-staff__own svg { margin-top: 2px; }
.acc-switch { position: relative; width: 52px; height: 40px; flex-shrink: 0; border-radius: 999px; cursor: pointer; }
.acc-switch::before { content: ''; position: absolute; left: 2px; top: 6px; width: 48px; height: 28px; border-radius: 999px; background: #d8cfbf; transition: background .15s; }
.acc-switch::after { content: ''; position: absolute; left: 5px; top: 9px; width: 22px; height: 22px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(43,36,29,.25); transition: transform .15s; }
.acc-switch:hover::before { background: #cbbfab; }
.acc-switch.is-on::before { background: #1f6b4f; }
.acc-switch.is-on::after { transform: translateX(20px); }
.acc-switch:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Dialogs (native <dialog>) ---------- */
dialog.acc-dialog { width: 560px; max-width: calc(100vw - 48px); max-height: 86vh; margin: 7vh auto auto; padding: 0; border: 0; background: transparent; overflow: visible; color: var(--brown); }
dialog.acc-dialog::backdrop { background: rgba(43,36,29,.36); }
dialog.acc-dialog--wide { width: 780px; }
dialog.acc-dialog--xwide { width: 980px; }
.acc-dialog__inner { display: flex; flex-direction: column; max-height: 86vh; background: #fff; border: 1px solid var(--border-warm); border-radius: 14px; box-shadow: 0 24px 64px rgba(43,36,29,.22); overflow: hidden; }
.acc-dialog__inner:focus { outline: 0; }
.acc-dialog__form, .acc-dialog__pane { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.acc-dialog__head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 16px 14px 22px; border-bottom: 1px solid var(--row-line); }
.acc-eyebrow { margin-bottom: 2px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brown-light); }
.acc-dialog__title { font-size: 20px; line-height: 28px; font-weight: 600; color: var(--brown); overflow-wrap: anywhere; }
.acc-dialog__sub { margin-top: 2px; font-size: 15px; line-height: 22px; color: var(--brown-mid); }
.acc-dialog__body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px 20px; }
.acc-dialog__foot { padding: 14px 22px; border-top: 1px solid var(--row-line); background: var(--canvas); }
.acc-foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.acc-summary { margin-bottom: 12px; font-size: 16px; line-height: 24px; color: var(--brown); }
.acc-summary strong, .acc-email__body strong { font-weight: 600; }
.acc-summary.is-muted { color: var(--brown-light); }
.acc-confirm { font-size: 15px; line-height: 22px; color: var(--brown); }
.acc-confirm p + p, .acc-confirm ul + p { margin-top: 10px; }
.acc-field { margin-bottom: 20px; }
.acc-field:last-child { margin-bottom: 0; }
.acc-label { display: block; margin-bottom: 6px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--brown-mid); }
.acc-input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--border-warm); border-radius: 8px; background: #fff; font-size: 15px; color: var(--brown); }
.acc-input:focus { outline: 0; border-color: var(--brown-mid); box-shadow: 0 0 0 3px rgba(43,36,29,.10); }
.acc-input::placeholder { color: var(--brown-light); }
.acc-hint { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--brown-light); }
.acc-inline-note { display: flex; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--canvas); border: 1px solid var(--border-warm); font-size: 14px; line-height: 20px; color: var(--brown-mid); }
.acc-inline-note strong { color: var(--brown); font-weight: 600; }
.acc-linkbtn { font-weight: 600; color: var(--brown); text-decoration: underline; text-decoration-color: #cbbfab; text-underline-offset: 3px; }
.acc-linkbtn:hover { text-decoration-color: var(--brown); }

/* Role cards */
.acc-rolecards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.acc-rolecard { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; border: 1.5px solid var(--border-warm); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .12s, background .12s; }
.acc-rolecard:hover { border-color: #cbbfab; }
.acc-rolecard.is-sel, .acc-rolecard:has(input:checked) { border-color: var(--coral); background: #fffaf8; }
.acc-rolecard:has(input:focus-visible) { outline: 2px solid var(--brown); outline-offset: 2px; }
.acc-rolecard.is-disabled { cursor: not-allowed; background: var(--canvas); }
.acc-rolecard.is-disabled:hover { border-color: var(--border-warm); }
.acc-rolecard.is-disabled .acc-rolecard__name, .acc-rolecard.is-disabled .acc-rolecard__desc { color: var(--brown-light); }
.acc-rolecard input { position: absolute; opacity: 0; pointer-events: none; }
.acc-rolecard__top { display: flex; align-items: center; gap: 8px; }
.acc-rolecard__name { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--brown); }
.acc-rolecard__desc { font-size: 14px; line-height: 20px; color: var(--brown-mid); }
.acc-rolecard__feats { display: flex; flex-wrap: wrap; gap: 6px; }
.acc-rolecard__where { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 2px; font-size: 13px; line-height: 18px; color: var(--brown-light); }
.acc-radio { width: 20px; height: 20px; margin-left: auto; flex-shrink: 0; border-radius: 999px; border: 2px solid #cfc6b6; background: #fff; }
.acc-rolecard:has(input:checked) .acc-radio { border-color: var(--coral); box-shadow: inset 0 0 0 4px #fff; background: var(--coral); }
.acc-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--cream); font-size: 12px; font-weight: 600; color: var(--brown-mid); }

/* Place picker and type-aheads */
.acc-tabs { display: inline-flex; gap: 2px; height: 40px; padding: 3px; margin-bottom: 10px; border: 1px solid var(--border-warm); border-radius: 8px; background: #fff; }
.acc-tabs button { padding: 0 14px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--brown-mid); }
.acc-tabs button.is-on { background: var(--cream); color: var(--brown); font-weight: 600; }
.acc-tabs .acc-count { margin-left: 4px; font-size: 12px; }
.acc-picker__search, .acc-combo-input { width: 100%; height: 44px; margin-bottom: 8px; }
.acc-tree { max-height: 340px; overflow-y: auto; padding: 4px; border: 1px solid var(--border-warm); border-radius: 10px; }
.acc-tree-row { display: flex; align-items: center; padding-left: calc(var(--lvl, 0) * 22px); }
.acc-tree-toggle { width: 36px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 6px; color: var(--brown-light); }
.acc-tree-toggle:hover { background: var(--canvas); color: var(--brown); }
.acc-tree-spacer { width: 36px; flex-shrink: 0; }
.acc-tree-spacer--flat { width: 0; }
.acc-opt { position: relative; display: flex; flex: 1; min-width: 0; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.acc-opt:hover { background: var(--canvas); }
.acc-opt.is-sel { background: var(--coral-tint); }
.acc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.acc-opt:has(input:focus-visible) { outline: 2px solid var(--brown); outline-offset: -2px; }
.acc-opt--btn { width: 100%; text-align: left; }
.acc-opt--btn .acc-avatar, .acc-picked .acc-avatar { width: 32px; height: 32px; }
.acc-opt__icon { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; background: var(--cream); color: var(--brown-mid); }
.acc-opt__name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; line-height: 22px; font-weight: 500; color: var(--brown); }
.acc-opt__meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 18px; color: var(--brown-light); }
.acc-opt mark { background: #fdf2cf; color: inherit; border-radius: 2px; }
.acc-tree-empty { padding: 20px; text-align: center; font-size: 15px; color: var(--brown-mid); }
.acc-tree-count { padding: 6px 10px; font-size: 13px; color: var(--brown-light); }
.acc-more { display: block; width: 100%; min-height: 40px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--brown-mid); text-align: left; }
.acc-more:hover { background: var(--canvas); color: var(--brown); }
.acc-tree-row .acc-more { flex: 1; }
.acc-combo-list { margin-top: -2px; padding: 4px; border: 1px solid var(--border-warm); border-radius: 10px; background: #fff; max-height: 340px; overflow-y: auto; }
.acc-picked { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border: 1px solid var(--border-warm); border-radius: 10px; background: var(--canvas); }
.acc-invite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: 'left right' 'email right'; gap: 0 24px; align-items: start; }
.acc-invite__left { grid-area: left; }
.acc-invite__right { grid-area: right; margin-bottom: 0; }
.acc-invite__email { grid-area: email; }
.acc-invite .acc-rolecards--two { grid-template-columns: minmax(0, 1fr); }
.acc-invite .acc-tree { max-height: 420px; }
.acc-email { padding: 14px 16px; border: 1px dashed #d4cab8; border-radius: 10px; background: var(--canvas); }
.acc-email__label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brown-light); }
.acc-email__subject { margin-top: 6px; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--brown); }
.acc-email__body { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--brown-mid); }
.acc-email__expiry { display: flex; gap: 6px; margin-top: 10px; font-size: 13px; line-height: 18px; color: var(--brown-light); }
.acc-email__expiry svg { margin-top: 1px; }

/* ======================= Tablet and phone ======================= */
@media (max-width: 1279px) {
  .acc-list-head, .acc-row { grid-template-columns: minmax(220px, 1.2fr) minmax(0, 1.4fr) 130px 150px 16px; }
}
@media (max-width: 1180px) {
  .acc-person { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 1023px) {
  .acc-invite { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'left' 'right' 'email'; }
  .acc-invite__left, .acc-invite__right { margin-bottom: 20px; }
  .acc-invite .acc-rolecards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-invite .acc-tree { max-height: 300px; }
  .acc-person { grid-template-columns: minmax(0, 1fr); }
  .acc-meta { flex-direction: column; }
  .acc-meta > span + span::before { content: none; }
  .acc-list-head { display: none; }
  .acc-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto 16px; grid-template-areas: 'who access act chev' 'who last act chev'; row-gap: 2px; }
  .acc-row__who { grid-area: who; }
  .acc-row__access { grid-area: access; }
  .acc-row__last { grid-area: last; }
  .acc-row__act { grid-area: act; }
  .acc-row__chev { grid-area: chev; }
  .acc-show-sm { display: inline; }
  .acc-hide-tab { display: none; }
  .acc-last { font-size: 13px; color: var(--brown-light); }
  .acc-row--invite .acc-row__last { margin-top: 4px; }
}
@media (max-width: 639px) {
  .acc-head { flex-direction: column; gap: 14px; margin-bottom: 18px; }
  .acc-head__actions { width: 100%; }
  .acc-head__actions .acc-btn { flex: 1; }
  .acc-head .ping-page-title { font-size: 24px; line-height: 30px; }
  .acc-search { width: 100%; }
  .acc-toolbar { gap: 10px; }
  .acc-filter-scroll { margin: 0 -16px 16px; padding: 0 16px; max-width: none; width: calc(100% + 32px); }
  .acc-row, .acc-row--invite { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'who act' 'access access' 'last last'; row-gap: 6px; padding: 14px 16px; }
  .acc-row--invite { grid-template-areas: 'who who' 'access access' 'last last' 'act act'; }
  .acc-row__access, .acc-row__last { padding-left: 46px; }
  .acc-row--invite .acc-row__act { justify-content: flex-start; padding-left: 46px; margin-top: 4px; }
  .acc-row__chev { display: none; }
  .acc-list-group { padding: 12px 16px 8px; }
  .acc-line { align-items: flex-start; }
  .acc-line svg { margin-top: 2px; }
  .acc-access { flex-wrap: wrap; row-gap: 4px; }
  .acc-avatar--lg { width: 44px; height: 44px; font-size: 15px; }
  .acc-sentence { font-size: 17px; line-height: 25px; }
  .acc-grant { grid-template-columns: 40px minmax(0, 1fr); padding: 14px 16px; }
  .acc-grant > .acc-btn { grid-column: 2; justify-self: start; }
  .acc-card-note { padding: 12px 16px; }
  .acc-placemode__head { padding: 14px 16px 10px; }
  .acc-placemode__others { padding: 0 16px 12px; }
  .acc-staffsec { padding: 16px 0; align-items: flex-start; }
  .acc-invsum__btn { padding: 10px 16px; }
  .acc-pager { padding: 12px 16px; }
  dialog.acc-dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: none; margin: 0; }
  .acc-dialog__inner { height: 100%; max-height: none; border: 0; border-radius: 0; }
  dialog.acc-dialog--sheet { inset: auto 0 0 0; height: auto; max-height: 92dvh; margin: 0; }
  .acc-dialog--sheet .acc-dialog__inner { height: auto; max-height: 92dvh; border-radius: 16px 16px 0 0; }
  .acc-dialog__head { padding: 12px 8px 12px 16px; }
  .acc-dialog__body { padding: 16px; }
  .acc-dialog__foot { padding: 12px 16px; }
  .acc-foot-row .acc-btn { flex: 1; }
  .acc-foot-row > .flex-1 { display: none; }
  .acc-foot-row .acc-link { flex-basis: 100%; }
  .acc-rolecards, .acc-invite .acc-rolecards--two { grid-template-columns: minmax(0, 1fr); }
  .acc-tree { max-height: none; }
  .acc-tree .acc-opt__meta { white-space: normal; }
  .acc-tree-row { padding-left: calc(var(--lvl, 0) * 14px); }
}
/* All conversations (raw), conversations/show: which message directions show (message-directions controller). */

.raw-messages.hide-user_to_app .message-user_to_app,
.raw-messages.hide-app_to_user .message-app_to_user,
.raw-messages.hide-app_to_llm .message-app_to_llm,
.raw-messages.hide-llm_to_app .message-llm_to_app { display: none; }

.raw-direction {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px;
  border: 1px solid #e4ddd0; border-radius: 999px; background: #fff;
  font-size: 13px; font-weight: 600; color: #776b5f; transition: background-color .15s, color .15s, border-color .15s;
}
.raw-direction:hover { background: #f6f1e4; color: #2b241d; }
.raw-direction[aria-pressed="true"] { border-color: #2b241d; background: #2b241d; color: #fff; }
.raw-direction__count { font-weight: 500; opacity: .75; font-variant-numeric: tabular-nums; }

.raw-messages:has(.message) + .raw-messages-empty { display: none; }

/* Below lg the messages, the box to type in and the side cards stack and the page scrolls as one. */
@media (max-width: 1023px) {
  .raw-conv-show { display: block; overflow-y: auto; }
  .raw-conv-body, .raw-conv-split, .raw-conv-main, .raw-conv-scroll, .raw-conv-side { overflow: visible; }
}
/* vapi_conversations/_recording_player: the waveform on top and the controls below it, or, while compact, one row. */

.recording-player__body:not(.hidden) {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  grid-template-areas: "wave wave wave" "play time extras";
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
}
.recording-player__play { grid-area: play; }
.recording-player__wave { grid-area: wave; }
.recording-player__time { grid-area: time; }
.recording-player__extras { grid-area: extras; justify-self: end; flex-wrap: wrap; justify-content: flex-end; }

.recording-player.is-compact .recording-player__body {
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "play wave time";
}
.recording-player.is-compact .recording-player__head,
.recording-player.is-compact .recording-player__extras,
.recording-player.is-compact .recording-player__channel { display: none; }
/* Roles page (superadmin/permissions_roles and its dialogs): roles as rows, features as switches.
   One table: below 900px each row becomes a card, so every switch exists once in the form. */

.rl-page [hidden] { display: none !important; }
.rl-page :focus-visible { outline: 2px solid #2b241d; outline-offset: 2px; }
.rl-body { padding: 4px 16px 32px; }
@media (min-width: 640px) { .rl-body { padding: 4px 24px 40px; } }
.rl-lead { max-width: 720px; }

.rl-key { display: inline-block; padding: 0 5px; border-radius: 4px; background: #fbf8f1; border: 1px solid #efe9de; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 18px; font-weight: 400; color: #776b5f; }
.rl-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: #f6f1e4; font-size: 12px; font-weight: 600; color: #5b4f42; }
.rl-dot { margin: 0 6px; color: #cfc6b6; }
.rl-muted { font-size: 13px; line-height: 18px; color: #776b5f; }

/* Buttons */
.rl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 8px; font-size: 15px; line-height: 20px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.rl-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.rl-btn--small { padding: 0 12px; font-size: 14px; }
.rl-btn--primary { background: #ef463d; color: #fff; }
.rl-btn--primary:hover { background: #d93a32; }
.rl-btn--secondary { background: #fff; border-color: #e4ddd0; color: #2b241d; font-weight: 500; }
.rl-btn--secondary:hover { border-color: #cbbfab; }
.rl-btn--danger { background: #b52e27; color: #fff; }
.rl-btn--danger:hover { background: #9c251f; }
.rl-btn--warn { background: #fff; border-color: #e6cf86; color: #5c4500; }
.rl-btn--warn:hover { background: #fffaf0; }
.rl-icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; color: #776b5f; }
.rl-icon-btn:hover { background: #fbf8f1; color: #2b241d; }
.rl-icon-btn svg { width: 20px; height: 20px; }
.rl-linkbtn { font-weight: 600; color: #2b241d; text-decoration: underline; text-decoration-color: #cbbfab; text-underline-offset: 3px; }
.rl-linkbtn:hover { text-decoration-color: #2b241d; }

/* Missing-template warnings */
.rl-alerts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.rl-alert { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border: 1px solid #f0dc9a; border-radius: 10px; background: #fdf2cf; font-size: 15px; line-height: 22px; color: #5c4500; }
.rl-alert > svg { width: 20px; height: 20px; flex-shrink: 0; }
.rl-alert p { flex: 1 1 0; min-width: 0; }
.rl-alert strong { font-weight: 600; }
.rl-alert .rl-btn { margin-left: auto; }
.rl-alert--info { background: #fff; border-color: #e4ddd0; color: #5b4f42; }
.rl-alert--info > svg { color: #776b5f; }

/* The grid */
.rl-card { overflow: visible; }
.rl-grid { width: 100%; border-collapse: separate; border-spacing: 0; }
.rl-grid th, .rl-grid td { text-align: left; vertical-align: middle; }
.rl-colhead { width: 13%; padding: 12px 14px; background: #fbf8f1; border-bottom: 1px solid #e4ddd0; font-size: 14px; line-height: 20px; font-weight: 600; color: #2b241d; vertical-align: bottom !important; }
.rl-colhead:first-child { border-top-left-radius: 12px; }
.rl-colhead:last-child { border-top-right-radius: 12px; }
.rl-colhead--role { width: auto; padding-left: 20px; }
.rl-colhead--menu { width: 56px; }
.rl-colhead__sub { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; font-weight: 500; color: #776b5f; }
.rl-rolecell { padding: 14px 16px 14px 20px; border-bottom: 1px solid #efe9de; font-weight: 400; vertical-align: top !important; }
.rl-rolecell__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 16px; line-height: 22px; font-weight: 600; color: #2b241d; }
.rl-rolecell__desc { display: block; max-width: 420px; margin-top: 2px; font-size: 14px; line-height: 20px; color: #5b4f42; }
.rl-rolecell__meta { display: flex; flex-wrap: wrap; align-items: center; font-size: 13px; line-height: 18px; color: #776b5f; }
.rl-rolecell__fixed { display: none; }
.rl-people-link { display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; font-weight: 600; color: #2b241d; text-decoration: underline; text-decoration-color: #d4cab8; text-underline-offset: 3px; }
.rl-people-link:hover { text-decoration-color: #2b241d; }
.rl-cell { padding: 10px 14px; border-bottom: 1px solid #efe9de; }
.rl-grid tbody tr:last-child > * { border-bottom: 0; }
.rl-cell--menu { width: 56px; padding: 6px 8px; }
.rl-cell__label { display: none; }
.rl-row--staff > * { background: #fdf6f4; }
.rl-everything { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 20px; color: #5b4f42; }
.rl-everything svg { width: 20px; height: 20px; flex-shrink: 0; color: #ef463d; }
.rl-everything strong { color: #2b241d; font-weight: 600; }
.rl-row.is-missing > * { background: #fffaeb; }
.rl-row.is-setting-up > * { background: #fff; }
.rl-missing { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; line-height: 20px; color: #5c4500; }
.rl-missing > span { flex: 1 1 0; min-width: 0; }
.rl-missing svg { width: 20px; height: 20px; flex-shrink: 0; color: #a07800; }
.rl-row.is-new > * { animation: rl-flash 2.4s ease-out; }
@keyframes rl-flash { from { background: #fdeee0; } to { background: transparent; } }
.rl-fixed { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.rl-fixed svg { width: 20px; height: 20px; }
.rl-fixed--yes { color: #1f6b4f; }
.rl-fixed--no { color: #b3a898; font-size: 18px; }
.rl-fixed--part { font-size: 13px; line-height: 18px; color: #5b4f42; }

/* Switches: a real checkbox, so the grid is a plain form */
.rl-cap { position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 2px 4px; border-radius: 8px; }
.rl-cap.is-changed { background: #fff1e0; }
.rl-changed-dot { display: none; position: absolute; top: 4px; right: -4px; width: 8px; height: 8px; border-radius: 999px; background: #ef463d; }
.rl-cap.is-changed .rl-changed-dot { display: block; }
.rl-switch { position: relative; display: inline-block; width: 52px; height: 40px; flex-shrink: 0; cursor: pointer; }
.rl-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rl-switch__track { position: absolute; left: 2px; top: 6px; width: 48px; height: 28px; border-radius: 999px; background: #d8cfbf; transition: background .15s; pointer-events: none; }
.rl-switch__track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(43,36,29,.25); transition: transform .15s; }
.rl-switch:hover .rl-switch__track { background: #cbbfab; }
.rl-switch input:checked + .rl-switch__track { background: #1f6b4f; }
.rl-switch:hover input:checked + .rl-switch__track { background: #18573f; }
.rl-switch input:checked + .rl-switch__track::after { transform: translateX(20px); }
.rl-switch input:focus-visible + .rl-switch__track { outline: 2px solid #2b241d; outline-offset: 2px; }
.rl-ccstat { display: none; font-size: 12px; line-height: 16px; color: #776b5f; white-space: nowrap; }
.rl-cap:has(input:checked) .rl-ccstat { display: block; }
.rl-ccstat.is-short { color: #7a5b00; font-weight: 600; }

/* Row menu */
.rl-menu { position: relative; }
.rl-menu__pop { position: absolute; right: 0; top: 44px; z-index: 30; width: 200px; padding: 6px; background: #fff; border: 1px solid #e4ddd0; border-radius: 10px; box-shadow: 0 12px 32px rgba(43,36,29,.14); }
.rl-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #2b241d; }
.rl-menu__item:hover { background: #fbf8f1; }
.rl-menu__item svg { width: 18px; height: 18px; }
.rl-menu__item--danger { color: #b52e27; }

.rl-foot { display: flex; gap: 8px; padding: 12px 20px; border-top: 1px solid #e4ddd0; background: #fbf8f1; border-radius: 0 0 12px 12px; font-size: 14px; line-height: 20px; color: #5b4f42; }
.rl-foot svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: #776b5f; }
.rl-lock { display: inline-block; width: 13px; height: 13px; margin: 0 2px 0 4px; vertical-align: -2px; }

/* Save bar */
.rl-savebar { position: sticky; bottom: 16px; z-index: 15; display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 12px 14px 12px 20px; border-radius: 12px; background: #2b241d; color: #f6f1e4; box-shadow: 0 12px 32px rgba(43,36,29,.28); }
.rl-savebar__text { min-width: 0; flex: 1; }
.rl-savebar__title { font-size: 15px; line-height: 22px; font-weight: 600; color: #fff; }
.rl-savebar__list { font-size: 14px; line-height: 20px; color: #d9cfbf; }
.rl-savebar__list .rl-dot { color: #8a7e72; }
.rl-savebar__btns { display: flex; gap: 10px; flex-shrink: 0; }
.rl-savebar .rl-btn--secondary { background: transparent; border-color: rgba(246,241,228,.35); color: #fff; }
.rl-savebar .rl-btn--secondary:hover { background: rgba(246,241,228,.1); }

/* Dialogs (review, delete, leave; New role uses shared/_create_dialog) */
.rl-dialog__head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 16px 14px 22px; border-bottom: 1px solid #efe9de; }
.rl-dialog__title { font-size: 20px; line-height: 28px; font-weight: 600; color: #2b241d; overflow-wrap: anywhere; }
.rl-dialog__sub { margin-top: 2px; font-size: 15px; line-height: 22px; color: #5b4f42; }
.rl-dialog__body { padding: 18px 22px 20px; font-size: 15px; line-height: 22px; color: #2b241d; }
.rl-dialog__body p + p { margin-top: 10px; }
.rl-dialog__body strong { font-weight: 600; }
.rl-dialog__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid #efe9de; background: #fbf8f1; }
.rl-dialog__foot form { display: contents; }
.rl-plain-list { margin: 8px 0 0 20px; list-style: disc; }
.rl-plain-list li + li { margin-top: 4px; }
.rl-impact { display: flex; flex-direction: column; gap: 10px; }
.rl-impact__item { display: flex; gap: 12px; padding: 12px 14px; border: 1px solid #efe9de; border-radius: 10px; }
.rl-impact__item.is-remove { border-color: #f6c9c5; background: #fdf3f2; }
.rl-impact__icon { width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; border-radius: 999px; background: #e3f3ec; color: #1f6b4f; }
.rl-impact__icon svg { width: 16px; height: 16px; }
.is-remove .rl-impact__icon { background: #fde6e4; color: #b52e27; }
.rl-impact__text { display: block; font-size: 16px; line-height: 24px; font-weight: 600; color: #2b241d; }
.rl-impact__reach { display: block; font-size: 14px; line-height: 20px; color: #5b4f42; }

/* New role form */
.rl-form { display: flex; flex-direction: column; gap: 20px; }
.rl-form__sub { margin-bottom: -4px; font-size: 15px; line-height: 22px; color: #5b4f42; }
.rl-label { display: block; margin-bottom: 6px; font-size: 14px; line-height: 20px; font-weight: 600; color: #5b4f42; }
.rl-optional { margin-left: 4px; font-size: 13px; font-weight: 500; color: #776b5f; }
.rl-input { display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #e4ddd0; border-radius: 8px; background: #fff; font-size: 15px; line-height: 22px; color: #2b241d; }
.rl-input:focus { border-color: #5b4f42; box-shadow: 0 0 0 3px rgba(43,36,29,.10); outline: none; }
.rl-input.is-error { border-color: #b52e27; }
.rl-error { margin-top: 6px; font-size: 14px; line-height: 20px; color: #b52e27; }
.rl-hint { margin-top: 6px; font-size: 13px; line-height: 18px; color: #776b5f; }
.rl-hint--top { margin: -2px 0 8px; }
.rl-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.rl-check { position: relative; display: flex; gap: 12px; align-items: flex-start; min-height: 48px; padding: 10px 12px; margin-top: 6px; border: 1px solid #e4ddd0; border-radius: 10px; cursor: pointer; }
.rl-check:hover { border-color: #cbbfab; }
.rl-check input { position: absolute; opacity: 0; pointer-events: none; }
.rl-checkbox { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; display: grid; place-items: center; border: 2px solid #cfc6b6; border-radius: 6px; color: transparent; }
.rl-checkbox svg { width: 16px; height: 16px; }
.rl-check input:checked + .rl-checkbox { background: #1f6b4f; border-color: #1f6b4f; color: #fff; }
.rl-check:has(input:focus-visible) { outline: 2px solid #2b241d; outline-offset: 2px; }
.rl-check__name { display: block; font-size: 15px; line-height: 22px; font-weight: 600; color: #2b241d; }
.rl-check__desc { display: block; font-size: 13px; line-height: 18px; color: #776b5f; }
.rl-form__foot { display: flex; justify-content: flex-end; gap: 10px; margin: 4px -24px -20px; padding: 14px 24px; border-top: 1px solid #efe9de; background: #fbf8f1; }

/* Tablet and phone: each role is a card */
@media (max-width: 899px) {
  .rl-grid, .rl-grid tbody, .rl-grid tr, .rl-grid th, .rl-grid td { display: block; width: auto; }
  .rl-grid thead { display: none; }
  .rl-row { position: relative; padding: 16px; border-bottom: 1px solid #efe9de; }
  .rl-row > * { background: transparent !important; }
  .rl-row--staff { background: #fdf6f4; border-radius: 12px 12px 0 0; }
  .rl-row.is-missing { background: #fffaeb; }
  .rl-row.is-setting-up { background: #fff; }
  .rl-grid tbody tr:last-child { border-bottom: 0; }
  .rl-rolecell { padding: 0; border: 0; }
  .rl-rolecell .rl-key { display: none; }
  .rl-row:has(.rl-cell--menu .rl-menu) .rl-rolecell { padding-right: 44px; }
  .rl-rolecell__fixed { display: block; margin: 6px 0 4px; font-size: 13px; line-height: 18px; color: #776b5f; }
  .rl-cell { padding: 0; border: 0; }
  .rl-cell--fixed { display: none !important; }
  .rl-grid .rl-cell--feature { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid #efe9de; }
  .rl-cell__label { display: block; min-width: 0; flex: 1; }
  .rl-cell__name { display: block; font-size: 15px; line-height: 22px; font-weight: 500; color: #2b241d; }
  .rl-cell--feature .rl-cap { align-items: flex-end; text-align: right; }
  .rl-cell--missing { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #fff3cf !important; }
  .rl-cell--menu { position: absolute; top: 10px; right: 8px; width: auto; padding: 0; }
  .rl-row--staff .rl-cell { margin-top: 6px; }
  .rl-row--staff .rl-cell--menu { display: none; }
}

@media (max-width: 639px) {
  .rl-alert { flex-wrap: wrap; }
  .rl-alert p { flex-basis: calc(100% - 44px); }
  .rl-alert .rl-btn { margin-left: 32px; }
  .rl-missing > span { flex-basis: calc(100% - 40px); }
  .rl-foot { padding: 12px 16px; }
  .rl-savebar { flex-direction: column; align-items: stretch; gap: 10px; bottom: 12px; padding: 12px 14px; }
  .rl-savebar__btns .rl-btn { flex: 1; }
  .rl-page .ping-modal-backdrop { padding: 0; }
  .rl-page .ping-modal-wrap { align-items: flex-end; }
  .rl-page .ping-modal-panel { max-width: none; max-height: 92dvh; overflow-y: auto; border-radius: 16px 16px 0 0; }
  .rl-dialog__head { padding: 12px 8px 12px 16px; }
  .rl-dialog__body { padding: 16px; }
  .rl-dialog__foot { padding: 12px 16px; }
  .rl-dialog__foot .rl-btn, .rl-form__foot .rl-btn { flex: 1; }
  .rl-form__foot { position: sticky; bottom: 0; }
}
/* Store list and store pages: map header (stores/_map_header), tabs, hours and the stores list grid. */

.ping-map-head { position: relative; isolation: isolate; }
.ping-map-head__body { padding: 20px 16px 0; }
.ping-map-head--map.ping-map-head--store:not(.is-fallback) .ping-map-head__body { padding-top: 124px; }
.ping-map-head--map.ping-map-head--list:not(.is-fallback) .ping-map-head__body { padding-top: 4px; }
@media (min-width: 640px) {
  .ping-map-head__body { padding: 24px 24px 0; }
  .ping-map-head--map.ping-map-head--store:not(.is-fallback) .ping-map-head__body { padding-top: 172px; }
}
/* The store map sits behind the header text; only its credit button takes clicks. */
.ping-map-head--store .ping-map-head__body { pointer-events: none; }
.ping-map-head--store .ping-map-head__body > * { pointer-events: auto; }

.ping-map { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* Two classes so MapLibre's own .maplibregl-map { position: relative } doesn't win. */
.ping-map .ping-map__canvas { position: absolute; inset: -40px; opacity: 0; transition: opacity .9s ease; }
.ping-map-head.is-ready .ping-map__canvas { opacity: 1; }
.ping-map-head.is-fallback .ping-map { display: none; }
@media (prefers-reduced-motion: reduce) { .ping-map__canvas { transition: none; } }
/* The store canvas overhangs the header by 40px (hidden under the edge blur); bring its credit back inside. */
.ping-map-head--store .maplibregl-ctrl-top-right { top: 40px; right: 40px; }

/* The stores list map is a band of its own above the title: pan, zoom, clusters and popups, fading into the page. */
.ping-map-head--list .ping-map { position: relative; z-index: 0; height: 280px; pointer-events: auto; }
@media (min-width: 640px) { .ping-map-head--list .ping-map { height: 380px; } }
.ping-map-head--list .ping-map .ping-map__canvas { inset: 0; }
.ping-map-head--list .maplibregl-canvas {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent);
}

/* Fade into the page at the bottom and behind the title; sharp and labelled around the pin, blurred toward the edges. */
.ping-map__veil {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to bottom, rgba(251, 248, 241, 0) 0%, rgba(251, 248, 241, 0) 48%, rgba(251, 248, 241, .7) 64%, rgba(251, 248, 241, .94) 76%, #fbf8f1 90%),
    linear-gradient(90deg, rgba(251, 248, 241, .72) 0%, rgba(251, 248, 241, .3) 30%, rgba(251, 248, 241, 0) 50%);
}
.ping-map__veil::before {
  content: ''; position: absolute; inset: 0;
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  -webkit-mask-image: radial-gradient(ellipse 30% 62% at 71% 42%, transparent 0%, transparent 45%, #000 100%);
  mask-image: radial-gradient(ellipse 30% 62% at 71% 42%, transparent 0%, transparent 45%, #000 100%);
}
.ping-map .maplibregl-marker { z-index: 3; }
.ping-map .maplibregl-popup { z-index: 5; }
/* The credit's ⓘ sits above the store veil. */
.ping-map .maplibregl-control-container { position: absolute; inset: 0; z-index: 4; pointer-events: none; }

.ping-pin { position: relative; width: 0; height: 0; }
.ping-pin__glow { position: absolute; left: 0; top: 0; width: 260px; height: 260px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(239, 70, 61, .30) 0%, rgba(239, 70, 61, .12) 32%, rgba(239, 70, 61, 0) 68%); }
.ping-pin__dot { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: #ef463d; box-shadow: 0 0 0 4px #fff, 0 6px 18px rgba(43, 36, 29, .28); }

/* Map chrome in the brand: zoom, "show all stores", the credit and store popups. */
.ping-map .maplibregl-ctrl-group { border-radius: 10px; box-shadow: 0 2px 10px rgba(43, 36, 29, .16); }
.ping-map .maplibregl-ctrl-group button { width: 34px; height: 34px; }
.ping-map .maplibregl-ctrl-group button:focus-visible, .ping-map .maplibregl-ctrl-attrib-button:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ef463d; }
.ping-map-fit { background: center / 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b241d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V5a1 1 0 0 1 1-1h4M15 4h4a1 1 0 0 1 1 1v4M20 15v4a1 1 0 0 1-1 1h-4M9 20H5a1 1 0 0 1-1-1v-4'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E"); }
.ping-map .maplibregl-ctrl-attrib { font-size: 12px; line-height: 20px; color: #5b4f42; }
.ping-map .maplibregl-ctrl-attrib.maplibregl-compact { background: rgba(255, 255, 255, .9); box-shadow: 0 1px 4px rgba(43, 36, 29, .14); }
.ping-map .maplibregl-ctrl-attrib-button { background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='5.5' fill='none' stroke='%23776b5f' stroke-width='1.3'/%3E%3Ccircle cx='10' cy='7.4' r='.9' fill='%23776b5f'/%3E%3Cpath d='M10 9.6v3.6' stroke='%23776b5f' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ping-map .maplibregl-ctrl-attrib a { color: inherit; }
.ping-map .maplibregl-cooperative-gesture-screen { font-size: 15px; background: rgba(43, 36, 29, .55); }
.ping-map .ping-map__canvas { font: inherit; }
.ping-map-popup .maplibregl-popup-content { padding: 14px 16px 16px; border-radius: 12px; box-shadow: 0 8px 28px rgba(43, 36, 29, .22); }
.ping-map-popup .maplibregl-popup-close-button { width: 28px; height: 28px; font-size: 20px; color: #776b5f; border-radius: 0 12px 0 8px; }
.ping-map-popup__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 200px; padding-right: 12px; }
.ping-map-popup__name { font-size: 15px; line-height: 20px; font-weight: 600; color: #2b241d; }
.ping-map-popup__address { font-size: 13px; line-height: 18px; color: #776b5f; }
.ping-map-popup__open { margin-top: 6px; padding: 6px 14px; border-radius: 999px; background: #ef463d; font-size: 13px; line-height: 20px; font-weight: 600; color: #fff; }
.ping-map-popup__open:hover { background: #d93a31; }
.ping-map-popup__open:focus-visible { outline: 2px solid #2b241d; outline-offset: 2px; }

/* Store tabs sit on the header's bottom edge, over the faded map. */
.ping-store-tabs { margin-top: 14px; padding: 0 16px; border-bottom: 1px solid #e4ddd0; }
.ping-store-tabs .ping-tab.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: #ef463d; }
@media (min-width: 640px) { .ping-store-tabs { padding: 0 24px; } }

.ping-store-body { padding: 0 16px 24px; }
.ping-store-body > .ping-entity-shell { padding-top: 20px; }
@media (min-width: 640px) { .ping-store-body { padding: 0 24px 24px; } }

.ping-hours { width: 100%; font-size: 14px; line-height: 20px; }
.ping-hours th { padding: 10px 20px; text-align: left; font-size: 13px; font-weight: 600; color: #776b5f; background: #fbf8f1; border-bottom: 1px solid #e4ddd0; }
.ping-hours td { padding: 10px 20px; border-bottom: 1px solid #efe9de; color: #2b241d; }
.ping-hours tr:last-child td { border-bottom: 0; }
.ping-hours tr.is-today td { background: #fdfbf6; font-weight: 600; }

/* Stores list: stacked on narrow cards (the chevron is hidden there), a grid from 600px of card width. */
.ping-list--stores .ping-list__row > .ping-list__chev { display: none; }
.ping-list--stores .ping-list__row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "store" "status" "activity"; row-gap: 6px; }
.ping-list--stores [data-cell="store"] { grid-area: store; }
.ping-list--stores [data-cell="status"] { grid-area: status; }
.ping-list--stores [data-cell="activity"] { grid-area: activity; }
.ping-list--stores [data-cell="line"], .ping-list--stores [data-cell="conversations"], .ping-list--stores [data-cell="orders"], .ping-list--stores [data-cell="sales"] { display: none; }
@container (min-width: 600px) {
  .ping-list--stores .ping-list__grid { grid-template-columns: minmax(0, 1.6fr) 104px 72px 96px 176px 16px; grid-template-areas: none; }
  .ping-list--stores.ping-list--stores-calls-only .ping-list__grid { grid-template-columns: minmax(0, 1.6fr) 104px 176px 16px; }
  .ping-list--stores .ping-list__grid > * { grid-area: auto; }
  .ping-list--stores [data-cell="activity"] { display: none; }
  .ping-list--stores .ping-list__row > .ping-list__chev { display: block; }
  .ping-list--stores [data-cell="conversations"], .ping-list--stores [data-cell="orders"], .ping-list--stores [data-cell="sales"] { display: block; }
}
@container (min-width: 880px) {
  .ping-list--stores .ping-list__grid { grid-template-columns: minmax(200px, 1.6fr) 150px 104px 72px 96px 196px 16px; }
  .ping-list--stores.ping-list--stores-calls-only .ping-list__grid { grid-template-columns: minmax(200px, 1.6fr) 150px 104px 196px 16px; }
  .ping-list--stores [data-cell="line"] { display: block; }
}

/* The cream neutral pill disappears into the map's sandy blocks. */
.ping-map-head .ping-pill--neutral { background: #fff; box-shadow: inset 0 0 0 1px #e4ddd0; }
/*
 * 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.
 *


 */

turbo-cable-stream-source {
    display: none;
}
