.feedback-fab {
  display: none;
  position: fixed;
  right: max(0.85rem, env(safe-area-inset-right, 0px));
  bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.feedback-fab.is-picking {
  display: block;
}
/* CC-2026-076: desktop — slightly larger + quiet plate so FAB is findable. */
@media (min-width: 701px) {
  .feedback-fab {
    right: max(1.15rem, env(safe-area-inset-right, 0px));
    bottom: max(1.15rem, env(safe-area-inset-bottom, 0px));
    width: 3.85rem;
    height: 3.85rem;
    box-sizing: border-box;
    padding: 0.42rem;
    border: 0;
    background: var(--bg);
  }
}
.feedback-fab:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.feedback-fab-icon {
  display: block;
  width: 100%;
  height: 100%;
}
.feedback-fab.is-picking {
  color: var(--ink);
}
.feedback-hint {
  position: fixed;
  left: 50%;
  top: max(0.75rem, env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  z-index: 41;
  width: min(36rem, calc(100vw - 2rem));
  margin: 0;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
}
body.is-picking-feedback { cursor: crosshair; }
body.is-picking-feedback::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 38;
  background: rgba(0, 0, 0, 0.42);
  pointer-events: none;
}
.feedback-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  margin: 0;
}
.feedback-dialog[open] {
  display: grid;
  place-items: center;
}
.feedback-dialog::backdrop {
  background: rgba(0, 0, 0, 0.48);
}
.feedback-dialog-panel {
  position: relative;
  width: min(26rem, calc(100vw - 1.5rem));
  max-height: min(90vh, 32rem);
  overflow: auto;
  padding: 1.35rem 1.4rem 1.5rem;
  border: 1px solid var(--line);
  background: var(--bg);
}
.feedback-dialog-heading {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 1.8rem 1rem 0;
}
.feedback-kinds {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.feedback-kinds button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  width: 100%;
  background: transparent;
  color: var(--ink);
  font-weight: 500;
}
.feedback-kinds button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--btn-fg);
}
.feedback-kind-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}
.feedback-compose {
  margin-top: 1rem;
}
.feedback-compose[hidden],
.feedback-thanks[hidden],
.feedback-kinds[hidden] {
  display: none;
}
.feedback-compose label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.feedback-compose textarea {
  display: block;
  width: 100%;
  margin: 0.4rem 0 0.85rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  resize: vertical;
  min-height: 4.5rem;
}
.feedback-compose textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.feedback-thanks {
  margin: 0.25rem 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
