/* ============================================
   BODYGUARD PANEL — UTILITY CLASSES
   A deliberately small utility layer, not a Tailwind port — just enough
   vocabulary that new one-off styling composes from tokens instead of
   spawning new bespoke classes. Every declaration is a single var(--token)
   reference; no new literals belong in this file.

   Scoped under .ds-v2 like every other design-system file. This is not only
   convention: every component rule is `.ds-v2 .x` (specificity 0,2,0), so an
   UNSCOPED utility (0,1,0) could never override one — which defeats the whole
   point of a utility. Scoped, utilities tie with components on specificity and
   win on source order (utilities.css is linked after components.css on every
   page — keep it that way).

   Nothing here may duplicate a class components.css already defines. `.bg-primary`,
   `.bg-secondary` and `.mb-3` were dropped for exactly that reason: components.css
   owns them (with the `!important` and the `.card-body > .row .mb-3` companion rule
   that the Bootstrap-grid interop depends on).
   ============================================ */

/* Layout */
.ds-v2 .flex { display: flex; }
.ds-v2 .inline-flex { display: inline-flex; }
.ds-v2 .items-center { align-items: center; }
.ds-v2 .items-start { align-items: flex-start; }
.ds-v2 .justify-between { justify-content: space-between; }
.ds-v2 .justify-center { justify-content: center; }
.ds-v2 .gap-1 { gap: var(--space-1); }
.ds-v2 .gap-2 { gap: var(--space-2); }
.ds-v2 .gap-3 { gap: var(--space-3); }
.ds-v2 .gap-4 { gap: var(--space-4); }

/* Spacing */
.ds-v2 .p-0 { padding: var(--space-0); }
.ds-v2 .p-1 { padding: var(--space-1); }
.ds-v2 .p-2 { padding: var(--space-2); }
.ds-v2 .p-3 { padding: var(--space-3); }
.ds-v2 .p-4 { padding: var(--space-4); }
.ds-v2 .px-2 { padding-left: var(--space-2); padding-right: var(--space-2); }
.ds-v2 .px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
.ds-v2 .px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.ds-v2 .py-1 { padding-top: var(--space-1); padding-bottom: var(--space-1); }
.ds-v2 .py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.ds-v2 .m-0 { margin: var(--space-0); }
.ds-v2 .mt-2 { margin-top: var(--space-2); }
.ds-v2 .mt-3 { margin-top: var(--space-3); }
.ds-v2 .mb-2 { margin-bottom: var(--space-2); }

/* Typography */
.ds-v2 .text-xs { font-size: var(--text-xs); }
.ds-v2 .text-sm { font-size: var(--text-sm); }
.ds-v2 .text-base { font-size: var(--text-base); }
.ds-v2 .text-lg { font-size: var(--text-lg); }
.ds-v2 .font-medium { font-weight: var(--weight-medium); }
.ds-v2 .font-semibold { font-weight: var(--weight-semibold); }
.ds-v2 .font-bold { font-weight: var(--weight-bold); }
.ds-v2 .text-primary { color: var(--text-primary); }
.ds-v2 .text-secondary { color: var(--text-secondary); }
.ds-v2 .text-tertiary { color: var(--text-tertiary); }

/* Radius / border / surface */
.ds-v2 .rounded-sm { border-radius: var(--radius-sm); }
.ds-v2 .rounded-md { border-radius: var(--radius-md); }
.ds-v2 .rounded-lg { border-radius: var(--radius-lg); }
.ds-v2 .rounded-full { border-radius: var(--radius-full); }
.ds-v2 .border { border: 1px solid var(--border-primary); }
.ds-v2 .bg-elevated { background: var(--surface-elevated); }

/* Inline-margin utilities. Added while retiring the button inline styles: JS was
   setting marginLeft/marginTop directly on buttons it created, which puts layout
   values in the business logic and skips the spacing scale entirely. */
.ds-v2 .mt-4 { margin-top: var(--space-4); }
.ds-v2 .ml-2 { margin-left: var(--space-2); }
.ds-v2 .ml-3 { margin-left: var(--space-3); }
.ds-v2 .ml-auto { margin-left: auto; }
.ds-v2 .mb-3 { margin-bottom: var(--space-3); }
