/* R14.1.C — Left rail (sessions + files) */

/* Rail fills the 260px grid column in free-build mode (see styles.css). */
.panel-leftrail {
  background: #fafafa;
  border-right: 1px solid var(--border);
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  max-height: 100%;
}
.panel-leftrail .lr-section { display: flex; flex-direction: column; gap: 6px; }
.lr-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 2px 2px;
}
.lr-all-link {
  font-size: 0.72rem;
  color: #7c3aed;
  text-decoration: none;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.lr-all-link:hover { text-decoration: underline; }

.lr-sessions-list { display: flex; flex-direction: column; gap: 3px; }
.lr-empty { font-size: 0.8rem; color: #9ca3af; padding: 6px 4px; }

.lr-session-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: background 100ms ease;
  min-width: 0;
}
.lr-session-row:hover { background: rgba(192, 132, 252, 0.12); }
.lr-session-row.lr-session-active {
  background: var(--purple-dim, #ede9fe);
  box-shadow: inset 3px 0 0 #7c3aed;
}
.lr-session-icon { font-size: 1.05rem; line-height: 1; text-align: center; }
.lr-session-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lr-session-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.lr-session-when {
  font-size: 0.68rem;
  color: #9ca3af;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.lr-session-more {
  display: block;
  padding: 6px 8px;
  margin-top: 4px;
  font-size: 0.74rem;
  color: #6b7280;
  text-decoration: none;
  border-radius: 6px;
  text-align: center;
}
.lr-session-more:hover { background: rgba(0, 0, 0, 0.04); color: #111827; }

.lr-new-chat-btn,
.lr-open-files {
  background: linear-gradient(180deg, #c084fc, #a855f7);
  color: #fff;
  border: 0;
  padding: 8px 12px;
  border-radius: 9999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 4px;
  transition: transform 100ms ease, box-shadow 100ms ease;
  text-align: center;
  text-decoration: none;
  display: block;
}
.lr-new-chat-btn:hover,
.lr-open-files:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(168, 85, 247, 0.3); }
.lr-open-files {
  background: transparent;
  color: var(--purple);
  border: 1px solid #c4b5fd;
}
.lr-open-files:hover { background: var(--purple-dim, #f3f0ff); box-shadow: none; }

@media (max-width: 820px) {
  .panel-leftrail { display: none; } /* mobile uses bottom tab bar */
}
