.dp-thread-tools { padding:12px 18px; border-bottom:1px solid #dce4ee; background:#f6f8fc; flex-shrink:0; }
.thread-panel:has(.dp-thread-tools:not([hidden])) { width:min(680px,100vw); }
.dp-child-company { margin-top:6px; font-size:12px; color:#65758b; }
.dp-thread-scope { font-size:12px; color:#58687e; margin-bottom:8px; }
.dp-thread-controls { display:flex; align-items:center; flex-wrap:wrap; gap:6px; font-size:12px; }
.dp-thread-controls button,.dp-inline-actions button { font:inherit; padding:6px 10px; border:1px solid #cbd5e1; border-radius:6px; background:white; cursor:pointer; color:#334155; }
.dp-thread-controls button:disabled,.dp-inline-actions button:disabled { cursor:default; opacity:.5; }
.dp-thread-reload { margin-left:auto; }
.dp-thread-notice { margin-top:8px; font-size:12px; line-height:1.6; color:#865519; }
.dp-business-label { display:inline-block; margin-right:6px; font-size:11px; font-weight:600; padding:2px 7px; border:1px solid #cbd5e1; background:#fff; color:#475569; border-radius:4px; }
[data-dp-correct],[data-dp-cancel] { font:inherit; font-size:12px; color:#526174; background:transparent; border:0; padding:5px 8px; cursor:pointer; }
[data-dp-cancel] { color:#b33f3f; }
.dp-inline-editor { margin-top:8px; padding:10px; border:1px solid #8aaccf; border-radius:8px; background:#fff; color:#334155; }
.message:has(.dp-inline-editor) { width:85%; }
.thread-msg:has(.dp-inline-editor) { width:90%; }
.dp-inline-editor textarea { box-sizing:border-box; width:100%; min-height:96px; max-height:300px; resize:vertical; border:1px solid #cbd5e1; border-radius:5px; padding:8px; font:inherit; line-height:1.6; }
.dp-inline-actions { display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.dp-inline-notice,.dp-inline-latest { font-size:12px; margin-top:8px; white-space:pre-wrap; overflow-wrap:anywhere; }
.property-group-header td { background:#f0f5fb; border-top:8px solid #fff; padding:16px !important; }
.dp-property-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.dp-property-toggle { border:0; background:transparent; text-align:left; cursor:pointer; display:flex; align-items:center; gap:10px; font:inherit; font-size:14px; font-weight:700; padding:0; color:#213c60; }
.dp-property-chevron { display:inline-block; transition:transform .15s; }
.dp-property-toggle[aria-expanded="false"] .dp-property-chevron { transform:rotate(-90deg); }
.dp-property-company { font-size:12px; color:#677991; padding:6px 0 0 24px; }
.dp-property-summary { display:flex; flex-wrap:wrap; gap:8px 16px; padding:10px 0 0 24px; font-size:12px; color:#42566e; }
.dp-property-actions { display:flex; gap:10px; align-items:center; flex-shrink:0; font-size:12px; color:#52657e; }
.dp-property-unread { background:#c74338; color:white; border-radius:12px; padding:3px 8px; }
.dp-property-child td { border-bottom:1px solid #edf1f6; }
.dp-property-child td:nth-child(2) { border-left:3px solid #dae5f3; }
.dp-property-child .dp-child-business { font-weight:600; color:#31465f; margin-bottom:5px; }
.dp-property-row-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.dp-property-detail { font-size:12px; border:1px solid #d1dae5; border-radius:6px; background:#fff; color:#42566e; padding:6px 12px; cursor:pointer; }
.dp-property-thread-button { margin:0; }
.dp-property-message-state { display:block; margin-top:6px; }
@media (max-width:640px) { .dp-property-heading { align-items:flex-start; flex-direction:column; } .dp-property-actions { padding-left:24px; } .dp-thread-tools { padding:10px; } }

.dp-reply-disposition {display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:10px;margin-bottom:8px;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:6px;font-size:13px;}
.dp-reply-disposition:empty {display:none;}

.dp-state-unread {color:#b91c1c;background:#fef2f2;border:1px solid #fca5a5;}
.dp-state-read {color:#0369a1;background:#e0f2fe;border:1px solid #7dd3fc;}
