/* Site-wide feedback launcher. Subtle by default, never in the way: a small
   pill in the bottom-left, so it cannot collide with the signup nudge on the
   right or with a page's own controls. Tokens are declared locally with
   fallbacks because this file loads on pages that do not share the studio's
   stylesheet. */
.sia-fb-launch {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 880;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--border, #e2e2e2);
  border-radius: 999px;
  background: var(--surface, #fff);
  color: var(--ink-soft, #666);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0.72;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.10);
  transition: opacity 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.sia-fb-launch:hover,
.sia-fb-launch:focus-visible {
  opacity: 1;
  color: var(--ink, #222);
  border-color: var(--gold, #caa200);
}
.sia-fb-launch i { color: var(--gold, #caa200); font-size: 0.85rem; }
@media (max-width: 640px) {
  /* Room for one-handed use without covering page controls. */
  .sia-fb-launch span { display: none; }
  .sia-fb-launch { padding: 9px; }
}

.sia-fb-overlay {
  position: fixed;
  inset: 0;
  z-index: 1010;   /* above the studio's own overlays */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
}
.sia-fb-overlay.hidden { display: none; }
.sia-fb-modal {
  position: relative;
  width: min(420px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--surface, #fff);
  color: var(--ink, #222);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.sia-fb-x {
  position: absolute; top: 10px; right: 12px;
  border: none; background: none; cursor: pointer;
  font-size: 1.5rem; line-height: 1;
  color: var(--ink-soft, #888);
}
.sia-fb-modal h2 { margin: 0 0 6px; font-size: 1.2rem; }
.sia-fb-sub { margin: 0 0 14px; font-size: 0.85rem; line-height: 1.5; color: var(--ink-soft, #666); }
.sia-fb-label { display: block; margin: 12px 0 6px; font-size: 0.84rem; font-weight: 600; }

.sia-fb-scale { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sia-fb-dot {
  width: 38px; height: 34px;
  border: 1px solid var(--border, #e2e2e2);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.sia-fb-dot:hover { border-color: var(--gold, #caa200); }
.sia-fb-dot.is-on {
  background: var(--gold, #caa200);
  border-color: var(--gold, #caa200);
  color: #1a1405;
  font-weight: 700;
}
.sia-fb-ends { flex-basis: 100%; font-size: 0.72rem; color: var(--ink-soft, #888); }

.sia-fb-modal textarea,
.sia-fb-modal input[type="email"] {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border, #e2e2e2);
  border-radius: 8px;
  background: var(--bg, #f7f7f7);
  color: var(--ink, #222);
  font: inherit;
  font-size: 0.88rem;
}
.sia-fb-modal textarea { resize: vertical; }

.sia-fb-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.sia-fb-send {
  border: none; border-radius: 999px;
  background: var(--gold, #caa200);
  color: #1a1405;
  font: inherit; font-weight: 600; font-size: 0.88rem;
  padding: 9px 22px; cursor: pointer;
}
.sia-fb-send:hover { filter: brightness(1.06); }
.sia-fb-status { font-size: 0.8rem; color: var(--ink-soft, #666); }
.sia-fb-status.is-error { color: var(--bad, #c0392b); }
.sia-fb-priv { margin: 12px 0 0; font-size: 0.74rem; line-height: 1.5; color: var(--ink-soft, #888); }
