/* Feedback dialog, Ideas board, Your feedback, Blocked people and the empty-box first run (views/feedback.js, ideas.js,
   your_feedback.js, safety.js, first_run.js). Uses the tokens in style.css. */

/* feedback dialog */
.feedback-tabs { display: flex; width: 100%; margin-bottom: 14px; }
.feedback-tabs .seg-btn { flex: 1; }
.feedback-ideas { min-height: min(60vh, 520px); }
.fb-counter { display: flex; justify-content: space-between; gap: 10px; margin-top: -6px; }
.fb-counter .error { min-height: 0; }
textarea.invalid { border-color: var(--danger); }
.fb-shots { display: grid; gap: 6px; }
.fb-shots p { margin: 0; }
.fb-add { justify-self: start; padding-left: 0; }
.fb-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.fb-thumb { position: relative; width: 72px; height: 72px; }
.fb-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--rule); background: var(--paper-3); }
.fb-thumb-x { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--rule);
  background: var(--paper); color: var(--ink); cursor: pointer; line-height: 1; padding: 0; font-size: 16px; }
.fb-thanks { color: var(--accent); font-size: 20px; font-weight: 700; margin-top: 6px; }
.fb-after { margin-top: 14px; }

/* ideas board */
.ideas-board { position: relative; min-height: 100%; overflow: hidden; }
.ideas-content { display: grid; gap: 10px; align-content: start; }
.ideas-intro { background: var(--paper-3); border-radius: 12px; padding: 12px 14px; }
.ideas-bar { display: flex; gap: 8px; align-items: stretch; }
.ideas-bar .seg { flex: 1; display: flex; }
.ideas-bar .seg .seg-btn { flex: 1; }
.ideas-filter-btn { border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); padding: 8px 16px; font-weight: 700; cursor: pointer; min-height: 40px; }
.ideas-filter-btn.on { background: var(--accent-soft); color: var(--on-accent-soft); border-color: var(--accent-soft); }
.ideas-summary { margin: -4px 0 0; }
.review-chip { justify-self: start; }
.ideas-empty { text-align: center; padding: 28px 0; margin: 0; }
.ideas-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.idea { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--rule); }
.idea:first-child { border-top: 0; }
.idea-votes { flex: none; width: 52px; display: grid; justify-items: center; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper-3); }
.idea-votes.voted { border-color: var(--accent); background: var(--accent-soft); }
.idea-arrow { width: 100%; height: 36px; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--muted); border-radius: 10px; }
.idea-arrow.on { color: var(--accent); }
.idea-arrow:disabled { cursor: default; opacity: .5; }
.idea-arrow:not(:disabled):hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.idea-score { font-weight: 800; font-size: 16px; }
.idea-votes.voted .idea-score { color: var(--accent); }
.idea-text { flex: 1; min-width: 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
.idea-title { font-weight: 700; font-size: 16px; }
.idea-detail { color: var(--muted); white-space: pre-line; }
.idea-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.idea-status { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--on-accent-soft); }
.idea-hidden { font-size: 12px; color: var(--danger); }
.idea-actions { flex: none; display: flex; gap: 2px; align-items: center; }
.ideas-filters-wrap { position: absolute; inset: 0; z-index: 2; display: flex; justify-content: flex-end; }
.ideas-scrim { flex: 1; border: 0; background: rgba(20,18,17,.28); border-radius: 12px 0 0 12px; cursor: pointer; }
.ideas-filters { width: min(280px, 85%); background: var(--paper); border-left: 1px solid var(--rule); padding: 4px 16px 12px;
  box-shadow: -8px 0 24px rgba(0,0,0,.15); animation: ideas-slide .22s ease-out; }
.ideas-filters h3 { color: var(--ink); font-size: 20px; margin: 10px 0; }
@keyframes ideas-slide { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .ideas-filters { animation: none; } }

/* report / choose dialogs */
.reasons { display: grid; gap: 2px; }
.reasons .reason { min-height: 40px; font-weight: 400; }
.choose-list { border: 0; padding: 0; max-height: 60vh; }
.choose-list .pick { padding: 12px 10px; }

/* account panels */
.blocked-list { display: grid; }
.blocked-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; border-top: 1px solid var(--rule); overflow-wrap: anywhere; }
.fb-mine { list-style: none; margin: 0; padding: 0; display: grid; }
.fb-mine-row { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--rule); }
.fb-mine-text { flex: 1; min-width: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fb-chip { flex: none; font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--rule); color: var(--muted); white-space: nowrap; }
.fb-chip.shipped { background: var(--accent-soft); color: var(--on-accent-soft); border-color: var(--accent-soft); }

/* empty box: first run */
.first-run { display: grid; gap: 12px; justify-items: start; }
.first-run > p { margin: 0; }
.first-run-card { margin: 0; text-align: left; }
.first-run-card h3 { color: var(--accent); }
.first-run-card .btn { margin: 4px 0 10px; }

@media (max-width: 480px) {
  .ideas-bar { flex-wrap: wrap; }
  .ideas-bar .seg { flex-basis: 100%; }
  .ideas-filter-btn { flex: 1; }
}
