/* plAI ROOM engage — share + comments under each prediction */
.plai-engage {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e8dfd0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #2a2420;
  font-size: 13px;
  line-height: 1.45;
}

.plai-engage-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.plai-engage-share-label {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c88020;
  margin-right: 2px;
}

.plai-engage-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 4px;
  border: 1px solid #c88020;
  background: #fdf6e8;
  color: #b4000c;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease;
}

.plai-engage-btn:hover,
.plai-engage-btn:focus {
  background: #c88020;
  color: #fff;
  text-decoration: none;
}

.plai-engage-btn--x {
  border-color: #b4000c;
  color: #b4000c;
}

.plai-engage-btn--x:hover,
.plai-engage-btn--x:focus {
  background: #b4000c;
  color: #fff;
}

.plai-engage-comments {
  background: #fdf6e8;
  border: 1px solid #e8dfd0;
  border-radius: 5px;
  padding: 10px 12px 12px;
}

.plai-engage-comments-title {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b4000c;
  margin: 0 0 8px;
}

.plai-engage-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
}

.plai-engage-list li {
  padding: 7px 0;
  border-bottom: 1px solid #efe6d6;
}

.plai-engage-list li:last-child {
  border-bottom: none;
}

.plai-engage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  margin-bottom: 2px;
}

.plai-engage-name {
  font-weight: 700;
  color: #2a2420;
  font-size: 13px;
}

.plai-engage-time {
  font-size: 11px;
  color: #8a7a68;
}

.plai-engage-text {
  margin: 0;
  color: #3a322c;
  white-space: pre-wrap;
  word-break: break-word;
}

.plai-engage-empty {
  margin: 0 0 10px;
  color: #8a7a68;
  font-style: italic;
  font-size: 12px;
}

.plai-engage-form {
  display: grid;
  gap: 6px;
}

.plai-engage-form label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #6a5a4a;
  margin-bottom: 2px;
}

.plai-engage-form input[type="text"],
.plai-engage-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8cfc0;
  border-radius: 4px;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 13px;
  background: #fff;
  color: #2a2420;
}

.plai-engage-form textarea {
  min-height: 56px;
  resize: vertical;
}

.plai-engage-form input:focus,
.plai-engage-form textarea:focus {
  outline: none;
  border-color: #c88020;
  box-shadow: 0 0 0 2px rgba(200, 128, 32, 0.2);
}

.plai-engage-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.plai-engage-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.plai-engage-submit {
  display: inline-block;
  padding: 6px 14px;
  border: none;
  border-radius: 4px;
  background: #b4000c;
  color: #fff;
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.plai-engage-submit:hover,
.plai-engage-submit:focus {
  background: #c41e3a;
}

.plai-engage-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.plai-engage-status {
  font-size: 12px;
  color: #6a5a4a;
  min-height: 1em;
}

.plai-engage-status.is-error {
  color: #b4000c;
}

.plai-engage-status.is-ok {
  color: #2d6a3e;
}
