/* Funding ticket review and receipt. Works on the studio pages (/, /work, /watch)
   and the classic board (/classic), so every token falls back to the legacy one. */
#ticket .funding-review {
  --fr-ink: var(--ink); --fr-muted: var(--muted); --fr-rule: var(--rule);
  --fr-surface: var(--surface, var(--pale)); --fr-accent: var(--accent, var(--green)); --fr-accent-text: var(--accent-text, var(--green));
  --fr-warn: #f2b65c;
  display: grid; gap: 10px; padding: 2px 0 4px; color: var(--fr-ink); font-variant-numeric: tabular-nums;
  /* Clear the sticky team header when the review scrolls into view. */
  scroll-margin-top: 88px;
}
#ticket .funding-review .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
#ticket .fr-kicker { margin: 0; color: var(--fr-accent-text); font-size: 12px; font-weight: 650; letter-spacing: .02em; }
#ticket .funding-review h3 { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -.02em; display: flex; gap: 9px; align-items: flex-start; }
#ticket .funding-review h3:focus { outline: none; }
#ticket .funding-review h3:focus-visible { outline: 2px solid var(--fr-accent-text); outline-offset: 3px; border-radius: 4px; }
#ticket .funding-review dl { margin: 0; display: grid; }
#ticket .funding-review dl > div { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--fr-rule); }
#ticket .funding-review dt { flex: none; color: var(--fr-muted); font-size: 14px; }
#ticket .funding-review dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
#ticket .fr-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 2px 0 0; }
#ticket .fr-total span { color: var(--fr-muted); font-weight: 600; }
#ticket .fr-total strong { font-size: 24px; letter-spacing: -.02em; }
#ticket .fr-effect { padding: 8px 12px 4px; border: 1px solid var(--fr-rule); border-radius: 12px; background: var(--fr-surface); }
#ticket .fr-effect h4 { margin: 0 0 2px; color: var(--fr-muted); font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
#ticket .fr-effect dl > div:last-child { border-bottom: 0; }
#ticket .fr-effect .was { color: var(--fr-muted); font-weight: 500; white-space: nowrap; }
#ticket .fr-effect .to { color: var(--fr-accent-text); }
#ticket .fr-effect .now { white-space: nowrap; }
#ticket .fr-note, #ticket .fr-recorded { margin: 0; color: var(--fr-muted); font-size: 13.5px; }
#ticket .fr-status { margin: 0; min-height: 0; font-size: 14px; color: var(--fr-muted); }
#ticket .fr-status:empty { display: none; }
#ticket .fr-status[data-tone="warn"] { color: var(--fr-warn); display: flex; gap: 7px; }
#ticket .fr-status[data-tone="warn"]::before { content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--fr-warn); color: #1b1203; font-weight: 800; font-size: 12px; }
#ticket .fr-actions { display: flex; gap: 8px; margin-top: 2px; }
#ticket .fr-actions button { min-height: 44px; }
#ticket .fr-actions .primary { flex: 1; width: auto; }
#ticket .fr-actions .outline { flex: none; padding-inline: 18px; }
#ticket .fr-actions .primary[aria-busy="true"]::before { content: ""; display: inline-block; vertical-align: -2px; width: 13px; height: 13px; margin-right: 8px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: fr-spin .8s linear infinite; }
@keyframes fr-spin { to { transform: rotate(360deg); } }
#ticket .fr-check { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--fr-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-7' fill='none' stroke='%23071226' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat; }
#ticket input[aria-invalid="true"] { border-color: #f2b65c; box-shadow: 0 0 0 1px #f2b65c; }
#modes button:disabled { opacity: .45; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) {
  #ticket .fr-actions .primary[aria-busy="true"]::before { animation: none; border-right-color: currentColor; opacity: .6; }
}
