/* Room under the last control so the floating button never covers it. */
main {
  padding-bottom: 5rem;
}

.small {
  font-size: 0.85rem;
}

.feedback-fab {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.15);
  z-index: 10;
}

dialog.feedback {
  width: min(32rem, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 1rem;
}

dialog.feedback::backdrop {
  background: rgb(0 0 0 / 0.35);
}

dialog.feedback h2 {
  margin: 0;
  font-size: 1.1rem;
}

dialog.feedback textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  resize: vertical;
}

.feedback-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.feedback-buttons span {
  flex: 1;
}

.feedback-buttons .send {
  background: var(--accent);
  color: var(--accent-text);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  margin: 0;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  z-index: 20;
}
