/* VELU_GAME_FACTORY_USER_REVIEW_REVISION_V0_4B */

.velu-engine-user-review {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(105, 232, 255, .18);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(2, 19, 22, .82), rgba(5, 35, 35, .62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.velu-review-head,
.velu-review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.velu-review-head > div { display: grid; gap: 4px; }
.velu-review-kicker {
  color: #69e8ff;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.velu-review-head small,
.velu-review-message small,
.velu-review-empty { color: var(--muted, #a8bbb7); }

.velu-review-job {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(105, 232, 255, .08);
  color: #bceff7;
  font-size: .9rem;
}
.velu-review-job[data-status="running"] {
  background: rgba(88, 216, 163, .11);
  color: #8becc4;
}
.velu-review-job[data-status="failed"] {
  background: rgba(255, 122, 106, .1);
  color: #ffb1a8;
}

.velu-review-feedback { display: grid; gap: 8px; }
.velu-review-feedback > span { font-weight: 700; }
.velu-review-feedback textarea {
  width: 100%;
  min-height: 118px;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid rgba(135, 180, 174, .24);
  border-radius: 14px;
  background: rgba(3, 17, 20, .76);
  color: inherit;
  padding: 13px 14px;
  font: inherit;
  line-height: 1.45;
}
.velu-review-feedback textarea:focus-visible {
  outline: 2px solid rgba(105, 232, 255, .45);
  outline-offset: 2px;
}

.velu-review-feedback-status {
  min-height: 1.3em;
  margin: 0;
  color: #8becc4;
  font-size: .88rem;
}
.velu-review-feedback-status.is-error { color: #ffb1a8; }

.velu-review-history {
  border-top: 1px solid rgba(135, 180, 174, .14);
  padding-top: 12px;
}
.velu-review-history summary { cursor: pointer; font-weight: 700; }
.velu-review-history-list { display: grid; gap: 9px; margin-top: 10px; }
.velu-review-message {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(2, 19, 22, .5);
}
.velu-review-message[data-role="user"] { border-left: 2px solid rgba(105, 232, 255, .45); }
.velu-review-message[data-role="assistant"] { border-left: 2px solid rgba(88, 216, 163, .45); }
.velu-review-message p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  .velu-engine-user-review { padding: 13px; }
  .velu-review-head,
  .velu-review-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .velu-review-head .button,
  .velu-review-actions .button {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .velu-engine-user-review *,
  .velu-engine-user-review *::before,
  .velu-engine-user-review *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
