/* "Send us a message" dialog and footer link (js/feedback.js). Self-contained: the app, the homepage and the
   features page each have their own design tokens, so this carries Arrow's palette for light and dark itself. */
.fb {
  --fb-bg: #ffffff; --fb-ink: #14201f; --fb-muted: #4b5353; --fb-line: rgb(20 32 31 / .14);
  --fb-field: #f7f9f9; --fb-teal: #3f8f90; --fb-teal-ink: #2b6b6c; --fb-error: #a3361f;
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  margin: auto; padding: 0; border: 1px solid var(--fb-line); border-radius: 16px;
  background: var(--fb-bg); color: var(--fb-ink);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.5;
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / .35);
}
html[data-theme="dark"] .fb {
  --fb-bg: #172120; --fb-ink: #e9eeee; --fb-muted: #b3bcbb; --fb-line: rgb(233 238 238 / .14);
  --fb-field: #0f1716; --fb-teal: #54a4a5; --fb-teal-ink: #7cc0c1; --fb-error: #f0a08c;
}
.fb::backdrop { background: rgb(5 10 10 / .55); }
.fb[open] { animation: fb-in .18s ease-out; }
@keyframes fb-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.fb__form, .fb__done { padding: 26px 26px 22px; }
.fb__title { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; outline: none; }
.fb__lede { margin: 6px 0 20px; color: var(--fb-muted); }
.fb__label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 500; }
.fb__optional { font-weight: 400; color: var(--fb-muted); }
.fb__input {
  display: block; width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--fb-line);
  border-radius: 10px; background: var(--fb-field); color: var(--fb-ink); font: inherit;
}
.fb__text { resize: vertical; min-height: 128px; }
.fb__input:focus { outline: 2px solid var(--fb-teal); outline-offset: 1px; border-color: transparent; }
.fb__input[aria-invalid="true"] { border-color: var(--fb-error); }
.fb__meta { display: flex; justify-content: space-between; gap: 12px; min-height: 22px; margin: 4px 0 12px; font-size: 13px; }
.fb__error { color: var(--fb-error); }
.fb__count { color: var(--fb-muted); margin-left: auto; font-variant-numeric: tabular-nums; }
.fb__signed-in { margin: 0 0 4px; font-size: 13px; color: var(--fb-muted); }
.fb__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.fb__btn {
  min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 500;
  cursor: pointer; transition: background-color .15s, transform .1s;
}
.fb__btn:active { transform: scale(.98); }
.fb__btn:focus-visible { outline: 2px solid var(--fb-teal); outline-offset: 2px; }
.fb__btn--primary { background: var(--fb-teal); color: #0d1716; }
.fb__btn--primary:hover { filter: brightness(1.06); }
.fb__btn--primary:disabled { opacity: .6; cursor: progress; }
.fb__btn--ghost { background: transparent; color: var(--fb-ink); border-color: var(--fb-line); }
.fb__btn--ghost:hover { background: var(--fb-field); }
[hidden].fb__email, [hidden].fb__signed-in, .fb [hidden] { display: none !important; }

/* The footer link that opens it: takes the footer's own colour */
.fb-link {
  appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.fb-link:hover { text-decoration-thickness: 2px; }
.fb-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) { .fb[open] { animation: none; } .fb__btn:active { transform: none; } }
