/* ============================================
   FEEDBACK OVERLAY
   Stakeholder per-screen comment system
   ============================================ */

/* Feedback toggle button */
.feedback-toggle {
  position: absolute;
  bottom: 96px;
  right: 12px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 950;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s var(--ease);
}

.feedback-toggle:hover { transform: scale(1.08); }
.feedback-toggle.active { background: var(--error); }

/* Feedback panel */
.feedback-panel {
  position: absolute;
  bottom: 150px;
  right: 12px;
  left: 12px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 960;
  display: none;
  flex-direction: column;
  max-height: 360px;
  overflow: hidden;
  border: 1.5px solid var(--border);
}

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

.feedback-panel-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feedback-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.feedback-panel-body::-webkit-scrollbar { display: none; }

.feedback-comment {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.feedback-comment:last-child { border-bottom: none; }

.feedback-comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.feedback-comment-author {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.feedback-comment-time {
  font-size: 11px;
  color: var(--text-tertiary);
}

.feedback-comment-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
}

.feedback-empty {
  text-align: center;
  padding: 24px 0;
  color: var(--text-tertiary);
  font-size: 13px;
}

.feedback-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  background: var(--surface-muted);
}

.feedback-input {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  background: var(--surface);
  color: var(--text-primary);
}

.feedback-input:focus { border-color: var(--primary); }

.feedback-send {
  padding: 0 16px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* Emoji reactions row */
.feedback-reactions {
  display: flex;
  gap: 6px;
  padding: 8px 16px;
  border-top: 1px solid var(--border-light);
}

.feedback-reaction {
  padding: 6px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  font-size: 14px;
  cursor: pointer;
  transition: all .15s var(--ease);
  display: flex;
  align-items: center;
  gap: 4px;
}

.feedback-reaction span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.feedback-reaction.selected {
  border-color: var(--primary);
  background: var(--info-bg);
}

/* Tour mode */
.tour-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.6);
  z-index: 970;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.tour-overlay.active { display: flex; }

.tour-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.tour-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.tour-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.tour-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tour-dots {
  display: flex;
  gap: 6px;
}

.tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.tour-dot.active {
  width: 20px;
  border-radius: 4px;
  background: var(--primary);
}

.tour-btn {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  border: none;
}

.tour-btn-skip {
  background: none;
  color: var(--text-secondary);
}

.tour-btn-next {
  background: var(--primary);
  color: #fff;
}

/* Prototype banner */
.proto-banner {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  background: var(--accent);
  color: var(--text-on-accent);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 0;
  z-index: 990;
  letter-spacing: .5px;
  text-transform: uppercase;
  display: none;
}

.proto-banner.show { display: block; }
