/* «Report a problem» (js/report.js): a quiet link-like button, and a small window. Every page loads it. */

.report-button {
  padding: 4px var(--space-2);
  border: 0;
  background: none;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  cursor: pointer;
}

.report-button:hover,
.report-button:focus-visible {
  color: var(--ink);
  text-decoration-color: var(--ink-muted);
}

/* On a page without a place for it: the bottom left corner, out of the way of «Send» and the like */
.report-fixed {
  position: fixed;
  left: var(--space-4);
  bottom: var(--space-2);
  z-index: 10;
  background: var(--surface);
  border-radius: var(--radius-sm);
}

/* On the session page: a short line under the input field */
.report-line {
  margin: var(--space-2) 0 0;
  text-align: right;
}

.report-dialog {
  width: min(460px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  color: var(--ink);
}

.report-dialog::backdrop {
  background: rgba(43, 43, 46, 0.35);
}

.report-title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: 22px;
}

.report-help {
  margin: 0 0 var(--space-4);
  color: var(--ink-muted);
  font-size: 14px;
}

.report-text {
  width: 100%;
  box-sizing: border-box;
  padding: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.report-line-state {
  min-height: 1.4em;
  margin: var(--space-2) 0;
  font-size: 14px;
}

.report-buttons {
  display: flex;
  gap: var(--space-2);
}

.report-send,
.report-cancel {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--teal);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 16px;
  cursor: pointer;
}

.report-send {
  background: var(--teal);
  color: var(--sand);
}

.report-send:disabled {
  opacity: 0.5;
  cursor: default;
}

.report-cancel {
  border-color: var(--line);
  background: var(--surface-raised);
  color: var(--ink);
}
