/* ---------- Breachify UI kit ----------
   The product's own look, for the interactive pieces of the product: the
   console on /breachify/ and the demos inside the chapters. Everything is
   scoped under .bfui so it never leaks into the site's editorial styles.
   Colours are sampled from the design screens. */

.bfui {
  --bf-bg: #141415;
  --bf-panel: #181819;
  --bf-card: #222223;
  --bf-card-2: #242425;
  --bf-raise: #2c2c2d;
  --bf-active: #303032;
  --bf-hover: #343436;
  --bf-line: rgba(255, 255, 255, 0.07);
  --bf-line-2: rgba(255, 255, 255, 0.12);
  --bf-text: #f2f2f3;
  --bf-dim: #a6a6ac;
  --bf-mute: #74747b;
  --bf-orange: #c25a20;
  --bf-orange-hi: #d8692b;
  --bf-orange-ink: #f0894f;
  --bf-orange-soft: rgba(194, 90, 32, 0.14);
  --bf-orange-line: rgba(194, 90, 32, 0.42);
  --bf-blue: #5b86fd;
  --bf-blue-soft: rgba(91, 134, 253, 0.16);
  --bf-red: #f07a7c;
  --bf-red-soft: rgba(229, 72, 77, 0.15);
  --bf-yellow: #e6be55;
  --bf-yellow-soft: rgba(230, 190, 85, 0.14);
  --bf-green: #57c48c;
  --bf-green-soft: rgba(87, 196, 140, 0.14);
  --bf-r: 10px;
  --bf-r-lg: 16px;
  --bf-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bf-spring: linear(0, 0.0298, 0.0963, 0.1863, 0.289, 0.3959, 0.501, 0.5998, 0.6895, 0.7684, 0.836, 0.8921, 0.9375, 0.9731, 0.9999, 1.0191, 1.0321, 1.0399, 1.0436, 1.0443, 1.0427, 1.0395, 1.0354, 1.0308, 1.0261, 1.0215, 1.0171, 1.0132, 1.0098, 1.0069, 1.0045, 1.0025, 1.001, 0.9999, 0.999, 0.9985, 0.9982, 0.9981, 0.998, 0.9981, 0.9983, 0.9985, 0.9987, 0.9989, 0.9991, 0.9993, 0.9994, 0.9996, 1);
  --bf-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  color: var(--bf-text);
  background: var(--bf-bg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: left;
  /* the product UI reads left to right in every language of the site */
  direction: ltr;
  color-scheme: dark;
}

.bfui *, .bfui *::before, .bfui *::after { box-sizing: border-box; }
/* the chapters style bare paragraphs and headings inside .article; the product
   UI uses its own classes, so those editorial rules are neutralised here */
.article .bfui p, .article .bfui p + p, .article .bfui h2, .article .bfui h3, .article .bfui strong, .article .bfui blockquote {
  margin: 0; padding: 0; border: 0; max-width: none;
  font: inherit; line-height: inherit; letter-spacing: inherit; color: inherit;
}
.bfui ul, .bfui ol { list-style: none; margin: 0; padding: 0; }
.bfui img { display: block; max-width: 100%; height: auto; }
.bfui button, .bfui input, .bfui select { font: inherit; color: inherit; letter-spacing: inherit; }
.bfui button { cursor: pointer; background: none; border: 0; padding: 0; margin: 0; -webkit-tap-highlight-color: transparent; }
.bfui button:disabled { cursor: not-allowed; }
.bfui :focus-visible { outline: 2px solid var(--bf-orange-hi); outline-offset: 2px; }
.bfui svg { flex: none; display: block; }
.bfui [hidden] { display: none !important; }

.bfui .bf-mono { font-family: var(--bf-mono); font-size: 0.94em; letter-spacing: 0; }
.bfui .bf-num { font-variant-numeric: tabular-nums; }
.bfui .bf-dim { color: var(--bf-dim); }
.bfui .bf-mute { color: var(--bf-mute); }
.bfui .bf-orange { color: var(--bf-orange-ink); }
.bfui .bf-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Buttons ---------- */

.bfui .bf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  background: var(--bf-raise);
  border: 1px solid var(--bf-line);
  color: var(--bf-text);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.25s, border-color 0.25s, transform 0.5s var(--bf-ease), box-shadow 0.4s var(--bf-ease), opacity 0.25s;
}
.bfui .bf-btn:hover:not(:disabled) { background: var(--bf-hover); }
.bfui .bf-btn:active:not(:disabled) { transform: scale(0.97); transition-duration: 0.12s; }
.bfui .bf-btn:disabled { opacity: 0.45; }
.bfui .bf-btn svg { width: 15px; height: 15px; }

.bfui .bf-btn--primary {
  background: var(--bf-orange);
  border-color: transparent;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.bfui .bf-btn--primary:hover:not(:disabled) { background: var(--bf-orange-hi); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 22px -10px rgba(194, 90, 32, 0.9); }

.bfui .bf-btn--ghost { background: transparent; border-color: var(--bf-line-2); }
.bfui .bf-btn--ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.05); }

.bfui .bf-btn--soft { background: var(--bf-orange-soft); border-color: var(--bf-orange-line); color: var(--bf-orange-ink); }
.bfui .bf-btn--soft:hover:not(:disabled) { background: rgba(194, 90, 32, 0.22); }

.bfui .bf-btn--sm { min-height: 28px; padding: 0 10px; border-radius: 7px; font-size: 11.5px; }
.bfui .bf-btn--icon { width: 36px; padding: 0; }
.bfui .bf-btn--sm.bf-btn--icon { width: 28px; }

/* a button that is working: its label fades, a ring spins in its place */
.bfui .bf-btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.bfui .bf-btn.is-busy::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 1.6px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: bf-spin 0.7s linear infinite;
}
@keyframes bf-spin { to { transform: rotate(360deg); } }

/* ---------- Inputs ---------- */

.bfui .bf-input {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--bf-raise);
  border: 1px solid var(--bf-line-2);
  color: var(--bf-dim);
  transition: border-color 0.25s, box-shadow 0.4s var(--bf-ease), background-color 0.25s;
}
.bfui .bf-input:focus-within { border-color: var(--bf-orange-line); box-shadow: 0 0 0 4px rgba(194, 90, 32, 0.14); background: #2f2f30; }
.bfui .bf-input input {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--bf-text);
  font-size: 13.5px;
}
.bfui .bf-input input::placeholder { color: var(--bf-mute); }
.bfui .bf-input svg { width: 16px; height: 16px; }

.bfui .bf-select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 36px;
  padding: 0 32px 0 12px;
  border-radius: 9px;
  border: 1px solid var(--bf-line-2);
  background: var(--bf-raise) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a6a6ac' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
  color: var(--bf-text);
  font-size: 12.5px;
}

/* ---------- Chips ---------- */

.bfui .bf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bfui .bf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--bf-raise);
  border: 1px solid var(--bf-line);
  color: var(--bf-text);
  font-size: 12px;
  white-space: nowrap;
  transition: background-color 0.25s, border-color 0.25s, transform 0.5s var(--bf-ease);
}
.bfui button.bf-chip:hover { background: var(--bf-hover); border-color: var(--bf-line-2); }
.bfui button.bf-chip:active { transform: scale(0.96); }
.bfui .bf-chip.is-on { background: var(--bf-orange-soft); border-color: var(--bf-orange-line); color: var(--bf-orange-ink); }

/* ---------- Tabs, with an ink that glides to the active tab ---------- */

.bfui .bf-tabs {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 12px;
  background: var(--bf-card-2);
  border: 1px solid var(--bf-line);
  overflow-x: auto;
  scrollbar-width: none;
}
.bfui .bf-tabs::-webkit-scrollbar { display: none; }
.bfui .bf-tabs__ink {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: var(--w, 0px);
  border-radius: 8px;
  background: var(--bf-active);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 8px rgba(0, 0, 0, 0.25);
  transform: translateX(var(--x, 0px));
  transition: transform 0.7s var(--bf-spring), width 0.7s var(--bf-spring);
  pointer-events: none;
}
.bfui .bf-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--bf-dim);
  font-size: 12.5px;
  white-space: nowrap;
  transition: color 0.3s;
}
.bfui .bf-tab:hover { color: var(--bf-text); }
.bfui .bf-tab[aria-selected="true"] { color: var(--bf-text); }
.bfui .bf-tab svg { width: 15px; height: 15px; opacity: 0.9; }
.bfui .bf-tab__n { color: var(--bf-orange-ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Segmented control ---------- */

.bfui .bf-seg {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 10px;
  background: var(--bf-raise);
  border: 1px solid var(--bf-line);
}
.bfui .bf-seg__ink {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: var(--w, 0px);
  border-radius: 7px;
  background: #48484b;
  transform: translateX(var(--x, 0px));
  transition: transform 0.6s var(--bf-spring), width 0.6s var(--bf-spring);
}
.bfui .bf-seg button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 7px;
  color: var(--bf-dim);
  font-size: 12px;
  transition: color 0.3s;
}
.bfui .bf-seg button[aria-pressed="true"] { color: var(--bf-text); }
.bfui .bf-seg b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--bf-mute); transition: color 0.3s; }
.bfui .bf-seg button[aria-pressed="true"] b { color: var(--bf-orange-ink); }

/* ---------- Switch (resolution state) ---------- */

.bfui .bf-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  color: var(--bf-dim);
  font-size: 12px;
  white-space: nowrap;
}
.bfui .bf-switch__track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #3a3a3d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: background-color 0.35s var(--bf-ease);
}
.bfui .bf-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c9c9cd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: transform 0.55s var(--bf-spring), background-color 0.3s, width 0.25s var(--bf-ease);
}
.bfui .bf-switch:active .bf-switch__track::after { width: 18px; }
.bfui .bf-switch[aria-checked="true"] { color: var(--bf-text); }
.bfui .bf-switch[aria-checked="true"] .bf-switch__track { background: var(--bf-orange); }
.bfui .bf-switch[aria-checked="true"] .bf-switch__track::after { transform: translateX(14px); background: #fff; }
.bfui .bf-switch[aria-checked="true"]:active .bf-switch__track::after { transform: translateX(10px); }

/* ---------- Badges ---------- */

.bfui .bf-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.07);
  color: var(--bf-dim);
}
.bfui .bf-badge--weak, .bfui .bf-badge--bad { background: var(--bf-red-soft); color: var(--bf-red); }
.bfui .bf-badge--medium, .bfui .bf-badge--warn { background: var(--bf-yellow-soft); color: var(--bf-yellow); }
.bfui .bf-badge--strong, .bfui .bf-badge--ok { background: var(--bf-green-soft); color: var(--bf-green); }
.bfui .bf-badge--orange { background: var(--bf-orange-soft); color: var(--bf-orange-ink); box-shadow: inset 0 0 0 1px var(--bf-orange-line); }
.bfui .bf-badge--blue { background: var(--bf-blue-soft); color: #9db5ff; }
/* a live dot for things that are still valid */
.bfui .bf-badge--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: bf-pulse 1.8s ease-out infinite;
}
@keyframes bf-pulse { 0% { box-shadow: 0 0 0 0 rgba(87, 196, 140, 0.6); } 80%, 100% { box-shadow: 0 0 0 6px rgba(87, 196, 140, 0); } }

/* ---------- Rows: the design's tables are separated, rounded rows ---------- */

.bfui .bf-head,
.bfui .bf-row {
  display: grid;
  grid-template-columns: var(--cols, repeat(4, minmax(0, 1fr)));
  align-items: center;
  column-gap: 16px;
  padding: 0 16px;
  border-radius: var(--bf-r);
}
.bfui .bf-head {
  min-height: 40px;
  background: var(--bf-card);
  color: var(--bf-dim);
  font-size: 11.5px;
}
.bfui .bf-head > * { display: flex; align-items: center; gap: 7px; min-width: 0; }
.bfui .bf-head svg { width: 14px; height: 14px; opacity: 0.85; }
.bfui .bf-row {
  min-height: 48px;
  background: var(--bf-card);
  font-size: 12.5px;
  transition: background-color 0.25s, opacity 0.45s var(--bf-ease), transform 0.6s var(--bf-ease);
}
.bfui .bf-row > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bfui .bf-rows { display: grid; gap: 8px; }
.bfui .bf-rows .bf-head + * { margin-top: 2px; }
.bfui button.bf-row { width: 100%; text-align: left; }
.bfui button.bf-row:hover, .bfui .bf-row.is-hover { background: #29292b; }
.bfui .bf-row--orange { background: rgba(194, 90, 32, 0.12); }
.bfui .bf-row--orange:hover { background: rgba(194, 90, 32, 0.17); }

/* expandable: animate height with the 0fr → 1fr grid trick */
.bfui .bf-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--bf-ease), opacity 0.35s;
  opacity: 0;
}
.bfui .bf-collapse > * { min-height: 0; overflow: hidden; }
.bfui .bf-collapse.is-open { grid-template-rows: 1fr; opacity: 1; }

.bfui .bf-chev { transition: transform 0.5s var(--bf-spring); }
.bfui [aria-expanded="true"] > .bf-chev,
.bfui [aria-expanded="true"] .bf-chev { transform: rotate(180deg); }

/* ---------- Panels, banners, numbers ---------- */

.bfui .bf-panel {
  padding: 16px;
  border-radius: var(--bf-r-lg);
  background: var(--bf-card);
  border: 1px solid var(--bf-line);
}
.bfui .bf-panel__t { font-size: 13px; color: var(--bf-text); }
.bfui .bf-panel__s { margin-top: 2px; font-size: 11.5px; color: var(--bf-mute); }

.bfui .bf-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--bf-r-lg);
  background: linear-gradient(90deg, rgba(194, 90, 32, 0.16), rgba(194, 90, 32, 0.08));
  border: 1px solid rgba(194, 90, 32, 0.22);
}
.bfui .bf-banner__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(194, 90, 32, 0.22);
  color: #f3c3a6;
}
.bfui .bf-banner__icon svg { width: 20px; height: 20px; }
.bfui .bf-banner__k { font-size: 11px; color: var(--bf-dim); }
.bfui .bf-banner__v { font-size: 26px; font-weight: 300; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bfui .bf-banner .bf-btn { margin-left: auto; }

.bfui .bf-kpi { display: grid; gap: 2px; }
.bfui .bf-kpi__v { font-size: 22px; font-weight: 300; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--bf-text); }
.bfui .bf-kpi__k { font-size: 11px; color: var(--bf-mute); }

/* horizontal meter */
.bfui .bf-meter { position: relative; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bfui .bf-meter > i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: inherit;
  background: var(--c, var(--bf-orange));
  transform: scaleX(var(--v, 0));
  transform-origin: 0 50%;
  transition: transform 1.1s var(--bf-ease);
}

/* vertical bars (password strength) */
.bfui .bf-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; gap: 14px; height: 132px; padding-top: 22px; border-bottom: 1px solid var(--bf-line-2); }
.bfui .bf-bar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.bfui .bf-bar > i {
  display: block;
  width: min(18px, 60%);
  height: calc(var(--v, 0) * 100%);
  min-height: 4px;
  border-radius: 6px 6px 3px 3px;
  background: var(--c, var(--bf-blue));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform-origin: 50% 100%;
  transition: height 1s var(--bf-ease);
}
.bfui .bf-bar > b { position: absolute; bottom: calc(var(--v, 0) * 100% + 6px); font-size: 11px; font-weight: 400; color: var(--bf-dim); font-variant-numeric: tabular-nums; transition: bottom 1s var(--bf-ease); }
.bfui .bf-bars__labels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; margin-top: 8px; font-size: 10.5px; color: var(--bf-mute); text-align: center; }

/* donut: segments are circles with a dash per value */
.bfui .bf-donut { width: 112px; height: 112px; transform: rotate(-90deg); }
.bfui .bf-donut circle { fill: none; stroke-width: 14; transition: stroke-dasharray 1.1s var(--bf-ease), stroke-dashoffset 1.1s var(--bf-ease), opacity 0.3s; }
.bfui .bf-donut .bf-donut__bg { stroke: rgba(255, 255, 255, 0.05); }
.bfui .bf-legend { display: grid; gap: 7px; font-size: 11.5px; color: var(--bf-dim); }
.bfui .bf-legend li { display: flex; align-items: center; gap: 8px; list-style: none; }
.bfui .bf-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.bfui .bf-legend b { margin-left: auto; font-weight: 400; color: var(--bf-text); font-variant-numeric: tabular-nums; }

/* ---------- Toasts ---------- */

.bfui .bf-toasts {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 30;
  display: grid;
  gap: 8px;
  width: min(320px, calc(100% - 28px));
  pointer-events: none;
}
.bfui .bf-toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border-radius: 12px;
  background: rgba(40, 40, 42, 0.92);
  border: 1px solid var(--bf-line-2);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  pointer-events: auto;
  animation: bf-toast-in 0.7s var(--bf-spring) both;
}
.bfui .bf-toast.is-leaving { animation: bf-toast-out 0.35s var(--bf-ease) both; }
@keyframes bf-toast-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
@keyframes bf-toast-out { to { opacity: 0; transform: translateY(8px) scale(0.98); } }
.bfui .bf-toast__icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--bf-orange-soft); color: var(--bf-orange-ink); }
.bfui .bf-toast__icon svg { width: 14px; height: 14px; }
.bfui .bf-toast--ok .bf-toast__icon { background: var(--bf-green-soft); color: var(--bf-green); }
.bfui .bf-toast__t { font-size: 12.5px; color: var(--bf-text); }
.bfui .bf-toast__b { margin-top: 2px; font-size: 11.5px; color: var(--bf-dim); }
.bfui .bf-toast__a { align-self: center; font-size: 11.5px; color: var(--bf-orange-ink); padding: 4px 6px; border-radius: 6px; }
.bfui .bf-toast__a:hover { background: rgba(255, 255, 255, 0.06); }

/* ---------- Skeleton shimmer while something loads ---------- */

.bfui .bf-skel {
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.09) 40%, rgba(255, 255, 255, 0.04) 80%) 0 0 / 300% 100%;
  animation: bf-shimmer 1.3s linear infinite;
}
@keyframes bf-shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* ---------- Tooltip ---------- */

.bfui .bf-tip { position: relative; }
.bfui .bf-tip__box {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: max-content;
  max-width: 240px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #3a3a3d;
  color: var(--bf-text);
  font-size: 11.5px;
  line-height: 1.4;
  white-space: normal;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translate(-50%, 4px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.35s var(--bf-ease);
}
.bfui .bf-tip:hover .bf-tip__box,
.bfui .bf-tip:focus-visible .bf-tip__box,
.bfui .bf-tip:focus-within .bf-tip__box { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Empty state ---------- */

.bfui .bf-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 160px;
  padding: 24px;
  border-radius: var(--bf-r-lg);
  border: 1px dashed var(--bf-line-2);
  color: var(--bf-mute);
  text-align: center;
  font-size: 12.5px;
}

/* scrollbars inside the product look like the product's */
.bfui ::-webkit-scrollbar { width: 8px; height: 8px; }
.bfui ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 8px; }
.bfui ::-webkit-scrollbar-track { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  .bfui *, .bfui *::before, .bfui *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .bfui .bf-skel { animation: none; }
}
