/* Feedback widget — matches the quantum-instrument theme (styles.css vars). */
.fb-launch {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 13px; cursor: pointer;
  color: var(--bg); background: var(--bright);
  border: 1px solid var(--bright); border-radius: 999px;
  padding: 11px 17px; box-shadow: 0 6px 26px rgba(255, 107, 26, 0.35);
  transition: transform .16s, box-shadow .16s;
}
.fb-launch:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(255, 107, 26, 0.5); }
.fb-launch-ico {
  display: inline-grid; place-items: center; width: 18px; height: 18px;
  border-radius: 50%; background: rgba(10, 12, 16, 0.25); font-weight: 700;
}

.fb-overlay {
  position: fixed; inset: 0; z-index: 950; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(4, 6, 9, 0.72); backdrop-filter: blur(4px);
}
.fb-overlay.is-open { display: flex; animation: fb-fade .18s ease; }
@keyframes fb-fade { from { opacity: 0; } to { opacity: 1; } }

.fb-modal {
  position: relative; width: 100%; max-width: 460px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-2); border-radius: 8px; padding: 24px 24px 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  animation: fb-rise .22s cubic-bezier(.2,.8,.2,1);
}
@keyframes fb-rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.fb-close {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  color: var(--ink-dim); font-size: 22px; line-height: 1; cursor: pointer;
}
.fb-close:hover { color: var(--ink); }
.fb-modal h3 { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0 0 6px; color: var(--ink); }
.fb-sub { color: var(--ink-dim); font-size: 12.5px; margin: 0 0 16px; }
.fb-field { display: block; margin-bottom: 13px; }
.fb-field > span { display: block; font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--dark); margin-bottom: 6px; }
.fb-field em { color: var(--ink-dim); text-transform: none; letter-spacing: 0; font-style: normal; }
.fb-form textarea, .fb-form input[type=email] {
  width: 100%; box-sizing: border-box; font-family: var(--mono); font-size: 13px;
  color: var(--ink); background: #0b0e14; border: 1px solid var(--line-2);
  border-radius: 5px; padding: 10px 11px; resize: vertical;
}
.fb-form textarea:focus, .fb-form input:focus { outline: none; border-color: var(--dark); box-shadow: 0 0 0 2px rgba(53,208,230,.18); }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.fb-view { color: var(--ink-dim); font-size: 11px; }
.fb-submit {
  font-family: var(--mono); font-size: 13px; cursor: pointer; color: var(--bg);
  background: var(--dark); border: 1px solid var(--dark); border-radius: 5px; padding: 9px 20px;
  transition: filter .15s;
}
.fb-submit:hover { filter: brightness(1.08); }
.fb-submit:disabled { opacity: .6; cursor: default; }
.fb-status { min-height: 16px; margin: 12px 0 0; font-size: 12px; color: var(--ink-dim); }
.fb-status.is-ok { color: var(--dark); }
.fb-status.is-err { color: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  .fb-launch, .fb-overlay.is-open, .fb-modal { animation: none; transition: none; }
}
