/* =========================
   Description (no fade, 5 lines, inside More button)
   ========================= */

.desc.is-empty{
  opacity: 0.75;
  font-style: italic;
}

.desc-section{ margin-top:10px; }

.desc-heading{
  font-size:18px;
  font-weight:800;
  margin:0 0 8px;
  color:var(--ink);
}

.desc{
  background:var(--card);
  border:1px solid var(--input-line);
  border-radius:14px;

  padding:12px;
  padding-bottom:44px; /* ✅ space for the inside button */

  white-space:pre-line;
  line-height:1.45;
  position:relative;
}

/* ✅ Collapsed: first 5 lines, no max-height, no fade */
.desc.collapsed{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:5;
  overflow:hidden;
}

/* ✅ Inside bottom-right More/Less button */
.desc-more{
  position:absolute;
  right:10px;
  bottom:10px;
  z-index:2;

  display:inline-flex;
  align-items:center;
  gap:6px;

  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--input-line);
  background:var(--chip);
  color:inherit;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
}

.desc-more:hover{ background:var(--hover); }

/* No button for placeholder */
.desc.is-empty .desc-more{ display:none; }

/* Old external button no longer used */
.desc-toggle{ display:none; }

/* Comments */
.comments{
  position: relative;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
}

.comments-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}

.comment-form textarea{
  width: 100%;
  resize: vertical;
  min-height: 70px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: inherit;
}

.comment-form.disabled{
  opacity: .6;
  filter: grayscale(1);
}

.comment-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top: 10px;
}

.comment-list{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.comment{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.16);
}

.comment-author{ font-weight: 700; }

.comment-status[data-kind="error"] { color: #ff6b6b; }
.comment-status[data-kind="warn"]  { color: #ffd166; }
.comment-status[data-kind="ok"]    { color: #7bd88f; }

.comments-overlay{
  position:absolute;
  inset: 0;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding: 16px;
  border-radius: 14px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
}

.overlay-card{
  width: min(520px, 100%);
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,10,10,.65);
  text-align: center;
}

.overlay-title{ font-weight: 800; font-size: 18px; }
.overlay-sub{ opacity: .85; margin: 6px 0 12px; }
