/* ForgeFramer preview layer (see preview.js). Namespaced: it sits on top of every configurator. */
[data-ffp-locked] { opacity: 0.5 !important; cursor: not-allowed !important; filter: saturate(0.35); }
/* half-redacted takeoff rows: readable shape, unreadable numbers */
[data-ffp-redacted] { cursor: pointer; }
[data-ffp-redacted] > * { filter: blur(4.5px); user-select: none; -webkit-user-select: none; }

#ffp-root { --ffp-ink: #0A0B0D; --ffp-ink1: #15171c; --ffp-paper: #ECE9E2; --ffp-dim: #A7A39A; --ffp-line: rgba(236, 233, 226, 0.18); --ffp-forge: #FF5A1F;
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ffp-paper); }
#ffp-root *, #ffp-root *::before, #ffp-root *::after { box-sizing: border-box; }
#ffp-root [hidden] { display: none !important; }

.ffp-bar { position: fixed; z-index: 2147483000; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px;
  max-width: min(760px, calc(100vw - 24px)); padding: 8px 8px 8px 12px; background: rgba(10, 11, 13, 0.92); backdrop-filter: blur(10px);
  border: 1px solid var(--ffp-line); border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.ffp-tag { flex: none; font: 600 11px/1 ui-monospace, "JetBrains Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ffp-ink);
  background: var(--ffp-forge); padding: 6px 8px; border-radius: 999px; }
.ffp-note { color: var(--ffp-dim); min-width: 0; }
.ffp-go, .ffp-pill, .ffp-submit { flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--ffp-forge); color: var(--ffp-ink);
  font: 600 14px/1 system-ui, sans-serif; cursor: pointer; }
.ffp-go:hover, .ffp-pill:hover, .ffp-submit:hover { background: #FF7A45; }
.ffp-min { flex: none; width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--ffp-dim); font-size: 20px; cursor: pointer; }
.ffp-min:hover { color: var(--ffp-paper); background: rgba(236, 233, 226, 0.08); }
.ffp-pill { position: fixed; z-index: 2147483000; right: 16px; bottom: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
#ffp-root button:focus-visible, #ffp-root a:focus-visible, #ffp-root input:focus-visible, #ffp-root select:focus-visible, #ffp-root textarea:focus-visible { outline: 2px solid var(--ffp-forge); outline-offset: 3px; }
@media (max-width: 640px) {
  /* one compact row on phones: tag, button, hide; the note is in the dialog anyway */
  .ffp-bar { left: 8px; right: 8px; bottom: 8px; transform: none; max-width: none; border-radius: 999px; gap: 8px; padding: 6px 6px 6px 10px; }
  .ffp-note { display: none; }
  .ffp-go { flex: 1 1 auto; min-height: 36px; }
  .ffp-min { width: 36px; height: 36px; }
}

.ffp-dlg { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 28px; border: 1px solid var(--ffp-line); border-radius: 16px;
  background: var(--ffp-ink1); color: var(--ffp-paper); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.ffp-dlg::backdrop { background: rgba(5, 6, 8, 0.7); backdrop-filter: blur(3px); }
.ffp-x { position: absolute; top: 10px; right: 10px; margin: 0; }
.ffp-x button { width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--ffp-dim); font-size: 22px; cursor: pointer; }
.ffp-kicker { margin: 0 0 6px; font: 500 11px/1 ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ffp-forge); }
.ffp-dlg h2 { margin: 0 0 8px; font: 700 24px/1.15 system-ui, sans-serif; letter-spacing: -0.01em; }
.ffp-lede { margin: 0 0 18px; color: var(--ffp-dim); }
.ffp-form { display: grid; gap: 12px; }
.ffp-form label { display: grid; gap: 6px; font-weight: 500; }
.ffp-opt { color: var(--ffp-dim); font-weight: 400; }
.ffp-form input, .ffp-form select, .ffp-form textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--ffp-line); border-radius: 10px;
  background: var(--ffp-ink); color: var(--ffp-paper); font: 15px/1.3 system-ui, sans-serif; }
.ffp-form textarea { resize: vertical; }
.ffp-submit { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 4px; text-decoration: none; }
.ffp-fine { margin: 10px 0 0; color: var(--ffp-dim); font-size: 13px; }
.ffp-submit:disabled { opacity: 0.6; cursor: progress; }
.ffp-err { margin: 0; color: #FF8A65; }
.ffp-done h3 { margin: 4px 0 6px; font-size: 18px; }
.ffp-done p, .ffp-code { color: var(--ffp-dim); }
.ffp-code { margin: 16px 0 0; }
#ffp-root a { color: var(--ffp-paper); }
#ffp-root a.ffp-submit { color: var(--ffp-ink); }
@media (prefers-reduced-motion: no-preference) { .ffp-bar, .ffp-pill { transition: opacity 0.2s; } }
