.lk-chat-shell {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 20px;
  max-width: 980px;
}

.lk-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.lk-chat-title {
  font-size: 22px;
  color: var(--blue);
  font-weight: 700;
  font-family: "Unbounded", "Golos Text", sans-serif;
}

.lk-chat-sub {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 4px;
  max-width: 620px;
}

.lk-chat-status {
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eef2ff;
  color: #1a3ea8;
  white-space: nowrap;
}

.lk-chat-list {
  height: min(56vh, 520px);
  overflow: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lk-chat-row {
  display: flex;
}

.lk-chat-row.client {
  justify-content: flex-end;
}

.lk-chat-bubble {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.lk-chat-row.client .lk-chat-bubble {
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.lk-chat-row.operator .lk-chat-bubble {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}

.lk-chat-meta {
  font-size: 11px;
  opacity: 0.78;
  margin-top: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.lk-chat-tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 164, 18, 0.18);
  color: #9a5a00;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lk-chat-files {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.lk-chat-file {
  font-size: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.lk-chat-row.operator .lk-chat-file {
  border-color: var(--border);
  background: var(--bg);
}

.lk-chat-empty {
  padding: 32px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.lk-chat-compose {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--card);
}

.lk-chat-text {
  width: 100%;
  min-height: 92px;
  max-height: 220px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  background: var(--bg);
  color: var(--text);
}

.lk-chat-actions {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.lk-chat-attach {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.lk-chat-attach input {
  font-size: 12px;
  max-width: 280px;
}

.lk-chat-send {
  border: none;
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  min-width: 150px;
}

.lk-chat-send[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.lk-chat-note {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.lk-chat-error {
  margin-top: 8px;
  font-size: 12px;
  color: #b72020;
}

@media (max-width: 768px) {
  .lk-chat-shell {
    padding: 14px;
  }

  .lk-chat-title {
    font-size: 18px;
  }

  .lk-chat-list {
    height: 48vh;
  }

  .lk-chat-bubble {
    max-width: 92%;
  }

  .lk-chat-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .lk-chat-send {
    width: 100%;
  }
}
