/* r18: выше поле ввода, действия с сообщениями, удаление чатов, повтор при ошибке */
#composer .prompt,#composer.composer.chat .prompt{min-height:88px}
#composer .prompt textarea,#composer.composer.chat .prompt textarea{min-height:78px;max-height:260px;line-height:1.55;padding-bottom:6px}
@media (max-width:760px){
  #composer .prompt textarea,#composer.composer.chat .prompt textarea{min-height:64px}
  #composer.r10-composer .prompt textarea{min-height:64px !important}
}
.modes .mode[data-mode="act"]{display:none !important}

.msg.user{flex-wrap:wrap}
.msg.user .msg-acts{flex-basis:100%;display:flex;justify-content:flex-end;gap:2px;margin-top:3px;opacity:0;transition:opacity .15s}
.msg.user:hover .msg-acts,.msg.user:focus-within .msg-acts,.msg.user.editing .msg-acts{opacity:1}
@media (hover:none){.msg.user .msg-acts{opacity:.8}}
.msg-acts .ma{width:28px;height:26px;display:grid;place-items:center;padding:0;border:0;border-radius:6px;background:transparent;color:#8fa3c2;cursor:pointer}
.msg-acts .ma:hover,.msg-acts .ma:focus-visible{background:rgba(143,163,194,.15);color:#e6edf7;outline:0}
.msg-acts .ma.del:hover{color:#ff8f9b}
.msg-acts svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.msg.user.editing .bubble{outline:1px dashed var(--cyan,#6de5f5);outline-offset:3px}
.edit-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 6px;padding:6px 10px;border:1px dashed rgba(109,229,245,.45);border-radius:8px;color:#bfe9f2;font:12px/1.35 var(--mono,monospace)}
.edit-bar .btn{padding:3px 10px;font-size:12px}

.err .retry-btn{margin-left:6px;padding:3px 12px;font-size:12px;border:1px solid rgba(255,122,137,.55);border-radius:6px;background:rgba(255,122,137,.12);color:#ffd9de;cursor:pointer}
.err .retry-btn:hover{background:rgba(255,122,137,.22)}
.retry-note{border-color:rgba(255,196,92,.45) !important;color:#ffe2a8 !important}
.auto-ok{opacity:.8}

.r4-item{position:relative}
.r4-del{flex:none;width:22px;height:22px;display:grid;place-items:center;padding:0;border:0;border-radius:5px;background:transparent;color:#8fa3c2;font-size:16px;line-height:1;cursor:pointer;opacity:0;transition:opacity .15s}
.r4-item:hover .r4-del,.r4-item.on .r4-del,.r4-del:focus-visible{opacity:1}
@media (hover:none){.r4-del{opacity:.75}}
.r4-del:hover{background:rgba(255,122,137,.16);color:#ff8f9b}
#hist li{position:relative;padding-right:24px}
#hist .hist-del{position:absolute;right:2px;top:50%;transform:translateY(-50%);width:20px;height:20px;padding:0;border:0;border-radius:4px;background:transparent;color:#8fa3c2;cursor:pointer;opacity:0}
#hist li:hover .hist-del{opacity:1}
#hist .hist-del:hover{color:#ff8f9b;background:rgba(255,122,137,.14)}
