/* Private lines — dark desk chrome */
.lines-body { background: #0a0b0f; }
.lines-page { max-width: 1100px; }
.lines-header { margin: 0.75rem 0 1rem; }
.lines-header h1 { font-size: 1.35rem; margin: 0 0 0.35rem; }
.lines-header .sub { color: var(--text-muted, #9aa0b4); margin: 0; font-size: 0.9rem; }

.lines-app {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 1rem;
  min-height: 520px;
}
@media (max-width: 800px) {
  .lines-app { grid-template-columns: 1fr; min-height: 0; }
}

.lines-sidebar { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.9rem; }
.lines-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.lines-unread-badge {
  background: #ff5c7a; color: #0a0b0f; font-weight: 700; font-size: 0.75rem;
  border-radius: 999px; padding: 0.15rem 0.5rem; min-width: 1.4rem; text-align: center;
}
.lines-start { display: flex; flex-direction: column; gap: 0.45rem; }
.lines-start input {
  width: 100%; min-height: 40px; padding: 0.45rem 0.65rem; border-radius: 8px;
  border: 1px solid var(--border, #2a2d3a); background: var(--bg-elevated, #161822); color: var(--text, #e8eaf0);
}
.lines-conv-list { list-style: none; margin: 0; padding: 0; overflow: auto; max-height: 420px; }
.lines-conv-list li button {
  width: 100%; text-align: left; background: transparent; border: 1px solid transparent;
  border-radius: 8px; padding: 0.65rem 0.7rem; color: inherit; cursor: pointer;
}
.lines-conv-list li button:hover,
.lines-conv-list li button.active {
  background: rgba(124, 108, 255, 0.12); border-color: rgba(124, 108, 255, 0.35);
}
.lines-conv-list .peer { font-weight: 600; display: block; }
.lines-conv-list .preview { font-size: 0.78rem; color: var(--text-muted, #9aa0b4); display: block; margin-top: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lines-conv-list .ub {
  float: right; background: #00d4aa; color: #0a0b0f; font-size: 0.7rem; font-weight: 700;
  border-radius: 999px; padding: 0.1rem 0.4rem;
}

.lines-thread { display: flex; flex-direction: column; min-height: 480px; padding: 0.9rem; }
.lines-thread-head { border-bottom: 1px solid var(--border, #2a2d3a); padding-bottom: 0.65rem; margin-bottom: 0.65rem; }
.lines-messages {
  flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 0.55rem;
  padding: 0.35rem 0.15rem; min-height: 280px; max-height: 420px;
}
.lines-bubble {
  max-width: 85%; padding: 0.55rem 0.75rem; border-radius: 12px; font-size: 0.92rem;
  border: 1px solid var(--border, #2a2d3a); background: #12141c;
}
.lines-bubble.mine {
  align-self: flex-end; background: rgba(124, 108, 255, 0.18); border-color: rgba(124, 108, 255, 0.4);
}
.lines-bubble .meta { font-size: 0.7rem; color: var(--text-muted, #9aa0b4); margin-top: 0.25rem; }
.lines-compose { display: flex; gap: 0.5rem; align-items: flex-end; margin-top: 0.75rem; }
.lines-compose textarea {
  flex: 1; min-height: 52px; resize: vertical; padding: 0.55rem 0.7rem; border-radius: 8px;
  border: 1px solid var(--border, #2a2d3a); background: var(--bg-elevated, #161822); color: var(--text, #e8eaf0);
  font-family: inherit;
}
.lines-nia { margin: 0.65rem 0 0; }
.lines-guest { text-align: center; padding: 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
