/* FP&A per-block feedback control (2026-08-04).
 *
 * Every selector is scoped under `.fpa-fb`, so loading this file changes
 * nothing on a page that draws no control. Palette tokens come from
 * fpa-cockpit.css (`--cv5-*`), with literal fallbacks so the control still
 * reads correctly if it is ever rendered outside the cv5 shell.
 *
 * Hand-written on purpose: Tailwind is PRECOMPILED here, so a new utility
 * class in a template would silently render unstyled until someone
 * remembered to rebuild. No monospace anywhere (founder standing rule) —
 * the reference chip borrows the cockpit's letter-spaced sans `.cv5-code`.
 */

.fpa-fb {
  margin-top: 10px;
  font-size: 12px;
  color: var(--cv5-ink3, #5b6472);
}

/* The permanent trigger: quiet, small, always present. A control that
 * appears on hover is a control most readers never find. */
.fpa-fb-d > .fpa-fb-sum {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--cv5-ink3, #5b6472);
  border: 1px solid var(--cv5-line, #e3e7f0);
  border-radius: 999px;
  padding: 3px 10px;
  background: #fff;
}
.fpa-fb-d > .fpa-fb-sum::-webkit-details-marker { display: none; }
.fpa-fb-d > .fpa-fb-sum:hover {
  border-color: var(--cv5-navy, #1f2d4a);
  color: var(--cv5-ink, #1b2230);
}
.fpa-fb-d[open] > .fpa-fb-sum {
  border-color: var(--cv5-navy, #1f2d4a);
  color: var(--cv5-ink, #1b2230);
}
.fpa-fb-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--cv5-line, #e3e7f0);
  color: var(--cv5-ink2, #38414f);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.fpa-fb-form {
  margin-top: 8px;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--cv5-line-strong, #d3dae6);
  border-radius: 10px;
  padding: 12px 14px;
}
.fpa-fb-q {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cv5-ink, #1b2230);
  margin: 0 0 8px;
}
.fpa-fb-rate {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 10px;
}
.fpa-fb-opt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--cv5-ink2, #38414f);
  cursor: pointer;
}
.fpa-fb-lbl {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cv5-ink3, #5b6472);
  margin-bottom: 4px;
}
.fpa-fb-ta {
  width: 100%;
  font: inherit;
  font-size: 12.5px;
  color: var(--cv5-ink, #1b2230);
  border: 1px solid var(--cv5-line-strong, #d3dae6);
  border-radius: 8px;
  padding: 7px 9px;
  resize: vertical;
}
.fpa-fb-ta:focus {
  outline: 2px solid var(--cv5-navy, #1f2d4a);
  outline-offset: -1px;
}
/* The promise about what leaves the browser. Small, but never hidden: the
 * surface it sits on renders the customer's own financial statements. */
.fpa-fb-note {
  font-size: 11px;
  line-height: 1.4;
  color: var(--cv5-ink3, #5b6472);
  margin: 7px 0 9px;
}

.fpa-fb.done {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 10px 12px;
  max-width: 420px;
}
.fpa-fb-thanks {
  font-size: 12.5px;
  font-weight: 700;
  color: #065f46;
  margin: 0;
}
.fpa-fb-thanks-b {
  font-size: 12px;
  color: #065f46;
  margin: 3px 0 0;
}
.fpa-fb-cid {
  margin: 7px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .fpa-fb-form { max-width: none; }
}
