/* Workspace messages use the same row dimensions and typography as the navigation above. */
.sidebar { overflow-y: auto; }
.sidebar > :not(.sidebar-footer) { flex-shrink: 0; }
.dm-section { padding: 9px 0; border-top: 1px solid #bbbfc0; border-bottom: 1px solid #bbbfc0; }
.dm-section + .sidebar-section { border-top: 0; padding-top: 15px; }
.dm-shortcuts { margin: 2px 0 4px; }
.dm-shortcut { display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px 17px 4px 44px; text-align: left; font-size: 13px; color: var(--ink); }
.dm-shortcut:hover { background: #efefef; }
.dm-shortcut .avatar { height: 21px; width: 21px; font-size: 8px; }
.dm-shortcut .avatar.agent { border-radius: 6px; }
.dm-shortcut > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-unread { display: inline-block; margin-left: auto; min-width: 16px; padding: 1px 4px; border-radius: 10px; background: #d9efea; color: #256b61; text-align: center; font-size: 10px; font-weight: 650; line-height: 13px; }
.dm-index { width: 100%; }
.dm-index-header .button { white-space: nowrap; }
.dm-index-header [data-action="workspace"] { display: inline-flex; flex-shrink: 0; }
.dm-index-header [data-action="workspace"] .icon { transform: rotate(180deg); }
.dm-index-header .button .icon { height: 14px; width: 14px; }
.dm-index-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 15px; }
.dm-search-field { display: flex; flex: 1 1 160px; align-items: center; gap: 7px; min-width: 0; padding: 6px 9px; border: 1px solid #cbd2cd; border-radius: 5px; background: white; }
.dm-search-field:focus-within { border-color: #408a80; }
.dm-search-field .icon { width: 15px; height: 15px; flex-shrink: 0; color: #74817e; }
.dm-search-field input { width: 100%; min-width: 0; background: transparent; border: 0; outline: 0; font: inherit; font-size: 13px; color: #34434a; }
.dm-filters { display: inline-flex; border: 1px solid #d5dad7; border-radius: 5px; padding: 2px; gap: 2px; }
.dm-filters button { padding: 3px 7px; border-radius: 3px; color: #586761; font-size: 12px; }
.dm-filters [aria-pressed=true] { background: #e3f1ed; color: #226d60; }
.dm-list { display: grid; border-top: 1px solid #d5d9d6; }
.dm-row { display: flex; align-items: flex-start; gap: 11px; width: 100%; min-width: 0; padding: 15px 8px; text-align: left; border-bottom: 1px solid #e1e5e2; background: white; }
.dm-row:hover { background: #f6f8f7; }
.dm-row.selected { background: #eef8f5; box-shadow: inset 2px 0 #4aa999; }
.dm-row .avatar { width: 32px; height: 32px; }
.dm-row-copy { flex: 1; display: grid; min-width: 0; gap: 4px; }
.dm-row-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 7px; }
.dm-row-title strong { font-size: 15px; font-weight: 550; color: var(--ink); }
.dm-row.unread .dm-row-title strong { font-weight: 700; }
.dm-row-title small, .dm-row-end time { font-size: 10.5px; line-height: 1.45; color: #65736c; }
.dm-row-preview { color: #5d6962; font-size: 12px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.dm-row-end { display: flex; align-items: flex-end; flex-direction: column; flex-shrink: 0; gap: 6px; }
.dm-row > .icon { width: 15px; height: 15px; color: #83918b; }
.dm-no-results { margin: 18px 0; color: #68736f; font-size: 13px; }
.dm-thread-header { justify-content: flex-start; gap: 11px; }
.dm-thread-title { min-width: 0; flex: 1; }
.dm-thread-title h2 { margin: 0; font-size: 20px; line-height: 1.24; font-weight: 550; color: var(--ink); overflow-wrap: anywhere; }
.dm-thread-title h2:focus { outline: 0; }
.dm-thread-title p { margin: 2px 0 0; color: #65726d; font-size: 11px; }
.dm-privacy-line { display: flex; align-items: center; gap: 7px; border-bottom: 1px solid #e0e5e1; padding: 11px 24px; color: #556b63; font-size: 12px; }
.dm-privacy-line .icon { width: 14px; height: 14px; }
.dm-feed { width: 100%; min-height: 0; flex: 1; overflow-y: auto; padding: 22px 23px 0; }
.dm-thread-pane > :not(.dm-feed) { flex-shrink: 0; }
.dm-thread-pane .dm-message { margin-bottom: 22px; }
.dm-thread-pane .dm-message > .avatar { width: 30px; height: 30px; }
.dm-thread-pane .dm-message .message-body p { font-size: 14px; }
.dm-thread-pane .dm-compose-wrap { padding: 12px 18px; }
.dm-thread-pane .dm-outcome-form { max-height: 45dvh; overflow-y: auto; }
.dm-message .message-body p { white-space: pre-wrap; overflow-wrap: anywhere; }



.dm-first-message { margin: 0 0 15px; font-size: 13px; line-height: 1.55; color: #707a76; }
.dm-compose-label { display: block; color: #65726c; font-size: 11px; font-weight: 550; padding: 2px 3px 5px; }
.dm-composer textarea { min-height: 53px; }
.dm-compose-footer { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 3px 1px 0; }



.dm-send { display: grid; width: 29px; height: 27px; margin-left: auto; place-items: center; border-radius: 5px; color: #fff; background: #317d70; }
.dm-send:disabled { color: #9faeaa; background: #edf2ef; cursor: default; }
.dm-send .icon { width: 15px; height: 15px; }



.dm-actions { position: relative; }
.dm-actions summary { display: grid; list-style: none; place-items: center; width: 28px; height: 28px; color: #66736d; border-radius: 4px; cursor: pointer; }
.dm-actions summary::-webkit-details-marker { display: none; }
.dm-actions summary:hover, .dm-actions[open] summary { background: #f0f3f1; }
.dm-actions-list { position: absolute; top: 100%; right: 0; z-index: 4; padding: 4px; min-width: max-content; border: 1px solid #d5dad7; background: white; border-radius: 5px; box-shadow: 0 3px 12px #24332a18; }
.dm-actions-list button { display: flex; align-items: center; gap: 7px; width: 100%; padding: 7px; color: var(--ink); text-align: left; font: inherit; font-size: 12px; }
.dm-actions-list button:hover, .dm-actions-list button:focus-visible { background: #eef8f5; }
.dm-actions-list .icon { height: 14px; width: 14px; }
.dm-outcome-form { margin: 11px 20px; padding: 13px; border: 1px solid #c5d6ce; border-radius: 6px; background: #f7fbf8; display: grid; gap: 8px; }
.dm-outcome-heading, .dm-outcome-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dm-outcome-heading h2 { font-size: 15px; font-weight: 600; }
.dm-outcome-form label { display: grid; gap: 4px; font-size: 11px; color: #52665b; }
.dm-outcome-form textarea, .dm-outcome-form select { background: white; color: #334039; border: 1px solid #c9d6cf; border-radius: 4px; font: inherit; font-size: 13px; padding: 6px 8px; width: 100%; }
.dm-outcome-form textarea { resize: vertical; }
.dm-outcome-footer span { font-size: 11px; line-height: 1.3; color: #657669; }
.dm-outcome-footer .button { flex-shrink: 0; }
@media (max-width: 600px) { .dm-privacy-line { flex-wrap: wrap; } .dm-outcome-form { margin: 8px 12px; } }

@media (max-width: 1100px) { .dm-shortcut { padding-right: 13px; padding-left: 39px; } }
@media (max-width: 900px) { .dm-thread-pane { max-width: 100%; } }
@media (max-width: 600px) {
  .dm-index-header .button { padding: 5px 8px; font-size: 11px; }
  .dm-index-tools { align-items: flex-start; }
  .dm-search-field { flex-basis: 100%; }
  .dm-row { padding: 12px 4px; gap: 7px; }
  .dm-row .avatar { width: 27px; height: 27px; }
  .dm-row-title strong { font-size: 14px; }
  .dm-row-title small, .dm-row-end time { font-size: 10px; }
  .dm-thread-pane { width: calc(100vw - 52px); min-width: 0; }
  .dm-thread-header { gap: 7px; }
  .dm-thread-title h2 { font-size: 18px; }
  .dm-thread-title p { font-size: 10px; }
  .dm-thread-header .avatar { width: 26px; height: 26px; }
  .dm-privacy-line { padding: 9px 14px; font-size: 11px; }
  .dm-feed { padding: 18px 14px 0; }
  .dm-thread-pane .dm-compose-wrap { padding: 9px 12px 13px; }

}
