/* Promptheus feedback kit 1.0.8 | do not edit in a project: theme it with the --fb-* variables in the project's own CSS */
.fb {
  position: fixed; z-index: var(--fb-z, 2147482000);
  right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  width: min(372px, calc(100vw - 24px)); overflow: hidden;
  background: var(--fb-bg, #fff); color: var(--fb-text, #16181d);
  border: 1px solid var(--fb-line, #e3e5ea); border-radius: var(--fb-radius, 14px);
  box-shadow: 0 8px 32px rgb(16 24 40 / 14%), 0 2px 6px rgb(16 24 40 / 6%);
  font-family: var(--fb-font, inherit); font-size: 0.875rem; font-weight: 400; line-height: 1.5; text-align: left;
  opacity: 1; transform: none; transition: opacity 160ms ease, transform 160ms ease;
}
.fb[hidden], .fb [hidden], .fb-backdrop[hidden], .fb-launcher[hidden] { display: none; }
.fb.fb-enter { opacity: 0; transform: translateY(6px); }
.fb.fb-leave { transition-duration: 120ms; }
.fb-form { margin: 0; }
.fb-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 14px; }
.fb-text, .fb-email {
  display: block; box-sizing: border-box; width: 100%; margin: 0; padding: 10px 12px;
  background: var(--fb-bg, #fff); color: var(--fb-text, #16181d);
  border: 1px solid var(--fb-line, #e3e5ea); border-radius: var(--fb-field-radius, 10px);
  font: inherit; transition: border-color 120ms ease, box-shadow 120ms ease;
}
.fb-text { min-height: 104px; resize: none; }
.fb-text::placeholder, .fb-email::placeholder { color: var(--fb-muted, #6b7280); opacity: 1; }
.fb-text:focus, .fb-email:focus { outline: none; border-color: var(--fb-accent, #16181d); box-shadow: 0 0 0 3px var(--fb-ring, rgb(22 24 29 / 12%)); }
.fb-text:read-only, .fb-email:read-only { color: var(--fb-muted, #6b7280); }
.fb-email[aria-invalid="true"] { border-color: var(--fb-red, #e5484d); }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fb-ts:empty { display: none; }
.fb-note { margin: 0; font-size: 0.8125rem; color: var(--fb-muted, #6b7280); animation: fb-in 120ms ease; }
.fb-note--error { color: var(--fb-red, #e5484d); }
.fb-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--fb-line, #e3e5ea); }

/* The faces: small and optional, with the name under each one. */
.fb-moods { display: flex; align-items: center; gap: 2px; min-width: 0; }
.fb-mood {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 42px; margin: 0; padding: 5px 5px 4px;
  background: transparent; color: var(--fb-muted, #6b7280); border: 0; border-radius: 9px; cursor: pointer;
  font: inherit; font-size: 0.6875rem; line-height: 1.3;
  transition: opacity 120ms ease, background-color 120ms ease, color 120ms ease;
}
.fb-mood svg { flex: none; transition: transform 120ms cubic-bezier(.3, 1.6, .5, 1); }
.fb-mood:hover { background: var(--fb-soft, #f3f4f6); color: var(--fb-text, #16181d); }
.fb-mood:hover svg { transform: scale(1.15) rotate(-5deg); }
.fb-mood:focus-visible, .fb-send:focus-visible, .fb-launcher:focus-visible { outline: 2px solid var(--fb-accent, #16181d); outline-offset: 2px; }
.fb-mood[aria-pressed="true"] { background: var(--fb-accent-soft, #eef0f3); color: var(--fb-text, #16181d); font-weight: 600; }
.fb-mood[aria-pressed="true"] svg { animation: fb-pop 200ms cubic-bezier(.3, 1.6, .5, 1); }
.fb-chosen .fb-mood[aria-pressed="false"]:not(:hover) { opacity: .45; }

/* The send button: idle, disabled, sending (spinner after 150 ms), sent (check mark). It keeps its width. */
.fb-send {
  position: relative; flex: none; min-width: 84px; min-height: 36px; margin: 0 0 0 auto; padding: 8px 16px;
  background: var(--fb-accent, #16181d); color: var(--fb-accent-ink, #fff); border: 0; border-radius: var(--fb-btn-radius, 9px); cursor: pointer;
  font: inherit; font-weight: 600; line-height: 1.2;
  transition: opacity 120ms ease, filter 120ms ease, transform 120ms ease;
}
.fb-send:hover:not(:disabled) { filter: brightness(1.1); }
.fb-send:active:not(:disabled) { transform: scale(.97); }
.fb-send:disabled { opacity: .45; cursor: default; }
.fb-busy .fb-send { opacity: 1; cursor: progress; }
.fb-sent .fb-send { cursor: default; }
.fb-spin, .fb-check { display: none; position: absolute; inset: 0; margin: auto; }
.fb-spin { width: 16px; height: 16px; box-sizing: border-box; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: fb-spin 600ms linear infinite; }
.fb-slow .fb-send-label, .fb-sent .fb-send-label { visibility: hidden; }
.fb-slow .fb-spin { display: block; }
.fb-sent .fb-check { display: block; }
.fb-sent .fb-check path { stroke-dasharray: 1; animation: fb-draw 200ms ease-out both; }

/* The floating launcher (config `launcher: true`): a round icon button in the corner where the panel opens. */
.fb-launcher {
  position: fixed; z-index: var(--fb-launcher-z, 40);
  right: var(--fb-launcher-right, max(20px, env(safe-area-inset-right))); bottom: var(--fb-launcher-bottom, max(20px, env(safe-area-inset-bottom)));
  display: grid; place-items: center; width: 52px; height: 52px; margin: 0; padding: 0; cursor: pointer;
  background: var(--fb-accent, #16181d); color: var(--fb-accent-ink, #fff); border: 0; border-radius: 50%;
  box-shadow: 0 6px 20px rgb(16 24 40 / 22%);
  transition: transform 120ms ease, filter 120ms ease;
}
.fb-launcher:hover { filter: brightness(1.1); transform: scale(1.05); }
.fb-launcher:active { transform: scale(.97); }
.fb-backdrop { display: none; }

@keyframes fb-in { from { opacity: 0; } }
@keyframes fb-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.2) rotate(-6deg); } 100% { transform: none; } }
@keyframes fb-spin { to { transform: rotate(360deg); } }
@keyframes fb-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Phones: a bottom sheet over a light backdrop. 16 px text stops iOS from zooming into the field. */
@media (max-width: 640px) {
  .fb { left: 0 !important; right: 0 !important; top: auto !important; bottom: var(--fb-kb, 0px) !important; width: auto; overflow-y: auto;
    border-width: 1px 0 0; border-radius: var(--fb-radius, 14px) var(--fb-radius, 14px) 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .fb.fb-enter { transform: translateY(16px); }
  .fb-text, .fb-email { font-size: 1rem; }
  .fb-launcher { width: 48px; height: 48px; right: var(--fb-launcher-right, max(16px, env(safe-area-inset-right))); bottom: var(--fb-launcher-bottom, max(16px, env(safe-area-inset-bottom))); }
  .fb-backdrop { display: block; position: fixed; inset: 0; z-index: calc(var(--fb-z, 2147482000) - 1); background: rgb(0 0 0 / 30%); }
}
@media (prefers-reduced-motion: reduce) {
  .fb, .fb-mood, .fb-mood svg, .fb-send, .fb-launcher, .fb-text, .fb-email { transition: none; }
  .fb.fb-enter { transform: none; }
  .fb-mood:hover svg, .fb-send:active:not(:disabled), .fb-launcher:hover, .fb-launcher:active { transform: none; }
  .fb-note, .fb-mood[aria-pressed="true"] svg, .fb-sent .fb-check path { animation: none; }
}
@media print { .fb, .fb-backdrop, .fb-launcher { display: none !important; } }
