/* BackTax 1.38.2 — spacing tokens. Two distinct boxes (cards, fields, widgets, buttons) never touch: at least
   --bt-space-2 (8 px) between them, --bt-field-gap (16 px) between the fields of a form. Checked in the browser by
   tests/e2e/xbrowser.py (SPACING_JS). */
:root{--bt-space-1:4px;--bt-space-2:8px;--bt-space-3:12px;--bt-space-4:16px;--bt-space-5:24px;--bt-space-6:32px;
 --bt-field-gap:var(--bt-space-4);--bt-card-gap:var(--bt-space-4);--bt-field-radius:10px}
/* Cloudflare Turnstile: a field of the form like the others — the standard field gap above and below, the full width of
   the fields (data-size="flexible", at least 300 px wide) and their rounded corners. */
.cf-turnstile{display:block;width:100%;max-width:100%;min-height:65px;margin:var(--bt-field-gap) 0!important;border-radius:var(--bt-field-radius);overflow:hidden;line-height:0}
.cf-turnstile iframe{display:block;width:100%!important;max-width:100%;border:0!important}
.cf-turnstile+button,.cf-turnstile+input[type=submit]{margin-top:0!important}
/* Plain forms (1.38.2 audit): controls side by side or one under the other keep the standard gaps.
   .bt-inline-form: label, field and buttons on one line (wrapping on narrow screens), 8 px apart; a heading, a paragraph
   or a help text takes a full line. .bt-stack-form: one control per line, 12 px apart, buttons at their natural width.
   .bt-field: a label and its field as a block of their own. .bt-row-actions: the buttons of a list row. */
.bt-inline-form{display:flex;flex-wrap:wrap;align-items:center;gap:var(--bt-space-2)}
.bt-inline-form>:is(h2,h3,p,small,dl,.bt-full){flex-basis:100%;margin:0}
.bt-stack-form{display:flex;flex-direction:column;align-items:stretch;gap:var(--bt-space-3);margin-block:var(--bt-space-3)}
.bt-stack-form>br{display:none}
.bt-stack-form>:is(button,input[type=submit],a.btn){align-self:flex-start;margin:0}
.bt-field{display:block;margin-block:var(--bt-space-3)}
.bt-row-actions{display:flex;flex-wrap:wrap;gap:var(--bt-space-2)}
form>fieldset{margin-block:var(--bt-field-gap)}
/* apps-core log-purge (Super console › Sauvegardes): each of its three forms on one line, 8 px between the controls */
.log-purge :is(.log-purge-days,.log-purge-dry,.log-purge-run){display:flex;flex-wrap:wrap;align-items:center;gap:var(--bt-space-2);margin-block:var(--bt-space-3)}
.log-purge .log-purge-days>small{flex-basis:100%}
/* Turnstile notice (Super console): amber band, dark text on a light background in both themes (contrast ≥ 7:1) */
.notice[data-turnstile-banner],.notice[data-turnstile-notice],.notice[data-turnstile-emergency]{display:block;margin:var(--bt-space-3) 0;padding:var(--bt-space-3) var(--bt-space-4);border:1px solid #e7be73;border-radius:10px;background:#fff4df!important;color:#4a2c03!important}
.notice[data-turnstile-banner] a{color:#4a2c03!important;font-weight:700}
