:root {
  --bf-ink: #132c26;
  --bf-ink-soft: #23463d;
  --bf-paper: #f4f0e7;
  --bf-surface: #fffdf8;
  --bf-line: #d9ddd4;
  --bf-muted: #68736f;
  --bf-lime: #d9ef82;
  --bf-lime-strong: #bdda4b;
  --bf-coral: #df755b;
  --bf-blue: #397e91;
  --bf-plum: #5b4058;
  --bf-max: 1320px;
}

.bf-page,
.bf-page * {
  box-sizing: border-box;
}

.bf-page {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 2% 22%, rgba(217, 239, 130, 0.19), transparent 29rem),
    radial-gradient(circle at 96% 58%, rgba(57, 126, 145, 0.12), transparent 32rem),
    var(--bf-paper);
  color: var(--bf-ink);
  font-family: var(--puszek-font);
  -webkit-font-smoothing: antialiased;
}

.bf-main {
  width: min(calc(100% - 32px), var(--bf-max));
  margin: 0 auto;
  padding: 24px 0 84px;
}

.bf-main button,
.bf-main input,
.bf-main textarea {
  font: inherit;
}

.bf-main :focus-visible {
  outline: 3px solid rgba(57, 126, 145, 0.34);
  outline-offset: 3px;
}

.bf-hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.78fr);
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 7vw, 86px);
  border-radius: 36px;
  background: var(--bf-ink);
  color: #fff;
  box-shadow: 0 28px 70px rgba(19, 44, 38, 0.18);
}

.bf-hero::before {
  content: "";
  position: absolute;
  width: 34rem;
  height: 34rem;
  right: -17rem;
  top: -18rem;
  border: 1px solid rgba(217, 239, 130, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(217, 239, 130, 0.035), 0 0 0 10rem rgba(217, 239, 130, 0.025);
}

.bf-hero__copy,
.bf-hero__visual {
  position: relative;
  z-index: 1;
}

.bf-kicker,
.bf-eyebrow {
  margin: 0 0 18px;
  color: var(--bf-coral);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bf-kicker { color: var(--bf-lime); }

.bf-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 5.4vw, 82px);
  font-weight: 860;
  letter-spacing: -0.062em;
  line-height: 0.96;
  overflow-wrap: anywhere;
}

.bf-hero__lead {
  max-width: 690px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.65;
}

.bf-hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.bf-button,
.bf-text-link,
.bf-file-button,
.bf-quiet-button {
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.bf-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 0;
}

.bf-button:hover,
.bf-file-button:hover,
.bf-quiet-button:hover { transform: translateY(-2px); }

.bf-button--light { background: var(--bf-lime); color: var(--bf-ink); }
.bf-button--light:hover { background: #e5f6a4; }
.bf-button--dark { background: var(--bf-ink); color: #fff; }
.bf-button--dark:hover { background: var(--bf-ink-soft); }
.bf-button--accent { background: var(--bf-coral); color: #fff; }
.bf-button--accent:hover { background: #c9634d; }
.bf-button--wide { width: 100%; }

.bf-text-link {
  color: rgba(255, 255, 255, 0.78);
  text-underline-offset: 5px;
}

.bf-text-link:hover { color: #fff; }

.bf-hero__visual {
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  isolation: isolate;
}

.bf-orbit {
  position: absolute;
  width: 320px;
  height: 320px;
  left: 50%;
  top: 42%;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.bf-orbit::before,
.bf-orbit::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px dashed rgba(217, 239, 130, 0.22);
  border-radius: 50%;
}

.bf-orbit::after {
  inset: 36%;
  border-style: solid;
  background: rgba(217, 239, 130, 0.07);
}

.bf-hero-digit {
  position: absolute;
  left: 50%;
  top: 41%;
  text-align: center;
  transform: translate(-50%, -50%);
}

.bf-hero-digit > span {
  display: block;
  color: var(--bf-lime);
  font-size: clamp(120px, 14vw, 190px);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.78;
}

.bf-hero-digit p { margin: 24px 0 0; color: rgba(255, 255, 255, 0.66); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; }
.bf-hero-digit strong { color: #fff; }

.bf-hero-scale {
  width: 100%;
  height: 122px;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  align-items: end;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bf-hero-scale li {
  height: var(--h);
  min-height: 27px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  border-radius: 7px 7px 2px 2px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 850;
}

.bf-hero-scale li:first-child { background: var(--bf-coral); color: #fff; }

.bf-section-nav {
  width: max-content;
  max-width: calc(100% - 32px);
  display: flex;
  position: sticky;
  top: 12px;
  z-index: 30;
  overflow-x: auto;
  gap: 4px;
  margin: -24px auto 0;
  padding: 7px;
  border: 1px solid rgba(19, 44, 38, 0.11);
  border-radius: 17px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 14px 38px rgba(19, 44, 38, 0.12);
  backdrop-filter: blur(14px);
}

.bf-section-nav a {
  min-width: max-content;
  padding: 10px 15px;
  border-radius: 11px;
  color: var(--bf-muted);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.bf-section-nav a:hover { background: #edf1e8; color: var(--bf-ink); }

.bf-section {
  padding-top: 106px;
  scroll-margin-top: 38px;
}

.bf-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: clamp(30px, 8vw, 110px);
  margin-bottom: 36px;
}

.bf-section h2 {
  max-width: 850px;
  margin: 0;
  color: var(--bf-ink);
  font-size: clamp(36px, 4.6vw, 62px);
  letter-spacing: -0.052em;
  line-height: 1;
  overflow-wrap: anywhere;
}

.bf-section-head > p,
.bf-custom__intro > p,
.bf-warning > p {
  margin: 0;
  color: var(--bf-muted);
  font-size: 16px;
  line-height: 1.7;
}

.bf-lab-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--bf-line);
  border-radius: 28px;
  background: var(--bf-surface);
  box-shadow: 0 20px 54px rgba(19, 44, 38, 0.08);
}

.bf-controls {
  padding: 26px;
  border-right: 1px solid var(--bf-line);
  background: #f7f5ee;
}

.bf-control-group + .bf-control-group {
  margin-top: 28px;
  padding-top: 25px;
  border-top: 1px solid var(--bf-line);
}

.bf-control-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 13px;
  color: var(--bf-ink);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bf-step { color: #9aa39f; font-size: 10px; }

.bf-source-list { display: grid; gap: 8px; }

.bf-source {
  width: 100%;
  min-height: 65px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--bf-ink);
  text-align: left;
  cursor: pointer;
}

.bf-source:hover { background: rgba(255, 255, 255, 0.78); border-color: var(--bf-line); }
.bf-source.is-active { border-color: rgba(19, 44, 38, 0.2); background: #fff; box-shadow: 0 8px 22px rgba(19, 44, 38, 0.07); }

.bf-source__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e9ede3;
  color: var(--bf-ink);
  font-size: 15px;
  font-weight: 900;
}

.bf-source.is-active .bf-source__icon { background: var(--bf-lime); }
.bf-source strong,
.bf-source small { display: block; }
.bf-source strong { font-size: 13px; }
.bf-source small { margin-top: 3px; color: var(--bf-muted); font-size: 10px; line-height: 1.35; }

.bf-range-group output {
  color: var(--bf-blue);
  font-variant-numeric: tabular-nums;
}

.bf-range-group input {
  width: 100%;
  height: 5px;
  margin: 9px 0;
  border-radius: 99px;
  background: #dce1d8;
  accent-color: var(--bf-ink);
  cursor: pointer;
}

.bf-range-scale { display: flex; justify-content: space-between; color: #909a96; font-size: 10px; }
.bf-control-note { margin: 11px 2px 0; color: var(--bf-muted); font-size: 10px; line-height: 1.5; }

.bf-results { min-width: 0; padding: clamp(24px, 4vw, 48px); }

.bf-results__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.bf-results__head h3 { margin: 0; color: var(--bf-ink); font-size: clamp(27px, 3vw, 39px); letter-spacing: -0.04em; }
.bf-results__head p:not(.bf-eyebrow) { max-width: 650px; margin: 10px 0 0; color: var(--bf-muted); font-size: 13px; line-height: 1.6; }

.bf-status {
  min-width: max-content;
  padding: 9px 12px;
  border-radius: 999px;
  background: #e5f1de;
  color: #31633f;
  font-size: 11px;
  font-weight: 850;
}

.bf-status[data-level="acceptable"] { background: #edf2d3; color: #5b681f; }
.bf-status[data-level="marginal"] { background: #f9ead0; color: #8a5d0b; }
.bf-status[data-level="nonconformity"] { background: #f7ded7; color: #a04431; }

.bf-metrics {
  display: grid;
  grid-template-columns: 1.18fr 1fr 1fr;
  gap: 10px;
  margin-top: 30px;
}

.bf-metric {
  min-height: 114px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  border: 1px solid var(--bf-line);
  border-radius: 16px;
  background: #fff;
}

.bf-metric--primary { border-color: transparent; background: var(--bf-ink); }
.bf-metric span { color: var(--bf-muted); font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.bf-metric strong { margin-top: 6px; color: var(--bf-ink); font-size: 25px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.bf-metric small { margin-top: 3px; color: #8a9590; font-size: 10px; }
.bf-metric--primary span,
.bf-metric--primary small { color: rgba(255, 255, 255, 0.58); }
.bf-metric--primary strong { color: var(--bf-lime); }

.bf-chart-card { margin-top: 20px; padding: 22px 22px 16px; border: 1px solid var(--bf-line); border-radius: 20px; background: #faf9f4; }

.bf-chart-legend {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  color: var(--bf-muted);
  font-size: 10px;
  font-weight: 750;
}

.bf-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bf-legend-swatch { width: 9px; height: 9px; border-radius: 3px; background: var(--bf-blue); }
.bf-legend-line { width: 13px; height: 2px; background: var(--bf-coral); }

.bf-bars {
  height: 300px;
  display: grid;
  grid-template-columns: repeat(9, minmax(34px, 1fr));
  align-items: end;
  gap: clamp(5px, 1.2vw, 13px);
  overflow-x: auto;
  margin-top: 15px;
  padding-top: 18px;
  border-bottom: 1px solid #cfd6cf;
}

.bf-bar {
  height: 100%;
  min-width: 34px;
  display: grid;
  grid-template-rows: 1fr 29px;
  position: relative;
}

.bf-bar__plot { position: relative; min-height: 0; }
.bf-bar__column {
  width: min(72%, 48px);
  height: var(--observed-height);
  position: absolute;
  left: 50%;
  bottom: 0;
  border-radius: 8px 8px 2px 2px;
  background: var(--bf-blue);
  transform: translateX(-50%);
  transition: height 0.35s ease, background 0.2s ease;
}

.bf-bar:first-child .bf-bar__column { background: var(--bf-ink-soft); }
.bf-bar__expected {
  width: 82%;
  height: 2px;
  position: absolute;
  left: 9%;
  bottom: var(--expected-height);
  z-index: 2;
  border-radius: 99px;
  background: var(--bf-coral);
  transition: bottom 0.35s ease;
}

.bf-bar__value {
  position: absolute;
  left: 50%;
  bottom: calc(var(--observed-height) + 6px);
  color: var(--bf-ink);
  font-size: 9px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
  transition: bottom 0.35s ease;
}

.bf-bar__digit { align-self: center; color: var(--bf-ink); font-size: 12px; font-weight: 900; text-align: center; }
.bf-chart-caption { margin: 13px 0 0; color: var(--bf-muted); font-size: 10px; line-height: 1.5; }

.bf-sample-strip {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 13px;
  background: #edf0e8;
  color: var(--bf-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bf-sample-strip code { overflow: hidden; color: var(--bf-ink); font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }

.bf-custom {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1.15fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: center;
}

.bf-custom__intro h2 { margin-bottom: 22px; }

.bf-privacy {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  margin-top: 28px;
  padding: 17px;
  border: 1px solid rgba(57, 126, 145, 0.24);
  border-radius: 16px;
  background: rgba(226, 239, 243, 0.62);
}

.bf-privacy > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--bf-blue); color: #fff; font-size: 22px; }
.bf-privacy p { margin: 0; color: var(--bf-muted); font-size: 12px; line-height: 1.55; }
.bf-privacy strong { display: block; color: var(--bf-ink); }

.bf-custom__panel {
  padding: clamp(24px, 4vw, 40px);
  border-radius: 26px;
  background: var(--bf-ink);
  box-shadow: 0 22px 55px rgba(19, 44, 38, 0.17);
}

.bf-custom__panel > label { display: block; margin-bottom: 11px; color: var(--bf-lime); font-size: 11px; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.bf-custom__panel textarea {
  width: 100%;
  resize: vertical;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  outline: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 14px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.bf-custom__panel textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.bf-custom__panel textarea:focus { border-color: var(--bf-lime); box-shadow: 0 0 0 3px rgba(217, 239, 130, 0.12); }

.bf-file-row { display: flex; align-items: center; gap: 12px; margin-top: 13px; color: rgba(255, 255, 255, 0.52); font-size: 10px; }
.bf-file-row input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.bf-file-button { min-width: max-content; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, 0.17); color: #fff; font-size: 11px; }
.bf-file-row > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bf-custom__actions { display: flex; gap: 10px; margin-top: 20px; }
.bf-quiet-button { min-height: 48px; padding: 0 17px; border: 1px solid rgba(255, 255, 255, 0.17); background: transparent; color: #fff; }
.bf-quiet-button:hover { background: rgba(255, 255, 255, 0.08); }
.bf-form-message { min-height: 18px; margin: 12px 2px 0; color: rgba(255, 255, 255, 0.66); font-size: 11px; }
.bf-form-message.is-error { color: #ffb5a5; }

.bf-ruler-card {
  overflow: hidden;
  border: 1px solid var(--bf-line);
  border-radius: 26px;
  background: var(--bf-surface);
  box-shadow: 0 18px 45px rgba(19, 44, 38, 0.07);
}

.bf-formula { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 28px; border-bottom: 1px solid var(--bf-line); }
.bf-formula span { color: var(--bf-muted); font-size: 11px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.bf-formula strong { color: var(--bf-ink); font: 700 clamp(18px, 2.2vw, 27px)/1.1 Georgia, serif; }

.bf-log-ruler { display: flex; min-height: 142px; padding: 28px; }
.bf-log-segment {
  min-width: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  background: var(--segment-color);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.bf-log-segment:first-child { border-radius: 13px 0 0 13px; }
.bf-log-segment:last-child { border-right: 0; border-radius: 0 13px 13px 0; }
.bf-log-segment:hover { filter: brightness(1.09); }
.bf-log-segment.is-active { z-index: 1; transform: translateY(-7px); box-shadow: 0 10px 24px rgba(19, 44, 38, 0.2); }

.bf-ruler-detail { min-height: 118px; display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 20px; padding: 24px 28px; background: #eef1e9; }
.bf-ruler-detail__digit { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 19px; background: var(--bf-lime); color: var(--bf-ink); font-size: 35px; font-weight: 900; }
.bf-ruler-detail p { margin: 0; color: var(--bf-muted); font-size: 13px; line-height: 1.6; }
.bf-ruler-detail strong,
.bf-ruler-detail span { display: block; }
.bf-ruler-detail strong { color: var(--bf-ink); font-size: 17px; }

.bf-insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.bf-insights article { min-height: 240px; padding: 26px; border: 1px solid var(--bf-line); border-radius: 20px; background: rgba(255, 253, 248, 0.74); }
.bf-insights article > span { color: var(--bf-coral); font-size: 11px; font-weight: 900; letter-spacing: 0.1em; }
.bf-insights h3 { margin: 47px 0 10px; color: var(--bf-ink); font-size: 20px; letter-spacing: -0.025em; }
.bf-insights p { margin: 0; color: var(--bf-muted); font-size: 13px; line-height: 1.65; }

.bf-warning {
  display: grid;
  grid-template-columns: 84px minmax(250px, 0.7fr) minmax(300px, 1fr);
  align-items: center;
  gap: clamp(25px, 5vw, 64px);
  margin-top: 106px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 28px;
  background: #f2dfd8;
}

.bf-warning__mark { width: 78px; height: 78px; display: grid; place-items: center; border: 1px solid rgba(160, 68, 49, 0.28); border-radius: 50%; color: #a04431; font: 700 36px/1 Georgia, serif; }
.bf-warning h2 { font-size: clamp(32px, 4vw, 52px); }
.bf-warning .bf-eyebrow { color: #a04431; }

@media (max-width: 1040px) {
  .bf-hero { grid-template-columns: 1fr; }
  .bf-hero__copy { max-width: 810px; }
  .bf-hero__visual { min-height: 370px; }
  .bf-lab-grid { grid-template-columns: 280px minmax(0, 1fr); }
  .bf-metrics { grid-template-columns: 1fr 1fr; }
  .bf-metric:first-child { grid-column: 1 / -1; }
  .bf-custom { grid-template-columns: 1fr; }
  .bf-custom__intro { max-width: 760px; }
  .bf-warning { grid-template-columns: 70px 1fr; }
  .bf-warning > p { grid-column: 2; }
}

@media (max-width: 780px) {
  .bf-main { width: min(calc(100% - 20px), var(--bf-max)); padding-top: 10px; }
  .bf-hero { min-height: 690px; padding: 46px 25px; border-radius: 26px; }
  .bf-hero h1 { font-size: clamp(42px, 11.8vw, 58px); }
  .bf-hero__actions { align-items: stretch; flex-direction: column; gap: 17px; }
  .bf-text-link { text-align: center; }
  .bf-hero__visual { min-height: 310px; }
  .bf-orbit { width: 260px; height: 260px; }
  .bf-hero-scale { height: 98px; }
  .bf-section-nav { max-width: calc(100% - 18px); justify-content: flex-start; margin-top: -20px; }
  .bf-section { padding-top: 78px; }
  .bf-section-head { grid-template-columns: 1fr; gap: 18px; }
  .bf-lab-grid { grid-template-columns: 1fr; }
  .bf-controls { border-right: 0; border-bottom: 1px solid var(--bf-line); }
  .bf-source-list { grid-template-columns: repeat(2, 1fr); }
  .bf-source:last-child { grid-column: 1 / -1; }
  .bf-bars { height: 280px; }
  .bf-insights { grid-template-columns: 1fr; }
  .bf-insights article { min-height: 190px; }
  .bf-insights h3 { margin-top: 30px; }
  .bf-log-ruler { overflow-x: auto; }
}

@media (max-width: 540px) {
  .bf-kicker { max-width: 250px; line-height: 1.5; }
  .bf-hero__visual { min-height: 270px; }
  .bf-hero-digit > span { font-size: 116px; }
  .bf-hero-scale { height: 78px; gap: 4px; }
  .bf-section h2 { font-size: 37px; }
  .bf-source-list { grid-template-columns: 1fr; }
  .bf-source:last-child { grid-column: auto; }
  .bf-results { padding: 22px 15px 26px; }
  .bf-results__head { display: grid; }
  .bf-status { width: max-content; }
  .bf-metrics { grid-template-columns: 1fr; }
  .bf-metric:first-child { grid-column: auto; }
  .bf-chart-card { padding-inline: 12px; }
  .bf-chart-legend { justify-content: flex-start; flex-wrap: wrap; }
  .bf-bars { gap: 5px; }
  .bf-bar__value { font-size: 8px; writing-mode: vertical-rl; }
  .bf-sample-strip { grid-template-columns: 1fr; gap: 6px; }
  .bf-custom { gap: 28px; }
  .bf-custom__panel { padding: 22px 16px; }
  .bf-file-row { align-items: flex-start; flex-direction: column; }
  .bf-custom__actions { flex-direction: column; }
  .bf-formula { align-items: flex-start; flex-direction: column; }
  .bf-log-ruler { min-height: 116px; padding: 18px 12px; }
  .bf-log-segment { min-width: 29px; }
  .bf-ruler-detail { grid-template-columns: 58px 1fr; padding: 20px 16px; }
  .bf-ruler-detail__digit { width: 54px; height: 54px; border-radius: 15px; font-size: 27px; }
  .bf-warning { grid-template-columns: 1fr; margin-top: 78px; }
  .bf-warning > p { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .bf-page * { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .bf-section-nav,
  .bf-controls,
  .bf-custom__panel { display: none; }
  .bf-main { width: 100%; padding: 0; }
  .bf-hero { min-height: auto; border-radius: 0; box-shadow: none; }
  .bf-lab-grid { grid-template-columns: 1fr; box-shadow: none; }
  .bf-results { padding: 24px; }
}
