.inbox-panel {
  position: fixed;
  left: 14px;
  bottom: 64px;
  width: min(300px, calc(100vw - 28px));
  height: min(46vh, 360px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 70;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.inbox-panel.open {
  display: flex;
}

.inbox-head {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.inbox-list {
  padding: 10px;
  display: grid;
  gap: 8px;
  overflow: auto;
}

.inbox-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: #f8fbf6;
}

.inbox-item.feedback {
  background: rgba(241, 248, 243, 0.96);
  position: relative;
}

body.dark-mode .inbox-item {
  background: #1f3229;
}

body.dark-mode .inbox-item.feedback {
  background: #22372d;
}

.inbox-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.inbox-user img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.inbox-actions {
  display: flex;
  gap: 6px;
}

.accept-btn,
.decline-btn {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.accept-btn {
  background: #2b8f65;
  border-color: #2b8f65;
  color: #fff;
}

.decline-btn {
  background: transparent;
  color: var(--ink);
}

.inbox-empty {
  color: var(--muted);
  text-align: center;
  padding: 12px 6px;
}

.inbox-feedback-text {
  color: var(--muted);
  line-height: 1.4;
  white-space: pre-wrap;
}

.feedback-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: transparent;
  color: #d33a32;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  padding: 4px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.inbox-item.feedback:hover .feedback-delete,
.inbox-item.feedback:focus-within .feedback-delete {
  opacity: 1;
}

.feedback-delete:hover,
.feedback-delete:focus-visible {
  transform: scale(1.08);
}
