/* Composer: the toolbar occupies its own row, outside the editable text. */
html body.veyra-shell.action-compose {
  height: var(--veyra-compose-height, 100dvh);
}
html body.veyra-shell.action-compose #layout {
  height: auto;
}
html body.veyra-shell.action-compose #layout-content {
  min-width: 0;
}
html body.veyra-shell.action-compose #compose-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 22px 26px 0;
}
html body.veyra-shell.action-compose #compose-content > .formcontent {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 2px 18px;
  scroll-padding-block: 16px;
  scrollbar-width: thin;
}
html body.veyra-shell.action-compose #compose-headers {
  flex: 0 0 auto;
  padding-bottom: 10px;
}
html body.veyra-shell.action-compose #compose-headers .form-group.row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin: 0 0 12px;
}
html body.veyra-shell.action-compose #compose-headers .col-2,
html body.veyra-shell.action-compose #compose-headers .col-10 {
  width: auto;
  max-width: none;
  padding: 0;
}
html body.veyra-shell.action-compose #compose-headers .col-form-label {
  padding-top: 11px;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  color: var(--veyra-muted);
}
html body.veyra-shell.action-compose .form-control,
html body.veyra-shell.action-compose .recipient-input {
  min-height: 42px;
  border-color: var(--veyra-line);
  border-radius: 8px;
  background: var(--veyra-raised);
}
html body.veyra-shell.action-compose #compose-subject {
  font-weight: 500;
}
html body.veyra-shell.action-compose #composebodycontainer {
  display: flex;
  flex-direction: column;
  flex: 1 0 min(280px, calc(100dvh - 190px));
  min-height: min(280px, calc(100dvh - 190px));
  height: auto;
  margin-bottom: 0;
  border: 1px solid var(--veyra-line);
  border-radius: 12px;
  background: var(--veyra-surface);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
html body.veyra-shell.action-compose #composebodycontainer:focus-within {
  border-color: #bd4148;
  box-shadow: 0 0 0 3px rgb(190 37 45 / 9%);
}
html body.veyra-shell.action-compose #composebody {
  flex: 1 1 0;
  min-height: 0;
  height: auto;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 20px 22px;
  background: var(--veyra-surface);
  color: var(--veyra-text);
  caret-color: var(--veyra-text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.75;
  box-shadow: none;
  resize: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 18px;
}
html body.veyra-shell.action-compose #composebody::placeholder {
  color: var(--veyra-muted);
  opacity: .8;
}
html body.veyra-shell.action-compose #composebodycontainer > .editor-toolbar {
  position: relative;
  order: -1;
  flex: 0 0 auto;
  top: auto;
  right: auto;
  left: auto;
  min-height: 43px;
  padding: 5px 12px;
  border: 0;
  border-bottom: 1px solid var(--veyra-line);
  border-radius: 0;
  background: var(--veyra-raised);
}
html body.veyra-shell.action-compose .editor-toolbar .mce-i-html {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: auto;
  min-height: 32px;
  height: auto;
  margin: 0;
  padding: 0 8px 0 0;
  color: var(--veyra-text);
  vertical-align: middle;
}
html body.veyra-shell.action-compose .editor-toolbar .mce-i-html:before {
  content: "\f031";
  font-size: 15px;
  width: 28px;
  line-height: 30px;
}
.veyra-editor-mode-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 500;
}
.veyra-editor-kind {
  float: right;
  padding: 7px 2px;
  color: var(--veyra-muted);
  font-size: 11px;
  line-height: 18px;
}
html body.veyra-shell.action-compose #composebodycontainer > .tox-tinymce {
  flex: 1 1 0;
  min-height: 0;
  height: auto;
  border: 0;
  border-radius: 0;
}
html body.veyra-shell.action-compose #composebodycontainer .tox-edit-area,
html body.veyra-shell.action-compose #composebodycontainer .tox-sidebar-wrap {
  min-height: 0;
}
html body.veyra-shell.action-compose #composebodycontainer .tox-toolbar-overlord > div {
  background-color: var(--veyra-raised);
}
html body.veyra-shell.action-compose #compose-content > .formbuttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 2px 18px;
  border-top: 1px solid var(--veyra-line);
  background: var(--veyra-surface);
}
html body.veyra-shell.action-compose button.send {
  min-width: 112px;
  min-height: 42px;
  padding: 10px 23px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
}
html body.veyra-shell.action-compose #compose-content .extwin {
  font-size: 12px;
  color: var(--veyra-muted);
}
html body.veyra-shell.action-compose #compose-attachments {
  min-height: 175px;
  margin: 20px 16px 18px;
  border-color: var(--veyra-line);
  border-radius: 12px;
  background: var(--veyra-raised);
}
html body.veyra-shell.action-compose #compose-attachments:after {
  font-size: 42px;
  color: var(--veyra-muted);
  opacity: .25;
}
html body.veyra-shell.action-compose #compose-attachments .hint {
  font-size: 11px;
  line-height: 1.6;
  color: var(--veyra-muted);
}
html body.veyra-shell.action-compose #compose-attachments .btn {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
}
html body.veyra-shell.action-compose #compose-options {
  padding: 0 18px;
  font-size: 12px;
}
html body.veyra-shell.action-compose #compose-options .custom-select {
  min-height: 34px;
  font-size: 11px;
}
@media (min-width: 769px) {
  html body.veyra-shell.action-compose #layout-content > .header {
    justify-content: flex-end;
    padding: 0 24px;
  }
  html body.veyra-shell.action-compose #layout-content > .header > .header-title {
    display: block;
    position: static;
    width: auto;
    margin: 0 auto 0 0;
    /* Native title centering adds an inline sidebar-width left margin. */
    margin-left: 0 !important;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.4px;
    text-align: left;
  }
  html body.veyra-shell.action-compose #layout-content > .header > .toolbar {
    margin: 0;
  }

}
@media (max-width: 768px) {
  html body.veyra-shell.action-compose #layout {
    height: auto;
  }
  html body.veyra-shell.action-compose #compose-content {
    display: flex;
    min-height: 0;
    padding: 12px 14px 0;
    overflow-y: hidden !important;
  }
  html body.veyra-shell.action-compose #compose-content > .formcontent {
    padding: 6px 1px 14px;
    overflow-y: auto !important;
  }
  html body.veyra-shell.action-compose #compose-headers .form-group.row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 10px;
  }
  html body.veyra-shell.action-compose #compose-headers .col-form-label {
    font-size: 11px;
  }
  html body.veyra-shell.action-compose #composebody {
    padding: 16px;
    font-size: 16px;
    line-height: 1.65;
  }
  html body.veyra-shell.action-compose #compose-content > .formbuttons {
    min-height: 62px;
    padding: 10px 1px 12px;
  }
  html body.veyra-shell.action-compose #compose-content > .formbuttons .extwin {
    display: none;
  }
  html body.veyra-shell.action-compose #layout-content > .footer.content-frame-navigation {
    box-sizing: border-box;
    flex: 0 0 64px;
    height: 64px;
    min-height: 64px;
    padding: 6px 12px;
    gap: 10px;
    background: var(--veyra-surface);
  }
  html body.veyra-shell.action-compose #layout-content > .footer a.save,
  html body.veyra-shell.action-compose #layout-content > .footer a.send {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    height: 44px;
    max-height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--veyra-line);
    border-radius: 9px;
    background: var(--veyra-raised);
    color: var(--veyra-text);
  }
  html body.veyra-shell.action-compose #layout-content > .footer a.send {
    border-color: var(--veyra-red);
    background: var(--veyra-red);
    color: #fff;
  }
  html body.veyra-shell.action-compose #layout-content > .footer a.save:before,
  html body.veyra-shell.action-compose #layout-content > .footer a.send:before {
    display: inline;
    width: auto;
    margin: 0;
    font-size: 16px;
    line-height: 1;
  }
}
@media (max-height: 520px) {
  html body.veyra-shell.action-compose #composebodycontainer {
    flex-basis: 150px;
    min-height: 150px;
  }
  html body.veyra-shell.action-compose #compose-content > .formbuttons {
    min-height: 50px;
    padding-block: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body.veyra-shell.action-compose #composebodycontainer {
    transition: none;
  }
}
/* Elastic supplies its own fixed Save/Send bar on smaller layouts. */
html.layout-phone body.veyra-shell.action-compose #compose-content > .formbuttons,
html.layout-small body.veyra-shell.action-compose #compose-content > .formbuttons {
  display: none;
}

/* The recipient widget draws its own focus ring, separate from its input. */
html:root body.veyra-shell.action-compose .recipient-input.focus{border-color:var(--veyra-red);background:var(--veyra-raised);box-shadow:0 0 0 3px color-mix(in srgb,var(--veyra-red) 14%,transparent)}
html:root body.veyra-shell.action-compose .recipient-input input{outline:0;box-shadow:none;background:transparent;color:var(--veyra-text)}
html:root body.veyra-shell.action-compose #compose-attachments{height:190px;min-height:190px}

/* Tablet options open over the workspace, leaving the message room to breathe. */
.veyra-options-backdrop{display:none}
@media(min-width:769px) and (max-width:1200px){
 html:root body.veyra-shell.action-compose #layout-sidebar.sidebar-right{display:none}
 html:root body.veyra-shell.action-compose.veyra-options-open #layout-sidebar.sidebar-right{display:flex!important;position:absolute;top:0;right:0;bottom:0;height:100%;width:288px!important;min-width:288px;max-width:calc(100% - 68px);z-index:8;box-shadow:-14px 0 40px #0003}
 html:root body.veyra-shell.action-compose #toolbar-menu>.veyra-options-trigger{display:inline-block!important}
 html:root body.veyra-shell.action-compose #layout-sidebar>.header>.back-content-button{display:block!important}
 html:root body.veyra-shell.action-compose .veyra-options-backdrop:not([hidden]){display:block;position:absolute;inset:0 0 0 68px;width:auto;height:auto;padding:0;border:0;background:#0006;z-index:7;cursor:pointer}
}

html:root body.veyra-shell.action-compose #compose-options label{hyphens:none;word-break:normal;overflow-wrap:normal}
