/* ── MY FEEDBACKS & EXPLICIT CLAIM ── */
.my-feedbacks-modal {
  width: min(100%, 780px);
  max-height: min(88vh, 760px);
}

.my-feedbacks-head {
  margin-bottom: 8px;
}

.my-feedbacks-modal .my-feedbacks-kicker {
  color: var(--stamp-approved-text);
}

.my-feedbacks-status {
  min-height: 20px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.my-feedbacks-list {
  min-height: 120px;
  display: grid;
  gap: 13px;
  padding: 2px 4px 4px;
  overflow-y: auto;
}

.my-feedback-card {
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 20px;
  background: rgba(248, 248, 246, .88);
  padding: 19px;
  box-shadow: var(--shadow-xs);
}

.my-feedback-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.my-feedback-card-title {
  min-width: 0;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.45;
}

.my-feedback-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.my-feedback-status {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--pastel-sky);
  padding: 5px 10px;
  color: var(--text);
  font-size: 11px;
  font-weight: 750;
}

.my-feedback-status[data-status="reviewing"] { background: var(--pastel-butter); }
.my-feedback-status[data-status="resolved"] { background: var(--pastel-mint); }
.my-feedback-status[data-status="needs_more_info"] { background: var(--pastel-blush); }

.my-feedback-content {
  margin-top: 11px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.my-feedback-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 10px;
}

.my-feedback-replies {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.my-feedback-replies-title {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.my-feedback-reply {
  border-left: 3px solid var(--pastel-mint);
  border-radius: 0 12px 12px 0;
  background: var(--bg);
  padding: 11px 13px;
}

.my-feedback-reply p {
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.my-feedback-reply.is-visitor {
  border-left-color: var(--pastel-sky);
  background: rgba(168, 200, 224, .16);
}

.my-feedback-reply-author {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.my-feedback-reply time {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.my-feedback-empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(58, 58, 61, .2);
  border-radius: 19px;
  color: var(--muted);
  padding: 28px;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.my-feedbacks-modal .focus-dialog-actions {
  margin-top: 18px;
}

.feedback-claim-prompt {
  width: min(100%, 480px);
  text-align: center;
}

.feedback-claim-icon {
  margin-bottom: 8px;
  font-size: 40px;
}

.feedback-claim-preview {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  padding: 15px;
  text-align: left;
}

.feedback-claim-preview strong {
  display: block;
  font-size: 13px;
}

.feedback-claim-preview p {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.feedback-claim-status {
  min-height: 19px;
  margin-top: 10px;
  color: var(--stamp-rejected-text);
  font-size: 12px;
}

.feedback-claim-actions {
  justify-content: center;
  margin-top: 13px;
}

.user-menu-feedback .user-menu-item-icon {
  background: var(--pastel-butter);
  color: var(--stamp-reviewing-text);
}

/* 頭像與「我的意見」新公開回覆提示 */
.user-avatar-feedback-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  z-index: 2;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--pastel-blush);
  color: var(--text);
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--surface), var(--shadow-xs);
  pointer-events: none;
}
.user-avatar-feedback-badge[hidden] { display: none; }

.user-menu-item-dot {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background: #D98A96;
  box-shadow: 0 0 0 2px rgba(255, 252, 246, .9);
  flex-shrink: 0;
}
.user-menu-item-dot[hidden] { display: none; }

.my-feedback-card.is-unread {
  border-color: rgba(232, 160, 168, .55);
  box-shadow: 0 0 0 2px rgba(232, 192, 200, .55), var(--shadow-xs);
}

.my-feedback-new-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--pastel-blush);
  padding: 5px 10px;
  color: var(--text);
  font-size: 11px;
  font-weight: 750;
}

@media (max-width: 560px) {
  .my-feedbacks-modal {
    max-height: none;
  }

  .my-feedback-card-head {
    flex-direction: column;
    gap: 8px;
  }

  .feedback-claim-actions {
    flex-direction: column-reverse;
  }

  .feedback-claim-actions button {
    width: 100%;
  }
}
