/* v16.4: закреплённое сообщение, окно жалобы, очередь жалоб в админ-панели */
#pinbar{display:flex;align-items:center;gap:10px;padding:8px 12px;background:var(--c0a0a0a);border-bottom:1px solid var(--c222);cursor:pointer;min-height:44px;flex:none}
#pinbar[hidden]{display:none}
#pinbar>.ico{color:var(--acc);flex:none}
#pinbar .pin-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px;border-left:2px solid var(--acc);padding-left:8px}
#pinbar .pin-t b{font-size:12.5px;color:var(--acc);font-weight:600}
#pinbar .pin-t span{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#pinbar .pin-x{flex:none;width:32px;height:32px;border-radius:50%;border:0;background:transparent;color:inherit;display:flex;align-items:center;justify-content:center;opacity:.7;cursor:pointer}
#pinbar .pin-x:hover{opacity:1;background:var(--c222)}
#pinbar .pin-x svg{width:18px;height:18px}
#rep-card .rep-body{display:flex;flex-direction:column;gap:10px;padding-top:6px}
#rep-card .rep-body .sub{margin:0}
#rep-card .rep-list{display:flex;flex-direction:column;gap:2px}
#rep-card .rep-opt{display:flex;align-items:center;gap:10px;padding:9px 8px;border-radius:8px;cursor:pointer;font-size:14.5px}
#rep-card .rep-opt:hover{background:var(--c1c1c1c)}
#rep-card .rep-opt input{accent-color:var(--acc);width:18px;height:18px;flex:none}
#rep-card textarea{width:100%;resize:vertical;min-height:70px;max-height:200px;border-radius:10px;border:1px solid var(--c2a2a2a);background:var(--c0a0a0a);color:inherit;padding:10px;font-size:14px;font-family:inherit}
#rep-card .err{margin-top:0}
.rep-card{flex-direction:column;align-items:stretch}
.rep-snap{margin:6px 4px 0;padding:8px 10px;border-radius:8px;background:var(--c1c1c1c);border-left:3px solid var(--acc);font-size:13.5px;white-space:pre-wrap;word-break:break-word;max-height:160px;overflow:auto}
.rep-det{margin:6px 4px 0;font-size:13px;opacity:.85}
.rep-card .actr{margin-top:8px}

/* v16.5: папки чатов, черновики */
.cfolders{display:flex;gap:6px;overflow-x:auto;padding:6px 10px;scrollbar-width:none;flex:none;-webkit-overflow-scrolling:touch}
.cfolders::-webkit-scrollbar{display:none}
.cfolders[hidden]{display:none}
.cfolders .cf{flex:none;border:0;border-radius:999px;padding:6px 12px;font-size:13px;font-family:inherit;background:var(--c1c1c1c);color:inherit;opacity:.8;cursor:pointer;white-space:nowrap;display:flex;align-items:center;gap:6px;min-height:32px}
.cfolders .cf:hover{opacity:1}
.cfolders .cf.on{background:var(--acc);color:#fff;opacity:1}
.cfolders .cfn{background:var(--acc);color:#fff;border-radius:999px;font-size:11px;min-width:18px;height:18px;padding:0 5px;display:inline-flex;align-items:center;justify-content:center}
.cfolders .cf.on .cfn{background:#fff;color:var(--acc)}
.crow2 .draft-t{color:#e5484d;font-weight:500}

/* v16.5: поиск по истории, панель форматирования */
#msearch-card{display:flex;flex-direction:column;gap:10px;max-height:min(86vh,760px);overflow:hidden}
#msearch-card .ms-q{width:100%;box-sizing:border-box;border-radius:10px;border:1px solid var(--c2a2a2a);background:var(--c0a0a0a);color:inherit;padding:11px 12px;font-size:15px;font-family:inherit}
#msearch-card .ms-chips{display:flex;gap:6px;flex-wrap:wrap}
#msearch-card .ms-chips .cf{border:0;border-radius:999px;padding:6px 12px;font-size:13px;font-family:inherit;background:var(--c1c1c1c);color:inherit;cursor:pointer;min-height:32px}
#msearch-card .ms-chips .cf.on{background:var(--acc);color:#fff}
#msearch-card .ms-row{display:flex;gap:6px;flex-wrap:wrap}
#msearch-card .ms-row select,#msearch-card .ms-row input{flex:1 1 120px;min-width:0;border-radius:8px;border:1px solid var(--c2a2a2a);background:var(--c0a0a0a);color:inherit;padding:7px 8px;font-size:13px;font-family:inherit}
#msearch-card .ms-res{overflow-y:auto;flex:1;min-height:80px;display:flex;flex-direction:column;gap:4px}
.ms-item{padding:9px 10px;border-radius:10px;background:var(--c1c1c1c);cursor:pointer}
.ms-item:hover{background:var(--c222)}
.ms-h{display:flex;justify-content:space-between;gap:8px;font-size:13px}
.ms-h .ms-t{opacity:.6}
.ms-b{font-size:14px;margin-top:3px;word-break:break-word}
.ms-b mark,.ms-line mark{background:rgba(255,196,0,.35);color:inherit;border-radius:3px;padding:0 1px}
.ms-ctx{margin-top:8px;padding-top:8px;border-top:1px solid var(--c2a2a2a);display:flex;flex-direction:column;gap:3px;cursor:default}
.ms-line{font-size:13px;opacity:.8;word-break:break-word}
.ms-line.hit{opacity:1;border-left:3px solid var(--acc);padding-left:7px}
.fmtbar.fmt-pop{margin:0;padding:4px 8px}
.fmtbar.fmt-pop[hidden]{display:none}
