/* qol.css — Big Cheese QoL update: right "Your stuff" panel + list polish.
   Additive only: every rule below targets NEW ids/classes introduced by the
   QoL layer. No existing rule is modified. Reuses existing CSS variables
   (--panel, --amber, --muted, --text, etc.) defined in index.html. */

/* Right panel: 240px column, mirrors .sidebar layout, border-left */
.artpanel {
  width: 240px;
  flex: 0 0 240px;
  background: var(--panel);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

/* Chats list scroll area inside the left sidebar */
#chatlist {
  flex: 1;
  overflow-y: auto;
  max-height: 240px;
}

/* Active chat row: amber left border */
#chatlist li.qol-active {
  border-left: 3px solid var(--amber);
  padding-left: 9px;
}

/* Every list row (chats + stuff) is a big touch target */
#artlist li,
#chatlist li {
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
}

#artlist li:hover,
#chatlist li:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Muted secondary line (date + preview) */
.qol-sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

/* Title line in rows */
#artlist li .t,
#chatlist li .t {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

#artlist li .t b,
#chatlist li .t b {
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

/* Small rounded thumbnail for image artifacts */
.qol-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 56px;
  background: rgba(255, 255, 255, 0.06);
}

/* "Picked up where you left off" divider at the top of a restored chat */
.qol-resume {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 6px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Right-panel toggle button: hidden on desktop, visible on narrow screens */
#arttoggle {
  display: none;
}

/* Responsive: below 1100px the right panel becomes a slide-in drawer */
@media (max-width: 1100px) {
  .artpanel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 240px;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    z-index: 60;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
  }
  .artpanel.open {
    transform: translateX(0);
  }
  #arttoggle {
    display: inline-block;
  }
}
