.staff-direct-launch,.staff-direct-note button,.staff-direct-dialog button{
  box-sizing:border-box;font:inherit;padding:.6rem .9rem;border:1px solid #a9c4ba;border-radius:10px;
  background:#fff;color:#123f33;font-weight:650;cursor:pointer
}
.staff-direct-launch:hover,.staff-direct-note button:hover,.staff-direct-dialog button:hover{background:#edf6f0}
.staff-direct-launch:focus-visible,.staff-direct-note :focus-visible,.staff-direct-dialog :focus-visible{
  outline:3px solid #318771;outline-offset:2px
}
.staff-direct-floating{position:fixed;right:1rem;top:5rem;z-index:82;box-shadow:0 4px 20px #0a2e2426}
.staff-direct-dialog,.staff-direct-note{box-sizing:border-box;color:#18392e;background:#f7fbf8;border:1px solid #b9d0c4}
.staff-direct-dialog{
  width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border-radius:18px;
  font:15px/1.5 system-ui;box-shadow:0 18px 64px #102f3752;overflow:auto
}
.staff-direct-dialog::backdrop{background:#142d26a8}
.staff-direct-dialog header{
  display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.9rem 1rem;background:#153f33;color:white
}
.staff-direct-dialog h2,.staff-direct-note h3,.staff-direct-note h4{margin:0}
.staff-direct-dialog h2{font-size:1.25rem;overflow-wrap:anywhere}
.staff-direct-content,.staff-direct-note{padding:1rem}
.staff-direct-note{margin-block:1rem;border-radius:12px}
.staff-direct-note p,.staff-direct-order-context{margin:.35rem 0 .65rem}
.staff-direct-note h4{margin-top:.9rem}
.staff-direct-note form,.staff-direct-dialog form{display:flex;align-items:flex-start;gap:.6rem}
.staff-direct-note button:disabled,.staff-direct-dialog button:disabled{opacity:.65;cursor:wait}
.staff-direct-note textarea,.staff-direct-dialog textarea,.staff-direct-dialog select{
  box-sizing:border-box;width:100%;min-width:0;padding:.6rem .7rem;border-radius:8px;border:1px solid #a9c4ba;
  background:#fff;color:#18392e;font:inherit
}
.staff-direct-note textarea,.staff-direct-dialog textarea{resize:vertical}
.staff-direct-order-compose{margin-top:.65rem}
.staff-direct-threads{display:flex;flex-wrap:wrap;gap:.45rem;margin:.65rem 0}
.staff-direct-threads button[aria-pressed=true]{background:#d8ebdf}
.staff-direct-history{max-height:34dvh;overflow:auto;margin-bottom:.65rem;overscroll-behavior:contain}
.staff-direct-message{margin:.35rem 0;padding:.5rem .7rem;border-radius:8px;background:#e7f0eb;overflow-wrap:anywhere}
.staff-direct-message.staff-direct-mine{background:#f0f6df;margin-left:1.15rem}
.staff-direct-message time{margin-inline-start:.55rem;color:#465850;font-size:.85em}
.staff-direct-message p{margin:.2rem 0;white-space:pre-wrap}
.staff-direct-status:empty,.staff-direct-dialog [hidden],.staff-direct-note [hidden]{display:none}
@media(max-width:520px){
  .staff-direct-note form,.staff-direct-dialog form{flex-direction:column}
  .staff-direct-launch,.staff-direct-dialog button{min-height:40px}
}
