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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*/

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

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

.trix-content action-text-attachment .attachment {
  padding: 0 !important;
  max-width: 100% !important;
}
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@200;300;400;500;600;700;800;900&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

/*### CUSTOM CSS ###################*/
/*--- font-face --------------------*/

@font-face {
  font-family: "verb-black";
  font-style: normal;
  font-weight: 400;
  src: url(/assets/yellow_design_studio_-_verbblack-webfont-e7ebed718429d46a9ffbb0a38075e991f831bc4e01eadc787ed70bde20f343dd.woff2) format('woff2'), url(/assets/yellow_design_studio_-_verbblack-webfont-11cf54c4320f772155d8000fa84650a02d2fe040b4777bfd488096863934fbbe.woff) format('woff')
}

@font-face {
  font-family: "jbm-regular";
  font-style: normal;
  font-weight: 400;
  src: url(/assets/JetBrainsMono-Regular-a55cbf8d4a7841f46240a337cf6e2993922f0476909f78a0b8a78ec667050ba6.woff2) format('woff2')
}

/* nab-app's statement fonts (Balance Sheet and P&L). */
@font-face {
  font-family: "andes-black";
  font-style: normal;
  font-weight: 400;
  src: url(/assets/Andes-Black-ea19deba6bc82feceb726cfb93929b33917d63d8cdc140e8a4a06bdd48af1f5c.woff2) format('woff2')
}

@font-face {
  font-family: "andes-medium";
  font-style: normal;
  font-weight: 400;
  src: url(/assets/Andes-Medium-01747f0c1f2424c2dfa319bd9d19b8677bbe6486bebe6b9e10b85bcc84840b41.woff2) format('woff2')
}

@font-face {
  font-family: "jbm-regular-semi-ita";
  font-style: italic;
  font-weight: 400;
  src: url(/assets/JetBrainsMono-SemiBoldItalic-3a2115da02659b2db1a05f41703522f238ca1a684bd7b0d0423b46fe35ec1b5b.woff2) format('woff2')
}

@font-face {
  font-family: "jbm-regular-extra";
  font-style: normal;
  font-weight: 400;
  src: url(/assets/JetBrainsMono-ExtraBold-faae1cef501859ae34168df5568bba47dbd875e236e00b2d3615b679ae30ec2f.woff2) format('woff2')
}

@font-face {
  font-family: "really-sans";
  font-style: normal;
  font-weight: 400;
  src: url(/assets/ReallySansLargeStudent-Ultra-149d49972a572e63898de3f00777e9624bdf15050d8d94609496b37106a561e5.woff2) format('woff2')
}

/*--- bug-fix -----------------------*/
.badge-info {
  @apply border-base-200 bg-base-100 text-base-content rounded-badge border;
  @apply bg-info text-info-content border-transparent;
}

/*--- colours (docs/STYLE.md) -------
   The app's palette, one of each, and Tailwind's defaults for status.
   Use these names; never a new hex. */
:root {
  --ink: #2b2522;
  --muted: #6b6458;
  --line: #cfc2a0;
  --line-soft: #e8e0c8;
  --card: #ece4d0;
  --cream: #f9f7f1;
  --white: #ffffff;
  --page: #e4d8b4;
  --orange: #e3864c;
  --gold: #e1c782; /* the Bulletin Board's Pinned card */
  --grid-complete: #5bb784; --grid-review: #8fb2e8; --grid-progress: #f2c66d; /* the Grid's own colours */
  --grid-waiting: #d9c3ee; --grid-not-started: #e3dbc5; --grid-overdue: #e06a5a;
  --peach: #ffdcb3; /* the Issues area's own colour (stands apart from the tan pages) */
  --green-50: #f0fdf4; --green-100: #dcfce7; --green-200: #bbf7d0; --green-300: #86efac; --green-400: #4ade80; --green-600: #16a34a; --green-700: #15803d; --green-800: #166534;
  --amber-50: #fffbeb; --amber-100: #fef3c7; --amber-200: #fde68a; --amber-300: #fcd34d; --amber-400: #fbbf24; --amber-600: #d97706; --amber-700: #b45309; --amber-800: #92400e;
  --red-50: #fef2f2; --red-100: #fee2e2; --red-200: #fecaca; --red-300: #fca5a5; --red-400: #f87171; --red-600: #dc2626; --red-700: #b91c1c; --red-800: #991b1b;
  --blue-50: #eff6ff; --blue-100: #dbeafe; --blue-200: #bfdbfe; --blue-300: #93c5fd; --blue-400: #60a5fa; --blue-600: #2563eb; --blue-700: #1d4ed8; --blue-800: #1e40af;
  --violet-50: #f5f3ff; --violet-100: #ede9fe; --violet-200: #ddd6fe; --violet-300: #c4b5fd; --violet-400: #a78bfa; --violet-600: #7c3aed; --violet-700: #6d28d9; --violet-800: #5b21b6;
  --stone-50: #fafaf9; --stone-300: #d6d3d1; --stone-500: #78716c; --stone-600: #57534e;
}

/*--- custom -----------------------*/
.field_with_errors input{
  @apply input-warning;
}

.btn-normalize{
  @apply normal-case;
  @apply text-base;
  @apply p-2;
}

.btn-retro{
  @apply rounded-3xl;
  @apply border;
  @apply border-gray-800;
  @apply -translate-y-1;
  @apply -translate-x-1;
  @apply shadow-xl;
  @apply hover:border;
  @apply hover:border-gray-800;
  @apply hover:translate-y-0;
  @apply hover:translate-x-0;
  @apply hover:shadow-none;
}

/* The reverse of btn-retro, for buttons that should stand out: raised
   (lifted up-left with a shadow) at rest, settling flat when hovered. */
.btn-retro-reversed{
  @apply rounded-3xl;
  @apply border;
  @apply border-gray-800;
  @apply -translate-y-1;
  @apply -translate-x-1;
  @apply shadow-xl;
  @apply hover:border;
  @apply hover:border-gray-800;
  @apply hover:translate-y-0;
  @apply hover:translate-x-0;
  @apply hover:shadow-none;
}

/* Close/remove button (same as nab-app): ghost until hovered. */
.btn-interface{
  @apply hover:border;
  @apply hover:border-gray-800;
  @apply hover:-translate-y-1;
  @apply hover:-translate-x-1;
  @apply hover:shadow-xl;
  @apply hover:bg-white;
}

/* Review statements: scroll sideways with the account column frozen on the
   left, YTD frozen on the right and the header row fixed. */
.review-scroll {
  @apply overflow-x-auto border border-gray-800 rounded-md bg-white;
  max-height: 75vh;
}
/* The statements: sideways scroll only; they take the height they need. */
.review-statement-scroll { max-height: none; }
.review-table {
  @apply text-sm border-collapse;
  font-family: "jbm-regular";
  width: max-content;
  min-width: 100%;
}
.review-table th {
  @apply bg-neutral text-neutral-content font-normal text-xs px-3 py-3 text-left sticky top-0 z-10; /* about a row's height */
}
.review-table td {
  @apply px-3 py-1.5 whitespace-nowrap;
  border-bottom: 1px solid var(--card);
}
.review-num { @apply text-right; }
.review-table .review-name {
  @apply sticky left-0 z-20 bg-white;
  box-shadow: 1px 0 0 var(--ink);
}
.review-table th.review-name { @apply bg-neutral z-30; }
.review-table .review-ytd {
  @apply sticky right-0 font-bold;
  background: var(--cream);
  box-shadow: -1px 0 0 var(--ink);
}
.review-table th.review-ytd { @apply bg-neutral z-30; }
.review-section td { @apply font-bold uppercase text-xs pt-4; background: var(--cream); }
.review-section td.review-name { background: var(--cream); }
.review-total td { @apply font-bold; border-top: 1px solid var(--ink); }
.review-subtotal td { @apply italic; }
.review-grand td, .review-grand td.review-name { @apply font-bold; background: var(--cream); border-top: 2px solid var(--ink); }
.review-net td, .review-net td.review-name { @apply font-bold; background: var(--line-soft); border-top: 2px solid var(--ink); border-bottom: 3px double var(--ink); }
/* The P&L and Balance Sheet (nab-app's look): Work Sans names in a 256px
   column, JetBrains Mono figures at 13px in 128px columns, Andes Black
   section headings with coloured icons, semibold italic subtotals, extra
   bold grand totals (double underline on the last one). */
.review-statement th { padding: 12px; }
.review-statement td { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.review-statement td.review-name { @apply text-sm; font-family: "Work Sans", sans-serif; width: 16rem; min-width: 16rem; }
.review-statement th.review-name { width: 16rem; min-width: 16rem; }
.review-statement .review-num { font-size: 13px; font-variant-numeric: tabular-nums; width: 8rem; min-width: 8rem; }
.review-statement .review-section td, .review-statement .review-section td.review-name { background: var(--white); padding-top: 0.75rem; text-transform: none; font-weight: 400; }
.review-statement .review-section td.review-name { font-family: "andes-black"; font-size: 1rem; text-transform: uppercase; padding-left: 0.75rem; }
.review-section-title { display: inline-flex; align-items: center; gap: 0.5rem; }
.review-section-icon { display: inline-flex; }
.review-section-icon svg { width: 20px; height: 20px; }
.review-tone-assets { color: var(--green-700); }
.review-tone-liabilities { color: var(--red-600); }
.review-tone-income { color: var(--green-700); }
.review-tone-expenses { color: var(--amber-700); }
.review-statement .review-category td.review-name { padding-left: 2rem; font-weight: 500; }
.review-statement .review-total td { font-family: "jbm-regular-semi-ita"; font-weight: 400; }
.review-statement .review-total td.review-name, .review-statement .review-subtotal td.review-name { font-family: "Work Sans", sans-serif; font-weight: 500; font-style: normal; }
.review-statement .review-total td.review-name { padding-left: 2rem; }
.review-statement .review-subtotal td { font-family: "jbm-regular-semi-ita"; font-style: normal; }
.review-statement .review-grand td, .review-statement .review-net td { font-family: "jbm-regular-extra"; font-weight: 400; }
.review-statement .review-grand td.review-name, .review-statement .review-net td.review-name { font-family: "andes-black"; font-size: 14px; padding-left: 2rem; }
.review-statement .review-net td { border-bottom: 4px double var(--ink); }
.review-statement .review-spacer td { height: 2.25rem; padding: 0; border-bottom: none; }
.review-statement .review-ytd { font-weight: 400; }
.review-zero { color: var(--line); }
.review-figure { @apply hover:underline; }
.review-drill-group td { font-weight: 700; background: var(--line-soft); padding-top: 0.6rem; }
.review-drill-subtotal td { font-weight: 700; border-top: 1px solid var(--ink); }
/* "AS AT DEC 2026" under the Review heading: the Overview's section style. */
.review-as-at { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.025em; margin-top: 0.25rem; }
.review-update, .review-update:hover { background: var(--orange); border-color: var(--ink); color: var(--ink); } /* nab-app's soft orange, as on Issues */
.review-update:hover { background: var(--orange); }
.review-finalize { color: var(--ink); }
.review-finalize:disabled { background: hsl(var(--su)); color: var(--ink); border-color: var(--ink); opacity: 1; } /* full green even before Finalize is built (Drew) */
.review-qbo-btn { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 0.375rem; color: var(--muted); }
.review-qbo-btn:hover { background: var(--line-soft); color: var(--ink); }
.review-qbo-btn svg { width: 16px; height: 16px; fill: currentColor; }
.review-figure:hover { background: var(--amber-100); }
/* Client file: menu on the left (nab-app's layout), the area on the right.
   On narrow screens the menu sits above the page. */
.client-file { display: grid; grid-template-columns: 18.75rem minmax(0, 1fr); min-height: 100vh; } /* 300px menu */
.client-sidebar { background: var(--white); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1.25rem 0.875rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
/* The top of a menu (shared/_menu_logo): the logo on the left, « at its top right. */
.menu-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; padding-bottom: 1.25rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.menu-logo { display: flex; }
.menu-logo-img { height: 4.55rem; width: auto; } /* 1.3x the old 3.5rem */
.menu-logo-fav { display: none; width: 2.4rem; height: 2.4rem; border-radius: 0.5rem; }
.menu-toggle { position: relative; flex: none; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--white); box-shadow: 0 2px 0 var(--ink); font-family: "jbm-regular"; font-size: 0.9rem; line-height: 1; color: var(--ink); }
.menu-toggle:hover { background: var(--cream); }
.menu-toggle:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.menu-toggle-open { display: none; }
/* The dark hover label: under «, beside », and a collapsed menu's names. */
.menu-toggle:hover::after, .menu-collapsed .client-nav-link > span:not(.menu-count) { position: absolute; background: var(--ink); color: var(--white); font-family: "jbm-regular"; font-size: 0.72rem; font-weight: normal;
  line-height: 1.2; padding: 0.3rem 0.55rem; border-radius: 0.3rem; white-space: nowrap; z-index: 50; pointer-events: none; }
.menu-toggle-close:hover::after { content: "Collapse menu"; right: 0; top: calc(100% + 0.4rem); }
.menu-toggle-open:hover::after { content: "Expand menu"; left: calc(100% + 0.6rem); top: 50%; transform: translateY(-50%); }
/* The client's name (or the area's) above the page, as on nab-app. */
.client-header { margin-bottom: 1.25rem; }
.client-header-sub { font-family: "jbm-regular"; font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }
.client-nav { display: grid; gap: 0.125rem; }
.client-nav-bottom { border-top: 1px solid var(--line); padding-top: 0.625rem; }
.client-nav-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.625rem; border-radius: 0.5rem; font-size: 0.95rem; }
.client-nav-link:hover { background: var(--cream); }
.client-nav-link svg { flex: none; width: 20px; height: 20px; }
.client-nav-link svg:not([fill="none"]) { fill: currentColor; } /* filled icons; stroke icons keep fill none */
.client-nav-on, .client-nav-on:hover { background: var(--ink); color: var(--white); }
.client-main { padding: 1.5rem 1.75rem; min-width: 0; }
.client-mock-tag { font-family: "jbm-regular"; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.05rem 0.4rem; border: 1px dashed var(--line); border-radius: 999px; color: var(--muted); }
@media (max-width: 767px) {
  .client-file { grid-template-columns: minmax(0, 1fr); }
  .client-sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Work: templates (Settings) and work items (client file). */
.client-file-notes { grid-template-columns: 18.75rem minmax(0, 1fr) 24rem; }
.work-label { font-family: "jbm-regular"; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.2rem; display: block; }
.work-muted { color: var(--muted); }
.work-frequency { height: 3rem; display: flex; align-items: center; padding: 0 1rem; border: 1px dashed var(--line); border-radius: 0.5rem; color: var(--ink); }
.work-overdue { color: var(--red-700); font-weight: 700; }
/* Section headings, as on the Overview ("OPEN WORK"). */
.work-heading { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.025em; margin: 1.5rem 0 0.5rem; }
.work-period { font-family: "jbm-regular"; white-space: pre; font-size: 0.85rem; }
.work-title-period { font-family: "jbm-regular"; white-space: pre; font-size: 1.1rem; color: var(--muted); display: block; }
.work-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--ink); border-radius: 0.5rem; overflow: hidden; }
/* The same dark heading row as the Review's data tables (.review-table th). */
.work-table th { @apply bg-neutral text-neutral-content font-normal text-xs px-3 py-3 text-left; font-family: "jbm-regular"; }
.work-table td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--line-soft); }
.work-table tr:last-child td { border-bottom: 0; }
.work-table tbody tr:hover { background: var(--cream); }
.work-row-link { cursor: pointer; }
/* Ponder's category dropdowns: parent accounts are greyed headings (they
   can't be posted to). */
option.ponder-category-parent { color: var(--muted); }
/* "No open work" and the like, in place of a work table. */
.work-empty { @apply text-sm rounded-lg bg-white px-4 py-3; border: 1px solid var(--ink); color: var(--muted); }

/* Status pills; Waiting on Client is blue. */
.work-status-select { font-family: "jbm-regular"; font-size: 0.8rem; padding: 0.2rem calc(0.5rem + 2px); border-radius: 999px; border: 1px solid var(--ink); cursor: pointer; }

/* Templates list and editor */
.work-template-list { display: grid; gap: 0.25rem; align-content: start; align-self: start; }
.work-template-link { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.55rem 0.75rem; border-radius: 0.5rem; border: 1px solid transparent; }
.work-template-link:hover { background: var(--cream); }
.work-template-on, .work-template-on:hover { background: var(--white); border-color: var(--ink); }
.work-task-preview { padding: 0.6rem 0; border-bottom: 1px solid var(--line-soft); }
.work-task-row { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) 1.5rem; gap: 0.5rem; align-items: start; padding: 0.75rem; background: var(--white); border: 1px solid var(--line); border-radius: 0.5rem; }
.work-task-row.dragging { opacity: 0.4; }
.work-grip { cursor: grab; color: var(--line); padding-top: 0.35rem; user-select: none; }
.work-remove { color: var(--muted); padding: 0.3rem; border-radius: 0.375rem; }
.work-remove:hover { background: var(--red-100); color: var(--red-700); }
.work-add-row { font-family: "jbm-regular"; font-size: 0.8rem; padding: 0.5rem 0.75rem; border: 1px dashed var(--line); border-radius: 0.5rem; width: 100%; text-align: left; color: var(--muted); }
.work-add-row:hover { background: var(--white); color: var(--ink); }

/* Work item page */
.work-meta { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; margin-top: 1.25rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 0.9rem; }
/* Every value is a 2rem box with its text centred, so plain text, the badge,
   the status picker and the Pass button's text all sit on one line. */
.work-value { display: flex; align-items: center; gap: 0.35rem; height: 2rem; white-space: nowrap; }
.work-value form { display: flex; }
.work-badge { display: inline-flex; align-items: center; gap: 0.4rem; height: 2rem; padding: 0 calc(0.6rem + 2px) 0 calc(0.2rem + 2px); border: 1px solid var(--ink); border-radius: 999px; background: var(--white); font-size: 0.8rem; }
.work-value .work-status-select, .work-value .work-pill { height: 2rem; display: inline-flex; align-items: center; }
/* The short button size (Pass →, Complete, the Overview's tools, Ponder in
   a work item's Tools box): 32px tall, as wide as its label. Use with btn-sm. */
.btn-short { height: 2rem; min-height: 2rem; }
.work-tools-title { @apply uppercase tracking-wide font-semibold text-sm mb-3; }
.work-avatar { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 999px; background: var(--violet-600); color: var(--white); font-family: "jbm-regular"; font-size: 0.65rem; flex: none; }
.work-avatar-alt { background: var(--ink); }
.work-action { display: grid; gap: 0.1rem; padding: 0.65rem 0.8rem; border: 1px solid var(--line); border-radius: 0.5rem; background: var(--white); }
.work-action span { font-size: 0.8rem; color: var(--muted); }
.work-action:hover { border-color: var(--ink); }
.work-action-danger b { color: var(--red-700); }
.work-section { background: var(--white); border: 1px solid var(--ink); border-radius: 0.5rem; }
.work-section-head { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; border-bottom: 1px solid var(--ink); font-family: "verb-black"; font-size: 1.15rem; }
.work-section-head summary { list-style: none; cursor: pointer; font-family: "jbm-regular"; font-size: 0.75rem; color: var(--muted); }
.work-section-head summary::-webkit-details-marker { display: none; }
.work-section-title { font-family: "verb-black"; font-size: 1.15rem; }
.work-task { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) auto; gap: 0.75rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line-soft); }
.work-task:last-of-type { border-bottom: 0; }
.work-task-empty { display: block; }
.work-check { width: 1.25rem; height: 1.25rem; border: 1.5px solid var(--ink); border-radius: 0.3rem; background: var(--white); display: grid; place-items: center; font-size: 0.8rem; line-height: 1; margin-top: 0.1rem; }
.work-check:hover:not(:disabled) { background: var(--card); }
.work-task-done .work-check { background: var(--green-300); border-color: var(--green-300); color: var(--white); }
.work-task-title { font-weight: 600; }
.work-task-done .work-task-title { text-decoration: line-through; color: var(--muted); }
.work-task-desc { font-size: 0.85rem; color: var(--ink); margin-top: 0.2rem; }
.work-task-done .work-task-desc { color: var(--muted); }
.work-task-side { display: flex; align-items: flex-start; gap: 0.5rem; }
.work-done-note { font-family: "jbm-regular"; font-size: 0.7rem; color: var(--green-800); white-space: nowrap; padding-top: 0.15rem; }
.work-task-delete { color: var(--line); font-size: 0.8rem; padding: 0 0.25rem; }
.work-task-delete:hover { color: var(--red-700); }
.work-add-task { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line-soft); background: var(--cream); }
.work-edit-only { display: none; }
.work-editing .work-edit-only { display: block; }
.work-editing .work-task-side form.work-edit-only { display: inline; }
.work-editing .work-task-body { cursor: pointer; border-radius: 0.375rem; margin: -0.25rem -0.4rem; padding: 0.25rem 0.4rem; }
.work-editing .work-task-body:hover { background: var(--card); }
.work-editing .work-section-head { background: var(--cream); }
.work-editing .work-check:disabled { opacity: 0.35; cursor: not-allowed; }
.work-editing .work-view-only { display: none; }
/* Drag to reorder (Edit mode): a grab cursor on each task, and the one being dragged fades. */
.work-editing .work-task[draggable="true"] { cursor: grab; }
.work-task.dragging { opacity: 0.4; }
.work-template-tasks { display: grid; gap: 0.5rem; }
.work-template-form:not(.work-editing) .work-task-row { grid-template-columns: minmax(0, 1fr); border-color: var(--line-soft); }
.work-wrapup { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--ink); border-radius: 0.5rem; background: var(--white); }
.work-complete-btn, .work-complete-btn:hover { background: var(--green-600); border-color: var(--ink); color: var(--white); }
.work-complete-btn:hover { background: var(--green-700); }
.work-blocked { padding: 0.75rem; border: 1px solid var(--orange); border-radius: 0.5rem; background: var(--red-100); font-size: 0.9rem; }

/* The chat bar on the right edge of a client page (work item Notes, issue
   chat; later to-dos): full height, a coloured line along the top, the
   messages scrolling inside and the editor at the bottom. */
.side-bar { background: var(--white); border-left: 1px solid var(--line); border-top: 4px solid var(--ink); position: sticky; top: 0; height: 100vh;
  min-height: 0; display: flex; flex-direction: column; }
.side-bar-ink { border-top-color: var(--ink); }
.side-bar-issue { border-top-color: var(--red-700); }
.side-bar-padded { padding: 1.25rem 1.25rem 1rem; }
.chat-frame { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.work-notes-head { padding: 1.25rem 1rem 0.75rem; border-bottom: 1px solid var(--line); }
.chat-scroll { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
.work-notes-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0.75rem 1rem; }
.chat-new { position: absolute; bottom: 0.75rem; left: 50%; transform: translateX(-50%); font-family: "jbm-regular"; font-size: 0.7rem;
  padding: 0.25rem 0.75rem; border-radius: 999px; background: var(--ink); color: var(--white); box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.chat-new.hidden { display: none; }
#chat_messages { display: grid; gap: 0.75rem; }
.work-notes-compose { padding: 0.75rem 1rem 1rem; border-top: 1px solid var(--line); }
.chat-message { background: var(--cream); border: 1px solid var(--line-soft); border-radius: 0.5rem; padding: 0.6rem 0.7rem; }
.chat-message-head { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; flex-wrap: wrap; }
.chat-time { margin-left: auto; font-family: "jbm-regular"; font-size: 0.65rem; color: var(--muted); }
.chat-edited { font-family: "jbm-regular"; font-size: 0.65rem; color: var(--muted); }
.chat-foot { display: flex; justify-content: flex-end; align-items: center; gap: 0.6rem; margin-top: 0.2rem; }
.chat-foot.hidden, .chat-actions.hidden { display: none; }
.chat-actions { display: flex; align-items: center; gap: 0.6rem; }
.chat-actions form { display: flex; }
.chat-actions .chat-action { line-height: 1; padding: 0; }
.chat-cog { color: var(--line); padding: 0.1rem; border-radius: 0.25rem; line-height: 0; }
.chat-cog:hover { color: var(--ink); background: var(--card); }
.chat-cog svg { width: 14px; height: 14px; }
.chat-body { font-size: 0.85rem; margin-top: 0.35rem; overflow-wrap: anywhere; }
.chat-body ul { list-style: disc; padding-left: 1.25rem; }
.chat-body ol { list-style: decimal; padding-left: 1.25rem; }
.chat-edit { margin-top: 0.35rem; }
.chat-trix { min-height: 2.75rem; max-height: 12rem; overflow-y: auto; font-size: 0.85rem; }
.chat-composer .chat-trix { min-height: 6.5rem; } /* about four lines */
.chat-error { font-size: 0.75rem; color: var(--red-700); margin-bottom: 0.35rem; }
.chat-posting-to { margin-top: 0.35rem; font-family: "jbm-regular"; font-size: 0.65rem; color: var(--muted); }
.chat-picker { bottom: 100%; top: auto; }

/* Bulletin Board */
/* Two cards side by side, as in nab-app: the board and a gold Pinned card
   with a dark edge, half and half. */
.notes-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.notes-column { display: grid; gap: 0.6rem; margin-top: 0.6rem; min-height: 1rem; }
.note-frame { display: block; }
.note-card { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0.6rem; background: var(--white); border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.85rem 1rem 0.6rem 0.6rem; }
.note-card-editing { border-color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,0.08); margin-top: 0.6rem; }
.note-card-editing.hidden { display: none; }
.note-grip { color: var(--line); cursor: grab; padding-top: 0.15rem; user-select: none; }
.note-title { font-family: "verb-black"; font-size: 1.05rem; overflow-wrap: anywhere; }
.note-body { font-size: 0.875rem; line-height: 1.5; margin-top: 0.2rem; overflow-wrap: anywhere; }
.note-body ul { list-style: disc; padding-left: 1.25rem; }
.note-body ol { list-style: decimal; padding-left: 1.25rem; }
.note-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }
.note-meta { font-family: "jbm-regular"; font-size: 0.68rem; color: var(--muted); }
.note-actions { display: flex; align-items: center; gap: 0.6rem; }
.note-menu { display: flex; align-items: center; gap: 0.6rem; }
.note-menu.hidden { display: none; }
.note-pin { color: var(--line); padding: 0.1rem; border-radius: 0.25rem; line-height: 0; }
.note-pin:hover { color: var(--ink); background: var(--card); }
.note-pin svg { width: 15px; height: 15px; fill: currentColor; }
.note-pin-on { color: var(--ink); }
.note-menu form { display: flex; }
.note-menu .chat-action { line-height: 1; padding: 0; }
.notes-pinned { background: var(--gold); border: 1px solid var(--muted); box-shadow: 0 1px 3px rgba(0,0,0,0.12); padding: 1.5rem; position: sticky; top: 1.5rem; }
.notes-pinned-head { font-family: "verb-black"; font-size: 1.6rem; }
.notes-pinned .note-card { border-color: var(--muted); }
.notes-pinned .note-body { font-size: 0.85rem; }
.notes-pinned-empty { margin-top: 0.75rem; font-size: 0.8rem; color: var(--ink); }
.notes-archived { margin-top: 1.25rem; }
.notes-archived summary { cursor: pointer; font-family: "jbm-regular"; font-size: 0.75rem; color: var(--muted); }
.notes-archived-list { margin-top: 0.5rem; background: var(--white); border: 1px solid var(--line); border-radius: 0.6rem; }
.notes-archived-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--line-soft); font-size: 0.85rem; }
.notes-archived-row:last-child { border-bottom: 0; }
@media (max-width: 1023px) {
  .notes-cols { grid-template-columns: minmax(0, 1fr); }
  .notes-pinned { grid-row: 1; position: static; }
}

/* Issues: its own look (nab-app's soft orange var(--orange), lightened for the
   background; red accents), laid out like the Bulletin
   Board; the selected issue's chat is in the side bar (.side-bar). */
/* A page heading with an emoji icon (Issues; later To-dos): the icon at
   75% of the heading, centred on the text. */
.page-heading { display: flex; align-items: center; gap: 0.6rem; }
.page-heading-icon { font-size: 0.75em; line-height: 1; }
.issues-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.issues-main { background: var(--peach); border: 1px solid var(--orange); }
.issues-column { display: grid; gap: 0.6rem; margin-top: 0.6rem; min-height: 1rem; }
.issue-frame { display: block; }
.issue-add { border-color: var(--red-300); background: var(--amber-50); color: var(--red-800); }
.issue-add:hover { background: var(--white); color: var(--red-800); }
.issue-card { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0.6rem; background: var(--white); border: 1px solid var(--orange); border-radius: 0.6rem; padding: 0.85rem 1rem 0.6rem 0.6rem; }
.issue-card-editing { border-color: var(--red-700); box-shadow: 0 2px 10px rgba(0,0,0,0.08); margin-top: 0.6rem; }
.issue-card-editing.hidden { display: none; }
.issue-selected { border: 2px solid var(--red-700); padding: calc(0.85rem - 1px) calc(1rem - 1px) calc(0.6rem - 1px) calc(0.6rem - 1px); }
.issue-grip { color: var(--orange); cursor: grab; padding-top: 0.15rem; user-select: none; }
.issue-row { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0.5rem; }
.issue-check { width: 1.25rem; height: 1.25rem; border: 1.5px solid var(--red-700); border-radius: 999px; background: var(--white); margin-top: 0.1rem; }
.issue-check:hover { background: var(--red-100); }
.issue-open { display: block; }
.issue-open:hover .issue-title { text-decoration: underline; text-decoration-color: var(--red-700); }
.issue-title { font-family: "verb-black"; font-size: 1.05rem; overflow-wrap: anywhere; }
.issue-body { font-size: 0.875rem; line-height: 1.5; margin-top: 0.2rem; overflow-wrap: anywhere; }
/* In the list a description shows two lines; the selected card shows it all. */
.issue-card:not(.issue-selected) .issue-body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.issue-body ul { list-style: disc; padding-left: 1.25rem; }
.issue-body ol { list-style: decimal; padding-left: 1.25rem; }
.issue-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }
.issue-meta, .issue-meta-text { font-family: "jbm-regular"; font-size: 0.68rem; color: var(--muted); }
.issue-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.issue-work { font-size: 0.65rem; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--red-100); color: var(--red-800); }
.issue-actions { display: flex; align-items: center; gap: 0.6rem; }
.issue-menu { display: flex; align-items: center; gap: 0.6rem; }
.issue-menu.hidden { display: none; }
.issue-chat-count { font-family: "jbm-regular"; font-size: 0.7rem; }
.issue-work-select { min-width: 16rem; height: 2.25rem; min-height: 2.25rem; line-height: 1.2; font-family: "jbm-regular"; font-size: 0.8rem; }
.issues-completed { margin-top: 1.25rem; }
.issues-completed summary { cursor: pointer; font-family: "jbm-regular"; font-size: 0.75rem; color: var(--red-800); }
.issues-completed-list { margin-top: 0.5rem; background: var(--white); border: 1px solid var(--orange); border-radius: 0.6rem; }
.issues-completed-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--amber-100); font-size: 0.85rem; }
.issues-completed-row:last-child { border-bottom: 0; }
.issue-selected-row { background: var(--red-50); }
.issue-thread-title { font-family: "verb-black"; font-size: 1.4rem; line-height: 1.2; }
.thread-scroll { min-height: 8rem; margin: 0.75rem -0.5rem 0; }
.thread-compose { padding-top: 0.75rem; border-top: 1px solid var(--line-soft); }
.issue-thread-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: 0.75rem; }

/* The chat bar's own heading and foot (any page's side bar). */
.side-bar-title { font-family: "verb-black"; font-size: 1.4rem; line-height: 1.2; }
.side-bar-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: 0.75rem; }
/* A quiet underlined link (Edit, History, Delete in a side bar). */
/* A count beside a menu item (To-dos). */
.menu-count { margin-left: auto; font-family: "jbm-regular"; font-size: 0.7rem; background: var(--orange); color: var(--white); border-radius: 999px; padding: 0.05rem 0.45rem; }

/* To-dos (docs/WORK.md): tan, laid out like Issues; the selected one's
   details and chat in the side bar. */
.todos-main { background: var(--card); border: 1px solid var(--line); }
.todo-add { margin-top: 0.9rem; border-color: var(--line); background: var(--card); color: var(--ink); }
.todo-group { font-family: "jbm-regular"; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 1rem 0 0.4rem; }
.todo-group-late { color: var(--red-800); }
.todo-column { display: grid; gap: 0.6rem; }
.todo-card { background: var(--white); border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.85rem 1rem 0.6rem 0.75rem; }
.todo-selected { border: 2px solid var(--ink); padding: calc(0.85rem - 1px) calc(1rem - 1px) calc(0.6rem - 1px) calc(0.75rem - 1px); }
.todo-row { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0.5rem; }
.todo-check { width: 1.25rem; height: 1.25rem; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--white); margin-top: 0.1rem; display: grid; place-items: center; font-size: 0.7rem; }
button.todo-check:hover { background: var(--green-100); }
.todo-check-done { background: var(--green-300); border-color: var(--green-300); color: var(--white); }
.todo-check-off { border-color: var(--line); }
.todo-open { display: block; }
.todo-open:hover .todo-title { text-decoration: underline; }
.todo-title { font-family: "verb-black"; font-size: 1.05rem; overflow-wrap: anywhere; }
.todo-title-done { color: var(--muted); text-decoration: line-through; }
.todo-body { font-size: 0.875rem; line-height: 1.5; margin-top: 0.2rem; overflow-wrap: anywhere; }
.todo-card:not(.todo-selected) .todo-body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.todo-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: 0.45rem; }
.todo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; font-family: "jbm-regular"; font-size: 0.68rem; color: var(--muted); }
.todo-due-late { color: var(--red-800); font-weight: 700; }
.todo-chat-count { font-family: "jbm-regular"; font-size: 0.7rem; }
.todo-done-list { margin-top: 1.25rem; }
.todo-done-list summary { font-family: "jbm-regular"; font-size: 0.8rem; color: var(--red-800); cursor: pointer; margin-bottom: 0.5rem; }
.todo-form { background: var(--white); border: 1px solid var(--ink); border-radius: 0.6rem; padding: 0.85rem 1rem; margin-top: 0.9rem; }
.todo-form.hidden { display: none; }
.todo-title-input { font-family: "verb-black"; font-size: 1.05rem; }
.todo-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.6rem; margin-top: 0.6rem; }
.todo-form-approval { display: grid; grid-template-columns: auto minmax(10rem, 1fr); align-items: end; gap: 0.75rem; margin-top: 0.6rem; }
.todo-form-check { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; padding-bottom: 0.35rem; }
.todo-facts { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.35rem 0.6rem; font-size: 0.85rem; margin: 0.8rem 0; }
.todo-k { font-family: "jbm-regular"; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-top: 0.15rem; }
.todo-banner { border: 1px solid var(--amber-300); background: var(--amber-50); border-radius: 0.6rem; padding: 0.7rem 0.8rem; font-size: 0.85rem; display: grid; gap: 0.6rem; }
.todo-banner-quiet { border-color: var(--line); background: var(--card); color: var(--muted); }
.todo-banner-actions { display: flex; justify-content: flex-end; align-items: center; gap: 0.9rem; }
.todo-send-back { position: relative; }
.todo-send-back summary { list-style: none; }
.todo-popover { position: absolute; right: 0; top: 2.4rem; z-index: 20; width: 18rem; background: var(--white); border: 1px solid var(--ink); border-radius: 0.5rem; padding: 0.75rem; }
.todo-side-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.9rem; margin-top: 0.6rem; }
.todo-select { height: 2.25rem; min-height: 2.25rem; line-height: 1.2; font-size: 0.85rem; }
.todo-edit { order: 1; }
.todo-side-links > form { order: 2; }
.todo-edit[open], .todo-history[open] { width: 100%; }
.todo-edit[open] summary { margin-bottom: 0.25rem; }
.todo-edit .todo-form { margin-top: 0.3rem; }
.todo-history { order: 3; }
.todo-history ul { margin-top: 0.4rem; display: grid; gap: 0.25rem; font-size: 0.8rem; }
.todo-history li { display: flex; justify-content: space-between; gap: 0.5rem; }
.todo-history time { font-family: "jbm-regular"; font-size: 0.65rem; color: var(--muted); white-space: nowrap; }
.side-bar .todo-form-grid, .side-bar .todo-form-approval { grid-template-columns: minmax(0, 1fr); }

/* Title fields in editors read like the title they edit: each takes the
   display class too (note-title, issue-title, work-task-title, ...), and
   this only sets the box. */
.edit-title { height: auto; min-height: 2.25rem; padding: 0.3rem 0.65rem; line-height: 1.35; }
.template-name-title { font-family: "verb-black"; font-size: 1.5rem; }
.template-section-title { font-weight: 600; }

/* Rich text (Trix): our own toolbar, one font, no attachments. */
.work-trix { display: block; min-height: 4.5rem; background: var(--white); border: 1px solid var(--line); border-radius: 0 0 0.5rem 0.5rem; padding: 0.5rem 0.65rem; font-family: inherit; font-size: 0.9rem; }
.work-trix:focus { outline: none; border-color: var(--ink); }
trix-toolbar { margin: 0; }
trix-toolbar .trix-button-row { display: flex; gap: 0.25rem; background: var(--card); border: 1px solid var(--line); border-bottom: 0; border-radius: 0.5rem 0.5rem 0 0; padding: 0.2rem; }
trix-toolbar .trix-button-group { display: flex; gap: 0.1rem; margin: 0; border: 0; }
trix-toolbar .trix-button-group + .trix-button-group { border-left: 1px solid var(--line); padding-left: 0.25rem; }
trix-toolbar .trix-button { width: 1.9rem; height: 1.7rem; display: grid; place-items: center; border: 0; border-radius: 0.3rem; background: transparent; color: var(--ink); padding: 0; }
trix-toolbar .trix-button:hover { background: var(--line-soft); }
trix-toolbar .trix-button.trix-active { background: var(--ink); color: var(--white); }
trix-toolbar .trix-button svg { width: 16px; height: 16px; fill: currentColor; }
.trix-content, .work-task-desc { line-height: 1.45; }
.trix-content ul, .work-trix ul, .work-task-desc ul { list-style: disc; padding-left: 1.25rem; }
.trix-content ol, .work-trix ol, .work-task-desc ol { list-style: decimal; padding-left: 1.25rem; }
.trix-content h1, .work-task-desc h1 { font-size: inherit; font-weight: 700; }
@media (max-width: 1279px) {
  .client-file-notes { grid-template-columns: 18.75rem minmax(0, 1fr); }
  .client-file-notes .side-bar { grid-column: 2; position: static; height: auto; border-left: 0; }
  .client-file-notes .side-bar .thread-scroll { max-height: 28rem; }
  .client-file-notes .work-notes-list { max-height: 28rem; }
}
@media (max-width: 767px) {
  .client-file-notes { grid-template-columns: minmax(0, 1fr); }
  .client-file-notes .side-bar { grid-column: 1; }
}

/* Collapsed menu (docs/WORK.md, Collapsible menu; MenuHelper): an icon strip
   with the favicon and », names on hover, counts as dots. Wide screens only;
   on a phone the menu sits above the page as before. */
@media (min-width: 768px) {
  .menu-collapsed .client-file { grid-template-columns: 4.25rem minmax(0, 1fr); }
  .menu-collapsed .client-file-notes { grid-template-columns: 4.25rem minmax(0, 1fr) 24rem; }
  .menu-collapsed .client-sidebar { padding-left: 0.55rem; padding-right: 0.55rem; overflow: visible; z-index: 30; }
  .menu-collapsed .menu-top { flex-direction: column; align-items: center; gap: 0.75rem; padding-bottom: 0.9rem; }
  .menu-collapsed .menu-logo-img, .menu-collapsed .menu-toggle-close { display: none; }
  .menu-collapsed .menu-logo-fav { display: block; }
  .menu-collapsed .menu-toggle-open { display: grid; }
  .menu-collapsed .client-nav-link { justify-content: center; padding: 0.6rem 0; position: relative; }
  .menu-collapsed .client-nav-link > span:not(.menu-count) { display: none; color: var(--white); left: calc(100% + 0.6rem); top: 50%; transform: translateY(-50%); }
  .menu-collapsed .client-nav-link:hover > span:not(.menu-count) { display: block; }
  .menu-collapsed .menu-count { position: absolute; top: 0.3rem; right: 0.45rem; width: 0.55rem; height: 0.55rem; padding: 0; margin: 0; font-size: 0; }
  .menu-collapsed .inbox-filters { display: none; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .menu-collapsed .client-file-notes { grid-template-columns: 4.25rem minmax(0, 1fr); }
}
@media (max-width: 767px) { .menu-toggle { display: none; } }

/* "Show changes": months away from the account's typical month, in one soft
   colour (half-strength Tailwind purple 300-400), 2 levels. Direction is in
   the figure and the hover text. */
.review-table td.review-move-1, .review-legend-swatch.review-move-1 { background: var(--violet-200); }
.review-table td.review-move-2, .review-legend-swatch.review-move-2 { background: var(--violet-300); }
.review-legend-swatch { @apply px-1.5 py-0.5 rounded; }
/* Small muted marks (aggressive guess, foreign currency) on Ponder rows and
   the Review drill-down. */
.mark-icons { color: var(--muted); }
.mark-icons svg { width: 14px; height: 14px; display: inline-block; }
.review-tab-on { @apply bg-neutral text-neutral-content; }
.review-memo { max-width: 22rem; overflow: hidden; text-overflow: ellipsis; }
.review-lines .review-num { @apply text-right; }

/* Full-page drill-down modal. */
.review-modal { @apply fixed inset-0 z-50 bg-black/50; }
.review-modal-panel { @apply absolute inset-4 overflow-auto rounded-xl border border-gray-800 p-10; background: var(--card); }
.review-modal-close { @apply absolute top-4 right-4; }

/* The first contact on a company can't be removed, only later ones. */
.contact-row:first-child .contact-remove{
  @apply hidden;
}

.btn-back{
  @apply bg-slate-300;
  @apply hover:bg-slate-300;
}

.btn-sub-current{
  @apply rounded;
  @apply bg-primary;
  @apply border;
  @apply border-gray-800;
  @apply hover:bg-primary;
  @apply hover:border-gray-800;
  @apply hover:-translate-y-1
}

.btn-sub{
  @apply rounded hover:-translate-y-1;
}
/* Ponder tabs keep their label on one line (the page is narrower beside the menu). */
.ponder-tab-buttons .btn { white-space: nowrap; font-size: 0.75rem; padding-left: 0.5rem; padding-right: 0.5rem; }

.flex-fix-50{
  @apply basis-1/2;
}

.input:disabled{
  @apply bg-neutral-content;
  @apply font-['jbm-regular'];
  @apply text-sm;
  cursor: default;
}

.select:disabled{
  @apply bg-neutral-content;
  @apply font-['jbm-regular'];
  @apply text-sm;
  background-image: none;
  cursor: default;
}

.btn:disabled {
  @apply bg-neutral-content;
  @apply border;
  @apply border-gray-800;
  @apply text-primary-content;
}

th>.truncate, td>.truncate{
  width: auto;
  min-width: 65px;
  max-width: 250px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/*--- pagy -----------------------*/
.pagy-nav.pagination {
  @apply isolate inline-flex -space-x-px rounded-md shadow-sm;
  @apply font-['jbm-regular'];
  @apply text-sm;
}

.page.next a {
  @apply relative inline-flex items-center rounded-r-md border border-gray-300 bg-white px-2 py-2 text-gray-500 hover:bg-gray-50 focus:z-20;
}

.page.prev a {
  @apply relative inline-flex items-center rounded-l-md border border-gray-300 bg-white px-2 py-2 text-gray-500 hover:bg-gray-50 focus:z-20;
}

.page.next.disabled {
  @apply relative inline-flex items-center rounded-r-md border border-gray-300 bg-slate-100 px-2 py-2 text-gray-500 hover:bg-gray-50 focus:z-20;
}

.page.prev.disabled {
  @apply relative inline-flex items-center rounded-l-md border border-gray-300 bg-slate-100 px-2 py-2  text-gray-500 hover:bg-gray-50 focus:z-20;
}

.page a, .page.gap {
  @apply bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center border px-4 py-2 focus:z-20;
}

.page.active {
  @apply z-10 border-indigo-500 bg-indigo-50 text-indigo-600 relative inline-flex items-center border px-4 py-2 focus:z-20;
}

/*--- row selection (click / ctrl-click / drag-box) ------------------*/
.selectable-list {
  @apply relative outline-none select-none min-h-[8rem];
  touch-action: none;
}

/* Selected must read as clearly different from hover's var(--cream). */
.selectable-row.is-selected {
  @apply bg-[var(--blue-50)] text-[var(--blue-800)];
}

.selection-box {
  @apply absolute pointer-events-none;
  border: 1px solid var(--blue-400);
  background: rgba(55, 138, 221, 0.15);
}


/* Review checks (docs/REVIEW_CHECKS.md): two columns of cards under the
   statements; each opens its full-page window. */
.check-grid { @apply grid gap-4 mt-4; }
.check-card { @apply block rounded-md border border-gray-800 p-5 transition; background: var(--cream); }
.check-card:hover { @apply -translate-y-0.5 shadow-lg bg-white; }
.check-card-title { font-family: 'verb-black'; font-size: 1.15rem; }
.check-card-text { @apply mt-2 text-sm; color: var(--ink); }
.check-section-title { font-family: 'verb-black'; font-size: 1.5rem; margin-top: 2rem; }
.check-empty, .check-waiting { @apply text-sm mt-3 rounded-md border border-gray-800 bg-white px-5 py-4; font-family: 'jbm-regular'; color: var(--ink); }
.check-vendor td { @apply uppercase text-xs pt-5 tracking-wide; font-family: 'jbm-regular'; background: var(--line-soft); }
/* A black line between sections (vendors, accounts, categories) in check windows. */
.review-table tbody tr.check-vendor:not(:first-child) td { border-top: 2px solid var(--ink); }
.check-blocks tbody tr.check-more:not(:last-child) + tr:not(.check-vendor) td { border-top: 2px solid var(--ink); }
.check-months { display: inline-flex; gap: 3px; vertical-align: middle; }
.check-month { display: inline-block; width: 12px; height: 12px; border: 1px solid var(--ink); }
.check-month-on { background: var(--ink); }
.check-month-off { opacity: 0.35; }
.check-month-label { display: inline-block; width: 12px; text-align: center; }
.check-scroll { max-height: none; }
.check-col-category { width: 40%; }
.check-vendor-note { text-transform: none; margin-left: 0.25rem; }
.check-back { @apply text-xs hover:underline; font-family: 'jbm-regular'; }
/* A check row's lines, in a window over the check. */
.review-modal-over { z-index: 60; background: rgba(0, 0, 0, 0.35); }
.review-modal-panel-over { inset: 5rem 4rem 3rem; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); }
/* The review note's window: narrower, against the right edge so the check stays in view. */
.review-modal-panel-note { left: auto; right: 1.5rem; width: min(36rem, calc(100% - 3rem)); }

/* Review page bottom: checks on the left, the review note on the right
   (stays in view while scrolling the checks); stacked on narrow screens. */
.review-bottom { @apply grid gap-6 mt-12 items-start; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) { .review-bottom { grid-template-columns: minmax(0, 1fr); } }
.review-note-column { position: sticky; top: 1rem; }
.review-note-editable { cursor: text; }
.review-note-text { @apply text-sm; }
.review-note-hint { @apply text-base mt-3 flex items-center gap-1.5; color: var(--muted); }
.review-note-hint-icon { display: inline-flex; }
.review-note-hint-icon svg { width: 18px; height: 18px; }
.review-note-card .review-note-hint:first-child { margin-top: 0; }
.review-note-form trix-editor.review-note-editor { min-height: 18rem; background: white; }
.review-note-form trix-toolbar .trix-button-row { flex-wrap: wrap; row-gap: 0.25rem; }

/* Long lists in checks: the More row, the full list's pages, and
   Problematic accounts' tags and trend line. */
.check-more td { background: var(--cream); padding-top: 0.35rem; padding-bottom: 0.35rem; }
.check-more-inner { @apply flex items-center justify-between text-xs; font-family: 'jbm-regular'; color: var(--muted); }
.check-more-btn { gap: 0.35rem; }
/* A row that opens its list when clicked (Vendor review's No vendor). */
.check-row-link { cursor: pointer; }
.check-row-link:hover td { background: var(--cream); }
.check-row-end { @apply flex items-center justify-between gap-3; }
.check-pages { @apply flex items-center justify-between mt-4 text-sm; font-family: 'jbm-regular'; }
.check-pages-buttons { @apply flex gap-1.5; }
.check-page { min-width: 2.25rem; }
.check-page-off { background: transparent; }
.check-trend td { @apply text-xs whitespace-normal; font-family: 'jbm-regular'; background: var(--cream); padding-top: 0; padding-bottom: 0.6rem; }
.check-problem-quiet td { color: var(--muted); }
/* A check with nothing to count yet (Transaction review while grouping),
   and its window's waiting / Try again message. */
.check-waiting { @apply flex items-center gap-3 mt-8; }
/* A section header with something on the right (New accounts' month strip). */
.check-vendor-split { @apply flex items-center justify-between gap-4; }

/* Diagnostics / Reviews as rows (reviews/_review_row): the Overview box and
   a work item's Reviews section. */
.review-rows { @apply bg-white border rounded-lg; border-color: var(--line); }
/* The Overview's Open work: the work table and its empty box in the
   Overview boxes' tan outline (separate borders so the rounded outline
   actually draws). */
.overview-work .work-table { border-collapse: separate; border-spacing: 0; border-color: var(--line); }
.overview-work .work-empty { border-color: var(--line); }
.review-row { @apply flex items-center justify-between gap-3 px-4 py-3 border-b; border-color: var(--card); }
.review-rows > .review-row:last-child, .review-rows details:last-child > .review-row:last-child { border-bottom: 0; }
.review-row-title { @apply font-medium; }
.review-row-detail { @apply text-xs mt-0.5; font-family: 'jbm-regular'; color: var(--muted); }
.review-row-more { @apply cursor-pointer text-sm; font-family: 'jbm-regular'; color: var(--muted); }
.work-add-review { gap: 0.3rem; }
/* Sortable headings in the Review's transaction windows (like Ponder's). */
.review-sort { @apply cursor-pointer hover:underline; }
.review-sort-arrow { @apply ml-1; }

/* Vendored: the Category column (header and rows), wide enough that
   category names don't wrap; Bank Detail takes what's left. */
.vendored-col-category { width: 16rem; }

/* Files (docs/FILES.md): folders on the left, the open folder's files on
   the right, a file's window over the page. */
.files-layout { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .files-layout { grid-template-columns: minmax(0, 1fr); } }
.files-side { background: var(--white); border: 1px solid var(--line); border-radius: .5rem; padding: .75rem; }
.files-label { font-family: "jbm-regular"; font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: .25rem .25rem .4rem; }
.files-month { width: 100%; font-family: "jbm-regular"; font-size: .85rem; border: 1px solid var(--ink); border-radius: 999px; padding: .3rem .8rem; background: var(--cream); margin-bottom: .9rem; }
.files-folder { display: flex; align-items: center; gap: .5rem; padding: .4rem .5rem; border-radius: .4rem; font-size: .9rem; }
.files-folder:hover { background: var(--card); }
.files-folder svg { width: 18px; height: 18px; flex: none; }
.files-folder-on, .files-folder-on:hover { background: var(--ink); color: var(--white); }
.files-folder-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files-depth-1 { padding-left: 2.1rem; font-size: .85rem; }
.files-depth-2 { padding-left: 3rem; font-size: .85rem; }
.files-depth-3 { padding-left: 3.8rem; font-size: .85rem; }
.files-count { margin-left: auto; font-family: "jbm-regular"; font-size: .75rem; color: var(--muted); }
.files-folder-on .files-count { color: var(--line-soft); }
.files-trash { margin-top: .6rem; border-top: 1px solid var(--card); padding-top: .6rem; border-radius: 0; }
.files-main { min-width: 0; }
.files-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.files-crumb { font-family: "jbm-regular"; font-size: .8rem; color: var(--muted); }
.files-title { font-family: "verb-black"; font-size: 1.6rem; line-height: 1.2; }
.files-actions { display: flex; gap: .75rem; align-items: center; }
.files-actions svg, .files-buttons svg { width: 16px; height: 16px; }
.files-new-folder { position: relative; }
.files-new-folder summary { list-style: none; }
.files-popover { position: absolute; right: 0; top: 2.6rem; z-index: 20; width: 16rem; background: var(--white); border: 1px solid var(--ink); border-radius: .5rem; padding: .75rem; }
.files-folder-tools { display: flex; align-items: center; gap: 1rem; margin: -.4rem 0 .8rem; position: relative; line-height: 1.2; }
.files-folder-tools summary, .files-folder-tools button.files-link { display: block; padding: 0; margin: 0; border: 0; background: none; line-height: 1.2; }
.files-folder-tools details { position: relative; }
.files-folder-tools .files-popover { left: 0; right: auto; top: 1.6rem; }
.files-danger, .files-danger:hover { background: var(--red-300); }
.files-empty { @apply text-sm rounded-lg bg-white px-4 py-3; border: 1px solid var(--ink); color: var(--muted); }
.files-table td { vertical-align: middle; white-space: nowrap; }
.files-num { text-align: right; font-family: "jbm-regular"; font-size: 13px; }
.files-name-cell { max-width: 22rem; }
.files-name { display: flex; align-items: center; font-weight: 500; min-width: 0; }
.files-name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* All icons share a height, so every page is the same size; PDF, XLM and
   DOC are drawn wider (their tab hangs left), so the others are nudged
   right to line the pages up. */
.files-icon { height: 26px; width: auto; flex: none; margin: 0 .6rem 0 2.6px; }
.files-icon-tabbed { margin-left: 0; }
.files-muted { color: var(--muted); }
.files-row-actions { display: flex; gap: .4rem; justify-content: flex-end; }
.files-folder-cell { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; }
.files-by { font-family: "jbm-regular"; font-size: .6rem; border-radius: 4px; padding: 0 .25rem; margin-left: .35rem; vertical-align: middle; }
.files-by-ai { color: var(--violet-600); border: 1px solid var(--violet-600); }
.files-by-you { color: var(--green-800); border: 1px solid var(--green-800); }
.files-dragging { outline: 3px dashed var(--violet-600); outline-offset: -6px; }
.files-upload-row { display: grid; grid-template-columns: minmax(0, 1fr) 10rem 8rem; gap: .75rem; align-items: center; font-size: .85rem; padding: .35rem .5rem; background: var(--white); border: 1px solid var(--line); border-radius: .4rem; margin-bottom: .4rem; }
.files-upload-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files-upload-bar { height: .45rem; background: var(--card); border-radius: 999px; overflow: hidden; }
.files-upload-bar span { display: block; height: 100%; width: 0; background: var(--violet-600); transition: width .2s; }
.files-upload-note { font-family: "jbm-regular"; font-size: .72rem; color: var(--muted); }
.files-upload-failed .files-upload-note { color: var(--red-800); }
/* Dialogs (duplicates) and the file window. */
.files-dialog-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 80; }
.files-dialog { position: absolute; left: 50%; top: 20%; transform: translateX(-50%); width: min(34rem, calc(100% - 2rem)); background: var(--card); border: 1px solid var(--ink); border-radius: .75rem; padding: 1.6rem 1.8rem; }
.files-dialog-title { font-family: "verb-black"; font-size: 1.35rem; }
.files-dup { margin-top: .75rem; background: var(--white); border: 1px solid var(--line); border-radius: .4rem; padding: .6rem .75rem; }
.files-window { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 70; }
.files-window-panel { position: absolute; inset: 2rem 2.5rem; background: var(--card); border: 1px solid var(--ink); border-radius: .75rem; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
@media (max-width: 900px) { .files-window-panel { grid-template-columns: minmax(0, 1fr); overflow: auto; } }
.files-preview { background: var(--muted); display: flex; align-items: center; justify-content: center; min-height: 20rem; }
.files-preview-pdf { width: 100%; height: 100%; border: 0; background: var(--white); }
.files-preview-image { max-width: 100%; max-height: 100%; object-fit: contain; }
.files-preview-card { background: var(--white); border-radius: .5rem; padding: 1.5rem 2rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.files-details { padding: 1.4rem 1.6rem; overflow: auto; }
.files-window-top { display: flex; align-items: center; justify-content: space-between; }
.files-window-top svg { width: 20px; height: 20px; }
.files-nav { display: flex; align-items: center; gap: .5rem; font-family: "jbm-regular"; font-size: .75rem; color: var(--muted); }
.files-nav-btn { font-size: 1rem; padding: 0 .3rem; border-radius: .3rem; }
.files-nav-btn:hover { background: var(--card); }
.files-window-title { font-family: "verb-black"; font-size: 1.35rem; line-height: 1.2; margin-top: .5rem; overflow-wrap: anywhere; }
.files-status-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .6rem; }
.files-error { margin-top: .6rem; font-size: .8rem; color: var(--red-800); background: var(--red-100); border-radius: .4rem; padding: .35rem .6rem; }
.files-grid { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .45rem .75rem; align-items: start; margin-top: .9rem; font-size: .9rem; }
.files-key { font-family: "jbm-regular"; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: .35rem; }
.files-input { border: 1px solid var(--line); background: var(--white); border-radius: .35rem; padding: .2rem .5rem; font-family: "jbm-regular"; font-size: .82rem; width: 10rem; max-width: 100%; }
.files-input-wide { width: 100%; max-width: 18rem; }
.files-input-amount { text-align: right; width: 8rem; }
.files-section { font-family: "jbm-regular"; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 1.2rem; padding-bottom: .3rem; border-bottom: 1px solid var(--line); }
.files-save { margin-top: 1rem; }
.files-buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ---------- Reconcile (docs/RECONCILE.md) ---------- */
.rec-crumb { font-family: "jbm-regular"; font-size: .8rem; color: var(--muted); }
.rec-crumb a:hover { text-decoration: underline; }
.rec-title { font-family: "verb-black"; font-size: 1.6rem; line-height: 1.15; }
.rec-sub { font-family: "jbm-regular"; font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.rec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.rec-buttons { display: flex; gap: .5rem; align-items: center; }
.rec-buttons svg { width: 16px; height: 16px; }
.rec-muted { color: var(--muted); font-size: .82rem; }
.rec-alert { background: var(--red-100); color: var(--red-800); border: 1px solid var(--red-300); border-radius: .5rem; padding: .5rem .8rem; margin: .5rem 0 1rem; font-size: .88rem; }
.rec-empty { background: var(--white); border: 1px solid var(--line); border-radius: .5rem; padding: 1rem; color: var(--muted); font-size: .88rem; }
/* start form */
.rec-start { max-width: 52rem; }
.rec-form { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .8rem 1rem; align-items: center; margin-top: 1.2rem; }
.rec-k { font-family: "jbm-regular"; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rec-input { border: 1px solid var(--ink); border-radius: .45rem; background: var(--white); padding: .35rem .6rem; font-size: .9rem; width: 100%; }
.rec-input-short { max-width: 12rem; }
.rec-num-input { font-family: "jbm-regular"; text-align: right; }
/* working area */
.rec-wrap { display: grid; grid-template-columns: 21rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.rec-chat { background: var(--white); border: 1px solid var(--line); border-radius: .6rem; display: flex; flex-direction: column; height: 42rem; position: sticky; top: 1rem; }
/* column-reverse keeps the chat scrolled to its newest message */
.rec-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column-reverse; padding: 1rem; }
.rec-msgs-inner { display: flex; flex-direction: column; gap: .75rem; }
.rec-msg { font-size: .84rem; line-height: 1.4; padding: .6rem .8rem; border-radius: .6rem; max-width: 94%; }
.rec-msg p + p { margin-top: .4rem; }
.rec-msg-ai { background: var(--card); border: 1px solid var(--line-soft); align-self: flex-start; }
.rec-msg-person { background: var(--ink); color: var(--white); align-self: flex-end; }
.rec-msg-waiting { opacity: .65; }
.rec-who { font-family: "jbm-regular"; font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .15rem; }
.rec-msg-person .rec-who { color: var(--line-soft); }
.rec-msg-app { font-family: "jbm-regular"; font-size: .7rem; color: var(--muted); align-self: stretch; text-align: center; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); padding: .3rem .6rem; }
.rec-input-row { border-top: 1px solid var(--line-soft); padding: .7rem; }
.rec-input-wait { font-size: .82rem; color: var(--muted); font-style: italic; }
.rec-check { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--white); border: 1px solid var(--line); border-radius: .6rem; overflow: hidden; }
.rec-cell { padding: .55rem .8rem; border-right: 1px solid var(--card); }
.rec-cell:last-child { border-right: none; }
.rec-v { font-family: "jbm-regular"; font-size: 1rem; margin-top: .1rem; }
.rec-off { background: var(--red-100); } .rec-off .rec-v { color: var(--red-800); }
.rec-ok { background: var(--green-100); } .rec-ok .rec-v { color: var(--green-800); }
.rec-facts { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-family: "jbm-regular"; font-size: .72rem; color: var(--muted); margin: .5rem 0 .8rem; }
.rec-tabs { display: flex; gap: .4rem; margin-bottom: .6rem; flex-wrap: wrap; }
.rec-tab { font-family: "jbm-regular"; font-size: .72rem; padding: .2rem .7rem; border-radius: 999px; border: 1px solid var(--ink); background: var(--white); }
.rec-tab-on { background: var(--ink); color: var(--white); }
.rec-table { width: 100%; }
.rec-table td { vertical-align: middle; font-size: .82rem; }
.rec-date { white-space: nowrap; }
.rec-desc { white-space: normal; max-width: 22rem; }
.rec-note { display: block; font-size: .74rem; color: var(--amber-800); margin-top: .15rem; }
.rec-num { text-align: right; font-family: "jbm-regular"; white-space: nowrap; }
.rec-flag td { background: var(--amber-50); }
button.rec-chip { cursor: pointer; }
button.rec-chip:disabled { cursor: default; opacity: .7; }
.rec-src-statement_only { background: var(--amber-100); }
.rec-src-quickbooks_only { background: var(--violet-100); }
.rec-you { font-family: "jbm-regular"; font-size: .6rem; color: var(--green-800); border: 1px solid var(--green-800); border-radius: 4px; padding: 0 .25rem; margin-left: .3rem; vertical-align: middle; }
.rec-status { white-space: nowrap; }

/* ---------- Financials on the work item (docs/FINANCIALS.md) ---------- */
.fin-generate { display: inline-flex; align-items: center; gap: .4rem; }
.fin-generate-select { border: 1px solid var(--ink); border-radius: .4rem; background: var(--white); font-family: "jbm-regular"; font-size: .72rem; padding: .1rem .4rem; }
.fin-row { display: flex; align-items: center; gap: .8rem; }
.fin-row-name { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; }
a.fin-row-name:hover, .fin-row-link:hover { text-decoration: underline; }
.fin-row .files-icon { height: 22px; }
.fin-row-link { font-family: "jbm-regular"; font-size: .75rem; text-decoration: underline; margin-left: auto; }
.fin-row-error { color: var(--red-800); font-size: .82rem; }
.fin-row-retry { margin-left: auto; }
.financials-settings { margin-bottom: 1.5rem; }
/* Picked accounts as pills with × (account-picker controller). */
.fin-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.fin-pills:empty { display: none; }
.fin-pill { display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; padding: .2rem .35rem .2rem .7rem; border-radius: 999px; font-size: .8rem;
  background: var(--stone-50); color: var(--stone-600); box-shadow: inset 0 0 0 1px rgb(120 113 108 / .25); } /* the plain pill, with ✕ */
.fin-pill-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* one line; full name on hover */
.fin-pill-x { flex: none;  width: 1.3rem; height: 1.3rem; border-radius: 999px; line-height: 1; font-size: 1rem; color: var(--stone-500); }
.fin-pill-x:hover { background: var(--line-soft); color: var(--ink); }
.fin-hint { font-size: .78rem; color: var(--muted); margin-top: .35rem; }

/* Attachments (docs/FILES.md, Attachments): the picker window, a to-do's or
   issue's Attached section, files inline in chat, and "Attached to" in a
   file's window. */
.attach-clip { display: inline-flex; align-items: center; gap: .35rem; font-family: "jbm-regular"; font-size: .7rem; color: var(--ink);
  border: 1px solid var(--ink); border-radius: 999px; padding: .2rem .65rem; background: var(--white); }
.attach-clip:hover { background: var(--card); }
.chat-attach-row { display: flex; align-items: center; margin-top: .45rem; }
.attach-add { font-family: "jbm-regular"; font-size: .7rem; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-transform: none; letter-spacing: 0; }
.attach-box { margin-top: .75rem; border-top: 1px dashed var(--line); padding-top: .6rem; }
.attach-label { display: flex; justify-content: space-between; align-items: center; font-family: "jbm-regular"; font-size: .65rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.attach-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .45rem; }
.attach-tile { display: inline-flex; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: .4rem; max-width: 100%; }
.attach-tile:hover { background: var(--line-soft); }
.attach-tile-open { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .2rem .3rem .6rem; font-size: .8rem; min-width: 0; }
.attach-tile-open .files-icon { width: 18px; height: 18px; flex: none; }
.attach-tile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-tile-date { font-family: "jbm-regular"; font-size: .62rem; color: var(--muted); white-space: nowrap; }
.attach-tile-x { color: var(--muted); padding: 0 .55rem 0 .35rem; font-size: .9rem; line-height: 1; }
.attach-tile-x:hover { color: var(--red-700); }
.attach-tile-gone .attach-tile-name { text-decoration: line-through; color: var(--muted); }

/* Files inline in chat (and in the chat box while writing). */
action-text-attachment { display: inline; }
trix-editor .attachment--content { display: inline-block; margin: 0; padding: 0; vertical-align: middle; }
trix-editor .attachment--content .attachment__toolbar { display: none; }
.file-chip { display: inline-flex; align-items: center; gap: .3rem; vertical-align: middle; background: var(--white); border: 1px solid var(--line);
  border-radius: .35rem; padding: .05rem .45rem; margin: .1rem 0; font-size: .78rem; text-decoration: none; max-width: 100%; }
.file-chip:hover { background: var(--line-soft); }
.file-chip .files-icon { width: 14px; height: 14px; flex: none; }
.file-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip-gone .file-chip-name { text-decoration: line-through; color: var(--muted); }

/* The picker window. */
.attach-win { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 75; display: flex; align-items: center; justify-content: center; }
.attach-panel { width: min(58rem, calc(100vw - 2rem)); height: min(36rem, calc(100vh - 2rem)); background: var(--card); border: 1px solid var(--ink);
  border-radius: .75rem; display: flex; flex-direction: column; overflow: hidden; }
.attach-top { display: flex; align-items: flex-start; justify-content: space-between; padding: 1.1rem 1.4rem .6rem; }
.attach-top svg { width: 20px; height: 20px; }
.attach-title { font-family: "verb-black"; font-size: 1.35rem; line-height: 1.2; }
.attach-sub { font-family: "jbm-regular"; font-size: .68rem; color: var(--muted); margin-top: .2rem; }
.attach-tabs { display: flex; gap: 1.25rem; padding: 0 1.4rem; border-bottom: 1px solid var(--line); }
.attach-tab { padding: .45rem 0; font-size: .9rem; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.attach-tab-on { color: var(--ink); border-color: var(--ink); font-weight: 600; }
.attach-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1rem; padding: 1rem 1.4rem; }
.attach-body.hidden { display: none; }
.attach-folders { overflow: auto; }
.attach-folders .files-folder { width: 100%; text-align: left; }
.attach-list-pane { background: var(--white); border: 1px solid var(--line); border-radius: .5rem; overflow: auto; }
.attach-search { width: 100%; border: 0; border-bottom: 1px solid var(--line-soft); padding: .55rem .75rem; font-size: .85rem; outline: none; position: sticky; top: 0; background: var(--white); }
.attach-empty { padding: 1rem .75rem; font-size: .85rem; color: var(--muted); }
.attach-row { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr) 7rem 4.5rem; align-items: center; gap: .6rem; padding: .5rem .75rem;
  border-bottom: 1px solid var(--card); font-size: .85rem; cursor: pointer; }
.attach-row.hidden { display: none; }
.attach-row:hover { background: var(--cream); }
.attach-row:has(.attach-check:checked) { background: var(--line-soft); }
.attach-row-done { cursor: default; color: var(--muted); }
.attach-check { width: 1rem; height: 1rem; accent-color: var(--ink); }
.attach-row-name { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.attach-row-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-row-name .files-icon { width: 18px; height: 18px; flex: none; }
.attach-row-muted { font-family: "jbm-regular"; font-size: .68rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-drop { grid-column: 1 / -1; border: 2px dashed var(--line); border-radius: .6rem; background: var(--cream); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .5rem; min-height: 11rem; text-align: center; }
.attach-drop b { font-family: "verb-black"; font-size: 1.1rem; font-weight: normal; }
.attach-body:has(.attach-drop) { grid-template-columns: minmax(0, 1fr); align-content: start; }
.attach-uploads { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .35rem; }
.attach-upload { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .3rem 1rem; background: var(--white);
  border: 1px solid var(--line); border-radius: .4rem; padding: .45rem .75rem; font-size: .85rem; }
.attach-upload-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-upload-note { font-family: "jbm-regular"; font-size: .68rem; color: var(--muted); }
.attach-upload-failed .attach-upload-note { color: var(--red-700); }
.attach-bar { grid-column: 1 / -1; height: .35rem; background: var(--card); border-radius: 999px; overflow: hidden; }
.attach-bar i { display: block; height: 100%; width: 0; background: var(--ink); }
.attach-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.4rem 1.1rem; border-top: 1px solid var(--line); }
.attach-count { font-size: .85rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-go { background: var(--ink); color: var(--white); }
.attach-go:hover { background: var(--ink); color: var(--white); }
.attach-go:disabled { opacity: .45; transform: none; box-shadow: none; }

/* A file's window: Attached to. */
.attach-to { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .75rem; margin-top: .75rem; font-size: .85rem; }
.attach-to-list { display: flex; flex-direction: column; gap: .2rem; }
.attach-to-link { text-decoration: underline; text-underline-offset: 2px; }

/* Email, stage 1 (docs/EMAIL.md): the Inbox, its filters in the menu, a
   conversation, the writing box, the "not linked yet" panel, Settings → Gmail. */
.inbox-filters { display: flex; flex-direction: column; gap: .1rem; margin: .1rem 0 .4rem 2.4rem; }
.inbox-filter { display: flex; align-items: center; justify-content: space-between; padding: .3rem .6rem; border-radius: .4rem; font-size: .88rem; }
.inbox-filter:hover { background: var(--cream); }
.inbox-filter-on, .inbox-filter-on:hover { background: var(--card); font-weight: 600; }
.inbox-filter-n { font-family: "jbm-regular"; font-size: .7rem; color: var(--muted); }
.inbox-main { background: var(--card); }
.inbox-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.inbox-head svg { width: 16px; height: 16px; }
.inbox-connect { margin-top: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: .6rem; padding: 1.25rem; display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.inbox-cols { display: grid; grid-template-columns: minmax(18rem, 26rem) minmax(0, 1fr); margin-top: 1.25rem; background: var(--white); border: 1px solid var(--line);
  border-radius: .6rem; overflow: hidden; min-height: 36rem; }
@media (max-width: 1100px) { .inbox-cols { grid-template-columns: minmax(0, 1fr); } }
.inbox-list { border-right: 1px solid var(--line-soft); overflow-y: auto; max-height: calc(100vh - 12rem); }
.inbox-read { padding: 1.4rem 1.6rem; overflow-y: auto; max-height: calc(100vh - 12rem); min-width: 0; }
.inbox-nothing { padding: 1.5rem; color: var(--muted); font-size: .9rem; }
.inbox-select-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem .9rem;
  background: var(--ink); color: var(--white); font-size: .8rem; }
.inbox-select-bar.hidden { display: none; }
.inbox-row { position: relative; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); align-items: start; border-bottom: 1px solid var(--card); background: var(--cream); }
.inbox-row-unread { background: var(--white); }
.inbox-row-open { background: var(--line-soft); box-shadow: inset 4px 0 0 var(--ink); }
.inbox-row:hover { background: var(--amber-50); }
.inbox-row-check { margin: .95rem 0 0 .6rem; width: .85rem; height: .85rem; accent-color: var(--ink); opacity: .35; }
.inbox-row:hover .inbox-row-check, .inbox-row-check:checked { opacity: 1; }
.inbox-row-link { display: block; padding: .7rem .9rem .7rem .2rem; min-width: 0; }
.inbox-row-top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.inbox-row-who { display: flex; align-items: center; gap: .4rem; font-size: .92rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-row-unread .inbox-row-who, .inbox-row-unread .inbox-row-subject { font-weight: 600; }
.inbox-row-n { font-family: "jbm-regular"; font-size: .65rem; color: var(--muted); font-weight: normal; }
.inbox-row-time { font-family: "jbm-regular"; font-size: .68rem; color: var(--muted); white-space: nowrap; }
.inbox-dot { width: .5rem; height: .5rem; border-radius: 999px; background: var(--green-700); flex: none; }
.inbox-row-subject { font-size: .88rem; margin-top: .1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-row-snippet { font-size: .82rem; color: var(--muted); margin-top: .1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-row-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.inbox-held { padding: .75rem .9rem; border-bottom: 1px solid var(--card); }
.inbox-held-failed { background: var(--red-50); }
.inbox-held-when { font-family: "jbm-regular"; font-size: .68rem; color: var(--muted); white-space: nowrap; }
.inbox-held-failed .inbox-held-when { color: var(--red-700); }
.inbox-held-actions { display: flex; align-items: center; gap: .8rem; margin-top: .5rem; }

.email-thread { min-width: 0; }
.email-subject { font-family: "verb-black"; font-size: 1.5rem; line-height: 1.2; overflow-wrap: anywhere; }
.email-sub { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .35rem; font-size: .88rem; }
.email-who-name { color: var(--ink); }
.email-who-address { color: var(--muted); font-size: .92em; }
.email-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.email-action { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; border: 1px solid var(--ink); border-radius: 999px; padding: .2rem .75rem; background: var(--white); white-space: nowrap; }
.email-action:hover { background: var(--card); }
.email-action-strong { background: var(--ink); color: var(--white); }
.email-action-strong:hover { background: var(--ink); }
.email-sender-clear { margin-top: .4rem; font-size: .75rem; }
.email-todos { display: flex; flex-direction: column; gap: .2rem; margin-top: .75rem; }
.email-todo-link { font-size: .85rem; text-decoration: underline; text-underline-offset: 2px; }
.email-message { border-top: 1px solid var(--card); margin-top: 1rem; padding-top: .9rem; }
.email-message-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; flex-wrap: wrap; font-size: .9rem; }
.email-from .email-who-name { font-weight: 600; }
.email-when { font-family: "jbm-regular"; font-size: .7rem; color: var(--muted); }
.email-to { font-size: .78rem; color: var(--muted); margin-top: .1rem; overflow-wrap: anywhere; }
.email-images { font-size: .75rem; color: var(--muted); background: var(--cream); border: 1px solid var(--line-soft); border-radius: .35rem; padding: .25rem .55rem; margin-top: .5rem;
  display: flex; gap: .5rem; align-items: center; }
.email-frame { width: 100%; border: 0; min-height: 3rem; margin-top: .6rem; display: block; }
.email-files { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }

.email-form { background: var(--white); border: 1px solid var(--ink); border-radius: .6rem; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.email-form-title { font-family: "verb-black"; font-size: 1.15rem; margin-bottom: .5rem; }
.email-field { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); align-items: center; border-bottom: 1px solid var(--card); }
.email-label { font-family: "jbm-regular"; font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.email-input { width: 100%; border: 0; padding: .45rem .2rem; font-size: .88rem; outline: none; background: transparent; }
.email-body { margin-top: .6rem; }
.email-trix { min-height: 9rem; font-size: .9rem; }
.email-signature { border-top: 1px dashed var(--line); margin-top: .6rem; padding-top: .45rem; font-size: .82rem; color: var(--muted); }
.email-forwarded { margin-top: .6rem; display: flex; flex-direction: column; gap: .2rem; font-size: .82rem; }
.email-forwarded-row { display: flex; align-items: center; gap: .4rem; }
.email-file { display: inline-flex; align-items: center; gap: .15rem; }
.email-file-x { color: var(--muted); font-size: .9rem; padding: 0 .25rem; }
.email-file-x:hover { color: var(--red-700); }
.email-foot { display: flex; align-items: center; gap: .9rem; margin-top: .8rem; flex-wrap: wrap; }
.email-hours { font-size: .78rem; color: var(--muted); }
.email-problems { background: var(--amber-50); border: 1px solid var(--amber-200); border-radius: .5rem; padding: .75rem .85rem; margin-bottom: .75rem; }
.email-problems-title { font-weight: 600; font-size: .9rem; }
.email-problem { border-top: 1px solid var(--amber-100); padding: .5rem 0; font-size: .85rem; }
.email-problem:first-of-type { border-top: 0; }
.email-problem-warn { font-size: .78rem; color: var(--amber-800); background: var(--amber-100); border-radius: .3rem; padding: .25rem .5rem; margin-top: .3rem; }
.email-problem-fields { display: grid; grid-template-columns: minmax(0, 1fr) 10rem; gap: .5rem; margin-top: .35rem; }
.email-problem-fields .email-input { border: 1px solid var(--line); border-radius: .35rem; padding: .3rem .5rem; background: var(--white); }
.todo-from-email { font-size: .8rem; color: var(--muted); background: var(--cream); border: 1px solid var(--line-soft); border-radius: .35rem; padding: .3rem .6rem; margin-bottom: .5rem; }

/* The picker from an email: which client, and the note when there's none. */
.attach-choices { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: 0 1.4rem .5rem; }
.attach-choice { font-size: .8rem; border: 1px solid var(--line); border-radius: 999px; padding: .1rem .6rem; background: var(--white); }
.attach-choice-on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.attach-panel-small { height: auto; width: min(32rem, calc(100vw - 2rem)); }
.attach-none-body { padding: .5rem 1.4rem 1.4rem; font-size: .88rem; }

/* Settings → Gmail. */
.gmail-status { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.gmail-dot { width: .55rem; height: .55rem; border-radius: 999px; background: var(--green-700); }
.attach-near { border-top: 1px solid var(--line-soft); padding: .6rem 0; }
.attach-near:first-child { border-top: 0; padding-top: 0; }

/* Half layout (shared/_half_card; docs/WORK.md, Plate: Layout): the card keeps
   its left and top, its white body runs to the right edge and the bottom and
   scrolls on its own. Inbox, To-dos, Contacts. */
.client-main-half { padding: 2rem 0 0 2.25rem; height: 100vh; display: flex; flex-direction: column; }
.half-card { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; background: var(--card); border-radius: 1rem 0 0 0; padding: 2rem 0 0 2rem; }
.half-head { padding-right: 2.25rem; }
.half-body { flex: 1; min-height: 0; min-width: 0; margin-top: 1rem; background: var(--white); border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  border-radius: 0.6rem 0 0 0; overflow: auto; }
.half-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1rem; }
.half-empty { padding: 1.25rem 1.5rem; color: var(--muted); font-size: 0.9rem; }
/* A one-line list in a half body: dark heading that stays put, thin rules. */
.half-table { border-collapse: separate; border-spacing: 0; width: 100%; }
.half-table th { position: sticky; top: 0; z-index: 1; background: var(--ink); color: var(--white); font-family: "jbm-regular"; font-size: 0.7rem; font-weight: normal;
  padding: 0.6rem 0.8rem; text-align: left; white-space: nowrap; }
.half-table td { border-top: 1px solid var(--card); padding: 0.6rem 0.8rem; font-size: 0.88rem; white-space: nowrap; vertical-align: middle; }
.half-table th:first-child, .half-table td:first-child { padding-left: 1.2rem; }
.half-table tbody tr:hover { background: var(--cream); }
.half-table-name { font-weight: 600; }
.half-table-mono { font-family: "jbm-regular"; font-size: 0.78rem; }
/* Inbox and To-dos in a half body. */
.inbox-body { display: flex; flex-direction: column; overflow: hidden; }
.inbox-body .inbox-connect, .inbox-body .chat-error { margin: 1.25rem; }
.inbox-body .inbox-cols { flex: 1; min-height: 0; margin: 0; border: 0; border-radius: 0; grid-template-rows: minmax(0, 1fr); }
.inbox-body .inbox-list, .inbox-body .inbox-read { max-height: none; }
.todos-body { padding: 1.25rem 1.5rem 1.5rem; }
@media (max-width: 767px) {
  .client-main-half { padding: 1rem 0 0 1rem; height: auto; }
  .inbox-body .inbox-list, .inbox-body .inbox-read { max-height: 70vh; }
}

/* Contacts (main menu): the firm's contacts. */
.contacts-search { min-width: min(24rem, 100%); }
.todo-switch { margin: 1rem 0 .25rem; }
.contacts-search-input { width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: .45rem; padding: .45rem .7rem; }
.contacts-clients { display: flex; flex-wrap: wrap; gap: .3rem; }
.contacts-client { font-size: .8rem; border: 1px solid var(--line); border-radius: 999px; padding: .02rem .55rem; background: var(--cream); }
.contacts-client:hover { background: var(--line-soft); }

/* Switches (shared/_seg) and sortable headings (SortHelper): Plate, Grid. */
.sort-heading { color: inherit; }
.sort-heading:hover { text-decoration: underline; }
.menu-count-late { background: var(--red-700); }

/* Plate (docs/WORK.md, Plate). */
.plate-whose { display: flex; align-items: center; gap: 0.35rem; }
.plate-whose-btn { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 999px; color: var(--muted); }
.plate-whose-btn svg { width: 20px; height: 20px; }
.plate-whose-btn:hover { background: var(--cream); color: var(--ink); }
.plate-whose-on, .plate-whose-on:hover { background: var(--ink); color: var(--white); }
.plate-whose-bar { color: var(--line); font-size: 1.1rem; }
.plate-with-me { font-family: "jbm-regular"; font-size: 0.72rem; border: 1px dashed var(--ink); border-radius: 999px; padding: 0.25rem 0.75rem; background: var(--white); white-space: nowrap; }
.plate-with-me-on { border-style: solid; background: var(--orange); border-color: var(--orange); color: var(--white); }
.plate-with { font-size: 0.85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate-todo-title { white-space: normal; max-width: 28rem; }
.plate-kanban-body { background: var(--white); }
.plate-board { display: grid; gap: 0.75rem; padding: 1rem; min-height: 100%; box-sizing: border-box; }
.plate-board-4 { grid-template-columns: repeat(4, minmax(13rem, 1fr)); }
.plate-board-2 { grid-template-columns: repeat(2, minmax(13rem, 22rem)); }
.plate-col { background: var(--cream); border: 1px solid var(--page); border-radius: 0.6rem; padding: 0.6rem; display: flex; flex-direction: column; gap: 0.45rem; }
.plate-col-head { display: flex; justify-content: space-between; font-family: "jbm-regular"; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 0.1rem; }
.plate-card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 0.5rem; padding: 0.55rem 0.65rem; }
.plate-card:hover { border-color: var(--ink); }
.plate-card-mine { border-left: 4px solid var(--orange); }
.plate-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; min-width: 0; }
.plate-card-top .plate-with { font-size: 0.78rem; max-width: 45%; flex: none; }
.plate-card-title { font-weight: 600; font-size: 0.9rem; min-width: 0; overflow-wrap: anywhere; }
.plate-card-client { font-size: 0.84rem; color: var(--muted); margin-top: 0.1rem; overflow-wrap: anywhere; }
.plate-card-period { font-family: "jbm-regular"; font-size: 0.68rem; color: var(--muted); margin-top: 0.35rem; white-space: pre; }
.plate-card-due { font-family: "jbm-regular"; font-size: 0.72rem; margin-top: 0.15rem; }
.plate-card-late { color: var(--red-700); font-weight: 600; }
@media (max-width: 1100px) { .plate-board-4 { grid-template-columns: repeat(2, minmax(12rem, 1fr)); } }

/* The Grid (docs/WORK.md, The Grid): colour only, no borders; this month's
   column tinted; Not started a darker beige so it shows on white. */
.grid-table { table-layout: fixed; min-width: 56rem; }
.grid-table td { padding: 0.35rem 0.8rem; overflow: hidden; text-overflow: ellipsis; }
.grid-table th { white-space: normal; vertical-align: bottom; }
.grid-col-client { width: 14rem; }
.grid-col-hang { width: 9rem; }
.grid-col-num { width: 5.25rem; }
.grid-table .grid-cell { padding: 0.32rem 0.2rem; overflow: visible; }
.grid-table th.grid-head-month { text-align: center; padding: 0.6rem 0.1rem; }
.grid-table th.grid-prior { background: var(--muted); } /* a second shade: Prior stands apart from the months */
.grid-table th.grid-now-head { background: var(--orange); }
.grid-num { text-align: center; font-family: "jbm-regular"; font-size: 0.8rem; }
th.grid-num { text-align: center; }
.grid-hang { color: var(--muted); white-space: nowrap; }
.grid-client:hover { text-decoration: underline; }
.grid-now { background: var(--amber-50); }
.grid-box { display: block; height: 1.55rem; border-radius: 0.3rem; cursor: pointer; list-style: none; }
.grid-box::-webkit-details-marker { display: none; }
.grid-box:hover { filter: brightness(0.92); }
.grid-legend { display: flex; flex-wrap: wrap; gap: 0.8rem; font-family: "jbm-regular"; font-size: 0.66rem; color: var(--muted); align-items: center; }
.grid-dot { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 0.2rem; vertical-align: middle; margin-right: 0.3rem; }
.grid-many { position: relative; }
.grid-pop { position: absolute; z-index: 20; top: calc(100% + 0.3rem); right: 0; min-width: 16rem; background: var(--white); border: 1px solid var(--ink);
  border-radius: 0.5rem; box-shadow: 0 3px 0 var(--ink); padding: 0.3rem; }
.grid-pop-item { display: flex; align-items: center; padding: 0.35rem 0.5rem; border-radius: 0.3rem; font-family: "jbm-regular"; font-size: 0.75rem; white-space: nowrap; }
.grid-pop-item:hover { background: var(--cream); }
.grid-shade { position: fixed; inset: 0; z-index: 60; background: rgba(43, 37, 34, 0.45); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 1.5rem; overflow-y: auto; }
.grid-window { width: min(80rem, 100%); background: var(--card); border: 1px solid var(--ink); border-radius: 0.9rem; box-shadow: 0 4px 0 var(--ink); padding: 1.75rem 2rem; }
.grid-window-x { font-size: 1.4rem; line-height: 1; padding: 0.2rem 0.4rem; }
.grid-window-table { margin-top: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: 0.6rem; }
.grid-window-table .half-table th:first-child { border-top-left-radius: 0.6rem; }
.grid-window-table .half-table th:last-child { border-top-right-radius: 0.6rem; }
.grid-hangup { color: var(--red-700); }
.grid-hangup-tag { font-family: "jbm-regular"; font-size: 0.62rem; font-weight: normal; border: 1px solid var(--red-200); color: var(--red-700); border-radius: 999px; padding: 0 0.45rem; margin-left: 0.4rem; }

/* Clients list: QuickBooks state (companies/_qbo_badge). */

/* A review's note under its row on a work item (reviews/_note_preview):
   three lines, then an inline "… See more" with a little room before it. */
.review-note-preview { margin: 0.1rem 1rem 0.9rem; background: var(--cream); border: 1px solid var(--page); border-radius: 0.5rem; padding: 0.65rem 0.85rem; }
.review-note-preview-open { cursor: pointer; }
.review-note-preview-open:hover { border-color: var(--ink); }
.review-note-preview-label { font-family: "jbm-regular"; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.25rem; }
.review-note-preview-short { font-size: 0.88rem; line-height: 1.45; }
.review-note-preview-more { margin-left: 0.9rem; white-space: nowrap; }
.review-note-preview-full .review-note-text { font-size: 0.88rem; line-height: 1.45; }
.review-note-preview-foot { display: flex; justify-content: flex-end; margin-top: 0.35rem; }


/*=== Shared parts (docs/STYLE.md; the style page: Settings → Style) ===*/

/* One pill: a soft tint with a thin ring, colour the only difference
   (Tailwind's badge). The older names are kept as aliases so views
   don't all change; new screens use .pill and .pill-<colour>. */
.pill, .work-pill, .client-pill, .files-chip, .rec-chip, .check-pill, .check-tag, .inbox-badge, .qbo-badge, .todo-who, .todo-client,
.todo-wait, .todo-approval, .issue-work-client {
  display: inline-flex; align-items: center; gap: .3rem; border-radius: 9999px; padding: .12rem .55rem;
  font-family: "jbm-regular"; font-size: .7rem; font-weight: 500; line-height: 1.3; white-space: nowrap; border: 0;
  background: var(--stone-50); color: var(--stone-600); box-shadow: inset 0 0 0 1px rgb(120 113 108 / .25);
}
.check-tag { margin-left: .5rem; text-transform: none; }
.pill-green, .work-pill-complete, .files-status-checked, .files-fit-standard, .rec-chip-cleared, .check-pill-clear, .qbo-badge-connected {
  background: var(--green-50); color: var(--green-700); box-shadow: inset 0 0 0 1px rgb(22 163 74 / .25);
}
.pill-amber, .work-pill-in_progress, .client-pill-progress, .files-status-reading, .files-fit-non_standard, .check-pill-look, .check-tag-amber,
.inbox-badge-bubble, .plate-todo-pill-waiting_approval, .todo-wait, .todo-approval, .issue-work-client {
  background: var(--amber-50); color: var(--amber-800); box-shadow: inset 0 0 0 1px rgb(217 119 6 / .3);
}
.pill-red, .files-status-needs_look, .files-status-failed, .files-fit-no_match, .check-tag-red, .qbo-badge-reconnect {
  background: var(--red-50); color: var(--red-700); box-shadow: inset 0 0 0 1px rgb(220 38 38 / .22);
}
.pill-blue, .work-pill-waiting_on_client, .client-pill-wait, .inbox-badge-client, .todo-client {
  background: var(--blue-50); color: var(--blue-700); box-shadow: inset 0 0 0 1px rgb(37 99 235 / .2);
}
.pill-violet, .work-pill-under_review, .client-pill-review, .inbox-badge-affiliated {
  background: var(--violet-50); color: var(--violet-700); box-shadow: inset 0 0 0 1px rgb(124 58 237 / .2);
}
.pill-solid, .plate-you, .todo-who-mine { display: inline-flex; border-radius: 9999px; padding: .1rem .55rem; font-family: "jbm-regular"; font-size: .68rem;
  white-space: nowrap; flex: none; background: var(--orange); color: var(--white); box-shadow: none; }

/* One quiet link: small, muted, underlined (older names are aliases). */
.link-quiet, .work-edit-link, .chat-action, .files-link, .rec-link, .review-note-preview-link {
  font-family: "jbm-regular"; font-size: .72rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; background: none; border: 0; padding: 0; list-style: none;
}
.link-quiet:hover, .work-edit-link:hover, .chat-action:hover, .files-link:hover, .rec-link:hover, .review-note-preview-link:hover { color: var(--ink); }
.chat-action-danger:hover { color: var(--red-700); }
.review-note-preview-link { margin-left: .2rem; }

/* One switch for every either/or (shared/_seg; .chat-toggle is an alias). */
.seg, .chat-toggle { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--white); }
.seg-item, .chat-toggle-btn { font-family: "jbm-regular"; font-size: .72rem; padding: .25rem .75rem; white-space: nowrap; }
.seg-item + .seg-item, .chat-toggle-btn + .chat-toggle-btn { border-left: 1px solid var(--line-soft); }
.seg-item:hover, .chat-toggle-btn:hover { background: var(--cream); }
.seg-on, .seg-on:hover, .chat-toggle-on, .chat-toggle-on:hover { background: var(--ink); color: var(--white); }
.seg-late { color: var(--red-700); }
.seg-on.seg-late { color: var(--white); background: var(--red-700); }

/* Main action: a raised button with no colour of its own is orange. */
.btn-retro-reversed:not(.btn-accent):not(.btn-success):not(.btn-error):not(.btn-warning):not(.btn-ghost):not(.btn-primary):not(.btn-secondary) {
  background-color: hsl(var(--a)); color: hsl(var(--ac));
}
.btn-retro-reversed:not(.btn-accent):not(.btn-success):not(.btn-error):not(.btn-warning):not(.btn-ghost):not(.btn-primary):not(.btn-secondary):hover {
  background-color: hsl(var(--af, var(--a)));
}
/* Primary and secondary fold into the normal tan button. */
.btn-primary, .btn-secondary { --p: var(--b2); --pf: var(--b3); --pc: var(--bc); --s: var(--b2); --sf: var(--b3); --sc: var(--bc); }

/* The Grid's boxes keep their own softer colours (Drew, 2026-11-21): the
   Grid is its own bird's-eye view, read by colour alone. */
.grid-complete { background: var(--grid-complete); }
.grid-under_review { background: var(--grid-review); }
.grid-in_progress { background: var(--grid-progress); }
.grid-waiting_on_client { background: var(--grid-waiting); }
.grid-not_started { background: var(--grid-not-started); }
.grid-overdue { background: var(--grid-overdue); }

/* Settings → Style (settings/style/show). */
.style-h { font-family: "verb-black"; font-size: 1.4rem; margin: 2rem 0 .3rem; }
.style-note { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.style-note code, .style-panel code { font-family: "jbm-regular"; font-size: .72rem; }
.style-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: .7rem; }
.style-swatch { background: var(--white); border: 1px solid var(--line-soft); border-radius: .6rem; padding: .55rem; display: grid; gap: .1rem; font-size: .75rem; }
.style-swatch i { display: block; height: 2.4rem; border-radius: .4rem; border: 1px solid rgb(0 0 0 / .08); margin-bottom: .35rem; }
.style-swatch code { font-family: "jbm-regular"; font-size: .66rem; color: var(--muted); }
.style-panel { background: var(--white); border: 1px solid var(--line); border-radius: .7rem; padding: 1rem 1.2rem; }
.style-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }
.style-cell { display: grid; gap: .3rem; justify-items: start; }
.style-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.style-table td { padding: .45rem .5rem; border-top: 1px solid var(--line-soft); }
.style-table tr:first-child td { border-top: 0; }
.style-table .pill, .style-table .pill-solid { margin-right: .3rem; }
.style-k { font-weight: 600; width: 9rem; }
/*
 * 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.
 *


 */
