:root {
  --corner-radius-scale: 1;
  --bfds-space-0: 0;
  --bfds-space-1: 4px;
  --bfds-space-2: 8px;
  --bfds-space-3: 12px;
  --bfds-space-4: 16px;
  --bfds-space-5: 24px;
  --bfds-space-6: 32px;
  --bfds-space-7: 48px;
  --bfds-space-8: 64px;

  --bfds-always-dark-primary: #ffd700;
  --bfds-always-dark-primary-hover: #e6c200;
  --bfds-always-dark-primary-active: #ccad00;
  --bfds-always-dark-background: #141516;
  --bfds-always-dark-background-solid-1: #171819;
  --bfds-always-dark-background-solid-2: #1f2021;
  --bfds-always-dark-secondary: #808080;
  --bfds-always-dark-secondary-hover: #646464;
  --bfds-always-dark-secondary-active: #4a4a4a;
  --bfds-always-dark-text: #fbfbff;
  --bfds-always-dark-text-secondary: #bfbfbf;
  --bfds-always-dark-border: #3a3b3c;
  --bfds-always-dark-border-hover: #4a4b4c;

  --bfds-always-light-primary: #ffd700;
  --bfds-always-light-primary-hover: #e6c200;
  --bfds-always-light-primary-active: #ccad00;
  --bfds-always-light-background: #f4f5f7;
  --bfds-always-light-background-solid-1: #eef0f4;
  --bfds-always-light-background-solid-2: #e6e9ef;
  --bfds-always-light-secondary: #3f4858;
  --bfds-always-light-secondary-hover: #333c4a;
  --bfds-always-light-secondary-active: #28313f;
  --bfds-always-light-text: #1f2933;
  --bfds-always-light-text-secondary: #4b5563;
  --bfds-always-light-border: #d0d5de;
  --bfds-always-light-border-hover: #b8bec9;

  --bfds-text-highlight-brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 88' preserveAspectRatio='none'%3E%3Cpath fill='%23ffd700' fill-opacity='.8' d='M8 45c2-13 5-28 11-32 41-2 85-6 126-9 54-4 107-3 161-3 70 0 141 1 211 1 36 0 73 2 109 0 33-1 66 2 97 7-1 13-5 26-15 37-67-2-135-7-203-8-82-2-164 2-246 2-68 0-136 1-204 6-16 1-31 0-47-1z'/%3E%3C/svg%3E");
}

@supports (corner-shape: squircle) {
  :root {
    --corner-radius-scale: 2;
  }
}

.bfds-always-dark,
.bfds-button--primary {
  color: var(--bfds-primary-content) !important;
}

:root, .bfds-theme--dark, .bfds-theme--vidpresso {
  --bfds-primary: #ffd700;
  --bfds-text-highlight: var(--bfds-primary);
  --bfds-text-highlight-09: rgba(255, 215, 0, 0.9);
  --bfds-text-highlight-08: rgba(255, 215, 0, 0.8);
  --bfds-text-highlight-06: rgba(255, 215, 0, 0.6);
  --bfds-text-highlight-04: rgba(255, 215, 0, 0.4);
  --bfds-text-highlight-02: rgba(255, 215, 0, 0.2);
  --bfds-text-highlight-01: rgba(255, 215, 0, 0.1);
  --bfds-primary-hover: #e6c200;
  --bfds-primary-active: #ccad00;
  --bfds-primary-09: rgba(255, 215, 0, 0.9);
  --bfds-primary-08: rgba(255, 215, 0, 0.8);
  --bfds-primary-06: rgba(255, 215, 0, 0.6);
  --bfds-primary-04: rgba(255, 215, 0, 0.4);
  --bfds-primary-02: rgba(255, 215, 0, 0.2);
  --bfds-primary-02-solid: #433c1b;
  --bfds-primary-01: rgba(255, 215, 0, 0.1);
  --bfds-primary-content: var(--bfds-background);
  --bfds-primary-content-04: var(--bfds-background-04);

  --bfds-background: #141516;
  --bfds-background-hover: #1f2021;
  --bfds-background-active: #2a2b2c;
  --bfds-background-09: rgba(20, 21, 22, 0.9);
  --bfds-background-08: rgba(20, 21, 22, 0.8);
  --bfds-background-06: rgba(20, 21, 22, 0.6);
  --bfds-background-04: rgba(20, 21, 22, 0.4);
  --bfds-background-02: rgba(20, 21, 22, 0.2);
  --bfds-background-02-solid: #0a0a0a;
  --bfds-background-01: rgba(20, 21, 22, 0.1);
  --bfds-background-005: rgba(20, 21, 22, 0.05);
  
  /* Opaque background levels - progressively lighter */
  --bfds-background-solid-0: #141516;  /* Same as base background */
  --bfds-background-solid-1: #171819;  /* New intermediate step */
  --bfds-background-solid-2: #1f2021;  /* Same as hover */
  --bfds-background-solid-3: #2a2b2c;  /* Same as active */
  --bfds-background-solid-4: #363738;  /* Lighter */
  --bfds-background-solid-5: #424344;  /* Lighter */
  --bfds-background-solid-6: #4e4f50;  /* Lighter */
  --bfds-background-solid-7: #5a5b5c;  /* Lighter */
  --bfds-background-solid-8: #666768;  /* Lighter */
  --bfds-background-solid-9: #727374;  /* Lighter */
  --bfds-background-solid-10: #858484;  /* Lighter */
  --bfds-track: var(--bfds-background-solid-3);
  --bfds-track-subtle: var(--bfds-background-solid-2);
  --bfds-track-error: var(--bfds-error-02);
  --bfds-track-success: var(--bfds-success-02);
  --bfds-track-warning: var(--bfds-warning-02);

  --bfds-text: #fbfbff;
  --bfds-text-secondary: #bfbfbf;
  --bfds-text-muted: #898990;
  --bfds-text-09: rgba(251, 251, 255, 0.9);
  --bfds-text-08: rgba(251, 251, 255, 0.8);
  --bfds-text-06: rgba(251, 251, 255, 0.6);
  --bfds-text-04: rgba(251, 251, 255, 0.4);
  --bfds-text-02: rgba(251, 251, 255, 0.2);
  --bfds-text-02-solid: #424344;
  --bfds-text-01: rgba(251, 251, 255, 0.1);
  --bfds-text-005: rgba(251, 251, 255, 0.05);
  --bfds-text-005-solid: #202122;
  --bfds-secondary-content: var(--bfds-text);

  --bfds-secondary: #808080;
  --bfds-secondary-hover: #646464;
  --bfds-secondary-active: #4a4a4a;
  --bfds-secondary-09: rgba(128, 128, 128, 0.9);
  --bfds-secondary-08: rgba(128, 128, 128, 0.8);
  --bfds-secondary-06: rgba(128, 128, 128, 0.6);
  --bfds-secondary-04: rgba(128, 128, 128, 0.4);
  --bfds-secondary-02: rgba(128, 128, 128, 0.2);
  --bfds-secondary-02-solid: #2c2d2e;
  --bfds-secondary-01: rgba(128, 128, 128, 0.1);
  --bfds-secondary-005: rgba(128, 128, 128, 0.05);

  --bfds-border: #3a3b3c;
  --bfds-border-subtle: rgba(251, 251, 255, 0.05);
  --bfds-border-hover: #4a4b4c;

  --bfds-error: #ef4444;
  --bfds-error-hover: #dc2626;
  --bfds-error-active: #b91c1c;
  --bfds-error-09: rgba(239, 68, 68, 0.9);
  --bfds-error-08: rgba(239, 68, 68, 0.8);
  --bfds-error-06: rgba(239, 68, 68, 0.6);
  --bfds-error-04: rgba(239, 68, 68, 0.4);
  --bfds-error-02: rgba(239, 68, 68, 0.2);
  --bfds-error-02-solid: #422122;
  --bfds-error-01: rgba(239, 68, 68, 0.1);

  --bfds-success: #10b981;
  --bfds-success-hover: #059669;
  --bfds-success-active: #047857;
  --bfds-success-09: rgba(16, 185, 129, 0.9);
  --bfds-success-08: rgba(16, 185, 129, 0.8);
  --bfds-success-06: rgba(16, 185, 129, 0.6);
  --bfds-success-04: rgba(16, 185, 129, 0.4);
  --bfds-success-02: rgba(16, 185, 129, 0.2);
  --bfds-success-02-solid: #1b362c;
  --bfds-success-01: rgba(16, 185, 129, 0.1);

  --bfds-warning: #f59e0b;
  --bfds-warning-hover: #d97706;
  --bfds-warning-active: #b45309;
  --bfds-warning-09: rgba(245, 158, 11, 0.9);
  --bfds-warning-08: rgba(245, 158, 11, 0.8);
  --bfds-warning-06: rgba(245, 158, 11, 0.6);
  --bfds-warning-04: rgba(245, 158, 11, 0.4);
  --bfds-warning-02: rgba(245, 158, 11, 0.2);
  --bfds-warning-02-solid: #42321c;
  --bfds-warning-01: rgba(245, 158, 11, 0.1);

  --bfds-info: #3b82f6;
  --bfds-info-hover: #2563eb;
  --bfds-info-active: #1d4ed8;
  --bfds-info-09: rgba(59, 130, 246, 0.9);
  --bfds-info-08: rgba(59, 130, 246, 0.8);
  --bfds-info-06: rgba(59, 130, 246, 0.6);
  --bfds-info-04: rgba(59, 130, 246, 0.4);
  --bfds-info-02: rgba(59, 130, 246, 0.2);
  --bfds-info-02-solid: #1d2b43;
  --bfds-info-01: rgba(59, 130, 246, 0.1);

  --bfds-focus: #3b82f6;
  --bfds-focus-outline: rgba(59, 130, 246, 0.3);
  --bfds-shadow-color: rgba(0, 0, 0, 0.72);
  --bfds-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.18);
  --bfds-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.18);
  --bfds-shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.34);

  --bfds-mock: rgba(238, 130, 238, 1);
  --bfds-mock-hover: rgba(238, 130, 238, 0.8);
  --bfds-mock-active: rgba(238, 130, 238, 0.6);
  --bfds-mock-background: rgba(238, 130, 238, 0.15);
  --bfds-mock-02: rgba(238, 130, 238, 0.2);
  --bfds-mock-01: rgba(238, 130, 238, 0.1);

  --fontFamily: "DM Sans", "sans-serif";
  --marketingFontFamily: "Bebas Neue", "sans-serif";
  --fontFamilyMono: "DM Mono", "monospace";

  --header-height: 68px;
}

.bfds-theme--light, .bfds-theme--vidpresso-light {
  --bfds-background: #f4f5f7;
  --bfds-background-hover: #e8eaef;
  --bfds-background-active: #dce0e8;
  --bfds-background-09: rgba(244, 245, 247, 0.9);
  --bfds-background-08: rgba(244, 245, 247, 0.8);
  --bfds-background-06: rgba(244, 245, 247, 0.6);
  --bfds-background-04: rgba(244, 245, 247, 0.4);
  --bfds-background-02: rgba(244, 245, 247, 0.2);
  --bfds-background-02-solid: #cfd4dc;
  --bfds-background-01: rgba(244, 245, 247, 0.1);
  --bfds-background-005: rgba(244, 245, 247, 0.05);
  --bfds-background-solid-0: #f4f5f7;
  --bfds-background-solid-1: #eef0f4;
  --bfds-background-solid-2: #e6e9ef;
  --bfds-background-solid-3: #dce0e8;
  --bfds-background-solid-4: #d0d5de;
  --bfds-background-solid-5: #c3c9d3;
  --bfds-background-solid-6: #b6bcc8;
  --bfds-background-solid-7: #a9b0bd;
  --bfds-background-solid-8: #9ca3b2;
  --bfds-background-solid-9: #8f96a7;

  --bfds-primary: #ffd700;
  --bfds-text-highlight: var(--bfds-text);
  --bfds-text-highlight-09: rgba(31, 41, 51, 0.9);
  --bfds-text-highlight-08: rgba(31, 41, 51, 0.8);
  --bfds-text-highlight-06: rgba(31, 41, 51, 0.6);
  --bfds-text-highlight-04: rgba(31, 41, 51, 0.4);
  --bfds-text-highlight-02: rgba(31, 41, 51, 0.2);
  --bfds-text-highlight-01: rgba(31, 41, 51, 0.1);
  --bfds-primary-hover: #e6c200;
  --bfds-primary-active: #ccad00;
  --bfds-primary-09: rgba(255, 215, 0, 0.9);
  --bfds-primary-08: rgba(255, 215, 0, 0.8);
  --bfds-primary-06: rgba(255, 215, 0, 0.6);
  --bfds-primary-04: rgba(255, 215, 0, 0.4);
  --bfds-primary-02: rgba(255, 215, 0, 0.2);
  --bfds-primary-01: rgba(255, 215, 0, 0.1);
  --bfds-primary-content: #1f2933;
  --bfds-primary-content-04: rgba(31, 41, 51, 0.4);

  --bfds-text: #1f2933;
  --bfds-text-secondary: #4b5563;
  --bfds-text-muted: #6b7280;
  --bfds-text-09: rgba(31, 41, 51, 0.9);
  --bfds-text-08: rgba(31, 41, 51, 0.8);
  --bfds-text-06: rgba(31, 41, 51, 0.6);
  --bfds-text-04: rgba(31, 41, 51, 0.4);
  --bfds-text-02: rgba(31, 41, 51, 0.2);
  --bfds-text-02-solid: #c5c8cd;
  --bfds-text-01: rgba(31, 41, 51, 0.1);
  --bfds-text-005: rgba(31, 41, 51, 0.05);
  --bfds-text-005-solid: #e3e6ea;
  --bfds-secondary-content: #f8fafc;

  --bfds-secondary: #3f4858;
  --bfds-secondary-hover: #333c4a;
  --bfds-secondary-active: #28313f;
  --bfds-secondary-09: rgba(63, 72, 88, 0.9);
  --bfds-secondary-08: rgba(63, 72, 88, 0.8);
  --bfds-secondary-06: rgba(63, 72, 88, 0.6);
  --bfds-secondary-04: rgba(63, 72, 88, 0.4);
  --bfds-secondary-02: rgba(63, 72, 88, 0.2);
  --bfds-secondary-02-solid: #cbced4;
  --bfds-secondary-01: rgba(63, 72, 88, 0.1);
  --bfds-secondary-005: rgba(63, 72, 88, 0.05);

  --bfds-border: #d0d5de;
  --bfds-border-subtle: rgba(31, 41, 51, 0.08);
  --bfds-border-hover: #b8bec9;
  --bfds-track: var(--bfds-background-solid-2);
  --bfds-track-subtle: var(--bfds-background-solid-1);
  --bfds-track-error: var(--bfds-error-02);
  --bfds-track-success: var(--bfds-success-02);
  --bfds-track-warning: var(--bfds-warning-02);

  --bfds-focus: #2563eb;
  --bfds-focus-outline: rgba(37, 99, 235, 0.35);
  --bfds-shadow-color: rgba(0, 0, 0, 0.72);
  --bfds-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.18);
  --bfds-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.18);
  --bfds-shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.34);

  --bfds-primary-02-solid: #f2eacf;
  --bfds-error-02-solid: #f0cfd1;
  --bfds-success-02-solid: #cbe5dc;
  --bfds-warning-02-solid: #f0e0cd;
  --bfds-info-02-solid: #cbd9f4;
}

.bfds-theme--vidpresso {
  --bfds-primary: #38a7de;
  --bfds-text-highlight: var(--bfds-primary);
  --bfds-text-highlight-09: rgba(56, 167, 222, 0.9);
  --bfds-text-highlight-08: rgba(56, 167, 222, 0.8);
  --bfds-text-highlight-06: rgba(56, 167, 222, 0.6);
  --bfds-text-highlight-04: rgba(56, 167, 222, 0.4);
  --bfds-text-highlight-02: rgba(56, 167, 222, 0.2);
  --bfds-text-highlight-01: rgba(56, 167, 222, 0.1);
  --bfds-primary-hover: #2293ca;
  --bfds-primary-active: #1c79a7;
  --bfds-primary-09: rgba(56, 167, 222, 0.9);
  --bfds-primary-08: rgba(56, 167, 222, 0.8);
  --bfds-primary-06: rgba(56, 167, 222, 0.6);
  --bfds-primary-04: rgba(56, 167, 222, 0.4);
  --bfds-primary-02: rgba(56, 167, 222, 0.2);
  --bfds-primary-02-solid: #1b323e;
  --bfds-primary-01: rgba(56, 167, 222, 0.1);
  --bfds-primary-content: #fbfbff;
  --bfds-primary-content-04: rgba(251, 251, 255, 0.4);

  --bfds-error: #e25151;
  --bfds-error-hover: #db2727;
  --bfds-error-active: #b71e1e;
  --bfds-error-09: rgba(226, 81, 81, 0.9);
  --bfds-error-08: rgba(226, 81, 81, 0.8);
  --bfds-error-06: rgba(226, 81, 81, 0.6);
  --bfds-error-04: rgba(226, 81, 81, 0.4);
  --bfds-error-02: rgba(226, 81, 81, 0.2);
  --bfds-error-02-solid: #3d2122;
  --bfds-error-01: rgba(226, 81, 81, 0.1);

  --bfds-success: #1dac7d;
  --bfds-success-hover: #168563;
  --bfds-success-active: #126a51;
  --bfds-success-09: rgba(29, 172, 125, 0.9);
  --bfds-success-08: rgba(29, 172, 125, 0.8);
  --bfds-success-06: rgba(29, 172, 125, 0.6);
  --bfds-success-04: rgba(29, 172, 125, 0.4);
  --bfds-success-02: rgba(29, 172, 125, 0.2);
  --bfds-success-02-solid: #16332b;
  --bfds-success-01: rgba(29, 172, 125, 0.1);

  --bfds-warning: #db9725;
  --bfds-warning-hover: #bf7520;
  --bfds-warning-active: #a2551b;
  --bfds-warning-09: rgba(219, 151, 37, 0.9);
  --bfds-warning-08: rgba(219, 151, 37, 0.8);
  --bfds-warning-06: rgba(219, 151, 37, 0.6);
  --bfds-warning-04: rgba(219, 151, 37, 0.4);
  --bfds-warning-02: rgba(219, 151, 37, 0.2);
  --bfds-warning-02-solid: #3c2f19;
  --bfds-warning-01: rgba(219, 151, 37, 0.1);

  --bfds-info: #5ab8c3;
  --bfds-info-hover: #479ba5;
  --bfds-info-active: #357b83;
  --bfds-info-09: rgba(90, 184, 195, 0.9);
  --bfds-info-08: rgba(90, 184, 195, 0.8);
  --bfds-info-06: rgba(90, 184, 195, 0.6);
  --bfds-info-04: rgba(90, 184, 195, 0.4);
  --bfds-info-02: rgba(90, 184, 195, 0.2);
  --bfds-info-02-solid: #223639;
  --bfds-info-01: rgba(90, 184, 195, 0.1);

  --bfds-focus: #5ab8c3;
  --bfds-focus-outline: rgba(90, 184, 195, 0.3);
}

.bfds-theme--vidpresso-light {
  --bfds-primary: #38a7de;
  --bfds-text-highlight: var(--bfds-primary);
  --bfds-text-highlight-09: rgba(56, 167, 222, 0.9);
  --bfds-text-highlight-08: rgba(56, 167, 222, 0.8);
  --bfds-text-highlight-06: rgba(56, 167, 222, 0.6);
  --bfds-text-highlight-04: rgba(56, 167, 222, 0.4);
  --bfds-text-highlight-02: rgba(56, 167, 222, 0.2);
  --bfds-text-highlight-01: rgba(56, 167, 222, 0.1);
  --bfds-primary-hover: #2293ca;
  --bfds-primary-active: #1c79a7;
  --bfds-primary-09: rgba(56, 167, 222, 0.9);
  --bfds-primary-08: rgba(56, 167, 222, 0.8);
  --bfds-primary-06: rgba(56, 167, 222, 0.6);
  --bfds-primary-04: rgba(56, 167, 222, 0.4);
  --bfds-primary-02: rgba(56, 167, 222, 0.2);
  --bfds-primary-02-solid: #cee5f2;
  --bfds-primary-01: rgba(56, 167, 222, 0.1);
  --bfds-primary-content: #fbfbff;
  --bfds-primary-content-04: rgba(251, 251, 255, 0.4);

  --bfds-error: #e25151;
  --bfds-error-hover: #db2727;
  --bfds-error-active: #b71e1e;
  --bfds-error-09: rgba(226, 81, 81, 0.9);
  --bfds-error-08: rgba(226, 81, 81, 0.8);
  --bfds-error-06: rgba(226, 81, 81, 0.6);
  --bfds-error-04: rgba(226, 81, 81, 0.4);
  --bfds-error-02: rgba(226, 81, 81, 0.2);
  --bfds-error-02-solid: #f0d4d6;
  --bfds-error-01: rgba(226, 81, 81, 0.1);

  --bfds-success: #1dac7d;
  --bfds-success-hover: #168563;
  --bfds-success-active: #126a51;
  --bfds-success-09: rgba(29, 172, 125, 0.9);
  --bfds-success-08: rgba(29, 172, 125, 0.8);
  --bfds-success-06: rgba(29, 172, 125, 0.6);
  --bfds-success-04: rgba(29, 172, 125, 0.4);
  --bfds-success-02: rgba(29, 172, 125, 0.2);
  --bfds-success-02-solid: #c9e6df;
  --bfds-success-01: rgba(29, 172, 125, 0.1);

  --bfds-warning: #db9725;
  --bfds-warning-hover: #bf7520;
  --bfds-warning-active: #a2551b;
  --bfds-warning-09: rgba(219, 151, 37, 0.9);
  --bfds-warning-08: rgba(219, 151, 37, 0.8);
  --bfds-warning-06: rgba(219, 151, 37, 0.6);
  --bfds-warning-04: rgba(219, 151, 37, 0.4);
  --bfds-warning-02: rgba(219, 151, 37, 0.2);
  --bfds-warning-02-solid: #efe2cd;
  --bfds-warning-01: rgba(219, 151, 37, 0.1);

  --bfds-info: #5ab8c3;
  --bfds-info-hover: #479ba5;
  --bfds-info-active: #357b83;
  --bfds-info-09: rgba(90, 184, 195, 0.9);
  --bfds-info-08: rgba(90, 184, 195, 0.8);
  --bfds-info-06: rgba(90, 184, 195, 0.6);
  --bfds-info-04: rgba(90, 184, 195, 0.4);
  --bfds-info-02: rgba(90, 184, 195, 0.2);
  --bfds-info-02-solid: #d5e9ed;
  --bfds-info-01: rgba(90, 184, 195, 0.1);

  --bfds-focus: #5ab8c3;
  --bfds-focus-outline: rgba(90, 184, 195, 0.35);
  --bfds-shadow-color: rgba(12, 34, 48, 0.58);
  --bfds-shadow-sm: 0 2px 10px rgba(12, 34, 48, 0.22), 0 1px 6px rgba(56, 167, 222, 0.1);
  --bfds-shadow-md: 0 12px 28px rgba(12, 34, 48, 0.28), 0 6px 18px rgba(56, 167, 222, 0.12);
  --bfds-shadow-lg: 0 24px 58px rgba(12, 34, 48, 0.32), 0 14px 34px rgba(56, 167, 222, 0.14);
}

.bfds-theme--error {
  --bfds-background: #ef4444;
  --bfds-background-hover: #dc3c3c;
  --bfds-background-active: #b82f2f;
  --bfds-background-09: rgba(239, 68, 68, 0.9);
  --bfds-background-08: rgba(239, 68, 68, 0.8);
  --bfds-background-06: rgba(239, 68, 68, 0.6);
  --bfds-background-04: rgba(239, 68, 68, 0.4);
  --bfds-background-02: rgba(239, 68, 68, 0.2);
  --bfds-background-02-solid: #fee2e2;
  --bfds-background-01: rgba(239, 68, 68, 0.1);
  --bfds-background-005: rgba(239, 68, 68, 0.05);
  --bfds-background-solid-0: #ef4444;
  --bfds-background-solid-1: #f36060;
  --bfds-background-solid-2: #f67878;
  --bfds-background-solid-3: #f99292;
  --bfds-background-solid-4: #fca9a9;
  --bfds-background-solid-5: #fdc0c0;
  --bfds-background-solid-6: #fed4d4;
  --bfds-background-solid-7: #ffe3e3;
  --bfds-background-solid-8: #ffeded;
  --bfds-background-solid-9: #fff6f6;

  --bfds-text: #fff7f8;
  --bfds-text-secondary: #ffd2d6;
  --bfds-text-muted: #ff9aa1;
  --bfds-text-09: rgba(255, 247, 248, 0.9);
  --bfds-text-08: rgba(255, 247, 248, 0.8);
  --bfds-text-06: rgba(255, 247, 248, 0.6);
  --bfds-text-04: rgba(255, 247, 248, 0.4);
  --bfds-text-02: rgba(255, 247, 248, 0.2);
  --bfds-text-02-solid: #f7807f;
  --bfds-text-01: rgba(255, 247, 248, 0.1);
  --bfds-text-005: rgba(255, 247, 248, 0.05);
  --bfds-text-005-solid: #f46867;
  --bfds-secondary-content: #2b0707;

  --bfds-primary: #2b0707;
  --bfds-text-highlight: var(--bfds-primary);
  --bfds-text-highlight-09: var(--bfds-primary-09);
  --bfds-text-highlight-08: var(--bfds-primary-08);
  --bfds-text-highlight-06: var(--bfds-primary-06);
  --bfds-text-highlight-04: var(--bfds-primary-04);
  --bfds-text-highlight-02: var(--bfds-primary-02);
  --bfds-text-highlight-01: var(--bfds-primary-01);
  --bfds-primary-hover: #1d0505;
  --bfds-primary-active: #120303;
  --bfds-primary-09: rgba(43, 7, 7, 0.9);
  --bfds-primary-08: rgba(43, 7, 7, 0.8);
  --bfds-primary-06: rgba(43, 7, 7, 0.6);
  --bfds-primary-04: rgba(43, 7, 7, 0.4);
  --bfds-primary-02: rgba(43, 7, 7, 0.2);
  --bfds-primary-02-solid: #cb4f4e;
  --bfds-primary-01: rgba(43, 7, 7, 0.1);

  --bfds-secondary: #fee2e2;
  --bfds-secondary-hover: #fecaca;
  --bfds-secondary-active: #fca5a5;
  --bfds-secondary-09: rgba(254, 226, 226, 0.9);
  --bfds-secondary-08: rgba(254, 226, 226, 0.8);
  --bfds-secondary-06: rgba(254, 226, 226, 0.6);
  --bfds-secondary-04: rgba(254, 226, 226, 0.4);
  --bfds-secondary-02: rgba(254, 226, 226, 0.2);
  --bfds-secondary-02-solid: #f67c7b;
  --bfds-secondary-01: rgba(254, 226, 226, 0.1);
  --bfds-secondary-005: rgba(254, 226, 226, 0.05);

  --bfds-border: rgba(43, 7, 7, 0.4);
  --bfds-border-subtle: rgba(43, 7, 7, 0.14);
  --bfds-border-hover: rgba(43, 7, 7, 0.55);

  --bfds-error: #7f1010;
  --bfds-error-hover: #660c0c;
  --bfds-error-active: #4a0707;
  --bfds-error-09: rgba(127, 16, 16, 0.9);
  --bfds-error-08: rgba(127, 16, 16, 0.8);
  --bfds-error-06: rgba(127, 16, 16, 0.6);
  --bfds-error-04: rgba(127, 16, 16, 0.4);
  --bfds-error-02: rgba(127, 16, 16, 0.2);
  --bfds-error-02-solid: #dc5050;
  --bfds-error-01: rgba(127, 16, 16, 0.1);

  --bfds-focus: #2b0707;
  --bfds-focus-outline: rgba(43, 7, 7, 0.35);

  --bfds-success-02-solid: #d27568;
  --bfds-warning-02-solid: #f46d55;
  --bfds-info-02-solid: #d26980;
}

.bfds-theme--success {
  --bfds-background: #10b981;
  --bfds-background-hover: #0fa872;
  --bfds-background-active: #0d9364;
  --bfds-background-09: rgba(16, 185, 129, 0.9);
  --bfds-background-08: rgba(16, 185, 129, 0.8);
  --bfds-background-06: rgba(16, 185, 129, 0.6);
  --bfds-background-04: rgba(16, 185, 129, 0.4);
  --bfds-background-02: rgba(16, 185, 129, 0.2);
  --bfds-background-02-solid: #d7f6eb;
  --bfds-background-01: rgba(16, 185, 129, 0.1);
  --bfds-background-005: rgba(16, 185, 129, 0.05);
  --bfds-background-solid-0: #10b981;
  --bfds-background-solid-1: #30c698;
  --bfds-background-solid-2: #51d3ac;
  --bfds-background-solid-3: #71dfbf;
  --bfds-background-solid-4: #8fe9ce;
  --bfds-background-solid-5: #aaf1da;
  --bfds-background-solid-6: #c2f6e5;
  --bfds-background-solid-7: #d8fbed;
  --bfds-background-solid-8: #e9fef4;
  --bfds-background-solid-9: #f4fffa;

  --bfds-text: #052616;
  --bfds-text-secondary: #0b4b31;
  --bfds-text-muted: #0e6342;
  --bfds-text-09: rgba(5, 38, 22, 0.9);
  --bfds-text-08: rgba(5, 38, 22, 0.8);
  --bfds-text-06: rgba(5, 38, 22, 0.6);
  --bfds-text-04: rgba(5, 38, 22, 0.4);
  --bfds-text-02: rgba(5, 38, 22, 0.2);
  --bfds-text-02-solid: #26a67e;
  --bfds-text-01: rgba(5, 38, 22, 0.1);
  --bfds-text-005: rgba(5, 38, 22, 0.05);
  --bfds-text-005-solid: #2fbd91;
  --bfds-secondary-content: #043525;

  --bfds-primary: #043525;
  --bfds-text-highlight: var(--bfds-primary);
  --bfds-text-highlight-09: var(--bfds-primary-09);
  --bfds-text-highlight-08: var(--bfds-primary-08);
  --bfds-text-highlight-06: var(--bfds-primary-06);
  --bfds-text-highlight-04: var(--bfds-primary-04);
  --bfds-text-highlight-02: var(--bfds-primary-02);
  --bfds-text-highlight-01: var(--bfds-primary-01);
  --bfds-primary-hover: #03291d;
  --bfds-primary-active: #021f15;
  --bfds-primary-09: rgba(4, 53, 37, 0.9);
  --bfds-primary-08: rgba(4, 53, 37, 0.8);
  --bfds-primary-06: rgba(4, 53, 37, 0.6);
  --bfds-primary-04: rgba(4, 53, 37, 0.4);
  --bfds-primary-02: rgba(4, 53, 37, 0.2);
  --bfds-primary-02-solid: #26a881;
  --bfds-primary-01: rgba(4, 53, 37, 0.1);

  --bfds-secondary: #ecfdf5;
  --bfds-secondary-hover: #d1fae5;
  --bfds-secondary-active: #a7f3d0;
  --bfds-secondary-09: rgba(236, 253, 245, 0.9);
  --bfds-secondary-08: rgba(236, 253, 245, 0.8);
  --bfds-secondary-06: rgba(236, 253, 245, 0.6);
  --bfds-secondary-04: rgba(236, 253, 245, 0.4);
  --bfds-secondary-02: rgba(236, 253, 245, 0.2);
  --bfds-secondary-02-solid: #61d1aa;
  --bfds-secondary-01: rgba(236, 253, 245, 0.1);
  --bfds-secondary-005: rgba(236, 253, 245, 0.05);

  --bfds-success-02-solid: #2bc393;
  --bfds-warning-02-solid: #68be83;
  --bfds-info-02-solid: #33b7ab;

  --bfds-border: #0a7453;
  --bfds-border-subtle: rgba(4, 53, 37, 0.12);
  --bfds-border-hover: #085f44;

  --bfds-error: #b91c1c;
  --bfds-error-hover: #991111;
  --bfds-error-active: #7a0d0d;
  --bfds-error-09: rgba(185, 28, 28, 0.9);
  --bfds-error-08: rgba(185, 28, 28, 0.8);
  --bfds-error-06: rgba(185, 28, 28, 0.6);
  --bfds-error-04: rgba(185, 28, 28, 0.4);
  --bfds-error-02: rgba(185, 28, 28, 0.2);
  --bfds-error-02-solid: #60a681;
  --bfds-error-01: rgba(185, 28, 28, 0.1);

  --bfds-focus: #043525;
  --bfds-focus-outline: rgba(4, 53, 37, 0.35);
}

.bfds-theme--yellow {
  --bfds-background: #ffd700;
  --bfds-background-hover: #f5c400;
  --bfds-background-active: #e0b000;
  --bfds-background-09: rgba(255, 215, 0, 0.9);
  --bfds-background-08: rgba(255, 215, 0, 0.8);
  --bfds-background-06: rgba(255, 215, 0, 0.6);
  --bfds-background-04: rgba(255, 215, 0, 0.4);
  --bfds-background-02: rgba(255, 215, 0, 0.2);
  --bfds-background-02-solid: #f0c200;
  --bfds-background-01: rgba(255, 215, 0, 0.1);
  --bfds-background-005: rgba(255, 215, 0, 0.05);
  --bfds-background-solid-0: #ffd700;
  --bfds-background-solid-1: #f5c400;
  --bfds-background-solid-2: #f0c200;
  --bfds-background-solid-3: #e0b000;
  --bfds-background-solid-4: #d6a500;
  --bfds-background-solid-5: #cc9b00;
  --bfds-background-solid-6: #c39000;
  --bfds-background-solid-7: #b98500;
  --bfds-background-solid-8: #af7b00;
  --bfds-background-solid-9: #a57000;
  --bfds-track: var(--bfds-background-solid-3);
  --bfds-track-subtle: var(--bfds-background-solid-2);
  --bfds-track-error: var(--bfds-error-02);
  --bfds-track-success: var(--bfds-success-02);
  --bfds-track-warning: var(--bfds-warning-02);

  --bfds-text: #1c1400;
  --bfds-text-secondary: #3d3000;
  --bfds-text-muted: #6c5800;
  --bfds-text-09: rgba(28, 20, 0, 0.9);
  --bfds-text-08: rgba(28, 20, 0, 0.8);
  --bfds-text-06: rgba(28, 20, 0, 0.6);
  --bfds-text-04: rgba(28, 20, 0, 0.4);
  --bfds-text-02: rgba(28, 20, 0, 0.2);
  --bfds-text-02-solid: #c9a009;
  --bfds-text-01: rgba(28, 20, 0, 0.1);
  --bfds-text-005: rgba(28, 20, 0, 0.05);
  --bfds-text-005-solid: #eabb03;

  --bfds-primary: #1a1a1a;
  --bfds-text-highlight: var(--bfds-primary);
  --bfds-text-highlight-09: rgba(26, 26, 26, 0.9);
  --bfds-text-highlight-08: rgba(26, 26, 26, 0.8);
  --bfds-text-highlight-06: rgba(26, 26, 26, 0.6);
  --bfds-text-highlight-04: rgba(26, 26, 26, 0.4);
  --bfds-text-highlight-02: rgba(26, 26, 26, 0.2);
  --bfds-text-highlight-01: rgba(26, 26, 26, 0.1);
  --bfds-primary-hover: #070707;
  --bfds-primary-active: #000000;
  --bfds-primary-09: rgba(26, 26, 26, 0.9);
  --bfds-primary-08: rgba(26, 26, 26, 0.8);
  --bfds-primary-06: rgba(26, 26, 26, 0.6);
  --bfds-primary-04: rgba(26, 26, 26, 0.4);
  --bfds-primary-02: rgba(26, 26, 26, 0.2);
  --bfds-primary-02-solid: #c9a117;
  --bfds-primary-01: rgba(26, 26, 26, 0.1);
  --bfds-secondary: #8f6f00;
  --bfds-secondary-hover: #745700;
  --bfds-secondary-active: #594100;
  --bfds-secondary-09: rgba(143, 111, 0, 0.9);
  --bfds-secondary-08: rgba(143, 111, 0, 0.8);
  --bfds-secondary-06: rgba(143, 111, 0, 0.6);
  --bfds-secondary-04: rgba(143, 111, 0, 0.4);
  --bfds-secondary-02: rgba(143, 111, 0, 0.2);
  --bfds-secondary-02-solid: #e0b205;
  --bfds-secondary-01: rgba(143, 111, 0, 0.1);
  --bfds-secondary-005: rgba(143, 111, 0, 0.05);
  --bfds-secondary-content: #ffd700;

  --bfds-border: rgba(26, 26, 26, 0.35);
  --bfds-border-subtle: rgba(26, 26, 26, 0.12);
  --bfds-border-hover: rgba(26, 26, 26, 0.5);

  --bfds-error: #b91c1c;
  --bfds-error-hover: #991111;
  --bfds-error-active: #7a0d0d;
  --bfds-error-09: rgba(185, 28, 28, 0.9);
  --bfds-error-08: rgba(185, 28, 28, 0.8);
  --bfds-error-06: rgba(185, 28, 28, 0.6);
  --bfds-error-04: rgba(185, 28, 28, 0.4);
  --bfds-error-02: rgba(185, 28, 28, 0.2);
  --bfds-error-02-solid: #eaa412;
  --bfds-error-01: rgba(185, 28, 28, 0.1);

  --bfds-success: #076745;
  --bfds-success-hover: #055137;
  --bfds-success-active: #04392a;
  --bfds-success-09: rgba(7, 103, 69, 0.9);
  --bfds-success-08: rgba(7, 103, 69, 0.8);
  --bfds-success-06: rgba(7, 103, 69, 0.6);
  --bfds-success-04: rgba(7, 103, 69, 0.4);
  --bfds-success-02: rgba(7, 103, 69, 0.2);
  --bfds-success-02-solid: #cbb123;
  --bfds-success-01: rgba(7, 103, 69, 0.1);

  --bfds-warning: #b45309;
  --bfds-warning-hover: #8a4107;
  --bfds-warning-active: #6b3205;
  --bfds-warning-09: rgba(180, 83, 9, 0.9);
  --bfds-warning-08: rgba(180, 83, 9, 0.8);
  --bfds-warning-06: rgba(180, 83, 9, 0.6);
  --bfds-warning-04: rgba(180, 83, 9, 0.4);
  --bfds-warning-02: rgba(180, 83, 9, 0.2);
  --bfds-warning-02-solid: #e9ad08;
  --bfds-warning-01: rgba(180, 83, 9, 0.1);

  --bfds-info: #1d4ed8;
  --bfds-info-hover: #1439a4;
  --bfds-info-active: #0e2a79;
  --bfds-info-09: rgba(29, 78, 216, 0.9);
  --bfds-info-08: rgba(29, 78, 216, 0.8);
  --bfds-info-06: rgba(29, 78, 216, 0.6);
  --bfds-info-04: rgba(29, 78, 216, 0.4);
  --bfds-info-02: rgba(29, 78, 216, 0.2);
  --bfds-info-02-solid: #ccad52;
  --bfds-info-01: rgba(29, 78, 216, 0.1);

  --bfds-focus: #1d4ed8;
  --bfds-focus-outline: rgba(29, 78, 216, 0.3);
  --bfds-primary-content: var(--bfds-background);
  --bfds-primary-content-04: var(--bfds-background-04);
}

.bfds-theme--yellow .bfds-button--primary {
  color: var(--bfds-primary-content) !important;
}

#root {
  height: 100dvh;
  overflow-y: auto;
}

.app {
  height: 100%;
  color: var(--bfds-text);
}

body {
  font-family: var(--fontFamily);
  overflow: hidden;
  margin: 0;
  background-color: var(--bfds-background-hover);
  height: 100vh;
  color: var(--bfds-text);
}

.bfds-text-highlight {
  display: inline;
  align-self: flex-start;
  max-width: 100%;
  width: fit-content;
  color: var(--bfds-text-highlight);
  background: transparent;
  padding-inline: 0;
  text-shadow: 0 0 28px var(--bfds-primary-02);
}

.bfds-theme--light .bfds-text-highlight,
.bfds-theme--vidpresso-light .bfds-text-highlight {
  color: var(--bfds-text);
  background-image: var(--bfds-text-highlight-brush);
  background-position: 0 130%;
  background-repeat: no-repeat;
  background-size: 100% 0.96em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding-inline: 0.04em;
  text-shadow: none;
}

a:not(.bfds-button),
a:not(.bfds-button):visited {
  color: var(--bfds-text-highlight);
  text-decoration: none;
  cursor: pointer;
}

.bfds-theme--light a:not(.bfds-button):not(.blog-card-link),
.bfds-theme--light a:not(.bfds-button):not(.blog-card-link):visited,
.bfds-theme--vidpresso-light a:not(.bfds-button):not(.blog-card-link),
.bfds-theme--vidpresso-light
  a:not(.bfds-button):not(.blog-card-link):visited {
  color: var(--bfds-text);
  background-image: none;
  padding-inline: 0;
  text-decoration: underline;
  text-decoration-color: var(--bfds-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.14em;
}

a:not(.bfds-button):hover,
a:not(.bfds-button):active {
  text-decoration: underline;
}

hr {
  border: 1px solid var(--bfds-border);
  width: 100%;
}

pre, code {
  font-family: var(--fontFamilyMono);
}

#tooltip-root,
#popover-root,
#modal-root {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}
.portalRoot.active {
  pointer-events: all !important;
}
#tooltip-root {
  z-index: 1001;
}
#popover-root {
  z-index: 10000;
}
#modal-root {
  z-index: 10001;
}
#modal-root > * {
  pointer-events: auto;
}
#toast-root {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
}
.bfds-tooltip__trigger {
  position: relative;
  display: inherit;
  width: max-content;
}
.bfds-tooltip {
  position: fixed;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bfds-always-dark-background-solid-2);
  color: var(--bfds-always-dark-text);
  border: 1px solid var(--bfds-always-dark-border);
  padding: 10px 12px;
  border-radius: calc(12px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  font-size: 12px;
  box-shadow: 0 1px 10px 1px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 999;
  width: max-content;
  max-width: min(320px, 90vw);
  word-break: break-word;
  line-height: 1.3;
  opacity: 0;
  transition: opacity 150ms ease, transform 150ms ease;
  will-change: opacity, transform;
}

.bfds-tooltip--enter,
.bfds-tooltip--exit {
  pointer-events: none;
}

.bfds-tooltip--entered {
  opacity: 1;
}

/* Animation */
.bfds-animate-fadeIn {
  animation: fadeIn 0.3s ease backwards;
}
.delay-100 {
  animation-delay: 100ms;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mono {
  font-family: var(--fontFamilyMono);
}
.bold {
  font-weight: 600;
}
.thin {
  font-weight: 100;
  opacity: 0.5
}
.center {
  text-align: center;
}
.alert {
  color: var(--alert);
}

.clickable {
  cursor: pointer;
}
.hover,
.ho .ver {
  opacity: 0;
  transition: 200ms opacity ease;
}
.hover:hover,
.ho:hover .ver {
  opacity: 1;
}

/* Background utility classes - opaque levels */
.bfds-bg-level-0 { background-color: var(--bfds-background-solid-0) !important; }
.bfds-bg-level-1 { background-color: var(--bfds-background-solid-1) !important; }
.bfds-bg-level-2 { background-color: var(--bfds-background-solid-2) !important; }
.bfds-bg-level-3 { background-color: var(--bfds-background-solid-3) !important; }
.bfds-bg-level-4 { background-color: var(--bfds-background-solid-4) !important; }
.bfds-bg-level-5 { background-color: var(--bfds-background-solid-5) !important; }
.bfds-bg-level-6 { background-color: var(--bfds-background-solid-6) !important; }
.bfds-bg-level-7 { background-color: var(--bfds-background-solid-7) !important; }
.bfds-bg-level-8 { background-color: var(--bfds-background-solid-8) !important; }
.bfds-bg-level-9 { background-color: var(--bfds-background-solid-9) !important; }

/* Layout primitives */
.bfds-stack,
.bfds-inline,
.bfds-grid,
.bfds-split,
.bfds-split__main,
.bfds-split__aside {
  box-sizing: border-box;
  min-width: 0;
}

/* Flexbox */
.flex1 {
  flex: 1;
}
.flexColumn {
  display: flex;
  flex-direction: column;
}
.flexRow {
  display: flex;
  flex-direction: row;
}
.flexRowReverse {
  display: flex;
  flex-direction: row-reverse;
}
.flexCenter {
  align-items: center;
  justify-content: center;
}
.flexWrap {
  flex-wrap: wrap;
}
.gapSmall {
  gap: 4px;
}
.gapMedium {
  gap: 8px;
}
.gapLarge {
  gap: 16px;
}
.gapXLarge {
  gap: 3rem;
}
.spaceBetween {
  justify-content: space-between;
}
.alignItemsCenter {
  align-items: center;
}
.alignItemsFlexStart {
  align-items: flex-start;
}
.justifyContentCenter {
  justify-content: center;
}
.selfAlignCenter {
  align-self: center
}
.selfAlignEnd {
  align-self: end;
}

.overflowHidden {
  overflow: hidden;
}
.scrollable {
  overflow-y: auto;
}
.scroll {
  overflow-y: auto;
}
.height100 {
  height: 100%;
}
.maxWidth40rem {
  max-width: 40rem;
}
.textCenter {
  text-align: center;
}

/* BfDsPgDualPane Layout */
.pg-dual-pane {
  display: flex;
  height: 100%;
  overflow: hidden;
  background: var(--bfds-background-hover);
  /* CSS variables that can be overridden by children */
  --pg-left-panel-padding-top: var(--header-height);
  --pg-right-panel-padding-top: var(--header-height);
}

.pg-dual-pane__left {
  height: 100%;
  background: var(--bfds-background);
  border-right: 1px solid var(--bfds-border);
  padding-top: var(--pg-left-panel-padding-top);
  box-sizing: border-box;
}

.pg-dual-pane__right {
  height: 100%;
  background: var(--bfds-background);
  padding-top: var(--pg-right-panel-padding-top);
  box-sizing: border-box;
}

.pg-dual-pane__left--scrollable {
  overflow-y: auto;
}

.pg-dual-pane__right--scrollable {
  overflow-y: auto;
}


/* Responsive styles */
.mobile-show {
  display: none;
}
.mobile-show-opacity {
  opacity: 0;
}

.mobile-hide {
  display: initial;
}
.mobile-hide-opacity {
  opacity: 1;
}

.row-column {
  display: flex;
  flex-direction: row;
}
.rowReverse-column {
  display: flex;
  flex-direction: row-reverse;
}

.top-center {
  align-items: flex-start;
}

.start-center {
  justify-content: flex-start;
}

@media (max-width: 1024px) {
  :root {
    --header-height: 42px;
  }
  
  .mobile-show {
    display: initial;
  }
  .mobile-show-opacity {
    opacity: 1;
  }

  .mobile-hide {
    display: none!important;
  }
  .mobile-hide-opacity {
    opacity: 0;
  }

  .gapXLarge {
    gap: 2rem;
  }

  .row-column {
    flex-direction: column;
  }
  .rowReverse-column {
    flex-direction: column;
  }

  .bfds-inline--collapse-tablet {
    flex-direction: column !important;
  }

  .bfds-grid--collapse-tablet,
  .bfds-split--collapse-tablet {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .top-center {
    align-items: center;
  }

  .start-center {
    justify-content: center;
  }
}


.textIcon {
  font-family: var(--marketingFontFamily);
}

@media (max-width: 768px) {
  .bfds-inline--collapse-mobile {
    flex-direction: column !important;
  }

  .bfds-grid--collapse-mobile,
  .bfds-split--collapse-mobile {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* List */

.bfds-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bfds-list-header {
  margin: 0;
  padding: 18px 18px 12px;
  background: var(--bfds-secondary-02);
  font-size: 12px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bfds-text-muted);
}

.bfds-list--compact .bfds-list-header {
  padding: 12px 14px 8px;
}

.bfds-list-item {
  display: block;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
}

.bfds-list-item--variant-default {
}

.bfds-list-item--variant-secondary {
}

.bfds-list-item--corner-round {
  border-radius: calc(14px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  overflow: hidden;
}

.bfds-list-separator {
  display: block;
  width: 100%;
  margin: 0;
  padding: 6px 16px;
  box-sizing: border-box;
  list-style: none;
}

.bfds-list--compact .bfds-list-separator {
  padding: 4px 12px;
}

.bfds-list-separator__line {
  display: block;
  width: 100%;
  height: 1px;
  background: color-mix(in srgb, var(--bfds-border) 78%, transparent);
}

/* For non-expandable items without button - apply padding directly to li */
.bfds-list-item:not(.bfds-list-item--expandable):not(.bfds-list-item--clickable) {
  padding: 12px 16px;
  color: var(--bfds-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  cursor: default;
}

.bfds-list--compact .bfds-list-item:not(.bfds-list-item--expandable):not(.bfds-list-item--clickable) {
  padding: 8px 12px;
}

/* For active non-expandable items without button */
.bfds-list-item--active:not(.bfds-list-item--variant-secondary):not(.bfds-list-item--expandable):not(.bfds-list-item--clickable) {
  --bfds-text-secondary: var(--bfds-primary-content);
  --bfds-text-muted: var(--bfds-primary-content);
  background-color: var(--bfds-primary);
  color: var(--bfds-primary-content);
  font-weight: 500;
}

.bfds-list-item--variant-secondary.bfds-list-item--active:not(.bfds-list-item--expandable):not(.bfds-list-item--clickable) {
  background-color: var(--bfds-background-solid-3);
  color: var(--bfds-text);
}

/* For disabled non-expandable items without button */
.bfds-list-item--disabled:not(.bfds-list-item--expandable):not(.bfds-list-item--clickable) {
  color: var(--bfds-text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Expandable List Items */

.bfds-list-item--expandable {
  padding: 0;
  position: relative;
}

.bfds-list-item__button {
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin: 0;
  background: none;
  border: none;
  color: var(--bfds-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  text-decoration: none !important;
}

.bfds-list-item__button--corner-round {
  border-radius: calc(14px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
}

.bfds-list-item__button--variant-default {
}

.bfds-list-item__button--variant-secondary {
}

.bfds-list--compact .bfds-list-item__button {
  padding: 8px 12px;
}

a.bfds-list-item__button,
a.bfds-list-item__button:visited {
  color: var(--bfds-text);
}

.bfds-list-item__button:hover:not(:disabled) {
  background-color: var(--bfds-primary-01);
}

.bfds-list-item__button--variant-secondary:hover:not(:disabled) {
  background-color: var(--bfds-background-solid-2);
}

.bfds-list-item__button--hover-flat:hover:not(:disabled) {
  background-color: var(--bfds-background-hover);
}

.bfds-list-item__button:disabled {
  color: var(--bfds-text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

.bfds-list-item--active:not(.bfds-list-item--variant-secondary):not(.bfds-status-row)
  .bfds-list-item__button {
  --bfds-text-secondary: var(--bfds-primary-content);
  --bfds-text-muted: var(--bfds-primary-content);
  background-color: var(--bfds-primary);
  color: var(--bfds-primary-content);
  font-weight: 500;
}

.bfds-list-item--variant-secondary.bfds-list-item--active .bfds-list-item__button {
  background-color: var(--bfds-background-solid-3);
  color: var(--bfds-text);
}

.bfds-list-item__button--active:not(.bfds-list-item__button--variant-secondary) {
  --bfds-text-secondary: var(--bfds-primary-content);
  --bfds-text-muted: var(--bfds-primary-content);
  background-color: var(--bfds-primary);
  color: var(--bfds-primary-content);
  font-weight: 500;
}

.bfds-list-item__button--variant-secondary.bfds-list-item__button--active {
  background-color: var(--bfds-background-solid-3);
  color: var(--bfds-text);
}

.bfds-list-item__button:focus {
  outline: none;
}

.bfds-list-item--active .bfds-list-item__button:hover:not(:disabled) {
  background-color: var(--bfds-primary-09);
  color: var(--bfds-primary-content);
}

.bfds-list-item--variant-secondary.bfds-list-item--active
  .bfds-list-item__button:hover:not(:disabled) {
  background-color: var(--bfds-background-solid-3);
  color: var(--bfds-text);
}

.bfds-list-item__button--active:hover:not(:disabled) {
  background-color: var(--bfds-primary-09);
  color: var(--bfds-primary-content);
}

.bfds-list-item__button--variant-secondary.bfds-list-item__button--active:hover:not(:disabled) {
  background-color: var(--bfds-background-solid-3);
  color: var(--bfds-text);
}

.bfds-list-item__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.bfds-list-item__main {
  flex: 1;
}

.bfds-list-item__icon {
  flex-shrink: 0;
  margin-left: 8px;
  display: flex;
  align-items: center;
}

.bfds-list-item__expanded-content {
  margin-bottom: 8px;
  background-color: var(--bfds-background-hover);
  overflow: hidden;
  animation: bfds-expand 0.2s ease-out;
  color: var(--bfds-text);
  /* Prevent expanded content from inheriting hover styles */
  pointer-events: auto;
}

@keyframes bfds-expand {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

.bfds-list-item__expand-button {
  position: absolute;
  top: 10px;
  right: 12px;
  background: var(--bfds-background);
  border: none;
  color: var(--bfds-text);
  cursor: pointer;
  padding: 4px;
  border-radius: calc(4px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bfds-list-item__expand-button:hover:not(:disabled) {
  background-color: var(--bfds-primary);
  color: var(--bfds-primary-content);
}

.bfds-list-item__expand-button--active {
  background-color: var(--bfds-primary);
  color: var(--bfds-primary-content);
}

.bfds-list-item__expand-button--active:hover:not(:disabled) {
  background-color: var(--bfds-primary-09);
  color: var(--bfds-primary-content);
}

.bfds-list-item__expand-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* When there's both onClick and expandContents, add padding to main button */
.bfds-list-item--expandable.bfds-list-item--has-separate-expand .bfds-list-item__button {
  padding-right: 48px;
}

.bfds-list--compact .bfds-list-item__expand-button {
  top: 6px;
  right: 8px;
}

/* Bulk Selection styles */
.bfds-list-item--selectable {
  display: flex !important;
  align-items: center;
  gap: var(--bfds-spacing-medium, 12px);
}

.bfds-list-item__checkbox {
  flex-shrink: 0;
}

.bfds-list-controls-row {
  padding: 8px 16px;
  border-bottom: 1px solid var(--bfds-border);
}

.bfds-list--compact .bfds-list-controls-row {
  padding: 6px 12px;
}

.bfds-list-header-section:has(+ .bfds-list-bar) {
  margin-bottom: 0.5rem;
}
/* Hide border when followed by a list bar */
.bfds-list-header-section:has(+ .bfds-list-bar) .bfds-list-controls-row {
  border-bottom: none;
}

.bfds-list-select-controls {
  flex-shrink: 0;
}

.bfds-list-bulk-actions {
  flex: 1;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.bfds-list-bulk-actions--hidden {
  opacity: 0;
  pointer-events: none;
}

.bfds-list-bar--selectable {
  display: flex !important;
  align-items: center;
  gap: var(--bfds-spacing-medium, 12px);
}

.bfds-list-bar__checkbox {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 16px 0 16px 16px;
  margin-right: 8px;
}

.bfds-list--compact .bfds-list-bar__checkbox {
  padding: 12px 0 12px 12px;
  margin-right: 6px;
}

/* BfDsListBar styles */
.bfds-list-bar {
  container: bfds-list-bar / inline-size;
  display: flex;
  flex-direction: column;
  background: var(--bfds-background);
  border: 1px solid var(--bfds-border);
  border-radius: calc(8px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  margin-bottom: 8px;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
  color: var(--bfds-text);
  min-width: 0;
}

.bfds-list--compact .bfds-list-bar {
  margin-bottom: 6px;
}

.bfds-list-bar--small .bfds-list-bar__main {
  padding: 12px;
  gap: 12px;
}

.bfds-list-bar--small .bfds-list-bar__actions {
  padding: 0 12px;
  gap: 12px;
}

.bfds-list-bar--small .bfds-list-bar__center {
  padding: 0 12px;
}

.bfds-list-bar--small .bfds-list-bar__right {
  gap: 8px;
}

.bfds-list--compact .bfds-list-bar__main {
  gap: 12px;
  padding: 12px;
}

.bfds-list--compact .bfds-list-bar__actions {
  gap: 12px;
  padding: 0 12px;
}

.bfds-list--compact .bfds-list-bar__center {
  padding: 0 12px;
}

.bfds-list--compact .bfds-list-bar__right {
  gap: 8px;
}

.bfds-list-bar--clickable {
  cursor: pointer;
}

.bfds-list-bar--clickable:hover {
  background: var(--bfds-background-hover);
  border-color: var(--bfds-border-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bfds-list-bar--hover-flat.bfds-list-bar--clickable:hover {
  transform: none;
  box-shadow: none;
}

.bfds-list-bar--active {
  background: var(--bfds-background-selected);
  border-color: var(--bfds-primary);
}

.bfds-list-bar--clickable:focus {
  outline: 2px solid var(--bfds-focus);
  outline-offset: 2px;
}

.bfds-list-bar__entry {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.bfds-list-bar__clickable-area {
  color: inherit !important;
  text-decoration: none !important;
  display: block !important;
  flex: 1 1 0;
  min-width: 0;
}

.bfds-list-bar__clickable-area:focus {
  outline: none !important;
}

.bfds-list-bar__left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.bfds-list-bar--has-center .bfds-list-bar__left {
  flex: 0 1 auto;
  max-width: 50%;
}

.bfds-list-bar__center {
  flex: 1 1 50%;
  box-sizing: border-box;
  min-width: 0;
  padding: 0 16px;
  overflow-wrap: anywhere;
}

.bfds-list-bar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 0;
}

.bfds-list-bar__main,
.bfds-list-bar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  box-sizing: border-box;
  min-width: 0;
}
.bfds-list-bar__main {
  width: 100%;
  padding: 16px;
}

.bfds-list-bar__actions {
  flex: 0 0 auto;
}

.bfds-list-bar__after {
  border-top: 1px solid var(--bfds-border-subtle);
  width: 100%;
  box-sizing: border-box;
}

.bfds-list-bar__metadata {
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 16px 12px;
  color: var(--bfds-text-secondary);
  font-size: 0.75rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

@container bfds-list-bar (max-width: 520px) {
  .bfds-list-bar__entry {
    align-items: flex-start;
  }

  .bfds-list-bar__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 4px;
  }

  .bfds-list-bar__left,
  .bfds-list-bar--has-center .bfds-list-bar__left {
    grid-column: 1;
    grid-row: 1;
    max-width: 100%;
  }

  .bfds-list-bar__right {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
    max-width: 100%;
  }

  .bfds-list-bar__center {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 0;
  }

  .bfds-list-bar__actions {
    padding-top: 16px;
  }

  .bfds-list-bar--small .bfds-list-bar__actions,
  .bfds-list--compact .bfds-list-bar__actions {
    padding-top: 12px;
  }
}

@container bfds-list-bar (max-width: 340px) {
  .bfds-list-bar__entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .bfds-list-bar__clickable-area {
    display: contents !important;
  }

  .bfds-list-bar__main {
    display: contents;
    padding: 0;
  }

  .bfds-list-bar__left,
  .bfds-list-bar__right,
  .bfds-list-bar__center,
  .bfds-list-bar__actions,
  .bfds-list-bar__metadata {
    grid-column: 1;
    width: 100%;
    box-sizing: border-box;
  }

  .bfds-list-bar__left {
    grid-row: 1;
    padding: 12px 12px 0;
  }

  .bfds-list-bar__right {
    grid-row: 2;
    justify-self: stretch;
    justify-content: stretch;
    margin-left: 0;
    padding: 8px 12px 0;
  }

  .bfds-list-bar__actions {
    grid-row: 2;
    justify-content: stretch;
    padding: 8px 12px 0;
  }

  .bfds-list-bar--small .bfds-list-bar__actions,
  .bfds-list--compact .bfds-list-bar__actions {
    padding: 8px 12px 0;
  }

  .bfds-list-bar--has-right.bfds-list-bar--has-actions
    .bfds-list-bar__actions {
    grid-row: 3;
  }

  .bfds-list-bar__actions > * {
    flex: 1 1 auto;
    min-width: 0;
  }

  .bfds-list-bar__center {
    grid-row: 3;
    padding: 8px 12px 0;
  }

  .bfds-list-bar--small .bfds-list-bar__center,
  .bfds-list--compact .bfds-list-bar__center {
    padding: 8px 12px 0;
  }

  .bfds-list-bar--has-right.bfds-list-bar--has-actions
    .bfds-list-bar__center {
    grid-row: 4;
  }

  .bfds-list-bar__metadata {
    grid-row: 4;
    padding: 4px 12px 12px;
  }

  .bfds-list-bar--has-right.bfds-list-bar--has-actions
    .bfds-list-bar__metadata {
    grid-row: 5;
  }

  .bfds-list-bar__after {
    grid-column: 1;
    grid-row: 5;
  }

  .bfds-list-bar--has-right.bfds-list-bar--has-actions
    .bfds-list-bar__after {
    grid-row: 6;
  }
}

.bfds-list-section {
  --bfds-list-section-header-background: var(--bfds-background-solid-1);
  --bfds-list-section-header-hover-background: var(--bfds-background-hover);
  --bfds-list-section-header-shadow: none;
  display: grid;
  gap: 0;
  list-style: none;
}

.bfds-list-section__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  margin: 0;
  border: none;
  background: var(--bfds-list-section-header-background);
  box-shadow: var(--bfds-list-section-header-shadow);
  color: var(--bfds-text);
  text-align: left;
}

.bfds-list-section__header--interactive {
  cursor: pointer;
}

.bfds-list-section__header--interactive:hover {
  background: var(--bfds-list-section-header-hover-background);
}

.bfds-list-section__header-button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  color: inherit;
  text-align: inherit;
  z-index: 0;
}

button.bfds-list-section__header-button {
  cursor: pointer;
}

.bfds-list-section__header-button-surface {
  display: block;
  width: 100%;
  height: 100%;
}

button.bfds-list-section__header-button:hover .bfds-list-section__header-button-surface {
  background: var(--bfds-list-section-header-hover-background);
}

.bfds-list-section--compact .bfds-list-section__header {
  padding: 8px 12px;
}

.bfds-list-section__header-content {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  width: 100%;
  position: relative;
  z-index: 1;
}

.bfds-list-section__header-content--interactive {
  pointer-events: none;
}

.bfds-list-section__header-action {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.bfds-list-section__header-leading {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.bfds-list-section__copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bfds-list-section__title {
  color: var(--bfds-text);
  font-size: 0.96rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.bfds-list-section__count {
  flex-shrink: 0;
}

.bfds-list-section__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.bfds-list-section__toggle {
  display: inline-flex;
  align-items: center;
  color: var(--bfds-text-muted);
}

.bfds-list-section__body {
  overflow: visible;
}

.bfds-list-section--sticky > .bfds-list-section__header {
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(12px);
}

.bfds-status-row .bfds-list-item__button {
  border-radius: 14px;
}

.bfds-status-row.bfds-list-item--active .bfds-list-item__button {
  background-color: var(--bfds-primary-01);
  box-shadow: inset 0 0 0 1px var(--bfds-primary-04);
  color: var(--bfds-text);
  font-weight: 400;
}

.bfds-status-row.bfds-list-item--active .bfds-list-item__button:hover:not(:disabled) {
  background-color: var(--bfds-primary-02);
  color: var(--bfds-text);
}

.bfds-status-row__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.bfds-status-row__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bfds-status-row__leading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bfds-status-row__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.bfds-status-row__title {
  color: var(--bfds-text);
  font-size: 0.96rem;
  letter-spacing: -0.02em;
}

.bfds-status-row.bfds-list-item--active .bfds-status-row__title {
  color: var(--bfds-text);
}

.bfds-status-row__subtitle {
  color: var(--bfds-text-muted);
  font-size: 0.82rem;
}

.bfds-status-row__right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.bfds-status-row--compact .bfds-status-row__content {
  gap: 10px;
}

/* Icon */

.bfds-icon {
  display: inline-block;
  flex-shrink: 0;
  fill: currentColor;
}

.bfds-icon--xsmall {
  width: 14px;
  height: 14px;
}

.bfds-icon--small {
  width: 14px;
  height: 14px;
}

.bfds-icon--medium {
  width: 16px;
  height: 16px;
}

.bfds-icon--large {
  width: 24px;
  height: 24px;
}

.bfds-icon--xlarge {
  width: 32px;
  height: 32px;
}

/* Button */

.bfds-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  position: relative;
  border-radius: calc(6px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  outline: none;
  border: 1px solid;
  box-sizing: border-box;
}

.bfds-button--justify-center {
  justify-content: center;
  text-align: center;
}

.bfds-button--justify-start {
  justify-content: flex-start;
  text-align: left;
}

.bfds-button--justify-end {
  justify-content: flex-end;
  text-align: right;
}

.bfds-button.selected::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: calc(100% - 8px);
  height: 3px;
  border-radius: calc(4px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  background: currentColor;
}

.bfds-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bfds-button:focus-visible:not(.bfds-button--listItem):not(
    .bfds-button--listItemDestructive
  ) {
  outline: 2px solid var(--bfds-primary);
  outline-offset: 2px;
}

/* Size variants */
.bfds-button--tiny {
  padding: 4px 10px;
  font-size: 11px;
  min-height: 27px;
}

.bfds-button--small {
  padding: 6px 12px;
  font-size: 12px;
  min-height: 32px;
}

.bfds-button--medium {
  padding: 8px 16px;
  font-size: 14px;
  min-height: 39px;
}

.bfds-button--large {
  padding: 12px 20px;
  font-size: 16px;
  min-height: 50px;
}

.bfds-button--icon-left.bfds-button--tiny {
  padding-left: 8px;
}

.bfds-button--icon-right.bfds-button--tiny {
  padding-right: 8px;
}

.bfds-button--icon-left.bfds-button--small {
  padding-left: 10px;
}

.bfds-button--icon-right.bfds-button--small {
  padding-right: 10px;
}

.bfds-button--icon-left.bfds-button--medium {
  padding-left: 14px;
}

.bfds-button--icon-right.bfds-button--medium {
  padding-right: 14px;
}

.bfds-button--icon-left.bfds-button--large {
  padding-left: 18px;
}

.bfds-button--icon-right.bfds-button--large {
  padding-right: 18px;
}

/* Primary variant */
.bfds-button--primary {
  background-color: var(--bfds-primary);
  border-color: var(--bfds-primary);
}

.bfds-button--primary:hover:not(:disabled) {
  background-color: var(--bfds-primary-hover);
  border-color: var(--bfds-primary-hover);
}

.bfds-button--primary:active:not(:disabled) {
  background-color: var(--bfds-primary-active);
  border-color: var(--bfds-primary-active);
}

/* Secondary variant */
.bfds-button--secondary {
  background-color: var(--bfds-secondary);
  color: var(--bfds-secondary-content, var(--bfds-text));
  border-color: var(--bfds-secondary);
}

.bfds-button--secondary:hover:not(:disabled) {
  background-color: var(--bfds-secondary-hover);
  border-color: var(--bfds-secondary-hover);
}

.bfds-button--secondary:active:not(:disabled) {
  background-color: var(--bfds-secondary-active);
  border-color: var(--bfds-secondary-active);
}

.bfds-button--always-dark-primary {
  color: var(--bfds-always-dark-background) !important;
  background-color: var(--bfds-always-dark-primary);
  border-color: var(--bfds-always-dark-primary);
}

.bfds-button--always-dark-primary:hover:not(:disabled) {
  background-color: var(--bfds-always-dark-primary-hover);
  border-color: var(--bfds-always-dark-primary-hover);
}

.bfds-button--always-dark-primary:active:not(:disabled) {
  background-color: var(--bfds-always-dark-primary-active);
  border-color: var(--bfds-always-dark-primary-active);
}

.bfds-button--always-dark-secondary {
  color: var(--bfds-always-dark-text);
  background-color: var(--bfds-always-dark-secondary);
  border-color: var(--bfds-always-dark-secondary);
}

.bfds-button--always-dark-secondary:hover:not(:disabled) {
  background-color: var(--bfds-always-dark-secondary-hover);
  border-color: var(--bfds-always-dark-secondary-hover);
}

.bfds-button--always-dark-secondary:active:not(:disabled) {
  background-color: var(--bfds-always-dark-secondary-active);
  border-color: var(--bfds-always-dark-secondary-active);
}

.bfds-button--always-light-primary {
  color: var(--bfds-always-light-text) !important;
  background-color: var(--bfds-always-light-primary);
  border-color: var(--bfds-always-light-primary);
}

.bfds-button--always-light-primary:hover:not(:disabled) {
  background-color: var(--bfds-always-light-primary-hover);
  border-color: var(--bfds-always-light-primary-hover);
}

.bfds-button--always-light-primary:active:not(:disabled) {
  background-color: var(--bfds-always-light-primary-active);
  border-color: var(--bfds-always-light-primary-active);
}

.bfds-button--always-light-secondary {
  color: var(--bfds-always-light-background);
  background-color: var(--bfds-always-light-secondary);
  border-color: var(--bfds-always-light-secondary);
}

.bfds-button--always-light-secondary:hover:not(:disabled) {
  background-color: var(--bfds-always-light-secondary-hover);
  border-color: var(--bfds-always-light-secondary-hover);
}

.bfds-button--always-light-secondary:active:not(:disabled) {
  background-color: var(--bfds-always-light-secondary-active);
  border-color: var(--bfds-always-light-secondary-active);
}

/* Outline variant */
.bfds-button--outline {
  background-color: var(--bfds-background-solid-0);
  color: var(--bfds-text-highlight);
  border-color: var(--bfds-primary);
}

.bfds-button--outline:hover:not(:disabled) {
  background-color: var(--bfds-primary-hover);
  color: var(--bfds-primary-content);
}

.bfds-button--outline:active:not(:disabled) {
  background-color: var(--bfds-primary-active);
  border-color: var(--bfds-primary-active);
}

/* Outline variant */
.bfds-button--outline-secondary {
  background-color: var(--bfds-background-solid-0);
  color: var(--bfds-text);
  border-color: var(--bfds-secondary);
}

.bfds-button--outline-secondary:hover:not(:disabled) {
  background-color: var(--bfds-secondary-hover);
  color: var(--bfds-text);
}

.bfds-theme--vidpresso .bfds-button--outline-secondary:hover:not(:disabled),
.bfds-theme--vidpresso-light .bfds-button--outline-secondary:hover:not(:disabled) {
  background-color: var(--bfds-background-hover);
  border-color: var(--bfds-border-hover);
}

.bfds-button--outline-secondary:active:not(:disabled) {
  background-color: var(--bfds-secondary-active);
  border-color: var(--bfds-secondary-active);
}

/* Ghost variant */
.bfds-button--ghost {
  background-color: transparent;
  color: var(--bfds-text);
  border-color: transparent;
}

.bfds-button--ghost:hover:not(:disabled) {
  background-color: var(--bfds-background-hover);
  border-color: var(--bfds-border-hover);
}

.bfds-button--ghost:active:not(:disabled) {
  background-color: var(--bfds-background-active);
}

/* Ghost primary variant */
.bfds-button--ghost-primary {
  background-color: transparent;
  color: var(--bfds-text-highlight);
  border-color: transparent;
}

.bfds-button--ghost-primary:hover:not(:disabled) {
  background-color: var(--bfds-background-hover);
  color: var(--bfds-text-highlight);
  border-color: var(--bfds-primary-04);
}

.bfds-button--ghost-primary:active:not(:disabled) {
  background-color: var(--bfds-background-active);
}

.bfds-button--naked {
  padding: 0;
  min-height: 0;
  border-color: transparent;
  background: transparent;
  color: var(--bfds-text);
  border-radius: 0;
  corner-shape: square;
}

.bfds-button--naked:hover:not(:disabled) {
  color: var(--bfds-text-primary, var(--bfds-text));
  opacity: 0.78;
}

.bfds-button--naked:active:not(:disabled) {
  opacity: 0.58;
}

.bfds-button--naked.bfds-button--icon-only {
  width: auto;
  height: auto;
  border-radius: 0;
}

.bfds-button--naked.bfds-button--icon-only.bfds-button--tiny,
.bfds-button--naked.bfds-button--icon-only.bfds-button--small,
.bfds-button--naked.bfds-button--icon-only.bfds-button--medium,
.bfds-button--naked.bfds-button--icon-only.bfds-button--large {
  padding: 0;
}


/* Destructive variant */
.bfds-button--destructive {
  background-color: var(--bfds-error);
  color: var(--bfds-background);
  border-color: var(--bfds-error);
}

.bfds-button--destructive:hover:not(:disabled) {
  background-color: var(--bfds-error-hover);
  border-color: var(--bfds-error-hover);
}

.bfds-button--destructive:active:not(:disabled) {
  background-color: var(--bfds-error-active);
  border-color: var(--bfds-error-active);
}

/* Destructive outline variant */
.bfds-button--destructive-outline {
  background-color: var(--bfds-background-solid-0);
  color: var(--bfds-error);
  border-color: var(--bfds-error);
}

.bfds-button--destructive-outline:hover:not(:disabled) {
  background-color: var(--bfds-error-hover);
  color: var(--bfds-background);
}

.bfds-button--destructive-outline:active:not(:disabled) {
  background-color: var(--bfds-error-active);
  border-color: var(--bfds-error-active);
}

/* Destructive ghost variant */
.bfds-button--destructive-ghost {
  background-color: transparent;
  color: var(--bfds-error);
  border-color: transparent;
}

.bfds-button--destructive-ghost:hover:not(:disabled) {
  background-color: var(--bfds-error-01);
  border-color: var(--bfds-error-04);
}

.bfds-button--destructive-ghost:active:not(:disabled) {
  background-color: var(--bfds-error-02-solid);
}

.bfds-button--listItem,
.bfds-button--listItemDestructive {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  padding: 8px 12px;
  border: none;
  background: none;
  background-color: transparent;
  color: var(--bfds-text);
  text-align: left;
  border-radius: 0;
  gap: 0;
  font-weight: 400;
  min-height: auto;
  transition: background-color 0.15s ease;
}

.bfds-button--listItem:hover:not(:disabled) {
  background-color: var(--bfds-background-active);
}

.bfds-button--listItem:focus-visible,
.bfds-button--listItemDestructive:focus-visible {
  outline: 2px solid var(--bfds-primary);
  outline-offset: -2px;
  background-color: var(--bfds-background-active);
}

.bfds-button--listItemDestructive {
  color: var(--bfds-error) !important;
}

.bfds-button--listItemDestructive:hover:not(:disabled) {
  background-color: var(
    --bfds-error-surface,
    rgba(239, 68, 68, 0.1)
  ) !important;
}

.bfds-theme--error .bfds-button--destructive {
  box-shadow: 0 0 0 2px rgba(18, 3, 3, 0.25);
}

.bfds-theme--error .bfds-button--destructive:hover:not(:disabled) {
  box-shadow: 0 0 0 2px rgba(18, 3, 3, 0.35);
}

.bfds-theme--error .bfds-button--destructive-outline {
  color: var(--bfds-error-hover);
  border-color: var(--bfds-error);
  background-color: rgba(18, 3, 3, 0.08);
}

.bfds-theme--error .bfds-button--destructive-outline:hover:not(:disabled) {
  color: #fff;
  background-color: var(--bfds-error);
  border-color: var(--bfds-error);
}

.bfds-theme--error .bfds-button--destructive-outline:active:not(:disabled) {
  color: #fff;
  background-color: var(--bfds-error-active);
  border-color: var(--bfds-error-active);
}

.bfds-theme--error .bfds-button--destructive-ghost {
  color: var(--bfds-error-hover);
  background-color: rgba(18, 3, 3, 0.05);
}

.bfds-theme--error .bfds-button--destructive-ghost:hover:not(:disabled) {
  color: #fff;
  background-color: var(--bfds-error);
}

.bfds-theme--error .bfds-button--destructive-ghost:active:not(:disabled) {
  background-color: var(--bfds-error-active);
}

/* Mock variant */
.bfds-button--mock {
  background-color: var(--bfds-mock);
  color: var(--bfds-background);
  border-color: var(--bfds-mock);
}
.bfds-button--mock:hover:not(:disabled) {
  background-color: var(--bfds-mock-hover);
  border-color: var(--bfds-mock-hover);
}
.bfds-button--mock:active:not(:disabled) {
  background-color: var(--bfds-mock-active);
  border-color: var(--bfds-mock-active);
}

/* Mock outline variant */
.bfds-button--mock-outline {
  background-color: var(--bfds-background-solid-0);
  color: var(--bfds-mock);
  border-color: var(--bfds-mock);
}
.bfds-button--mock-outline:hover:not(:disabled) {
  background-color: var(--bfds-mock-hover);
  border-color: var(--bfds-mock-hover);
}
.bfds-button--mock-outline:active:not(:disabled) {
  background-color: var(--bfds-mock-02);
  border-color: var(--bfds-mock-active);
}

/* Mock ghost variant */
.bfds-button--mock-ghost {
  background-color: transparent;
  color: var(--bfds-mock);
  border-color: transparent;
}
.bfds-button--mock-ghost:hover:not(:disabled) {
  background-color: var(--bfds-mock-01);
  border-color: var(--bfds-mock-02);
}
.bfds-button--mock-ghost:active:not(:disabled) {
  background-color: var(--bfds-mock-02);
}

/* Overlay buttons */
.bfds-button--overlay {
  background-color: var(--bfds-background-06);
  color: var(--bfds-text);
  border-color: var(--bfds-background-08);
}

.bfds-button--overlay.bfds-button--primary:hover:not(:disabled) {
  background-color: var(--bfds-primary);
  color: var(--bfds-primary-content);
  border-color: var(--bfds-primary);
}

.bfds-button--overlay.bfds-button--primary:active:not(:disabled) {
  background-color: var(--bfds-primary-active);
  color: var(--bfds-primary-content);
  border-color: var(--bfds-primary-active);
}

.bfds-button--overlay.bfds-button--secondary:hover:not(:disabled) {
  background-color: var(--bfds-secondary);
  color: var(--bfds-text);
  border-color: var(--bfds-secondary);
}

.bfds-button--overlay.bfds-button--secondary:active:not(:disabled) {
  background-color: var(--bfds-secondary-active);
  color: var(--bfds-text);
  border-color: var(--bfds-secondary-active);
}

.bfds-button--overlay.bfds-button--outline:hover:not(:disabled) {
  background-color: transparent;
  color: var(--bfds-text-highlight);
  border-color: var(--bfds-primary);
}

.bfds-button--overlay.bfds-button--outline:active:not(:disabled) {
  background-color: var(--bfds-primary-06);
  color: var(--bfds-text-highlight);
  border-color: var(--bfds-primary-06);
}

.bfds-button--overlay.bfds-button--ghost:hover:not(:disabled) {
  background-color: var(--bfds-background);
  color: var(--bfds-text);
  border-color: var(--bfds-border);
}

.bfds-button--overlay.bfds-button--ghost:active:not(:disabled) {
  background-color: var(--bfds-background-hover);
  color: var(--bfds-text);
  border-color: var(--bfds-border-hover);
}


.bfds-button--overlay.bfds-button--destructive {
  color: var(--bfds-error);
}

.bfds-button--overlay.bfds-button--destructive-outline {
  color: var(--bfds-error);
}

.bfds-button--overlay.bfds-button--destructive-ghost {
  color: var(--bfds-error);
}

.bfds-button--overlay.bfds-button--destructive:hover:not(:disabled) {
  background-color: var(--bfds-error);
  color: var(--bfds-background);
  border-color: var(--bfds-error);
}

.bfds-button--overlay.bfds-button--destructive:active:not(:disabled) {
  background-color: var(--bfds-error-active);
  color: var(--bfds-background);
  border-color: var(--bfds-error-active);
}

.bfds-button--overlay.bfds-button--destructive-outline:hover:not(:disabled) {
  background-color: transparent;
  color: var(--bfds-error);
  border-color: var(--bfds-error);
}

.bfds-button--overlay.bfds-button--destructive-outline:active:not(:disabled) {
  background-color: var(--bfds-error-06);
  color: var(--bfds-error);
  border-color: var(--bfds-error-06);
}

.bfds-button--overlay.bfds-button--destructive-ghost:hover:not(:disabled) {
  background-color: var(--bfds-error-01);
  color: var(--bfds-error);
  border-color: var(--bfds-error-04);
}

.bfds-button--overlay.bfds-button--destructive-ghost:active:not(:disabled) {
  background-color: var(--bfds-error-02-solid);
  color: var(--bfds-error);
  border-color: var(--bfds-error-04);
}

/* Link buttons */
a.bfds-button {
  min-height: auto;
}
a.bfds-button:hover {
  text-decoration: none;
}

/* Button icon spacing */
.bfds-button .bfds-icon {
  flex-shrink: 0;
}

.bfds-button .bfds-icon + * {
  margin-left: 8px;
}

.bfds-button * + .bfds-icon {
  margin-left: 8px;
}

.bfds-button .bfds-button-spinner + .bfds-icon {
  margin-left: 0;
}

/* Confirmation button styles */
.bfds-button--with-confirmation {
  position: relative;
  overflow: hidden;
}

/* CSS-only sliding confirmation animation */
.bfds-button--with-confirmation::after {
  content: attr(data-confirm-text);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bfds-text-08);
  border: 2px solid var(--bfds-error);
  border-radius: calc(6px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  color: var(--bfds-error);
  font-weight: bold;
  transform: translateX(calc(100% + 1px));
  transition: transform 0.3s ease-out;
  z-index: 2;
  pointer-events: none;
  box-sizing: border-box;
  backdrop-filter: blur(4px);
}

.bfds-button--with-confirmation.bfds-button--confirming-active::after {
  transform: translateX(0%);
}

/* Countdown timer bar */
.bfds-button--with-confirmation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bfds-error-02);
  transform: translateX(calc(100% + 1px));
  transition: transform 0.3s ease-out;
  z-index: 3;
  pointer-events: none;
  border-radius: calc(6px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
}

.bfds-button--with-confirmation.bfds-button--confirming-active::before {
  transform: translateX(0%);
  width: 0%;
  transition: transform 0.3s ease-out, width 3s linear 0.3s;
}


/* Icon-only confirmation buttons should be circular */
.bfds-button--with-confirmation.bfds-button--icon-only::after {
  border-radius: 50%;
  corner-shape: round;
}

.bfds-button--with-confirmation.bfds-button--icon-only::before {
  border-radius: 50%;
  corner-shape: round;
}

.bfds-button--with-confirmation.bfds-button--icon-only::after {
  content: "?";
  font-size: 1.5em;
  font-weight: bold;
}


/* Use CSS custom properties for overlay animation */
.bfds-button-overlay {
  --overlay-x: 100%;
  transform: translateX(var(--overlay-x)) !important;
  transition: transform 0.3s ease-out !important;
}

.bfds-button-overlay--hidden {
  --overlay-x: 100%;
}

.bfds-button-overlay--visible {
  --overlay-x: 0%;
}

/* Fallback with even higher specificity */
.bfds-button--with-confirmation .bfds-button-overlay--hidden {
  transform: translateX(100%) !important;
  transition: transform 0.3s ease-out !important;
}

.bfds-button--with-confirmation .bfds-button-overlay--visible {
  transform: translateX(0%) !important;  
  transition: transform 0.3s ease-out !important;
}

/* Icon-only buttons */
.bfds-button--icon-only {
  border-radius: 999px;
  corner-shape: round;
  position: relative;
}

.bfds-button--icon-only.bfds-button--tiny {
  padding: 4px;
  width: 27px;
  height: 27px;
}

.bfds-button--icon-only.bfds-button--small {
  padding: 6px;
  width: 32px;
  height: 32px;
}

.bfds-button--icon-only.bfds-button--medium {
  padding: 8px;
  width: 39px;
  height: 39px;
}

.bfds-button--icon-only.bfds-button--large {
  padding: 12px;
  width: 50px;
  height: 50px;
}

.bfds-button--naked .bfds-button-spinner {
  position: static;
}

.bfds-button--icon-only .bfds-button-spinner {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.bfds-button--animate-icon-only {
  overflow: hidden;
  white-space: nowrap;
}

.bfds-button--animate-icon-only .bfds-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.bfds-button--animate-icon-only .bfds-button__label {
  display: inline-block;
  max-width: 16ch;
  overflow: hidden;
  opacity: 1;
  transform: translateX(0);
  transition:
    max-width 0.2s ease-in-out,
    opacity 0.2s ease-in-out,
    transform 0.2s ease-in-out;
}

.bfds-button--animate-icon-only.bfds-button--icon-only {
  gap: 0;
}

.bfds-button--animate-icon-only.bfds-button--icon-only .bfds-button__label {
  max-width: 0;
  opacity: 0;
  transform: translateX(-4px);
}

.bfds-breadcrumb {
  display: block;
  min-width: 0;
}

.bfds-breadcrumb__content {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  min-width: max-content;
  white-space: nowrap;
}

.bfds-breadcrumb__segment,
.bfds-breadcrumb-item,
.bfds-breadcrumb-separator,
.bfds-breadcrumb-label,
.bfds-breadcrumb-button,
.bfds-breadcrumb-dropdown {
  flex: 0 0 auto;
}

.bfds-breadcrumb-button,
.bfds-breadcrumb-label,
.bfds-breadcrumb-separator {
  white-space: nowrap;
}

/* Tabs */

.bfds-tabs {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.bfds-tabs__header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 2px solid var(--bfds-border);
}

.bfds-tabs__subheader {
  display: flex;
  border-bottom: 1px solid var(--bfds-border);
  background-color: var(--bfds-background-hover);
  padding-left: 16px;
}

.bfds-tabs--header-padding-none .bfds-tabs__header,
.bfds-tabs--header-padding-none .bfds-tabs__subheader {
  padding-inline: 0;
}

.bfds-tabs__list {
  flex: 1;
}

.bfds-tabs__right-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 16px;
}

.bfds-tabs__content {
  flex: 1;
  min-height: 200px;
}

.bfds-tabs--scrollable .bfds-tabs__content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.bfds-tabs__panel {
  animation: bfds-fade-in 0.2s ease-in-out;
}

.bfds-tabs__subpanel {
  animation: bfds-fade-in 0.15s ease-in-out;
}

@keyframes bfds-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tab buttons */
.bfds-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: var(--bfds-text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border-bottom: 2px solid transparent;
  position: relative;
  outline: none;
}

.bfds-tab:hover:not(:disabled) {
  color: var(--bfds-text);
  background-color: var(--bfds-background-hover);
}

.bfds-tab:focus-visible {
  outline: 2px solid var(--bfds-primary);
  outline-offset: -2px;
}

.bfds-tab--active {
  color: var(--bfds-text-highlight);
  border-bottom-color: var(--bfds-primary);
}

.bfds-tab--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: var(--bfds-text-muted);
}

/* Tab sizes */
.bfds-tab--small {
  padding: 8px 16px 6px;
  font-size: 12px;
}

.bfds-tab--medium {
  padding: 14px 20px 10px;
  font-size: 14px;
}

.bfds-tab--large {
  padding: 16px 24px 14px;
  font-size: 16px;
}

/* Tab variants */
.bfds-tab--primary.bfds-tab--active {
  color: var(--bfds-text-highlight);
  border-bottom-color: var(--bfds-primary);
}

.bfds-tab--secondary.bfds-tab--active {
  color: var(--bfds-secondary);
  border-bottom-color: var(--bfds-secondary);
}

/* Subtab buttons */
.bfds-subtab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--bfds-text-muted);
  font-weight: 400;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border-bottom: 1px solid transparent;
  position: relative;
  outline: none;
}

.bfds-subtab:hover:not(:disabled) {
  color: var(--bfds-text-secondary);
  background-color: var(--bfds-background-active);
}

.bfds-subtab:focus-visible {
  outline: 2px solid var(--bfds-primary);
  outline-offset: -2px;
}

.bfds-subtab--active {
  color: var(--bfds-text);
  border-bottom-color: var(--bfds-primary);
  background-color: var(--bfds-background);
}

.bfds-subtab--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: var(--bfds-text-muted);
}

/* Subtab sizes */
.bfds-subtab--small {
  padding: 6px 12px;
  font-size: 11px;
}

.bfds-subtab--medium {
  padding: 8px 16px;
  font-size: 12px;
}

.bfds-subtab--large {
  padding: 10px 20px;
  font-size: 13px;
}

/* Subtab variants */
.bfds-subtab--primary.bfds-subtab--active {
  color: var(--bfds-text-highlight);
  border-bottom-color: var(--bfds-primary);
}

.bfds-subtab--secondary.bfds-subtab--active {
  border-bottom-color: var(--bfds-secondary);
}

/* Tab container variants */
.bfds-tabs--secondary .bfds-tab--active {
  color: var(--bfds-secondary);
  border-bottom-color: var(--bfds-secondary);
}

.bfds-tabs--secondary .bfds-subtab--active {
  border-bottom-color: var(--bfds-secondary);
}

/* Form */

.bfds-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Input */

.bfds-input-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bfds-input-field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.bfds-input-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--bfds-text);
  line-height: 1.4;
}

.bfds-input-required {
  color: var(--bfds-error);
  margin-left: 2px;
}

.bfds-input {
  padding: 12px 16px;
  border: 1px solid var(--bfds-border);
  border-radius: calc(6px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  background-color: var(--bfds-background);
  color: var(--bfds-text);
  font-size: 14px;
  line-height: 1.4;
  transition: all 0.2s ease-in-out;
  outline: none;
  width: 100%;
}

.bfds-input--with-clear {
  padding-right: 40px;
}

.bfds-input-actions {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
  align-items: center;
}

.bfds-input::placeholder {
  color: var(--bfds-text-muted);
}

.bfds-input:focus {
  border-color: var(--bfds-focus);
  box-shadow: 0 0 0 3px var(--bfds-focus-outline);
}

.bfds-input:hover:not(:disabled):not(:focus) {
  border-color: var(--bfds-border-hover);
}

.bfds-input-clear {
  background: transparent;
  border: none;
  color: var(--bfds-text-muted);
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.bfds-input-clear:hover {
  background-color: var(--bfds-background-hover);
  color: var(--bfds-text);
}

.bfds-input-clear:focus-visible {
  outline: 2px solid var(--bfds-focus);
  outline-offset: 2px;
}

/* Input states */
.bfds-input--error {
  border-color: var(--bfds-error);
  background-color: var(--bfds-error-background);
}

.bfds-input--error:focus {
  border-color: var(--bfds-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

.bfds-input--success {
  border-color: var(--bfds-success);
  background-color: var(--bfds-success-background);
}

.bfds-input--success:focus {
  border-color: var(--bfds-success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.bfds-input--disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--bfds-background-hover);
}

/* Input help text */
.bfds-input-help {
  font-size: 12px;
  color: var(--bfds-text-secondary);
  line-height: 1.3;
}

.bfds-input-error {
  font-size: 12px;
  color: var(--bfds-error);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bfds-input-success {
  font-size: 12px;
  color: var(--bfds-success);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* TextArea */

.bfds-textarea-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.bfds-textarea-container--full-height {
  height: 100%;
}

.bfds-textarea-container--full-height .bfds-textarea {
  flex: 1;
}

.bfds-textarea-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--bfds-text);
  line-height: 1.4;
}

.bfds-textarea-required {
  color: var(--bfds-error);
  margin-left: 2px;
}

.bfds-textarea {
  padding: 12px 16px;
  border: 1px solid var(--bfds-border);
  border-radius: calc(6px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  background-color: var(--bfds-background);
  color: var(--bfds-text);
  font-size: 14px;
  line-height: 1.5;
  transition: all 0.2s ease-in-out;
  outline: none;
  min-height: 2.5em;
  box-sizing: border-box;
}

.bfds-textarea::placeholder {
  color: var(--bfds-text-muted);
}

.bfds-textarea:focus {
  border-color: var(--bfds-focus);
  box-shadow: 0 0 0 3px var(--bfds-focus-outline);
}

.bfds-textarea:hover:not(:disabled):not(:focus) {
  border-color: var(--bfds-border-hover);
}

/* TextArea resize options */
.bfds-textarea--resize-none {
  resize: none;
}

.bfds-textarea--resize-both {
  resize: both;
}

.bfds-textarea--resize-horizontal {
  resize: horizontal;
}

.bfds-textarea--resize-vertical {
  resize: vertical;
}

/* TextArea states */
.bfds-textarea--error {
  border-color: var(--bfds-error);
  background-color: var(--bfds-error-background);
}

.bfds-textarea--error:focus {
  border-color: var(--bfds-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

.bfds-textarea--success {
  border-color: var(--bfds-success);
  background-color: var(--bfds-success-background);
}

.bfds-textarea--success:focus {
  border-color: var(--bfds-success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.bfds-textarea--disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--bfds-background-hover);
}

/* TextArea help text */
.bfds-textarea-help {
  font-size: 12px;
  color: var(--bfds-text-secondary);
  line-height: 1.3;
}

.bfds-textarea-error {
  font-size: 12px;
  color: var(--bfds-error);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bfds-textarea-success {
  font-size: 12px;
  color: var(--bfds-success);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bfds-textarea--lexical {
  position: relative;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: monospace;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 0;
}

.bfds-textarea--lexical p {
  margin: 0;
}

.bfds-textarea-lexical-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.bfds-textarea-lexical-wrapper .editor-placeholder {
  color: var(--bfds-text-muted);
  pointer-events: none;
  position: absolute;
  top: 12px;
  left: 16px;
  right: 16px;
  white-space: pre-wrap;
}

.bfds-textarea--lexical [data-bfds-inline-diff="added"] {
  background-color: var(--bfds-success-02);
  border-radius: calc(4px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
}

.bfds-textarea-diff,
.bfds-text-diff {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--bfds-border);
  border-radius: calc(6px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  background: var(--bfds-background-01);
  display: flex;
  flex-direction: column;
  font-family: var(--fontFamilyMono);
  font-size: 13px;
  line-height: 1.45;
}

.bfds-textarea-diff-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--bfds-text);
}

.bfds-text-diff__line {
  display: grid;
  grid-template-columns: minmax(12px, max-content) minmax(12px, max-content) minmax(0, 1fr);
  align-items: flex-start;
  gap: 8px;
  color: var(--bfds-text);
}

.bfds-textarea-diff--empty,
.bfds-text-diff--empty {
  align-items: center;
  color: var(--bfds-text-muted);
  gap: 0;
}

.bfds-textarea-diff-empty,
.bfds-text-diff__empty {
  text-align: center;
  width: 100%;
}

.bfds-textarea-diff-line-prefix,
.bfds-text-diff__line-number {
  flex-shrink: 0;
  width: 14px;
  text-align: center;
  color: var(--bfds-text-muted);
}

.bfds-text-diff__line-number {
  width: auto;
  min-width: 12px;
  text-align: right;
  font-size: 11px;
  line-height: 1.45;
  color: var(--bfds-text-muted);
}

.bfds-text-diff__line-number--original,
.bfds-text-diff__line-number--modified {
  font-family: var(--fontFamilyMono);
}

.bfds-textarea-diff-line-content,
.bfds-text-diff__line-content {
  flex: 1;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
}

.bfds-textarea-diff-line--added,
.bfds-text-diff__line--added,
.bfds-text-diff__inline-segment--added {
  background: var(--bfds-success-02);
}

.bfds-textarea-diff-line--removed,
.bfds-text-diff__line--removed,
.bfds-text-diff__inline-segment--removed {
  background: var(--bfds-error-02);
}

.bfds-textarea-diff-line--removed .bfds-textarea-diff-line-content,
.bfds-text-diff__line--removed .bfds-text-diff__line-content,
.bfds-text-diff__cell--removed .bfds-text-diff__cell-content,
.bfds-text-diff__inline-segment--removed {
  text-decoration: line-through;
}

.bfds-text-diff__content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.bfds-textarea-diff-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bfds-background-solid-2);
  padding: 2px 2px 2px 12px;
  border: 1px solid var(--bfds-border);
  border-radius: calc(6px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
}

.bfds-textarea-diff-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bfds-text-muted);
}

.bfds-textarea-diff-summary-value {
  line-height: 1;
}

.bfds-textarea-diff-summary-value--added {
  color: var(--bfds-success);
}

.bfds-textarea-diff-summary-value--removed {
  color: var(--bfds-error);
}

.bfds-textarea-diff-summary-value--muted {
  color: var(--bfds-text-muted);
}

.bfds-text-diff__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bfds-text-diff__toolbar-group {
  display: flex;
  gap: 6px;
}

.bfds-text-diff__toggle {
  cursor: pointer;
  user-select: none;
}

.bfds-text-diff__toggle--active {
  box-shadow: 0 0 0 1px var(--bfds-border-strong, var(--bfds-border));
}

.bfds-text-diff__split {
  display: grid;
  gap: 8px;
}

.bfds-text-diff__split-header {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  color: var(--bfds-text-muted);
  font-size: 12px;
  font-weight: 600;
}

.bfds-text-diff__split-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 8px;
}

.bfds-text-diff__cell {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--fontFamilyMono);
  background: var(--bfds-background-01);
}

.bfds-text-diff__cell--empty {
  background: var(--bfds-background-01);
}

.bfds-text-diff__cell-line {
  flex-shrink: 0;
  width: 26px;
  text-align: right;
  color: var(--bfds-text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.bfds-text-diff__cell-content {
  flex: 1;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
}

.bfds-text-diff__cell-placeholder {
  display: inline-block;
  width: 100%;
}

.bfds-text-diff__cell--added {
  background-color: var(--bfds-success-02);
}

.bfds-text-diff__cell--removed {
  background-color: var(--bfds-error-02);
}

.bfds-text-diff__inline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bfds-text-diff__inline-row {
  display: grid;
  grid-template-columns: minmax(12px, max-content) minmax(0, 1fr);
  gap: 8px;
  align-items: flex-start;
  white-space: pre-wrap;
  word-break: break-word;
}

.bfds-text-diff__inline-content {
  display: block;
  text-align: left;
}

.bfds-text-diff__inline-segment {
  padding: 0 2px;
}

.bfds-text-diff__inline-segment--added,
.bfds-text-diff__inline-segment--removed {
  border-radius: calc(2px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
}

.bfds-text-diff__empty--neutral {
  color: var(--bfds-text-muted);
}

/* Select */

.bfds-select-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.bfds-select-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--bfds-text);
  line-height: 1.4;
}

.bfds-select-required {
  color: var(--bfds-error);
  margin-left: 2px;
}

.bfds-select-container--disabled .bfds-select-label {
  opacity: 0.6;
}

.bfds-select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.bfds-select {
  display: block;
  width: 100%;
  padding: 12px 40px 12px 16px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--bfds-text);
  background-color: var(--bfds-background);
  border: 1px solid var(--bfds-border);
  border-radius: calc(6px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  box-sizing: border-box;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease-in-out;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.bfds-select:hover:not(:disabled) {
  border-color: var(--bfds-border-hover);
}

.bfds-select:focus {
  border-color: var(--bfds-focus);
  box-shadow: 0 0 0 3px var(--bfds-focus-outline);
}

.bfds-select--disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--bfds-background-hover);
}

.bfds-select-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--bfds-text-secondary);
}

.bfds-select--disabled + .bfds-select-icon {
  opacity: 0.6;
}

.bfds-select-icon--open {
  transform: translateY(-50%) rotate(180deg);
}

.bfds-select-icon--clickable {
  pointer-events: auto;
  cursor: pointer;
}

.bfds-select--open {
  border-radius: calc(6px * var(--corner-radius-scale, 1)) calc(6px * var(--corner-radius-scale, 1)) 0 0;
  corner-shape: squircle;
  border-bottom-color: transparent;
}

.bfds-select--open-above {
  border-radius: 0 0 calc(6px * var(--corner-radius-scale, 1)) calc(6px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  border-top-color: transparent;
}

.bfds-select-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--bfds-background);
  border: 1px solid var(--bfds-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  max-height: 200px;
  overflow-y: auto;
}

.bfds-select-dropdown--below {
  top: 100%;
  border-top: none;
  border-radius: 0 0 calc(6px * var(--corner-radius-scale, 1)) calc(6px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
}

.bfds-select-dropdown--above {
  bottom: 100%;
  border-bottom: none;
  border-radius: calc(6px * var(--corner-radius-scale, 1)) calc(6px * var(--corner-radius-scale, 1)) 0 0;
  corner-shape: squircle;
}

.bfds-select-option {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--bfds-text);
  cursor: pointer;
  border-bottom: 1px solid var(--bfds-border);
  transition: background-color 0.15s ease-in-out;
}

.bfds-select-option:last-child {
  border-bottom: none;
}

.bfds-select-option:hover {
  background-color: var(--bfds-background-hover);
}

/* Disable hover when in keyboard navigation mode */
.bfds-select-dropdown--keyboard-nav .bfds-select-option:hover {
  background-color: transparent;
}

.bfds-select-option--highlighted {
  background-color: var(--bfds-background-hover);
}

/* Ensure highlighted takes precedence over disabled hover */
.bfds-select-dropdown--keyboard-nav .bfds-select-option--highlighted {
  background-color: var(--bfds-background-hover) !important;
}

.bfds-select-option--selected {
  background-color: var(--bfds-primary-02);
  color: var(--bfds-text-highlight);
}

.bfds-select-option--disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: transparent !important;
}

.bfds-select-option--no-results {
  color: var(--bfds-text-muted);
  font-style: italic;
  cursor: default;
  background-color: transparent !important;
}

/* Checkbox */

.bfds-checkbox-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--bfds-text);
  position: relative;
}

.bfds-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  z-index: 1;
  cursor: pointer;
}

.bfds-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--bfds-border);
  border-radius: calc(3px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  background-color: var(--bfds-background);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.bfds-checkbox:hover:not(.bfds-checkbox--disabled) {
  border-color: var(--bfds-border-hover);
}

.bfds-checkbox:focus-visible {
  outline: 2px solid var(--bfds-focus);
  outline-offset: 2px;
}

.bfds-checkbox--checked {
  border-color: var(--bfds-primary);
  background-color: var(--bfds-primary);
}

.bfds-checkbox--indeterminate {
  border-color: var(--bfds-primary);
  background-color: var(--bfds-primary);
}

.bfds-checkbox--checked:hover:not(.bfds-checkbox--disabled) {
  border-color: var(--bfds-primary-hover);
  background-color: var(--bfds-primary-hover);
}

.bfds-checkbox--indeterminate:hover:not(.bfds-checkbox--disabled) {
  border-color: var(--bfds-primary-hover);
  background-color: var(--bfds-primary-hover);
}

.bfds-checkbox--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bfds-checkbox-icon {
  color: var(--bfds-primary-content);
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 1;
  transition: opacity 0.15s ease;
}

.bfds-checkbox-icon--hidden {
  opacity: 0;
}

.bfds-checkbox-label {
  user-select: none;
}

.bfds-checkbox-required {
  color: var(--bfds-error);
}

.bfds-checkbox-wrapper:has(.bfds-checkbox--disabled) {
  cursor: not-allowed;
}

.bfds-checkbox-wrapper:has(.bfds-checkbox--disabled) .bfds-checkbox-label {
  opacity: 0.6;
}

/* Checkbox validation states - only show error styling when focused and invalid */
.bfds-checkbox-input:invalid:focus + .bfds-checkbox {
  outline: 2px solid var(--bfds-error);
  outline-offset: 2px;
}

/* Show error styling after user has tried to submit (when form has was-validated class) */
.was-validated .bfds-checkbox-input:invalid + .bfds-checkbox {
  border-color: var(--bfds-error);
}

/* Radio */

.bfds-radio-group {
  display: flex;
  gap: 16px;
}

.bfds-radio-group--vertical {
  flex-direction: column;
}

.bfds-radio-group--horizontal {
  flex-direction: row;
  flex-wrap: wrap;
}

.bfds-radio-group--disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bfds-radio-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--bfds-text);
  position: relative;
}

.bfds-radio-input {
  position: absolute;
  opacity: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  z-index: 1;
  cursor: pointer;
}

.bfds-radio {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--bfds-border);
  border-radius: 50%;
  background-color: var(--bfds-background);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  position: relative;
}

.bfds-radio:hover:not(.bfds-radio--disabled) {
  border-color: var(--bfds-border-hover);
}

.bfds-radio:focus-visible {
  outline: 2px solid var(--bfds-focus);
  outline-offset: 2px;
}

.bfds-radio--checked {
  border-color: var(--bfds-primary);
}

.bfds-radio--checked:hover:not(.bfds-radio--disabled) {
  border-color: var(--bfds-primary-hover);
}

.bfds-radio--disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--bfds-background-hover);
}

.bfds-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--bfds-primary);
  transition: all 0.2s ease-in-out;
}

.bfds-radio--disabled .bfds-radio-dot {
  background-color: var(--bfds-text-muted);
}

.bfds-radio-label {
  user-select: none;
}

.bfds-radio-wrapper:has(.bfds-radio--disabled) {
  cursor: not-allowed;
}

.bfds-radio-wrapper:has(.bfds-radio--disabled) .bfds-radio-label {
  opacity: 0.6;
}

/* Radio validation states - only show error styling when focused and invalid */
.bfds-radio-input:invalid:focus + .bfds-radio {
  outline: 2px solid var(--bfds-error);
  outline-offset: 2px;
}

/* Show error styling after user has tried to submit (when form has was-validated class) */
.was-validated .bfds-radio-input:invalid + .bfds-radio {
  border-color: var(--bfds-error);
}

/* Radio sizes */
.bfds-radio-group--small .bfds-radio-wrapper {
  font-size: 12px;
  gap: 6px;
}

.bfds-radio-group--small .bfds-radio {
  width: 12px;
  height: 12px;
}

.bfds-radio-group--small .bfds-radio-dot {
  width: 6px;
  height: 6px;
}

.bfds-radio-group--medium .bfds-radio-wrapper {
  font-size: 14px;
  gap: 8px;
}

.bfds-radio-group--medium .bfds-radio {
  width: 16px;
  height: 16px;
}

.bfds-radio-group--medium .bfds-radio-dot {
  width: 8px;
  height: 8px;
}

.bfds-radio-group--large .bfds-radio-wrapper {
  font-size: 16px;
  gap: 10px;
}

.bfds-radio-group--large .bfds-radio {
  width: 20px;
  height: 20px;
}

.bfds-radio-group--large .bfds-radio-dot {
  width: 10px;
  height: 10px;
}

/* Radio fieldset */
.bfds-radio-fieldset {
  border: 1px solid var(--bfds-border);
  border-radius: calc(6px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  background-color: var(--bfds-background);
  padding: 16px;
  margin: 0;
  transition: all 0.2s ease-in-out;
}

.bfds-radio-fieldset:hover {
  border-color: var(--bfds-border-hover);
}

.bfds-radio-fieldset:focus-within {
  border-color: var(--bfds-focus);
  box-shadow: 0 0 0 3px var(--bfds-focus-outline);
}

/* Toggle */

.bfds-toggle-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--bfds-text);
}

.bfds-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.bfds-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.bfds-toggle:focus-visible {
  outline: 2px solid var(--bfds-focus);
  outline-offset: 2px;
}

.bfds-toggle-track {
  position: relative;
  background-color: var(--bfds-track);
  box-shadow: inset 0 0 0 1px var(--bfds-primary-content-04);
  border-radius: calc(12px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.bfds-toggle--primary.bfds-toggle--checked .bfds-toggle-track {
  background-color: var(--bfds-primary);
  box-shadow: inset 0 0 0 1px var(--bfds-primary-content-04);
}

.bfds-toggle--secondary .bfds-toggle-track {
  background-color: var(--bfds-track);
}

.bfds-toggle--secondary.bfds-toggle--checked .bfds-toggle-track {
  background-color: var(--bfds-secondary);
}

.bfds-toggle--disabled .bfds-toggle-track {
  box-shadow: none;
  opacity: 0.4;
  cursor: not-allowed;
}

.bfds-toggle--checked.bfds-toggle--disabled .bfds-toggle-track {
  box-shadow: none;
}

.bfds-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bfds-background);
  color: var(--bfds-secondary);
  border-radius: calc(16px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.bfds-toggle--primary.bfds-toggle--checked .bfds-toggle-thumb {
  color: var(--bfds-primary-active);
}

.bfds-toggle--secondary.bfds-toggle--checked .bfds-toggle-thumb {
  color: var(--bfds-text);
}

.bfds-toggle--primary:hover .bfds-toggle-thumb {
  outline: 5px solid var(--bfds-primary-04);
}

.bfds-toggle--secondary:hover .bfds-toggle-thumb {
  outline: 5px solid var(--bfds-secondary-04);
}

.bfds-toggle-thumb-icon {
  pointer-events: none;
}

.bfds-toggle-label {
  user-select: none;
}

.bfds-toggle--disabled:hover .bfds-toggle-thumb {
  outline: none;
  cursor: not-allowed;
}
.bfds-toggle-wrapper:has(.bfds-toggle--disabled) {
  cursor: not-allowed;
}

.bfds-toggle-wrapper:has(.bfds-toggle--disabled) .bfds-toggle-label {
  opacity: 0.6;
}

/* Callout */

.bfds-callout {
  padding: 16px;
  border-radius: calc(8px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  border: 1px solid;
  margin: 8px 0;
  animation: bfds-callout-fade-in 0.3s ease-in-out;
}

@keyframes bfds-callout-fade-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bfds-callout-fade-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.bfds-callout--animating-out {
  animation: bfds-callout-fade-out 0.3s ease-in-out forwards;
}

.bfds-callout-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.bfds-callout-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.bfds-callout-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bfds-callout-message {
  font-weight: 500;
}

.bfds-callout-subtitle {
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.85;
  white-space: pre-wrap;
}

.bfds-callout-toggle {
  background: none;
  border: none;
  color: inherit;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  text-decoration: underline;
  opacity: 0.8;
}

.bfds-callout-toggle:hover {
  opacity: 1;
}

.bfds-callout-dismiss {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 10px;
  margin: -10px;
  border-radius: calc(4px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  opacity: 0.6;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
}

.bfds-callout-dismiss:hover {
  opacity: 1;
}

.bfds-callout-countdown {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.bfds-callout-countdown-ring {
  position: absolute;
  width: 32px;
  height: 32px;
}

.bfds-callout-countdown-track {
  stroke: var(--bfds-track);
  opacity: 0.2;
}

.bfds-callout-countdown-progress {
  transition: stroke-dashoffset 0.1s ease-out;
  stroke-linecap: round;
  stroke-width: 2.5;
}

.bfds-callout-countdown-ring--paused .bfds-callout-countdown-progress {
  opacity: 0.7;
  animation: bfds-countdown-paused-pulse 1s ease-in-out infinite alternate;
}

@keyframes bfds-countdown-paused-pulse {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 0.4;
  }
}

.bfds-callout-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bfds-callout-details pre {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: calc(4px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  font-size: 12px;
  line-height: 1.4;
  overflow-x: auto;
  margin: 0;
  white-space: pre-wrap;
}

.bfds-callout code {
  background: var(--bfds-background-08);
}

/* Callout variants */

.bfds-callout--info {
  background-color: var(--bfds-info-02-solid);
  border-color: var(--bfds-info-04);
  color: var(--bfds-info);
}

.bfds-callout--success {
  background-color: var(--bfds-success-02-solid);
  border-color: var(--bfds-success-04);
  color: var(--bfds-success);
}

.bfds-callout--warning {
  background-color: var(--bfds-warning-02-solid);
  border-color: var(--bfds-warning-04);
  color: var(--bfds-warning);
}

.bfds-callout--error {
  background-color: var(--bfds-error-02-solid);
  border-color: var(--bfds-error-04);
  color: var(--bfds-error);
}

/* Toggle sizes */
.bfds-toggle--small .bfds-toggle-track {
  width: 32px;
  height: 16px;
}

.bfds-toggle--small .bfds-toggle-thumb {
  width: 18px;
  height: 10px;
}

.bfds-toggle--small.bfds-toggle--checked .bfds-toggle-thumb {
  transform: translateX(8px);
}

.bfds-toggle--medium .bfds-toggle-track {
  width: 40px;
  height: 20px;
}

.bfds-toggle--medium .bfds-toggle-thumb {
  width: 24px;
  height: 14px;
}

.bfds-toggle--medium.bfds-toggle--checked .bfds-toggle-thumb {
  transform: translateX(10px);
}

.bfds-toggle--large .bfds-toggle-track {
  width: 48px;
  height: 24px;
}

.bfds-toggle--large .bfds-toggle-thumb {
  width: 30px;
  height: 18px;
}

.bfds-toggle--large.bfds-toggle--checked .bfds-toggle-thumb {
  transform: translateX(12px);
}

/* Toast Styles */
.bfds-toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 400px;
  width: 100%;
}

.bfds-toast {
  pointer-events: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.bfds-toast--visible {
  transform: translateX(0);
  opacity: 1;
}

.bfds-toast--hidden {
  transform: translateX(100%);
  opacity: 0;
}

/* Toast callout styling adjustments */
.bfds-toast .bfds-callout {
  margin: 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-radius: calc(8px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  min-width: 320px;
  max-width: 400px;
}

/* Pricing Table Styles */
.bfds-pricing-table {
  width: 100%;
  margin-top: 2rem;
}

.bfds-pricing-table__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

/* Card variants */
.bfds-pricing-table__card--highlighted {
  transform: scale(1.02);
  position: relative;
  z-index: 1;
}

.bfds-pricing-table__card--disabled {
  opacity: 0.8;
}

/* Header styles */
.bfds-pricing-table__header {
  text-align: center;
  width: 100%;
  padding-top: 0.7rem;
}

.bfds-pricing-table__badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
}

.bfds-pricing-table__tier-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--bfds-text);
}

.bfds-pricing-table__price {
  margin-bottom: 0.5rem;
}

.bfds-pricing-table__price-amount,
.bfds-pricing-table__price-sale {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bfds-text-highlight);
}

.bfds-pricing-table__price-original {
  position: relative;
  font-size: 2rem;
  font-weight: 700;
  color: var(--bfds-secondary);
  margin-right: 4px;
}
.bfds-pricing-table__price-original::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  right: 0;
  height: 5px;
  width: calc(100% + 8px);
  background-color: var(--bfds-primary-08);
  transform: translateY(-50%) rotate(-10deg);
  border-radius: calc(4px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
}


.bfds-pricing-table__price-period {
  font-size: 1rem;
  color: var(--bfds-text-secondary);
  margin-left: 0.25rem;
}

/* Features styles */
.bfds-pricing-table__features {
  flex: 1;
}

.bfds-pricing-table__features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bfds-pricing-table__description {
  list-style: none;
  color: var(--bfds-text-secondary);
  line-height: 1.5;
}

.bfds-pricing-table__feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
}

.bfds-pricing-table__feature:last-child {
  margin-bottom: 0;
}

.bfds-pricing-table__feature-icon {
  color: var(--bfds-success, #10b981);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.bfds-pricing-table__feature-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--bfds-text);
  text-align: left;
}

li.bfds-pricing-table__feature-meta {
  font-size: 0.8em;
  text-align: left;
  color: var(--bfds-secondary);
}

/* Footer styles */
.bfds-pricing-table__footer {
  width: 100%;
}

.bfds-pricing-table__cta {
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .bfds-pricing-table__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .bfds-pricing-table__card--highlighted {
    transform: none;
  }
  
  .bfds-pricing-table__price-amount {
    font-size: 2rem;
  }
}

/* Three column specific layout for desktop */
@media (min-width: 1024px) {
  .bfds-pricing-table__grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* Disabled state */
.bfds-pricing-table__card--disabled .bfds-pricing-table__tier-name::after {
  content: "";
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
  .bfds-toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }

  .bfds-toast .bfds-callout {
    min-width: auto;
    max-width: none;
  }
}

/* Spinner styles */
.bfds-spinner-container {
  display: inline-block;
}

.bfds-spinner {
  animation: bfds-spin 1s linear infinite;
}

@keyframes bfds-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Pill Component */
.bfds-pill {
  display: inline-flex;
  align-items: center;
  border-radius: calc(12px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  max-width: 100%;
}

.bfds-pill__label {
  padding: 4px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: calc(12px * var(--corner-radius-scale, 1)) 0 0 calc(12px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
}

.bfds-pill__label--no-content {
  border-radius: calc(12px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
}

.bfds-pill--label-only {
  border-radius: calc(12px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
}

.bfds-pill__content {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-left: 1px solid;
  border-radius: 0 calc(12px * var(--corner-radius-scale, 1)) calc(12px * var(--corner-radius-scale, 1)) 0;
  corner-shape: squircle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--bfds-text);
}

.bfds-pill__label + .bfds-pill__content {
  border-left-width: 1px;
}

.bfds-pill:not(:has(.bfds-pill__label)) .bfds-pill__content {
  border-left: none;
  border-radius: calc(12px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
}

/* Pill Variants */
.bfds-pill--primary {
  background-color: var(--bfds-primary-01);
}

.bfds-pill--primary .bfds-pill__label {
  color: var(--bfds-text-highlight);
}

.bfds-pill--primary .bfds-pill__content {
  border-color: var(--bfds-primary-02);
  color: var(--bfds-text);
}

.bfds-pill--secondary {
  background-color: var(--bfds-secondary-02);
}

.bfds-pill--secondary .bfds-pill__label {
  color: var(--bfds-secondary);
}

.bfds-pill--secondary .bfds-pill__content {
  border-color: var(--bfds-secondary-02);
  color: var(--bfds-text);
}

.bfds-pill--success {
  background-color: var(--bfds-success-01);
}

.bfds-pill--success .bfds-pill__label {
  color: var(--bfds-success);
}

.bfds-pill--success .bfds-pill__content {
  border-color: var(--bfds-success-02);
  color: var(--bfds-text);
}

.bfds-pill--error {
  background-color: var(--bfds-error-01);
}

.bfds-pill--error .bfds-pill__label {
  color: var(--bfds-error);
}

.bfds-pill--error .bfds-pill__content {
  border-color: var(--bfds-error-02);
  color: var(--bfds-text);
}

.bfds-pill--warning {
  background-color: var(--bfds-warning-01);
}

.bfds-pill--warning .bfds-pill__label {
  color: var(--bfds-warning);
}

.bfds-pill--warning .bfds-pill__content {
  border-color: var(--bfds-warning-02);
  color: var(--bfds-text);
}

.bfds-pill--info {
  background-color: var(--bfds-info-01);
}

.bfds-pill--info .bfds-pill__label {
  color: var(--bfds-info);
}

.bfds-pill--info .bfds-pill__content {
  border-color: var(--bfds-info-02);
  color: var(--bfds-text);
}

/* Example Components Styling */
.bfds-example {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  background-color: var(--bfds-background);
  color: var(--bfds-text);
}

.bfds-example h2 {
  margin: 0 0 24px 0;
  font-size: 24px;
  font-weight: 600;
}

.bfds-example h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 500;
}

.bfds-example__section {
  margin-bottom: 24px;
}

.bfds-example__code {
  background-color: var(--bfds-text-005);
  padding: 1rem;
  border-radius: calc(8px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  overflow: auto;
  font-family: var(--fontFamilyMono);
}

/* BfDsCodeExample component styles */
.bfds-code-example {
  border: 1px solid var(--bfds-border);
  border-radius: calc(8px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  overflow: hidden;
  background-color: var(--bfds-background);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.bfds-code-example__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: var(--bfds-background-hover);
  border-bottom: 1px solid var(--bfds-border);
}

.bfds-code-example__language {
  font-size: 12px;
  font-weight: 500;
  color: var(--bfds-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bfds-code-example__header-buttons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.bfds-code-example__content {
  position: relative;
  background-color: var(--bfds-text-005);
}

.bfds-code-example__editor {
  display: flex;
  width: 100%;
  overflow-x: auto;
}

.bfds-code-example__line-numbers {
  padding: 3px 12px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-family: var(--fontFamilyMono);
  font-size: 12px;
  color: var(--bfds-text-secondary);
  border-right: 1px solid var(--bfds-border);
  user-select: none;
  flex-shrink: 0;
}

.bfds-code-example__line-numbers span {
  line-height: 1.5;
  min-height: 1.5em;
}

.bfds-code-example__textarea .bfds-textarea-container {
  gap: 0;
  width: 100%;
  background: transparent;
}

.bfds-code-example__textarea.bfds-textarea {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  min-height: auto;
  width: 100%;
  resize: none;
  color: var(--bfds-text);
  font-family: var(--fontFamilyMono);
  font-size: 14px;
  line-height: 1.5;
}

.bfds-code-example__textarea.bfds-textarea:focus {
  box-shadow: none;
}

.bfds-code-example__lexical-root {
  font-family: var(--fontFamilyMono);
}

.bfds-code-example__lexical-content {
  padding: 16px;
  min-height: 100%;
  outline: none;
  white-space: pre !important;
  overflow-x: auto;
}

.bfds-code-example__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
}

.bfds-code-example__fade-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--bfds-background-09) 70%);
}

.bfds-code-example__hidden-lines {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  pointer-events: auto;
}

.bfds-code-example__hidden-lines button {
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.bfds-code-example__hidden-lines button:hover {
  opacity: 1;
}

/* Syntax highlighting for Lexical-powered code blocks */
.bfds-code-example .token.comment,
.bfds-syntax-highlight .token.comment {
  color: var(--bfds-text-muted);
}

.bfds-code-example .token.punctuation,
.bfds-syntax-highlight .token.punctuation {
  color: var(--bfds-text-secondary);
}

.bfds-code-example .token.property,
.bfds-code-example .token.number,
.bfds-code-example .token.boolean,
.bfds-code-example .token.constant,
.bfds-syntax-highlight .token.property,
.bfds-syntax-highlight .token.number,
.bfds-syntax-highlight .token.boolean,
.bfds-syntax-highlight .token.constant {
  color: var(--bfds-text-highlight);
}

.bfds-code-example .token.string,
.bfds-code-example .token.selector,
.bfds-syntax-highlight .token.string,
.bfds-syntax-highlight .token.selector {
  color: var(--bfds-text-highlight-06);
}

.bfds-code-example .token.operator,
.bfds-syntax-highlight .token.operator {
  color: var(--bfds-warning);
}

.bfds-code-example .token.keyword,
.bfds-code-example .token.attr-name,
.bfds-syntax-highlight .token.keyword,
.bfds-syntax-highlight .token.attr-name {
  color: var(--bfds-warning-08);
}

.bfds-code-example .token.attr-value,
.bfds-code-example .token.attr-value .token.punctuation,
.bfds-syntax-highlight .token.attr-value,
.bfds-syntax-highlight .token.attr-value .token.punctuation {
  color: var(--bfds-text-highlight-08);
}
.bfds-code-example .token.attr-value .token.punctuation.attr-equals,
.bfds-syntax-highlight .token.attr-value .token.punctuation.attr-equals {
  color: var(--bfds-text-secondary);
}

.bfds-code-example .token.variable,
.bfds-syntax-highlight .token.variable {
  color: var(--bfds-text-08);
}

.bfds-code-example .token.function,
.bfds-code-example .token.class-name,
.bfds-syntax-highlight .token.function,
.bfds-syntax-highlight .token.class-name {
  color: var(--bfds-text-highlight);
  font-weight: 600;
}

.bfds-code-example .token.tag,
.bfds-syntax-highlight .token.tag {
  color: var(--bfds-warning);
}

.bfds-code-example .token.builtin,
.bfds-syntax-highlight .token.builtin {
  color: var(--bfds-text-highlight-06);
}


.bfds-code-example__footer {
  width: 100%;
  padding: 8px 12px;
  background-color: var(--bfds-background-hover);
  border-top: 1px solid var(--bfds-border);
  border: none;
  border-top: 1px solid var(--bfds-border);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  color: var(--bfds-text-secondary);
  font-family: var(--fontFamily);
  font-size: 14px;
}

.bfds-code-example__footer:hover {
  background-color: var(--bfds-background-active);
  color: var(--bfds-text);
}

.bfds-code-example__footer-icon {
  opacity: 0.8;
}

.bfds-code-example__footer-text {
  font-weight: 500;
}

.bfds-example__group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.bfds-example__group--align-center {
  align-items: center;
}

.bfds-example__group--align-end {
  align-items: flex-end;
}

.bfds-example__item {
  text-align: center;
}

.bfds-example__label {
  font-size: 12px;
  margin-top: 4px;
  color: var(--bfds-text-secondary);
}

.bfds-example__controls {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.bfds-example__control {
  display: flex;
  flex-direction: column;
}

.bfds-example__control-label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.bfds-example__input {
  padding: 8px 12px;
  border-radius: calc(4px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  border: 1px solid var(--bfds-border);
  background-color: var(--bfds-background);
  color: var(--bfds-text);
  font-size: 14px;
}

.bfds-example__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.bfds-example__grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--bfds-border);
  border-radius: calc(6px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  background-color: var(--bfds-background-hover);
  text-align: center;
}

.bfds-example__grid-item-label {
  font-size: 11px;
  margin-top: 8px;
  color: var(--bfds-text-secondary);
  word-break: break-word;
}

/* Range */

.bfds-range-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  margin-bottom: 16px;
}

.bfds-range-container--with-ticks {
  padding-bottom: 32px;
}

.bfds-range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bfds-range-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--bfds-text);
  line-height: 1.4;
}

.bfds-range-required {
  color: var(--bfds-error);
  margin-left: 2px;
}

.bfds-range-value {
  font-family: "DM Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--bfds-text);
  background-color: var(--bfds-background-solid-1);
  border: 1px solid var(--bfds-border-subtle);
  padding: 4px 12px;
  border-radius: calc(12px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  transition: all 0.2s ease-in-out;
}

.bfds-range-container:hover .bfds-range-value {
  background-color: var(--bfds-primary);
  color: var(--bfds-primary-content);
}

.bfds-range-wrapper {
  position: relative;
  padding: 0;
}

.bfds-range-track {
  position: absolute;
  width: 100%;
  height: 8px;
  background-color: var(--bfds-track);
  border-radius: calc(4px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: all 0.2s ease-in-out;
}

.bfds-range-fill {
  position: absolute;
  height: 100%;
  background-color: var(--bfds-primary);
  border-radius: calc(4px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  transition: width 0.1s ease-out;
}

.bfds-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
}

.bfds-range::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 8px;
  border: none;
  margin: 0;
  padding: 0;
}

.bfds-range::-moz-range-track {
  appearance: none;
  background: transparent;
  height: 8px;
  border: none;
  margin: 0;
  padding: 0;
}

.bfds-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--bfds-background);
  border: 2px solid var(--bfds-range-custom-color, var(--bfds-primary));
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-top: 0;
}

.bfds-range::-moz-range-thumb {
  appearance: none;
  background-color: var(--bfds-background);
  border: 2px solid var(--bfds-range-custom-color, var(--bfds-primary));
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-top: 0;
}

.bfds-range:hover::-webkit-slider-thumb {
  transform: scale(1.1);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.bfds-range:hover::-moz-range-thumb {
  transform: scale(1.1);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.bfds-range:hover ~ .bfds-range-track {
  background-color: var(--bfds-track-subtle);
}

.bfds-range:focus {
  outline: none;
}

.bfds-range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px var(--bfds-focus-outline), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bfds-range:focus::-moz-range-thumb {
  box-shadow: 0 0 0 4px var(--bfds-focus-outline), 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Range sizes */
.bfds-range--small::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: -4px;
}

.bfds-range--small::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: -4px;
}

.bfds-range--medium::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-top: -6px;
}

.bfds-range--medium::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-top: -6px;
}

.bfds-range--large::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-top: -8px;
}

.bfds-range--large::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-top: -8px;
}

/* Range states */
.bfds-range-container--error .bfds-range-track {
  background-color: var(--bfds-track-error);
}

.bfds-range-container--error .bfds-range-fill {
  background-color: var(--bfds-error);
}

.bfds-range--error::-webkit-slider-thumb {
  border-color: var(--bfds-error);
}

.bfds-range--error::-moz-range-thumb {
  border-color: var(--bfds-error);
}

.bfds-range-container--success .bfds-range-track {
  background-color: var(--bfds-track-success);
}

.bfds-range-container--success .bfds-range-fill {
  background-color: var(--bfds-success);
}

.bfds-range--success::-webkit-slider-thumb {
  border-color: var(--bfds-success);
}

.bfds-range--success::-moz-range-thumb {
  border-color: var(--bfds-success);
}

.bfds-range--disabled {
  cursor: not-allowed;
}

.bfds-range-container--disabled {
  opacity: 0.6;
}

.bfds-range-container--disabled .bfds-range-track {
  background-color: var(--bfds-track-subtle);
}

.bfds-range-container--disabled .bfds-range-fill {
  background-color: var(--bfds-text-muted);
}

.bfds-range--disabled::-webkit-slider-thumb {
  cursor: not-allowed;
  background-color: var(--bfds-text-muted);
  border-color: var(--bfds-text-muted);
  box-shadow: none;
}

.bfds-range--disabled::-moz-range-thumb {
  cursor: not-allowed;
  background-color: var(--bfds-text-muted);
  border-color: var(--bfds-text-muted);
  box-shadow: none;
}

/* Range ticks */
.bfds-range-ticks {
  position: absolute;
  width: 100%;
  top: 100%;
  left: 0;
  margin-top: 2px;
  pointer-events: none;
}

.bfds-range-tick {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bfds-range-tick--first {
  transform: translateX(0);
  align-items: flex-start;
}

.bfds-range-tick--last {
  transform: translateX(-100%);
  align-items: flex-end;
}

.bfds-range-tick-mark {
  width: 2px;
  height: 8px;
  background-color: var(--bfds-secondary);
  opacity: 0.5;
}

.bfds-range-tick-label {
  font-size: 11px;
  color: var(--bfds-text-secondary);
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
}

/* Range help and messages */
.bfds-range-help {
  font-size: 12px;
  color: var(--bfds-text-secondary);
  line-height: 1.3;
  margin-top: 4px;
}

.bfds-range-error {
  font-size: 12px;
  color: var(--bfds-error);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.bfds-range-success {
  font-size: 12px;
  color: var(--bfds-success);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* Button Row */

.bfds-button-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: fit-content;
}

.bfds-button-row__labels {
  position: relative;
  margin-top: 0;
  height: 20px;
}

.bfds-button-row__tick-label {
  font-size: 12px;
  color: var(--bfds-text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.bfds-button-row__buttons {
  display: flex;
  justify-content: center;
}

.bfds-button-row__radio {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.bfds-button-row__button {
  background: none;
  border: 1px solid var(--bfds-border);
  border-right: none;
  color: var(--bfds-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.15s ease;
  border-radius: 0;
  position: relative;
  transform-origin: center bottom;
  backdrop-filter: blur(3px);
}

.bfds-button-row__button:first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.bfds-button-row__button:last-child {
  border-right: 1px solid var(--bfds-border);
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

/* Size variants */
.bfds-button-row__button--small {
  height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.bfds-button-row__button--medium {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.bfds-button-row__button--large {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

/* Variant styles */
.bfds-button-row__button--negative {
  background-color: var(--bfds-error-02);
}

.bfds-button-row__button--positive {
  background-color: var(--bfds-success-02);
}

.bfds-button-row__button--neutral {
  background-color: var(--bfds-background-hover);
}
.bfds-button-row__button--primary {
  background-color: var(--bfds-primary-02);
}

.bfds-button-row__button--selected-negative {
  background-color: var(--bfds-error);
  color: white;
}

.bfds-button-row__button--selected-positive {
  background-color: var(--bfds-success);
  color: white;
}

.bfds-button-row__button--selected-neutral {
  background-color: var(--bfds-background-solid-9);
  color: var(--bfds-text);
}
.bfds-button-row__button--selected-primary {
  background-color: var(--bfds-primary);
  color: var(--bfds-primary-content);
}

/* Hover variants */
.bfds-button-row__button--negative:hover:not(:disabled) {
  background-color: var(--bfds-error-06);
}

.bfds-button-row__button--positive:hover:not(:disabled) {
  background-color: var(--bfds-success-06);
}

.bfds-button-row__button--neutral:hover:not(:disabled) {
  background-color: var(--bfds-background-active);
}
.bfds-button-row__button--primary:hover:not(.bfds-button-row__button--disabled) {
  background-color: var(--bfds-primary-06);
}

/* Hover effect for all buttons */
.bfds-button-row__button:hover:not(.bfds-button-row__button--disabled) {
  transform: scale(1.2, 1.3);
  z-index: 1;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

/* Disabled state */
.bfds-button-row__button--disabled {
  background-color: var(--bfds-background-solid-2);
  border-color: var(--bfds-border);
  color: var(--bfds-text-muted);
  cursor: not-allowed;
}

.bfds-button-row__button--disabled:hover {
  transform: none;
}

/* Focus states */
.bfds-button-row__button:focus {
  outline: 2px solid var(--bfds-primary-06);
  outline-offset: 2px;
}

/* Modal */

.bfds-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bfds-background-06);
  backdrop-filter: blur(0.75px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: bfds-modal-backdrop-in 0.2s ease-out;
  padding: 2rem;
}

@keyframes bfds-modal-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.bfds-modal {
  background-color: var(--bfds-background-solid-1);
  border: 1px solid var(--bfds-border);
  border-radius: calc(12px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  animation: bfds-modal-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  position: relative;
}

@keyframes bfds-modal-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Modal sizes */
.bfds-modal--small {
  width: 100%;
  max-width: 400px;
}

.bfds-modal--medium {
  width: 100%;
  max-width: 600px;
}

.bfds-modal--large {
  width: 100%;
  max-width: 900px;
}

.bfds-modal--fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  border-radius: 0;
}

.bfds-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--bfds-border);
  flex-shrink: 0;
}

.bfds-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bfds-text);
  line-height: 1.2;
}

.bfds-modal-title--sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bfds-modal-close {
  margin-left: auto;
  margin-right: -0.5rem;
}

.bfds-modal-body {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  color: var(--bfds-text);
}

.bfds-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.5rem;
  border-top: 1px solid var(--bfds-border);
  flex-shrink: 0;
}

.bfds-page-layout__sheet-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: block;
  z-index: 20;
}

.bfds-page-layout__sheet-container > * {
  pointer-events: auto;
}

.bfds-sheet-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: var(--bfds-background-06);
  backdrop-filter: blur(0.75px);
  display: flex;
  align-items: stretch;
  z-index: 9999;
  animation: bfds-sheet-backdrop-in 0.2s ease-out;
}
.bfds-sheet-backdrop--click-through {
  pointer-events: none;
  background-color: transparent;
  backdrop-filter: none;
}

.bfds-sheet-backdrop--right {
  justify-content: flex-end;
}

.bfds-sheet-backdrop--left {
  justify-content: flex-start;
}

.bfds-sheet-backdrop--closing {
  animation: bfds-sheet-backdrop-out 0.2s ease-in forwards;
}

.bfds-page-layout__sheet-container .bfds-sheet-backdrop {
  position: absolute;
}

.bfds-sheet {
  height: 100%;
  background-color: var(--bfds-background-solid-1);
  border-left: 1px solid var(--bfds-border);
  border-radius: calc(1.25rem * var(--corner-radius-scale, 1)) 0 0 calc(1.25rem * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--bfds-text);
  outline: none;
  padding: 1.5rem;
  box-sizing: border-box;
  transform: translateX(0);
  animation: bfds-sheet-in-right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: both;
  pointer-events: all;
}

.bfds-sheet--left {
  border-radius: 0 calc(1.25rem * var(--corner-radius-scale, 1)) calc(1.25rem * var(--corner-radius-scale, 1)) 0;
  corner-shape: squircle;
  border-left: none;
  border-right: 1px solid var(--bfds-border);
  animation: bfds-sheet-in-left 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: both;
}

.bfds-sheet--small {
  max-width: 360px;
}

.bfds-sheet--medium {
  max-width: 540px;
}

.bfds-sheet--large {
  max-width: 720px;
}

.bfds-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--bfds-border-subtle);
}

h2.bfds-sheet__title {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  margin: 0;
  color: inherit;
}

.bfds-sheet__title-text {
  flex: 1;
}

.bfds-sheet__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bfds-sheet__body {
  flex: 1 1 auto;
  overflow-y: auto;
}

.bfds-sheet__footer {
  border-top: 1px solid var(--bfds-border-subtle);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.bfds-sheet--closing {
  animation: bfds-sheet-out-right 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bfds-sheet--left.bfds-sheet--closing {
  animation: bfds-sheet-out-left 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bfds-sheet-in-right {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bfds-sheet-in-left {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bfds-sheet-out-right {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(32px);
  }
}

@keyframes bfds-sheet-out-left {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-32px);
  }
}

@keyframes bfds-sheet-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bfds-sheet-backdrop-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .bfds-modal-backdrop {
    padding: 1rem;
  }
  
  .bfds-modal--small,
  .bfds-modal--medium,
  .bfds-modal--large {
    max-width: 100%;
  }
  
  .bfds-modal-header,
  .bfds-modal-body,
  .bfds-modal-footer {
    padding: 1rem;
  }
}

/* Empty State */

.bfds-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.bfds-empty-state__icon {
  margin-bottom: 1rem;
  color: var(--bfds-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bfds-empty-state__title {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bfds-text);
  line-height: 1.3;
}

.bfds-empty-state__description {
  margin: 0 0 1.5rem 0;
  font-size: 0.875rem;
  color: var(--bfds-text-secondary);
  line-height: 1.5;
  max-width: 400px;
}

.bfds-empty-state__content {
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 500px;
}

.bfds-empty-state__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Empty State sizes */
.bfds-empty-state--small {
  padding: 1.5rem;
}

.bfds-empty-state--small .bfds-empty-state__icon {
  margin-bottom: 0.75rem;
}

.bfds-empty-state--small .bfds-empty-state__title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.bfds-empty-state--small .bfds-empty-state__description {
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  max-width: 300px;
}

.bfds-empty-state--small .bfds-empty-state__content {
  margin-bottom: 1rem;
}

.bfds-empty-state--medium {
  padding: 2rem;
}

.bfds-empty-state--large {
  padding: 3rem;
}

.bfds-empty-state--large .bfds-empty-state__icon {
  margin-bottom: 1.5rem;
}

.bfds-empty-state--large .bfds-empty-state__title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.bfds-empty-state--large .bfds-empty-state__description {
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.bfds-empty-state--large .bfds-empty-state__content {
  margin-bottom: 2rem;
}

/* Responsive adjustments for empty state */
@media (max-width: 640px) {
  .bfds-empty-state {
    padding: 1.5rem 1rem;
  }
  
  .bfds-empty-state--small {
    padding: 1rem;
  }
  
  .bfds-empty-state--large {
    padding: 2rem 1rem;
  }
  
  .bfds-empty-state__actions {
    flex-direction: column;
    width: 100%;
  }
  
  .bfds-empty-state__actions .bfds-button {
    width: 100%;
    justify-content: center;
  }
}

/* BfDs Card */
.bfds-card {
  display: flex;
  flex-direction: column;
  background: var(--bfds-background);
  border-radius: calc(16px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  transition: all 0.2s ease;
  position: relative;
  color: var(--bfds-text);
}

/* Card Variants */
.bfds-card--default {
  background: var(--bfds-background-hover);
  border: 1px solid var(--bfds-border-subtle);
}

.bfds-card--elevated {
  background: var(--bfds-background-solid-1);
  box-shadow: var(--bfds-shadow-md);
  border: 1px solid var(--bfds-primary-02);
}

.bfds-card--outlined {
  background: var(--bfds-background);
  border: 2px solid var(--bfds-border);
}

.bfds-card--flat {
  background: var(--bfds-background-005);
  border: none;
}

.bfds-card--form {
  background: var(--bfds-background-solid-1);
  border: 1px solid var(--bfds-border);
  border-radius: calc(18px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  box-shadow: none;
}

.bfds-card--translucent {
  background: color-mix(in srgb, var(--bfds-background-solid-1) 74%, transparent);
  border-color: color-mix(in srgb, var(--bfds-border-subtle) 88%, transparent);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

/* Card Sizes */
.bfds-card--small .bfds-card__body {
  padding: 12px;
}

.bfds-card--medium .bfds-card__body {
  padding: 16px;
}

.bfds-card--large .bfds-card__body {
  padding: 24px;
}
.with-table .bfds-card__body {
  padding: 0;
}

.bfds-card--small .bfds-card__header,
.bfds-card--small .bfds-card__footer {
  padding: 8px 12px;
}

.bfds-card--medium .bfds-card__header,
.bfds-card--medium .bfds-card__footer {
  padding: 12px 16px;
}

.bfds-card--large .bfds-card__header,
.bfds-card--large .bfds-card__footer {
  padding: 16px 24px;
}

.bfds-card--form.bfds-card--small .bfds-card__body,
.bfds-card--form.bfds-card--medium .bfds-card__body,
.bfds-card--form.bfds-card--large .bfds-card__body {
  padding: 26px;
  gap: 16px;
  text-align: left;
}

.bfds-card--form .bfds-card__header,
.bfds-card--form .bfds-card__footer {
  padding: 26px;
  border: none;
}

/* Card Sections */
.bfds-card__header {
  border-bottom: 1px solid var(--bfds-border);
  font-weight: 500;
  display: flex;
  align-items: center;
  min-height: 40px;
}

.bfds-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bfds-card__body--padding-none {
  padding: 0 !important;
}

.bfds-card__body--padding-small {
  padding: 12px !important;
}

.bfds-card__body--padding-medium {
  padding: 16px !important;
}

.bfds-card__body--padding-large {
  padding: 24px !important;
}

.bfds-card__footer {
  border-top: 1px solid var(--bfds-border);
  display: flex;
  align-items: center;
  min-height: 40px;
}

/* Clickable Cards */
.bfds-card--clickable {
  cursor: pointer;
  user-select: none;
}

.bfds-card--clickable:hover:not(.bfds-card--disabled) {
  transform: translateY(-1px);
}

.bfds-card--clickable.bfds-card--default:hover:not(.bfds-card--disabled) {
  background: var(--bfds-background-active);
  border-color: var(--bfds-border-hover);
}

.bfds-card--clickable.bfds-card--elevated:hover:not(.bfds-card--disabled) {
  background: var(--bfds-background-active);
  box-shadow: 0 6px 12px var(--bfds-background-06), 0 3px 6px var(--bfds-background-08);
}

.bfds-card--clickable.bfds-card--outlined:hover:not(.bfds-card--disabled) {
  background: var(--bfds-background-hover);
  border-color: var(--bfds-border-hover);
}

.bfds-card--clickable.bfds-card--flat:hover:not(.bfds-card--disabled) {
  background: var(--bfds-background-01);
}

.bfds-card--clickable:focus-visible {
  outline: 2px solid var(--bfds-primary);
  outline-offset: 2px;
}

.bfds-card--clickable:active:not(.bfds-card--disabled) {
  transform: translateY(0);
}

/* Selected State */
.bfds-card--selected {
  border-color: var(--bfds-primary);
  background: var(--bfds-primary-01);
}

.bfds-card--selected.bfds-card--outlined {
  border-color: var(--bfds-primary);
  border-width: 2px;
}

.bfds-card--selected.bfds-card--elevated {
  box-shadow: 0 4px 8px var(--bfds-primary-02), 0 2px 4px var(--bfds-background-08);
}

/* Disabled State */
.bfds-card--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .bfds-card--small .bfds-card__body {
    padding: 8px;
  }
  
  .bfds-card--medium .bfds-card__body {
    padding: 12px;
  }
  
  .bfds-card--large .bfds-card__body {
    padding: 16px;
  }
  
  .bfds-card--small .bfds-card__header,
  .bfds-card--small .bfds-card__footer {
    padding: 6px 8px;
  }
  
  .bfds-card--medium .bfds-card__header,
  .bfds-card--medium .bfds-card__footer {
    padding: 8px 12px;
  }
  
  .bfds-card--large .bfds-card__header,
  .bfds-card--large .bfds-card__footer {
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .bfds-card--form .bfds-card__body {
    gap: 1rem;
  }
}

/* BfDs Badge */
.bfds-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  border-radius: calc(4px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  transition: all 0.2s ease;
  white-space: nowrap;
  vertical-align: top;
  box-sizing: border-box;
  border: 1px solid transparent;
}

/* Badge Sizes */
.bfds-badge--small {
  padding: 2px 6px;
  font-size: 0.75rem;
  line-height: 1.2;
  min-height: 18px;
}

.bfds-badge--medium {
  padding: 4px 8px;
  font-size: 0.875rem;
  line-height: 1.2;
  min-height: 22px;
}

.bfds-badge--large {
  padding: 6px 12px;
  font-size: 0.875rem;
  line-height: 1.3;
  min-height: 28px;
}

/* Badge Variants - Filled (more transparent, less button-like) */
.bfds-badge--default {
  background: var(--bfds-background-02-solid);
  color: var(--bfds-text-secondary);
  border-color: var(--bfds-border);
}

.bfds-badge--primary {
  background: var(--bfds-primary-02-solid);
  color: var(--bfds-text-highlight);
  border-color: var(--bfds-primary-04);
}

.bfds-badge--secondary {
  background: var(--bfds-secondary-02-solid);
  color: var(--bfds-secondary);
  border-color: var(--bfds-secondary-04);
}

.bfds-badge--success {
  background: var(--bfds-success-02-solid);
  color: var(--bfds-success);
  border-color: var(--bfds-success-04);
}

.bfds-badge--warning {
  background: var(--bfds-warning-02-solid);
  color: var(--bfds-warning);
  border-color: var(--bfds-warning-04);
}

.bfds-badge--error {
  background: var(--bfds-error-02-solid);
  color: var(--bfds-error);
  border-color: var(--bfds-error-04);
}

.bfds-badge--info {
  background: var(--bfds-info-02-solid);
  color: var(--bfds-info);
  border-color: var(--bfds-info-04);
}

/* Badge Variants - Outlined */
.bfds-badge--outlined.bfds-badge--default {
  background: transparent;
  color: var(--bfds-text);
  border-color: var(--bfds-border);
}

.bfds-badge--outlined.bfds-badge--primary {
  background: transparent;
  color: var(--bfds-text-highlight);
  border-color: var(--bfds-primary);
}

.bfds-badge--outlined.bfds-badge--secondary {
  background: transparent;
  color: var(--bfds-secondary);
  border-color: var(--bfds-secondary);
}

.bfds-badge--outlined.bfds-badge--success {
  background: transparent;
  color: var(--bfds-success);
  border-color: var(--bfds-success);
}

.bfds-badge--outlined.bfds-badge--warning {
  background: transparent;
  color: var(--bfds-warning);
  border-color: var(--bfds-warning);
}

.bfds-badge--outlined.bfds-badge--error {
  background: transparent;
  color: var(--bfds-error);
  border-color: var(--bfds-error);
}

.bfds-badge--outlined.bfds-badge--info {
  background: transparent;
  color: var(--bfds-info);
  border-color: var(--bfds-info);
}

/* Rounded Badge */
.bfds-badge--rounded {
  border-radius: calc(12px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
}

/* Clickable Badge */
.bfds-badge--clickable {
  cursor: pointer;
  user-select: none;
}

.bfds-badge--clickable:hover {
  transform: translateY(-1px);
}

.bfds-badge--clickable.bfds-badge--default:hover {
  background: color-mix(in srgb, var(--bfds-background-02-solid) 84%, var(--bfds-background-solid-3) 16%);
  border-color: var(--bfds-border-hover);
}

.bfds-badge--clickable.bfds-badge--primary:hover {
  background: color-mix(in srgb, var(--bfds-primary-02-solid) 84%, var(--bfds-primary) 16%);
  border-color: var(--bfds-primary-06);
}

.bfds-badge--clickable.bfds-badge--secondary:hover {
  background: color-mix(in srgb, var(--bfds-secondary-02-solid) 84%, var(--bfds-secondary) 16%);
  border-color: var(--bfds-secondary-06);
}

.bfds-badge--clickable.bfds-badge--success:hover {
  background: color-mix(in srgb, var(--bfds-success-02-solid) 84%, var(--bfds-success) 16%);
  border-color: var(--bfds-success-06);
}

.bfds-badge--clickable.bfds-badge--warning:hover {
  background: color-mix(in srgb, var(--bfds-warning-02-solid) 84%, var(--bfds-warning) 16%);
  border-color: var(--bfds-warning-06);
}

.bfds-badge--clickable.bfds-badge--error:hover {
  background: color-mix(in srgb, var(--bfds-error-02-solid) 84%, var(--bfds-error) 16%);
  border-color: var(--bfds-error-06);
}

.bfds-badge--clickable.bfds-badge--info:hover {
  background: color-mix(in srgb, var(--bfds-info-02-solid) 84%, var(--bfds-info) 16%);
  border-color: var(--bfds-info-06);
}

.bfds-badge--clickable:focus-visible {
  outline: 2px solid var(--bfds-primary);
  outline-offset: 2px;
}

.bfds-badge--clickable:active {
  transform: translateY(0);
}

/* Badge Content */
.bfds-badge__content {
  display: flex;
  align-items: center;
}

.bfds-badge__icon {
  flex-shrink: 0;
}

/* Remove Button */
.bfds-badge__remove {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(2px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  transition: background-color 0.2s ease;
  color: inherit;
  opacity: 0.7;
  margin-left: 2px;
}

.bfds-badge__remove:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.bfds-badge__remove:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 1px;
}

.bfds-badge--small .bfds-badge__remove {
  width: 14px;
  height: 14px;
}

.bfds-badge--medium .bfds-badge__remove {
  width: 16px;
  height: 16px;
}

.bfds-badge--large .bfds-badge__remove {
  width: 18px;
  height: 18px;
}

/* Hover states for outlined clickable badges */
.bfds-badge--clickable.bfds-badge--outlined.bfds-badge--default:hover {
  background: var(--bfds-background-02-solid);
}

.bfds-badge--clickable.bfds-badge--outlined.bfds-badge--primary:hover {
  background: var(--bfds-primary-02-solid);
}

.bfds-badge--clickable.bfds-badge--outlined.bfds-badge--secondary:hover {
  background: var(--bfds-secondary-02-solid);
}

.bfds-badge--clickable.bfds-badge--outlined.bfds-badge--success:hover {
  background: var(--bfds-success-02-solid);
}

.bfds-badge--clickable.bfds-badge--outlined.bfds-badge--warning:hover {
  background: var(--bfds-warning-02-solid);
}

.bfds-badge--clickable.bfds-badge--outlined.bfds-badge--error:hover {
  background: var(--bfds-error-02-solid);
}

.bfds-badge--clickable.bfds-badge--outlined.bfds-badge--info:hover {
  background: var(--bfds-info-02-solid);
}

/* Badge Dot Variant */
.bfds-badge--dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  border: none;
  padding: 0;
  min-height: unset;
  gap: unset;
}

.bfds-badge--dot.bfds-badge--default {
  background-color: var(--bfds-secondary);
}

.bfds-badge--dot.bfds-badge--primary {
  background-color: var(--bfds-primary);
}

.bfds-badge--dot.bfds-badge--secondary {
  background-color: var(--bfds-secondary);
}

.bfds-badge--dot.bfds-badge--success {
  background-color: var(--bfds-success);
}

.bfds-badge--dot.bfds-badge--warning {
  background-color: var(--bfds-warning);
}

.bfds-badge--dot.bfds-badge--error {
  background-color: var(--bfds-error);
}

.bfds-badge--dot.bfds-badge--info {
  background-color: var(--bfds-info);
}

/* HUD Styles */
.hud-container {
  width: 600px;
  max-width: calc(100vw - 40px);
  background: var(--bfds-background-08);
  border: 1px solid var(--bfds-border);
  border-radius: calc(8px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  max-height: 500px;
}

.hud-shell {
  position: fixed;
  z-index: 2147483647;
}

.hud-shell .hud-collapsed-actions {
  position: absolute;
  top: 4px;
}

.hud-shell .hud-collapsed-actions--right {
  left: calc(100% + 8px);
}

.hud-shell .hud-collapsed-actions--left {
  right: calc(100% + 8px);
}

.hud-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--bfds-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hud-container--collapsible .hud-header {
  max-height: 28px;
  padding: 0 0.5rem;
  gap: 0.375rem;
}

.hud-container--collapsible.hud-container--collapsed {
  width: fit-content;
  max-width: calc(100vw - 40px);
}

.hud-drag-handle {
  cursor: grab;
  padding: 0 0.5rem;
  margin-left: -0.5rem;
  display: flex;
  align-items: center;
  color: var(--bfds-text-secondary);
  transition: color 0.15s ease;
}

.hud-drag-handle:hover {
  color: var(--bfds-text);
}

.hud-drag-handle:active {
  cursor: grabbing;
}

.hud-header h3 {
  margin: 0;
  font-size: 1rem;
  flex: 1;
  font-weight: 600;
  color: var(--bfds-text);
  cursor: grab;
  user-select: none;
}

.hud-container--collapsible .hud-header h3 {
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-header-controls {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

.hud-header-controls {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.hud-header-controls--visible {
  opacity: 1;
  pointer-events: auto;
}

.hud-collapsed-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.hud-collapsed-action {
  white-space: nowrap;
  background: var(--bfds-background-02-solid);
  border: 1px solid var(--bfds-border);
  color: var(--bfds-text);
  box-shadow: none;
}

.hud-collapsed-action.bfds-badge--clickable:hover,
.hud-collapsed-action.bfds-badge--clickable.bfds-badge--default:hover,
.hud-collapsed-action.bfds-badge--clickable.bfds-badge--primary:hover,
.hud-collapsed-action.bfds-badge--clickable.bfds-badge--secondary:hover,
.hud-collapsed-action.bfds-badge--clickable.bfds-badge--success:hover,
.hud-collapsed-action.bfds-badge--clickable.bfds-badge--warning:hover,
.hud-collapsed-action.bfds-badge--clickable.bfds-badge--error:hover,
.hud-collapsed-action.bfds-badge--clickable.bfds-badge--info:hover {
  background: var(--bfds-background-02-solid);
  border-color: var(--bfds-primary);
}

.hud-collapsed-action.bfds-badge--clickable:active,
.hud-collapsed-action.bfds-badge--clickable.bfds-badge--default:active,
.hud-collapsed-action.bfds-badge--clickable.bfds-badge--primary:active,
.hud-collapsed-action.bfds-badge--clickable.bfds-badge--secondary:active,
.hud-collapsed-action.bfds-badge--clickable.bfds-badge--success:active,
.hud-collapsed-action.bfds-badge--clickable.bfds-badge--warning:active,
.hud-collapsed-action.bfds-badge--clickable.bfds-badge--error:active,
.hud-collapsed-action.bfds-badge--clickable.bfds-badge--info:active {
  background: var(--bfds-background-02-solid);
}

.hud-collapsed-action--disabled {
  background: var(--bfds-background-02-solid);
  border-color: var(--bfds-border);
  color: var(--bfds-text-secondary);
  cursor: default;
}

.hud-header h3:active {
  cursor: grabbing;
}

.hud-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.hud-buttons-panel {
  width: 180px;
  border-right: 1px solid var(--bfds-border);
  padding: 1rem;
  overflow-y: auto;
}

.hud-buttons-panel h4 {
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bfds-text-secondary);
}

.hud-buttons-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hud-button {
  width: 100%;
  justify-content: flex-start;
}

.hud-button--toggle {
  /* Optional: Add any special styling for toggle buttons */
}

.hud-no-buttons {
  color: var(--bfds-text-secondary);
  font-size: 0.75rem;
  text-align: center;
  padding: 1rem 0;
}

.hud-console-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hud-inputs {
  padding: 1rem;
  border-bottom: 1px solid var(--bfds-border);
  display: flex;
  gap: 0.75rem;
}

.hud-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: var(--bfds-background);
  border: 1px solid var(--bfds-border);
  border-radius: calc(4px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  color: var(--bfds-text);
  font-size: 0.875rem;
  transition: border-color 0.15s ease;
}

.hud-input:focus {
  outline: none;
  border-color: var(--bfds-primary);
}

.hud-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hud-messages-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--bfds-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-messages-header h4 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bfds-text-secondary);
}

.hud-messages-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.hud-message-counter {
  font-size: 0.75rem;
  color: var(--bfds-text-secondary);
  padding: 0 0.5rem;
}

.hud-messages-content {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.hud-no-messages {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--bfds-text-secondary);
}

.hud-no-messages p {
  margin: 0.5rem 0 0 0;
  font-size: 0.875rem;
}

.hud-message {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: calc(6px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  background: var(--bfds-background);
  border: 1px solid var(--bfds-border);
}

.hud-message--info {
  border-color: var(--bfds-primary-02);
  background: var(--bfds-primary-01);
}

.hud-message--success {
  border-color: var(--bfds-success-02);
  background: var(--bfds-success-01);
}

.hud-message--warning {
  border-color: var(--bfds-warning-02);
  background: var(--bfds-warning-01);
}

.hud-message--error {
  border-color: var(--bfds-error-02);
  background: var(--bfds-error-01);
}

.hud-message-body {
  flex: 1;
}

.hud-message-content {
  color: var(--bfds-text);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.hud-message-timestamp {
  color: var(--bfds-text-secondary);
  font-size: 0.75rem;
}

/* === Breadcrumb styles === */
.deck-detail-breadcrumb,
.bfds-breadcrumb {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 12px 0;
}
.bfds-tabs__left-content .deck-detail-breadcrumb,
.bfds-tabs__left-content .bfds-breadcrumb {
  padding: 6px 24px 0 4px;
}

.breadcrumb-separator,
.bfds-breadcrumb-separator {
  color: var(--bfds-text-muted);
  font-size: 14px;
  user-select: none;
}

.bfds-breadcrumb-label {
  color: var(--bfds-text-muted);
  font-size: 12px;
  padding: 0 12px;
}

.bfds-breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.bfds-breadcrumb-item .bfds-breadcrumb-label {
  padding-right: 6px;
}

.breadcrumb-current,
.bfds-breadcrumb-current {
  font-weight: 500;
  color: var(--bfds-text);
  font-size: 24px;
  /* To align with other breadcrumbs baseline */
  transform: translateY(-4.5px);
  display: inline-block;
}

.bfds-breadcrumb-button {
  font-weight: 500;
}

.bfds-breadcrumb-dropdown .bfds-button {
  padding: 0 6px;
}

.bfds-breadcrumb-dropdown--current {
  margin-top: -4px;
}

/* Progress Bar */
.bfds-progress-bar-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.bfds-progress-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bfds-progress-bar-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--bfds-text);
  line-height: 1.4;
}

.bfds-progress-bar-value {
  font-family: "DM Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--bfds-text);
  background-color: var(--bfds-background-hover);
  border: 1px solid var(--bfds-border);
  border-radius: calc(4px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  padding: 2px 6px;
  line-height: 1.2;
  transition: all 0.2s ease-in-out;
}

.bfds-progress-bar-wrapper {
  position: relative;
  padding: 0;
  height: 8px;
}

.bfds-progress-bar-track {
  position: absolute;
  width: 100%;
  height: 8px;
  background-color: var(--bfds-track);
  border-radius: calc(4px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}

.bfds-progress-bar-fill {
  position: absolute;
  height: 100%;
  background-color: var(--bfds-progress-bar-custom-color, var(--bfds-primary));
  border-radius: calc(4px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  transition: width 0.3s ease-out;
}

.bfds-progress-bar {
  position: absolute;
  width: 100%;
  height: 8px;
  pointer-events: none;
}

/* Progress Bar sizes */
.bfds-progress-bar--xsmall .bfds-progress-bar-wrapper,
.bfds-progress-bar--xsmall .bfds-progress-bar-track,
.bfds-progress-bar--xsmall .bfds-progress-bar {
  height: 4px;
}

.bfds-progress-bar--small .bfds-progress-bar-wrapper,
.bfds-progress-bar--small .bfds-progress-bar-track,
.bfds-progress-bar--small .bfds-progress-bar {
  height: 6px;
}

.bfds-progress-bar--medium .bfds-progress-bar-wrapper,
.bfds-progress-bar--medium .bfds-progress-bar-track,
.bfds-progress-bar--medium .bfds-progress-bar {
  height: 8px;
}

.bfds-progress-bar--large .bfds-progress-bar-wrapper,
.bfds-progress-bar--large .bfds-progress-bar-track,
.bfds-progress-bar--large .bfds-progress-bar {
  height: 10px;
}

.bfds-progress-bar-container--xsmall .bfds-progress-bar-wrapper,
.bfds-progress-bar-container--xsmall .bfds-progress-bar-track,
.bfds-progress-bar-container--xsmall .bfds-progress-bar {
  height: 4px;
}

.bfds-progress-bar-container--small .bfds-progress-bar-wrapper,
.bfds-progress-bar-container--small .bfds-progress-bar-track,
.bfds-progress-bar-container--small .bfds-progress-bar {
  height: 6px;
}

.bfds-progress-bar-container--medium .bfds-progress-bar-wrapper,
.bfds-progress-bar-container--medium .bfds-progress-bar-track,
.bfds-progress-bar-container--medium .bfds-progress-bar {
  height: 8px;
}

.bfds-progress-bar-container--large .bfds-progress-bar-wrapper,
.bfds-progress-bar-container--large .bfds-progress-bar-track,
.bfds-progress-bar-container--large .bfds-progress-bar {
  height: 10px;
}

.bfds-progress-bar-container--workloop .bfds-progress-bar-wrapper,
.bfds-progress-bar-container--workloop .bfds-progress-bar-track,
.bfds-progress-bar-container--workloop .bfds-progress-bar {
  height: 18px;
}

.bfds-progress-bar-container--workloop.bfds-progress-bar-container--xsmall
  .bfds-progress-bar-wrapper,
.bfds-progress-bar-container--workloop.bfds-progress-bar-container--xsmall
  .bfds-progress-bar-track,
.bfds-progress-bar-container--workloop.bfds-progress-bar-container--xsmall
  .bfds-progress-bar {
  height: 10px;
}

.bfds-progress-bar-container--workloop.bfds-progress-bar-container--small
  .bfds-progress-bar-wrapper,
.bfds-progress-bar-container--workloop.bfds-progress-bar-container--small
  .bfds-progress-bar-track,
.bfds-progress-bar-container--workloop.bfds-progress-bar-container--small
  .bfds-progress-bar {
  height: 14px;
}

.bfds-progress-bar-container--workloop.bfds-progress-bar-container--large
  .bfds-progress-bar-wrapper,
.bfds-progress-bar-container--workloop.bfds-progress-bar-container--large
  .bfds-progress-bar-track,
.bfds-progress-bar-container--workloop.bfds-progress-bar-container--large
  .bfds-progress-bar {
  height: 24px;
}

.bfds-progress-bar-container--workloop {
  --bfds-progress-bar-workloop-fill: var(
    --bfds-progress-bar-custom-color,
    var(--bfds-primary)
  );
}

.bfds-progress-bar-container--workloop .bfds-progress-bar-track {
  background-color: transparent;
  border-radius: 999px;
  corner-shape: initial;
  overflow: visible;
}

.bfds-progress-bar-workloop-segments {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: visible;
  pointer-events: none;
}

.bfds-progress-bar-workloop-segment {
  position: relative;
  flex: 1 1 0;
  height: 100%;
  min-width: 0;
  margin-left: -8px;
  overflow: visible;
}

.bfds-progress-bar-workloop-segment--cap-compact.bfds-progress-bar-workloop-segment--first,
.bfds-progress-bar-workloop-segment--cap-compact.bfds-progress-bar-workloop-segment--last {
  flex: 0.56 1 0;
}

.bfds-progress-bar-container--workloop.bfds-progress-bar-container--xsmall
  .bfds-progress-bar-workloop-segment {
  margin-left: -4px;
}

.bfds-progress-bar-container--workloop.bfds-progress-bar-container--small
  .bfds-progress-bar-workloop-segment {
  margin-left: -6px;
}

.bfds-progress-bar-container--workloop.bfds-progress-bar-container--large
  .bfds-progress-bar-workloop-segment {
  margin-left: -12px;
}

.bfds-progress-bar-container--workloop
  .bfds-progress-bar-workloop-segment:first-child {
  margin-left: 0;
}

.bfds-progress-bar-workloop-segment-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  color: var(--bfds-progress-bar-workloop-fill);
  fill: currentColor;
}

.bfds-progress-bar-workloop-segment-shape path {
  fill: currentColor;
}

.bfds-progress-bar-workloop-segment-shape--base {
  opacity: 0.1;
}

.bfds-progress-bar-workloop-segment-shape--fill {
  opacity: var(--bfds-progress-bar-workloop-segment-opacity, 0);
  transition: opacity var(--bfds-progress-bar-workloop-segment-duration, 90ms)
    ease-out var(--bfds-progress-bar-workloop-segment-delay, 0ms);
}

/* Progress Bar states */
.bfds-progress-bar-container--error .bfds-progress-bar-track {
  background-color: var(--bfds-track-error);
}

.bfds-progress-bar-container--error .bfds-progress-bar-fill {
  background-color: var(--bfds-error);
}

.bfds-progress-bar-container--workloop.bfds-progress-bar-container--error {
  --bfds-progress-bar-workloop-fill: var(
    --bfds-progress-bar-custom-color,
    var(--bfds-error)
  );
}

.bfds-progress-bar-container--success .bfds-progress-bar-track {
  background-color: var(--bfds-track-success);
}

.bfds-progress-bar-container--success .bfds-progress-bar-fill {
  background-color: var(--bfds-success);
}

.bfds-progress-bar-container--workloop.bfds-progress-bar-container--success {
  --bfds-progress-bar-workloop-fill: var(
    --bfds-progress-bar-custom-color,
    var(--bfds-success)
  );
}

.bfds-progress-bar-container--warning .bfds-progress-bar-track {
  background-color: var(--bfds-track-warning);
}

.bfds-progress-bar-container--warning .bfds-progress-bar-fill {
  background-color: var(--bfds-warning);
}

.bfds-progress-bar-container--workloop.bfds-progress-bar-container--warning {
  --bfds-progress-bar-workloop-fill: var(
    --bfds-progress-bar-custom-color,
    var(--bfds-warning)
  );
}

.bfds-progress-bar-container--workloop.bfds-progress-bar-container--error
  .bfds-progress-bar-track,
.bfds-progress-bar-container--workloop.bfds-progress-bar-container--success
  .bfds-progress-bar-track,
.bfds-progress-bar-container--workloop.bfds-progress-bar-container--warning
  .bfds-progress-bar-track {
  background-color: transparent;
}

/* Progress Bar help text */
.bfds-progress-bar-help {
  font-size: 12px;
  color: var(--bfds-text-secondary);
  line-height: 1.3;
  margin-top: 4px;
}

/* Mock State Styles */
header.landing-header.landing-header--mock {
  background-color: var(--bfds-mock-background);
}

/* ============================
   BfDs Dropdown
   ============================ */

.bfds-dropdown {
  position: relative;
  display: inline-block;
}

.bfds-dropdown__menu {
  z-index: 1000;
  min-width: 160px;
  max-width: 240px;
  background: var(--bfds-background-hover);
  border: 1px solid var(--bfds-border);
  border-radius: calc(var(--bfds-radius-md, 8px) * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 4px 0;
  animation: bfds-dropdown-enter 0.15s ease-out;
}

.bfds-dropdown__menu--portal {
  /* Portal-based dropdown menu - position is handled via inline styles */
  /* No positioning CSS needed since we calculate it programmatically */
  pointer-events: auto;
}

.bfds-dropdown__item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: none;
  font-size: 14px;
  color: var(--bfds-text);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.bfds-dropdown__item:hover:not(.bfds-dropdown__item--disabled) {
  background-color: var(--bfds-background-active);
}

.bfds-dropdown__item:focus-visible {
  outline: 2px solid var(--bfds-primary);
  outline-offset: -2px;
  background-color: var(--bfds-background-active);
}

.bfds-dropdown__item--active {
  background-color: var(--bfds-background-active);
  font-weight: 600;
}

.bfds-dropdown__item--active .bfds-dropdown__item-label {
  color: var(--bfds-text-highlight);
}

.bfds-dropdown__item--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bfds-dropdown__item--destructive {
  color: var(--bfds-error);
}

.bfds-dropdown__item--destructive:hover:not(.bfds-dropdown__item--disabled) {
  background-color: var(--bfds-error-surface, rgba(239, 68, 68, 0.1));
}

.bfds-dropdown__item-icon {
  margin-right: 8px;
  font-size: 12px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bfds-dropdown__item-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes bfds-dropdown-enter {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Table */
.bfds-table {
  width: 100%;
}

.bfds-table__list {
  background: var(--bfds-background);
}

/* When bulk select is enabled on the table */
.bfds-table__list.bfds-list--bulk-select {
  --bfds-table-has-bulk-select: 1;
}

/* Table Header */
.bfds-table-header {
  display: grid;
  grid-template-columns: var(--bfds-table-grid-template, repeat(var(--bfds-table-columns), 1fr));
  gap: 16px;
  padding: 12px 16px;
  background: var(--bfds-secondary-02);
  border-bottom: 1px solid var(--bfds-border);
  font-weight: 600;
  font-size: 14px;
  color: var(--bfds-text-secondary);
  box-sizing: border-box;
  width: 100%;
}

/* When bulk select is enabled, add space for checkbox in header to align with row content */
.bfds-list--bulk-select .bfds-table-header {
  padding-left: 46px; /* 16px original + 30px checkbox space */
  box-sizing: border-box;
}

/* When table has expandable rows, add space for expand arrow in header */
.bfds-table--has-expandable .bfds-table-header {
  padding: 12px 40px 12px 16px; /* Space for expand arrow on right side */
  box-sizing: border-box;
}

/* When both bulk select and expandable are enabled */
.bfds-table--has-expandable .bfds-list--bulk-select .bfds-table-header {
  padding: 12px 40px 12px 46px; /* Space for both checkbox and expand arrow */
  box-sizing: border-box;
}

/* Non-expandable rows in tables with expandable rows need spacing to align with header */
.bfds-table--has-expandable .bfds-table-row:not(.bfds-list-item--expandable) .bfds-table-row__cells {
  padding-right: 24px; /* Space for expand arrow to match header */
  box-sizing: border-box;
}

/* Non-selectable rows in bulk-select tables also need spacing to align with header */
.bfds-list--bulk-select .bfds-table-row:not(.bfds-list-item--selectable) .bfds-table-row__cells {
  padding-left: 30px;
  box-sizing: border-box;
}

/* Table Row */
.bfds-table-row .bfds-table-row__cells {
  display: grid;
  grid-template-columns: var(--bfds-table-grid-template, repeat(var(--bfds-table-columns), 1fr));
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

/* When parent list has bulk select, the row cells don't need adjustment since BfDsListItem handles the checkbox */

/* Striped table styling */
.bfds-table--striped .bfds-list-item:nth-child(even) {
  background-color: var(--bfds-secondary-005);
}

.bfds-table--striped .bfds-list-item:nth-child(even):hover .bfds-list-item__button {
  background-color: var(--bfds-primary-01);
}

.bfds-table--striped .bfds-list-item--active:nth-child(even) {
  --bfds-text-secondary: var(--bfds-primary-content);
  --bfds-text-muted: var(--bfds-primary-content);
  background-color: var(--bfds-primary);
  color: var(--bfds-primary-content);
}

.bfds-table--striped .bfds-list-item--active:nth-child(even) .bfds-list-item__button {
  --bfds-text-secondary: var(--bfds-primary-content);
  --bfds-text-muted: var(--bfds-primary-content);
  background-color: var(--bfds-primary);
  color: var(--bfds-primary-content);
}

.bfds-table-row:not(.bfds-list-item--active) .bfds-table-row__cells.bfds-table-row__cells--clickable:hover {
  background-color: var(--bfds-background-hover);
  color: var(--bfds-text);
}

/* Table Cell */
.bfds-table-cell {
  display: flex;
  align-items: center;
  min-height: 20px;
  word-break: break-word;
  overflow: hidden;
}

.bfds-table-cell--align-left {
  justify-content: flex-start;
  text-align: left;
}

.bfds-table-cell--align-center {
  justify-content: center;
  text-align: center;
}

.bfds-table-cell--align-right {
  justify-content: flex-end;
  text-align: right;
}

/* BfDsTableGrid (experimental CSS grid table) */
.bfds-table-grid {
  --bfds-table-grid-row-hover-background: var(--bfds-background-hover);
  width: 100%;
  background: var(--bfds-background);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--bfds-text);
}

.bfds-table-grid__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bfds-border);
  background: var(--bfds-background);
}

.bfds-table-grid--compact .bfds-table-grid__toolbar {
  padding: 8px 12px;
}

.bfds-table-grid__toolbar-select {
  display: flex;
  align-items: center;
}

.bfds-table-grid__toolbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.bfds-table-grid__toolbar-actions--hidden {
  opacity: 0;
  pointer-events: none;
}

.bfds-table-grid__body {
  display: grid;
  grid-auto-rows: auto;
  column-gap: 0;
  row-gap: 0;
  width: 100%;
  align-content: start;
}

.bfds-table-grid--sticky-header .bfds-table-grid__body {
  overflow: auto;
}

.bfds-table-grid--sticky-header-full-height {
  height: 100%;
  min-height: 0;
}

.bfds-table-grid--sticky-header-full-height .bfds-table-grid__body {
  flex: 1 1 auto;
  min-height: 0;
}

.bfds-table-grid__header-select,
.bfds-table-grid__header-cell,
.bfds-table-grid__header-expand,
.bfds-table-grid__cell {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  background: var(--bfds-background);
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  min-width: 0;
}

.bfds-table-grid--compact .bfds-table-grid__header-select,
.bfds-table-grid--compact .bfds-table-grid__header-cell,
.bfds-table-grid--compact .bfds-table-grid__header-expand,
.bfds-table-grid--compact .bfds-table-grid__cell {
  padding: 8px 12px;
}

.bfds-table-grid--sticky-header .bfds-table-grid__row--header .bfds-table-grid__header-cell,
.bfds-table-grid--sticky-header .bfds-table-grid__row--header .bfds-table-grid__header-select,
.bfds-table-grid--sticky-header .bfds-table-grid__row--header .bfds-table-grid__header-expand {
  position: sticky;
  top: 0;
  z-index: 3;
  box-shadow: 0 1px 0 var(--bfds-border);
}

.bfds-table-grid__row--header .bfds-table-grid__header-cell,
.bfds-table-grid__row--header .bfds-table-grid__header-select,
.bfds-table-grid__row--header .bfds-table-grid__header-expand {
  font-weight: 600;
  font-size: 14px;
  color: var(--bfds-text-secondary);
  background: var(--bfds-background-solid-2);
  border-bottom: 1px solid var(--bfds-border);
}

.bfds-table-grid--compact .bfds-table-grid__row--header .bfds-table-grid__header-cell,
.bfds-table-grid--compact .bfds-table-grid__row--header .bfds-table-grid__header-select,
.bfds-table-grid--compact .bfds-table-grid__row--header .bfds-table-grid__header-expand {
  font-size: 12px;
}

.bfds-table-grid__empty {
  align-items: center;
  background: var(--bfds-background);
  border-bottom: 1px solid var(--bfds-border);
  box-sizing: border-box;
  color: var(--bfds-text-secondary);
  display: grid;
  gap: 4px;
  justify-items: center;
  min-height: 112px;
  padding: 24px;
  text-align: center;
}

.bfds-table-grid--compact .bfds-table-grid__empty {
  min-height: 88px;
  padding: 18px;
}

.bfds-table-grid__header-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.bfds-table-grid__header-filter-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bfds-table-grid__header-filter-dropdown {
  flex: 0 0 auto;
}

.bfds-table-grid__header-filter-dropdown .bfds-button {
  color: var(--bfds-text-muted);
}

.bfds-table-grid__header-filter-dropdown .bfds-button:hover:not(:disabled),
.bfds-table-grid__header-filter--active .bfds-table-grid__header-filter-dropdown .bfds-button {
  color: var(--bfds-primary);
}

.bfds-table-grid__header-filter--active .bfds-table-grid__header-filter-dropdown .bfds-button {
  background: var(--bfds-primary-01);
}

.bfds-table-grid__row--striped > .bfds-table-grid__cell {
  background: var(--bfds-secondary-005);
}

.bfds-table-grid__row--clickable > .bfds-table-grid__cell {
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.bfds-table-grid__row--clickable > .bfds-table-grid__cell:focus-visible {
  outline: none;
}

.bfds-table-grid__row--clickable.bfds-table-grid__row--hovered:not(.bfds-table-grid__row--active) > .bfds-table-grid__cell,
.bfds-table-grid__row--clickable:hover:not(.bfds-table-grid__row--active) > .bfds-table-grid__cell {
  background: var(--bfds-table-grid-row-hover-background);
}

.bfds-table-grid__row--focused > .bfds-table-grid__cell {
  position: relative;
  z-index: 1;
  box-shadow: inset 0 2px 0 var(--bfds-focus), inset 0 -2px 0 var(--bfds-focus);
}

.bfds-table-grid__row--focused > .bfds-table-grid__cell:first-child {
  box-shadow: inset 2px 0 0 var(--bfds-focus), inset 0 2px 0 var(--bfds-focus), inset 0 -2px 0 var(--bfds-focus);
}

.bfds-table-grid__row--focused > .bfds-table-grid__cell:last-child {
  box-shadow: inset -2px 0 0 var(--bfds-focus), inset 0 2px 0 var(--bfds-focus), inset 0 -2px 0 var(--bfds-focus);
}

.bfds-table-grid__row--active > .bfds-table-grid__cell {
  --bfds-text-secondary: var(--bfds-primary-content);
  --bfds-text-muted: var(--bfds-primary-content);
  background: var(--bfds-primary);
  color: var(--bfds-primary-content);
}

.bfds-table-grid__row--disabled > .bfds-table-grid__cell {
  opacity: 0.6;
  cursor: not-allowed;
}

.bfds-table-grid__cell--select,
.bfds-table-grid__cell--expand {
  justify-content: center;
  width: 48px;
  flex: 0 0 48px;
}

.bfds-table-grid--compact .bfds-table-grid__cell--select,
.bfds-table-grid--compact .bfds-table-grid__cell--expand {
  width: 40px;
  flex-basis: 40px;
}

.bfds-table-grid__expand-toggle {
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: calc(4px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  color: var(--bfds-text);
  cursor: pointer;
}

.bfds-table-grid__expand-toggle:hover {
  background: var(--bfds-secondary-01);
}

.bfds-table-grid__expand-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.bfds-table-grid__expand-area {
  padding: 16px;
  background: var(--bfds-background-hover);
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.bfds-table-grid--compact .bfds-table-grid__expand-area {
  padding: 12px;
}

.bfds-table-grid__expand-spacer {
  background: var(--bfds-background-hover);
  pointer-events: none;
}

.bfds-table-grid__cell-content {
  display: flex;
  align-items: center;
  width: 100%;
}

.bfds-table-grid__cell-content--align-left {
  justify-content: flex-start;
  text-align: left;
}

.bfds-table-grid__cell-content--align-center {
  justify-content: center;
  text-align: center;
}

.bfds-table-grid__cell-content--align-right {
  justify-content: flex-end;
  text-align: right;
}

/* ==========================================================================
   BfDsPageLayout Styles
   ========================================================================== */

/* Base layout container */
.bfds-page-layout {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative; /* Contains absolutely positioned sidebar */
}

/* Nav spacing - no padding on container, will be on panels */
.bfds-page-layout--with-nav {
  height: 100%;
}

/* Single column mode */
.bfds-page-layout--single {
  justify-content: center;
}

/* Dual pane mode */
.bfds-page-layout--dual {
  justify-content: flex-start;
}

/* Main content panel */
.bfds-page-layout__main {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  background: var(--bfds-background);
  box-sizing: border-box;
}

/* Secondary content panel */
.bfds-page-layout__secondary {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  background: var(--bfds-background);
  border-left: 1px solid var(--bfds-border);
  box-sizing: border-box;
}

.bfds-page-layout__main--transparent,
.bfds-page-layout__secondary--transparent,
.bfds-page-layout__sidebar--transparent {
  background: transparent;
}

/* Add padding-top to panels when nav spacing is enabled */
.bfds-page-layout--with-nav .bfds-page-layout__main {
  padding-top: var(--header-height);
}

.bfds-page-layout--with-nav .bfds-page-layout__secondary {
  padding-top: var(--header-height);
}

.bfds-page-layout--with-nav .bfds-page-layout__sheet-container {
  top: var(--header-height);
  height: calc(100% - var(--header-height));
}

.bfds-page-layout--with-nav .bfds-page-layout__sheet-container .bfds-sheet-backdrop {
  top: 0;
  bottom: 0;
}

/* Scrollbar styling for better appearance */
.bfds-page-layout__main::-webkit-scrollbar,
.bfds-page-layout__secondary::-webkit-scrollbar {
  width: 8px;
}

.bfds-page-layout__main::-webkit-scrollbar-track,
.bfds-page-layout__secondary::-webkit-scrollbar-track {
  background: transparent;
}

.bfds-page-layout__main::-webkit-scrollbar-thumb,
.bfds-page-layout__secondary::-webkit-scrollbar-thumb {
  background: var(--bfds-border);
  border-radius: calc(4px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
}

.bfds-page-layout__main::-webkit-scrollbar-thumb:hover,
.bfds-page-layout__secondary::-webkit-scrollbar-thumb:hover {
  background: var(--bfds-text-secondary);
}

/* ==========================================================================
   Sidebar Styles
   ========================================================================== */

/* Sidebar container */
.bfds-page-layout__sidebar {
  height: 100%;
  background: var(--bfds-background);
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
}

.bfds-page-layout__sidebar-track--inline {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  height: 100%;
  overflow: visible;
  transition: width 0.3s ease;
}

.bfds-page-layout__sidebar--overlay {
  position: absolute;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.bfds-page-layout__sidebar--overlay-click-through.bfds-page-layout__sidebar--left,
.bfds-page-layout__sidebar--overlay-click-through.bfds-page-layout__sidebar--right {
  box-shadow: 0 0 30px 12px rgba(20, 21, 22, 0.5);
}

.bfds-page-layout__sidebar--inline {
  position: relative;
  z-index: 1;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    border-color 0.3s ease;
}

.bfds-page-layout__sidebar--inline:not(.bfds-page-layout__sidebar--open) {
  opacity: 0;
  pointer-events: none;
  border: none;
}

/* Sidebar positioning */
.bfds-page-layout__sidebar--left {
  left: 0;
  border-right: 1px solid var(--bfds-border);
  border-left: none;
}

.bfds-page-layout__sidebar--right {
  right: 0;
  left: auto;
  border-left: 1px solid var(--bfds-border);
  border-right: none;
}

.bfds-page-layout__sidebar--overlay.bfds-page-layout__sidebar--left {
  transform: translateX(-100%);
}

.bfds-page-layout__sidebar--overlay.bfds-page-layout__sidebar--right {
  transform: translateX(100%);
}

.bfds-page-layout__sidebar--inline.bfds-page-layout__sidebar--left:not(.bfds-page-layout__sidebar--open) {
  transform: translateX(-100%);
}

.bfds-page-layout__sidebar--inline.bfds-page-layout__sidebar--right:not(.bfds-page-layout__sidebar--open) {
  transform: translateX(100%);
}

.bfds-page-layout__sidebar--inline.bfds-page-layout__sidebar--open {
  transform: translateX(0);
}

/* Sidebar open state */
.bfds-page-layout__sidebar--overlay.bfds-page-layout__sidebar--open {
  transform: translateX(0);
}

/* Sidebar with nav spacing - position below nav and reduce height */
.bfds-page-layout--with-nav .bfds-page-layout__sidebar--overlay {
  top: var(--header-height);
  height: calc(100% - var(--header-height));
}

.bfds-page-layout--with-nav .bfds-page-layout__sidebar--inline {
  padding-top: var(--header-height);
}

/* Backdrop for mobile/modal behavior */
.bfds-page-layout__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  animation: fadeIn 0.3s ease;
}

.bfds-page-layout__backdrop--click-through {
  pointer-events: none;
  background: transparent;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.bfds-page-layout__main--notScrollable,
.bfds-page-layout__secondary--notScrollable,
.bfds-page-layout__sidebar--notScrollable {
  overflow-y: hidden;
}

/* Sidebar scrollbar styling */
.bfds-page-layout__sidebar::-webkit-scrollbar {
  width: 8px;
}

.bfds-page-layout__sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.bfds-page-layout__sidebar::-webkit-scrollbar-thumb {
  background: var(--bfds-border);
  border-radius: calc(4px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
}

.bfds-page-layout__sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--bfds-text-secondary);
}

.bfds-popover {
  z-index: 1200;
  pointer-events: auto;
  max-width: min(420px, calc(100vw - 16px));
}

/* ==========================================================================
   Resize Handle Styles
   ========================================================================== */

/* Resize handle between panels */
.bfds-page-layout__resize-handle {
  width: 8px; /* Wider to include border area */
  margin-right: -4px; /* Pull it over the border */
  background: transparent;
  cursor: col-resize;
  position: relative;
  flex-shrink: 0;
  z-index: 100;
  transition: background-color 0.2s ease;
}

.bfds-page-layout__resize-handle:hover {
  background: var(--bfds-primary);
}

.bfds-page-layout__resize-handle:active {
  background: var(--bfds-primary);
}


/* Prevent selection during resize */
.bfds-page-layout--resizing {
  user-select: none;
}

.bfds-page-layout--resizing * {
  pointer-events: none;
}

.bfds-page-layout--resizing .bfds-page-layout__resize-handle {
  pointer-events: auto;
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .bfds-table-header,
  .bfds-table-row__cells {
    gap: 12px;
  }
  
  .bfds-table-header {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* --------------------------------------------- */
/* PDF Viewer                                    */
/* --------------------------------------------- */

.bfds-pdf-viewer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--bfds-border);
  border-radius: calc(16px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  background: var(--bfds-background-solid-1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  min-height: 320px;
}

.bfds-pdf-viewer__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--bfds-text-secondary);
}

.bfds-pdf-viewer__group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bfds-pdf-viewer__button {
  border: 1px solid var(--bfds-border);
  background: var(--bfds-background-02);
  color: var(--bfds-text);
  padding: 6px 12px;
  border-radius: calc(8px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  font-size: 14px;
  cursor: pointer;
  min-width: 56px;
  transition: background 120ms ease, border-color 120ms ease;
}

.bfds-pdf-viewer__button:hover:not(:disabled) {
  background: var(--bfds-background-hover);
}

.bfds-pdf-viewer__button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bfds-pdf-viewer__label {
  font-variant-numeric: tabular-nums;
  color: var(--bfds-text-secondary);
}

.bfds-pdf-viewer__surface {
  flex: 1;
  background: var(--bfds-background-005);
  border: 1px solid var(--bfds-border);
  border-radius: calc(12px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  padding: 12px;
  overflow: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  cursor: grab;
  touch-action: none;
}

.bfds-pdf-viewer__surface--dragging {
  cursor: grabbing;
  user-select: none;
}

.bfds-pdf-viewer__canvas {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  display: block;
  border-radius: calc(8px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  background: #fff;
}

.bfds-pdf-viewer__loading,
.bfds-pdf-viewer__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: var(--bfds-text-secondary);
  width: 100%;
}

.bfds-pdf-viewer__error pre {
  margin: 0;
  font-size: 12px;
  background: var(--bfds-background-02);
  padding: 12px;
  border-radius: calc(8px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  width: 100%;
  max-width: 400px;
  overflow: auto;
}

.bfds-pdf-viewer__rendering-overlay {
  position: absolute;
  inset: 12px;
  border-radius: calc(10px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
  background: rgba(20, 21, 22, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.breadcrumb-tooltip-title {
  font-weight: 600;
  color: var(--bfds-text);
}

.breadcrumb-tooltip-subtitle {
  font-size: 0.85em;
  color: var(--bfds-text-secondary);
}

.early-access {
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 1.5rem;
  box-sizing: border-box;
  color: var(--bfds-text-secondary);
  background: var(--bfds-background);
  border-radius: calc(12px * var(--corner-radius-scale, 1));
  corner-shape: squircle;
}

.bfds-scrolling-text {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  vertical-align: bottom;
}

.bfds-scrolling-text__inner {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  will-change: transform;
}

.bfds-scrolling-text--overflow:hover {
  overflow: hidden;
}

.bfds-scrolling-text--overflow:hover .bfds-scrolling-text__inner {
  width: max-content;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  animation: bfds-scroll-text var(--bfds-scroll-duration, 0s) linear forwards;
}

@keyframes bfds-scroll-text {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-1 * var(--bfds-scroll-distance, 0px)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .bfds-scrolling-text--overflow:hover .bfds-scrolling-text__inner {
    animation: none;
    transform: translateX(0);
  }
}

.bf-logo-animation {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  width: var(--bf-logo-animation-collapsed-width);
  transition: width var(--bf-logo-animation-duration) ease;
}

.bf-logo-animation--triggered {
  width: var(--bf-logo-animation-expanded-width);
}

.bf-logo-animation__logo {
  display: block;
  flex: 0 0 auto;
  transform: translateX(calc(-1 * var(--bf-logo-animation-symbol-offset, 0px)));
  transition: transform var(--bf-logo-animation-duration) ease;
}

.bf-logo-animation--triggered .bf-logo-animation__logo {
  transform: translateX(0);
}

.bf-logo-animation .bf-logo__bolt,
.bf-logo-animation .bf-logo__foundry {
  opacity: 0;
  transition: opacity var(--bf-logo-animation-duration) ease;
}

.bf-logo-animation--spin-symbol .bf-logo__symbol {
  transform: rotate(-180deg);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform var(--bf-logo-animation-duration) ease;
}

.bf-logo-animation--triggered.bf-logo-animation--spin-symbol .bf-logo__symbol {
  transform: rotate(0deg);
}

.bf-logo-animation--triggered .bf-logo__bolt,
.bf-logo-animation--triggered .bf-logo__foundry {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .bf-logo-animation,
  .bf-logo-animation .bf-logo-animation__logo,
  .bf-logo-animation .bf-logo__symbol,
  .bf-logo-animation .bf-logo__bolt,
  .bf-logo-animation .bf-logo__foundry {
    transition: none;
  }
}

.workloop-logo-animation {
  --workloop-logo-animation-easing: cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  width: var(--workloop-logo-animation-collapsed-width);
  transition:
    width var(--workloop-logo-animation-duration)
      var(--workloop-logo-animation-easing);
}

.workloop-logo-animation--triggered {
  width: var(--workloop-logo-animation-expanded-width);
}

.workloop-logo-animation__logo {
  display: block;
  flex: 0 0 auto;
}

.workloop-logo-animation .workloop-logo__symbol-right {
  transform: translateX(
    calc(-1 * var(--workloop-logo-animation-right-start-offset, 0px))
  );
  transform-box: fill-box;
  transform-origin: center;
  transition:
    transform var(--workloop-logo-animation-duration)
      var(--workloop-logo-animation-easing);
}

.workloop-logo-animation .workloop-logo__wordmark-reveal-mask {
  transform: translateX(-486px);
  transition:
    transform var(--workloop-logo-animation-duration)
      var(--workloop-logo-animation-easing);
}

.workloop-logo-animation--triggered .workloop-logo__symbol-right {
  transform: translateX(0);
}

.workloop-logo-animation--triggered .workloop-logo__wordmark-reveal-mask {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .workloop-logo-animation,
  .workloop-logo-animation .workloop-logo__symbol-right,
  .workloop-logo-animation .workloop-logo__wordmark-reveal-mask {
    transition: none;
  }
}
