/* phase 9 interactions + role styling */
.interaction-form{
  display:grid;
  gap:12px;
  margin-bottom:16px;
}

.interaction-form label{
  display:grid;
  gap:8px;
}

.interaction-form label span{
  color:var(--muted);
  font-size:14px;
}

.interaction-form textarea,
.interaction-form select{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:#1a2438;
  color:#fff;
  padding:14px 16px;
  outline:none;
}

.interaction-form textarea{
  resize:vertical;
  min-height:120px;
}

.interaction-form select{
  min-height:52px;
}

.muted-box,
.login-box,
.rating-note{
  margin-bottom:16px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  color:var(--muted);
}

.muted-box{
  background:rgba(255,95,169,.10);
  color:#ffc0dc;
}

.comment-form button[disabled],
.interaction-form textarea[disabled]{
  opacity:.6;
  cursor:not-allowed;
}

.comment-list{
  display:grid;
  gap:12px;
}

.comment-item{
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.07);
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.025));
}

.comment-item-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

.comment-item-head small{
  color:#9fb0cf;
  white-space:nowrap;
}

.comment-user-line{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.comment-item p{
  margin:0;
  color:#eef2ff;
  line-height:1.7;
  word-break:break-word;
}

@media (max-width: 640px){
  .comment-item-head{
    flex-direction:column;
  }

  .comment-item-head small{
    white-space:normal;
  }
}

.comment-avatar{
  width:42px;
  height:42px;
  flex:0 0 42px;
  border-radius:50%;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
}

.comment-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.comment-avatar-fallback{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  font-weight:900;
  color:#fff;
  background:linear-gradient(135deg, #7d5cff, #ff69b4);
}

.comment-user-meta{
  min-width:0;
  display:grid;
  gap:4px;
}

.comment-user-top{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

@media (max-width: 640px){
  .comment-avatar{
    width:38px;
    height:38px;
    flex-basis:38px;
  }
}