/* Feedback widget (2026-08-05). Self-contained styles shared by every page —
   tokens copied from index.html's palette (see CLAUDE.md template strategy:
   no base-template refactor mid-season, shared UI ships as static files). */

.fb-btn {
  position: fixed;
  right: 14px;
  bottom: 14px; /* raised above the chat dock by feedback.js when one exists */
  z-index: 60;  /* chat dock is 50 */
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border: 1px solid #334155;
  border-radius: 999px;
  background: #1e293b;
  color: #e2e8f0;
  font: 600 0.8rem -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.fb-btn:hover { border-color: #38bdf8; }

.fb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(2, 6, 23, 0.7);
  padding: 1rem;
  overflow-y: auto;
}
.fb-overlay.open { display: flex; align-items: flex-start; justify-content: center; }

.fb-modal {
  width: 100%;
  max-width: 430px;
  margin-top: 4vh;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1rem;
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.fb-modal h3 { font-size: 1rem; color: #38bdf8; margin: 0 0 0.25rem; }
.fb-modal .fb-sub { font-size: 0.75rem; color: #94a3b8; margin: 0 0 0.75rem; }

.fb-modal label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0.6rem 0 0.25rem;
}
.fb-modal textarea,
.fb-modal input[type="text"],
.fb-modal input[type="email"] {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  font: 0.85rem/1.4 inherit;
  font-family: inherit;
  padding: 0.5rem 0.6rem;
}
.fb-modal textarea { min-height: 96px; resize: vertical; }
.fb-modal textarea:focus, .fb-modal input:focus { outline: none; border-color: #38bdf8; }

.fb-row { display: flex; gap: 0.5rem; }
.fb-row > div { flex: 1; min-width: 0; }

.fb-shot-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.fb-shot-actions button,
.fb-shot-actions .fb-file-label {
  min-height: 40px;
  padding: 0.45rem 0.7rem;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  font: 600 0.75rem inherit;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.fb-shot-actions button:hover, .fb-shot-actions .fb-file-label:hover { border-color: #38bdf8; }
.fb-file-label input { display: none; }

.fb-preview { position: relative; margin-top: 0.5rem; display: none; }
.fb-preview.has-shot { display: block; }
.fb-preview img {
  max-width: 100%;
  max-height: 140px;
  border: 1px solid #334155;
  border-radius: 8px;
  display: block;
}
.fb-preview .fb-remove {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #334155;
  background: #0f172a;
  color: #f87171;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.fb-status { font-size: 0.75rem; margin-top: 0.6rem; min-height: 1em; }
.fb-status.err { color: #f87171; }
.fb-status.ok { color: #4ade80; }

.fb-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.fb-send {
  flex: 1;
  min-height: 44px;
  border: none;
  border-radius: 8px;
  background: #0284c7;
  color: #fff;
  font: 700 0.85rem inherit;
  font-family: inherit;
  cursor: pointer;
}
.fb-send:disabled { opacity: 0.5; cursor: default; }
.fb-cancel {
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid #334155;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  font: 600 0.8rem inherit;
  font-family: inherit;
  cursor: pointer;
}

@media (max-width: 800px) {
  .fb-btn { padding: 0.5rem 0.75rem; font-size: 0.75rem; }
  .fb-modal { margin-top: 2vh; }
}
