/* The Flutter view, and the canvas that holds the real form. */
.fd-stage { position: relative; width: 100%; height: min(78svh, 660px); min-height: 520px; border-radius: 10px; overflow: hidden; background: #15171c; }
.fd-host { position: absolute; inset: 0; }
/* #region source-css */
/* The canvas that the form is drawn into. It sits over the Flutter view at the view's origin
   and is moved by a matrix3d() that Flutter supplies. opacity: 0 hides its pixels (Flutter
   draws them) and leaves it in hit testing. visibility: hidden would take it out. */
.fd-source {
  position: absolute; left: 0; top: 0; transform-origin: 0 0; opacity: 0;
  transform: translate(-200vw, 0); /* off stage until Flutter places it */
}
.fd-form {
  display: grid; gap: 8px; box-sizing: border-box; margin: 0; padding: 12px;
  font: 14px/1.35 system-ui, sans-serif; color: #e9e9ea; color-scheme: dark;
  background: #23262d; border: 1px solid #4a4f5a; border-radius: 10px;
}
.fd-form label { display: grid; gap: 3px; font-size: 12px; color: #b9bcc4; }
.fd-form input, .fd-form select, .fd-form textarea {
  box-sizing: border-box; width: 100%; min-height: 34px; margin: 0; padding: 6px 8px; font: 14px/1.35 system-ui, sans-serif;
  color: #f1f1f2; background: #101114; border: 1px solid #5a5f6a; border-radius: 6px; resize: none;
}
.fd-form :focus-visible { outline: 2px solid #5aa9ff; outline-offset: -2px; }
/* #endregion source-css */

.fd-msg { position: absolute; inset: 0; margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; text-align: center; color: #c9c9c9; font-size: 14px; }
.fd-msg[hidden] { display: none; }
.fd-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 10px 0; font-size: 14px; }
.fd-bar label:has(select) { display: grid; gap: 2px; min-width: 0; max-width: 100%; }
.fd-bar select { font: inherit; min-width: 0; width: 100%; max-width: 100%; text-overflow: ellipsis; }
.fd-bar output { font-variant-numeric: tabular-nums; }
.fd-debug .fd-source { opacity: .45; outline: 2px dashed #ff5a8a; }
