/* 6.162 — Chat interno */
#k30Btn { position: relative; }
.k30-p { position: fixed; z-index: 160; top: 12px; right: 12px; bottom: 12px; width: min(760px, calc(100vw - 24px)); display: grid; grid-template-columns: 260px minmax(0, 1fr);
  background: var(--surface); border: 1px solid var(--border); border-radius: 26px; box-shadow: 0 24px 60px rgba(0,0,0,.18); overflow: hidden; }
.k30-p[hidden] { display: none; }
.k30-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); background: var(--surface-subtle); }
.k30-main { display: flex; flex-direction: column; min-height: 0; }
.k30-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); min-height: 56px; }
.k30-h > b, #k30T { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; min-width: 0; }
.k30-back, .k30-x2 { display: none; }
.k30-new { padding: 10px 12px 4px; } .k30-new select { width: 100%; height: 38px; }
.k30-list { flex: 1; overflow: auto; padding: 6px; }
.k30-c { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 14px; background: transparent; text-align: left; cursor: pointer; color: var(--text); }
.k30-c:hover { background: var(--surface-muted); } .k30-c.on { background: var(--surface); box-shadow: 0 1px 0 var(--border); }
.k30-ct { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.k30-ct b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k30-ct small { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k30-u { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.k30-av, .k30-p .clogo.k30-av { flex: none; width: 34px !important; height: 34px !important; border-radius: 50% !important; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--surface-muted); color: var(--text-2); overflow: hidden; }
.k30-av.g { background: var(--accent); color: var(--accent-ink); } .k30-av.p { background: color-mix(in srgb, var(--accent) 20%, var(--surface)); color: var(--text); }
.k30-p .clogo.k30-av img { width: 100%; height: 100%; object-fit: cover; }
.k30-msgs { flex: 1; overflow: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.k30-day { align-self: center; margin: 10px 0 6px; padding: 3px 10px; border-radius: 99px; background: var(--surface-muted); font-size: 11.5px; color: var(--text-muted); }
.k30-m { display: flex; flex-direction: column; align-items: flex-start; max-width: 78%; margin-top: 6px; }
.k30-m.cont { margin-top: 0; } .k30-m.me { align-self: flex-end; align-items: flex-end; }
.k30-m small { font-size: 11.5px; color: var(--text-muted); margin: 0 0 2px 10px; }
.k30-b { padding: 8px 12px; border-radius: 18px; background: var(--surface-muted); font-size: 14px; line-height: 1.4; word-break: break-word; }
.k30-m.me .k30-b { background: var(--accent); color: var(--accent-ink); } .k30-m.me .k30-b a { color: inherit; text-decoration: underline; }
.k30-b time { font-size: 10.5px; opacity: .6; margin-left: 8px; }
.k30-empty { margin: auto; color: var(--text-muted); font-size: 13px; }
.k30-f { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.k30-f textarea { flex: 1; resize: none; min-height: 42px; max-height: 140px; border-radius: 21px; padding: 10px 14px; }
.k30-f .btn { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 50%; }
@media (max-width: 767px) {
  .k30-p { inset: 0; width: auto; border-radius: 0; grid-template-columns: 1fr; }
  .k30-p .k30-main { display: none; } .k30-p.in-conv .k30-side { display: none; } .k30-p.in-conv .k30-main { display: flex; }
  .k30-back, .k30-x2 { display: inline-grid; }
  .k30-m { max-width: 86%; }
}
