/* Scoped to profiles with a verified management grant. */
.msg-box { scroll-margin-top:1.4rem; margin:.8rem 0 0; padding:.95rem; background:#f3faf7; border:1px solid #cee5dc; border-radius:14px; color:var(--ink); overflow-wrap:anywhere }
.msg-box:target { border-color:#79b6a6; box-shadow:0 0 0 3px #0873640c }
.msg-box header,.msg-box h3,.msg-state,.msg-actions,.msg-suggestions { display:flex; align-items:center; gap:.5rem }
.msg-box header,.msg-actions { justify-content:space-between; flex-wrap:wrap }
.msg-box h3 { font-size:1.03rem; letter-spacing:-.02em }
.msg-box svg { width:1.12rem; height:1.12rem; flex:none }
.msg-box h3 svg { color:var(--teal); width:1.26rem; height:1.26rem }
.msg-box header span { padding:.18rem .55rem; background:#d7eee5; color:#18554c; border-radius:2rem; font-size:.77rem; font-weight:660 }
.msg-box .msg-to { font-size:.88rem; line-height:1.4; margin-top:.56rem; font-weight:600 }
.msg-help,.msg-state,.msg-confirm p { font-size:.855rem; margin-top:.4rem; line-height:1.46; color:#425d56 }
.msg-login,.msg-box button { gap:.42rem; font-size:.9rem; min-height:44px; padding:.58rem .84rem }
.msg-login { width:100%; margin-top:.8rem; border-color:#8eb4a9 }
.msg-suggestions { flex-wrap:wrap; gap:.42rem; margin:.72rem 0 .6rem }
.msg-suggestions button { background:white; border:1px solid #b8dacf; padding:.42rem .74rem; border-radius:1.4rem; color:var(--teal); font-size:.85rem; font-weight:620 }
.msg-suggestions button:hover { background:#ddefe7 }
.msg-input { position:relative; background:white; border:1px solid #9cbcb2; border-radius:10px; margin-top:.28rem }
.msg-input:focus-within { border-color:var(--teal); box-shadow:0 0 0 2px #19726135 }
.msg-box textarea { display:block; width:100%; font-size:1rem; line-height:1.45; min-height:5.4rem; max-height:38vh; resize:vertical; border:0; border-radius:10px; padding:.62rem .7rem .18rem; outline:none; background:transparent }
#msg-limit { display:block; text-align:right; padding:.15rem .72rem .4rem; color:var(--muted); font-size:.78rem; font-variant-numeric:tabular-nums }
.msg-actions { margin-top:.72rem }
.msg-actions .msg-clear { background:none; color:#4a605c; border:0; padding-inline:.1rem }
.msg-actions button:disabled { color:#566f68; cursor:default }
.msg-actions [data-show]:disabled { color:#416960; background:#d8e9e2; border-color:transparent }
.msg-actions [data-remove] { background:#913429; border-color:#913429 }
.msg-bubble { margin:.95rem 0 0 auto; width:fit-content; max-width:94%; border-radius:16px 16px 3px 16px; background:#146357; padding:.78rem .94rem; line-height:1.48; font-size:1rem; color:white; white-space:pre-wrap; overflow-wrap:anywhere; max-height:36vh; overflow:auto }
.msg-state { justify-content:flex-end; color:var(--teal); font-size:.82rem; font-weight:550 }
.msg-confirm { border-top:1px solid #c3ddd2; margin-top:.9rem; padding-top:.4rem }
.branch-actions .msg-link { background:#def3eb; color:#0d554e; border:1px solid #bfdfd2; border-radius:10px }
.branch-actions .msg-link:hover { color:#063c36; background:#c8eae0 }
@media(max-width:360px) {
  .msg-box { padding:.78rem }
  .msg-box .msg-actions button { font-size:.86rem; padding-inline:.5rem }
  .msg-actions .msg-clear { padding-inline:0 }
}
