/* Roberin The New — Body Fat calculator workspace 20260711a
   Family: calculator input-left (compound-calculator 20260711e accepted contract)
   Consolidated: field-label separation, 36px compact controls, dark tokens, bleed kill list. */

.tn-bf-page {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  color: var(--tn-bf-ink, #1a1208);
  -webkit-text-fill-color: currentColor;
}

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

/* Known-bleed kill list: global entry-content list injection */
.tn-bf-tool ul,
.tn-bf-tool ol,
.tn-bf-tool li,
.tn-bf-tool dd,
.tn-bf-page .tn-article-panel ul,
.tn-bf-page .tn-article-panel ol,
.tn-bf-page .tn-article-panel li,
.tn-bf-page .tn-design-note ul,
.tn-bf-page .tn-design-note li {
  margin: 0;
  padding: 0;
  padding-left: 0;
  list-style: none;
}

.tn-bf-page .tn-source-link {
  box-shadow: none;
}

.tn-bf-tool {
  --tn-bf-ink: #1a1208;
  --tn-bf-muted: #5a4a30;
  --tn-bf-line: #b8a888;
  --tn-bf-soft-line: #ddd4be;
  --tn-bf-paper: #faf6ee;
  --tn-bf-wash: #f5efdf;
  --tn-bf-button: #ede6d4;
  --tn-bf-button-hover: #dfd4bb;
  --tn-bf-accent: #c44a00;
  --tn-bf-primary: #1f1710;
  --tn-bf-primary-hover: #3a2a1b;
  --tn-bf-control-surface: #fffdf7;
  --tn-bf-control-addon: #f5efdf;
  --tn-bf-bar: #8a6a3c;
  margin: 0 auto 18px;
  border: 1px solid var(--tn-bf-line);
  border-top: 3px double var(--tn-bf-line);
  border-bottom: 3px double var(--tn-bf-line);
  background: var(--tn-bf-paper);
  color: var(--tn-bf-ink);
  -webkit-text-fill-color: var(--tn-bf-ink);
  box-shadow: 4px 4px 0 rgba(26, 18, 8, 0.1);
}

.tn-bf-grid {
  display: grid;
  grid-template-columns: minmax(0, 50%) minmax(0, 50%);
  align-items: stretch;
  gap: 0;
}

.tn-bf-input,
.tn-bf-result {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding: 12px;
  background: var(--tn-bf-paper);
}

.tn-bf-input {
  border-right: 1px solid var(--tn-bf-line);
}

.tn-bf-pane-label {
  display: block;
  width: 100%;
  min-height: 22px;
  margin: 0 0 8px;
  border-bottom: 1px solid var(--tn-bf-ink);
  color: var(--tn-bf-muted);
  -webkit-text-fill-color: var(--tn-bf-muted);
  font: 700 12px/22px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Fields panel */
.tn-bf-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--tn-bf-line);
  border-bottom: 0;
  background: var(--tn-bf-control-surface);
}

.tn-bf-band {
  min-width: 0;
}

.tn-bf-band + .tn-bf-band {
  padding-top: 12px;
  border-top: 1px solid var(--tn-bf-soft-line);
}

.tn-bf-band-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

/* Field: label outside control, 5px gap, wrapper chrome 0 (우려 원장 #34) */
.tn-bf-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  row-gap: 5px;
  min-width: 0;
  border: 0;
  background: transparent;
}

.tn-bf-field > span {
  grid-column: 1 / -1;
  padding: 0;
  color: var(--tn-bf-muted);
  -webkit-text-fill-color: var(--tn-bf-muted);
  font: 700 11px/1.25 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.tn-bf-field > input,
.tn-bf-field > select {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 1px solid var(--tn-bf-line);
  border-radius: 0;
  background: var(--tn-bf-control-surface);
  color: var(--tn-bf-ink);
  -webkit-text-fill-color: var(--tn-bf-ink);
  font: 700 15px/36px Georgia, "Times New Roman", serif;
  outline: 0;
}

.tn-bf-field > input {
  padding: 0 8px;
}

.tn-bf-field > input:has(+ b),
.tn-bf-field > input:has(+ input),
.tn-bf-field > input:has(+ select) {
  border-right: 0;
}

.tn-bf-field > select {
  padding: 0 28px 0 8px;
  appearance: none;
  background-color: var(--tn-bf-control-addon);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--tn-bf-muted) 50%),
    linear-gradient(135deg, var(--tn-bf-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 13px) calc(50% + 1px),
    calc(100% - 8px) calc(50% + 1px);
  background-repeat: no-repeat;
  background-size: 5px 5px;
  cursor: pointer;
}

.tn-bf-field > select:hover {
  background-color: var(--tn-bf-button);
}

/* Suffix chip owns its border (bleed kill #7) */
.tn-bf-field > b {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-height: 36px;
  min-width: 36px;
  padding: 0 8px;
  border: 1px solid var(--tn-bf-line);
  border-left-color: var(--tn-bf-soft-line);
  background: var(--tn-bf-control-addon);
  color: var(--tn-bf-muted);
  -webkit-text-fill-color: var(--tn-bf-muted);
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  box-shadow: none;
}

/* Imperial height pair: ft input + in input inside one control row */
.tn-bf-field--height-imperial {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
}

.tn-bf-field--height-imperial > input + b {
  border-right: 0;
}

.tn-bf-field--height-imperial > b + input {
  border-left: 0;
}

.tn-bf-field:focus-within > input,
.tn-bf-field:focus-within > select {
  border-color: var(--tn-bf-accent);
}

.tn-bf-field input[aria-invalid="true"] {
  background: rgba(196, 74, 0, 0.08);
}

/* Command block */
.tn-bf-command {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 12px 14px 14px;
  border: 1px solid var(--tn-bf-line);
  border-top-color: var(--tn-bf-soft-line);
  background: var(--tn-bf-control-surface);
}

.tn-bf-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.tn-bf-btn {
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--tn-bf-line);
  border-radius: 0;
  background: var(--tn-bf-button);
  color: var(--tn-bf-ink);
  -webkit-text-fill-color: var(--tn-bf-ink);
  cursor: pointer;
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  display: inline-grid;
  place-items: center;
  text-align: center;
  outline: 0;
}

.tn-bf-btn:hover {
  background: var(--tn-bf-button-hover);
}

.tn-bf-btn--primary {
  border-color: var(--tn-bf-primary);
  background: var(--tn-bf-primary);
  color: #f7ead1;
  -webkit-text-fill-color: #f7ead1;
}

.tn-bf-btn--primary:hover {
  background: var(--tn-bf-primary-hover);
}

.tn-bf-btn:focus-visible,
.tn-bf-field > input:focus-visible,
.tn-bf-field > select:focus-visible {
  outline: 2px solid var(--tn-bf-accent);
  outline-offset: 2px;
}

.tn-bf-btn:not(:focus-visible),
.tn-bf-btn:hover,
.tn-bf-btn:disabled {
  outline: 0;
}

.tn-bf-btn:disabled {
  opacity: 0.54;
  cursor: not-allowed;
}

.tn-bf-status {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid var(--tn-bf-soft-line);
  background: color-mix(in srgb, var(--tn-bf-wash) 72%, transparent);
  color: var(--tn-bf-muted);
  -webkit-text-fill-color: var(--tn-bf-muted);
  font: 11px/1.35 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
}

/* Result pane */
.tn-bf-summary {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: 0;
  padding: 16px;
  border: 1px solid var(--tn-bf-line);
  background: var(--tn-bf-control-surface);
}

.tn-bf-main {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  column-gap: 10px;
  row-gap: 5px;
  padding: 10px 0;
  border-bottom: 1px solid var(--tn-bf-soft-line);
}

.tn-bf-main span {
  color: var(--tn-bf-muted);
  -webkit-text-fill-color: var(--tn-bf-muted);
  font: 700 11px/1.3 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.tn-bf-main strong {
  min-width: 0;
  color: var(--tn-bf-ink);
  -webkit-text-fill-color: var(--tn-bf-ink);
  font: 700 clamp(28px, 3.2vw, 40px)/1.05 Georgia, "Times New Roman", serif;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0;
  white-space: nowrap;
  word-break: keep-all;
}

.tn-bf-main em {
  grid-column: 1 / -1;
  color: var(--tn-bf-muted);
  -webkit-text-fill-color: var(--tn-bf-muted);
  font: 11px/1.35 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-style: normal;
  overflow-wrap: anywhere;
}

.tn-bf-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(58px, 1fr));
  gap: 8px;
  padding-top: 12px;
  border: 0;
}

.tn-bf-metrics > div {
  min-width: 0;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid var(--tn-bf-soft-line);
  background: var(--tn-bf-wash);
}

.tn-bf-metrics dt {
  margin-bottom: 4px;
  color: var(--tn-bf-muted);
  -webkit-text-fill-color: var(--tn-bf-muted);
  font: 700 10.5px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.tn-bf-metrics dd {
  color: var(--tn-bf-ink);
  -webkit-text-fill-color: var(--tn-bf-ink);
  font: 700 15px/1.2 Georgia, "Times New Roman", serif;
  font-variant-numeric: lining-nums tabular-nums;
  overflow-wrap: anywhere;
}

/* Analysis strip: TDEE ladder */
.tn-bf-analysis {
  grid-column: 1 / -1;
  min-width: 0;
  border-top: 3px double var(--tn-bf-line);
  padding: 14px 16px 0;
}

.tn-bf-ladder {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.tn-bf-ladder-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) 64px minmax(96px, max-content) minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--tn-bf-soft-line);
  background: var(--tn-bf-control-surface);
}

.tn-bf-ladder-row > span {
  color: var(--tn-bf-ink);
  -webkit-text-fill-color: var(--tn-bf-ink);
  font: 700 12px/1.3 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
}

.tn-bf-ladder-row > i {
  color: var(--tn-bf-muted);
  -webkit-text-fill-color: var(--tn-bf-muted);
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-style: normal;
  text-align: right;
}

.tn-bf-ladder-row > strong {
  color: var(--tn-bf-ink);
  -webkit-text-fill-color: var(--tn-bf-ink);
  font: 700 14px/1.2 Georgia, "Times New Roman", serif;
  font-variant-numeric: lining-nums tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.tn-bf-ladder-bar {
  position: relative;
  height: 10px;
  min-width: 0;
  border: 1px solid var(--tn-bf-soft-line);
  background: var(--tn-bf-wash);
  overflow: hidden;
}

.tn-bf-ladder-bar > b {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--tn-bf-bar);
  border: 0;
  transition: width 0.2s ease;
}

.tn-bf-ladder-caption {
  margin: 10px 0 0;
  color: var(--tn-bf-muted);
  -webkit-text-fill-color: var(--tn-bf-muted);
  font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.tn-bf-disclaimer {
  margin: 0;
  padding: 12px 16px 14px;
  color: var(--tn-bf-muted);
  -webkit-text-fill-color: var(--tn-bf-muted);
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Dark scheme tokens (all activation paths, text-fill included) */
body[data-scheme="dark"] .tn-bf-tool,
body[data-scheme="inverse"] .tn-bf-tool,
body[data-scheme="auto"][data-l="dark"] .tn-bf-tool,
body[data-scheme="auto"][data-d="dark"] .tn-bf-tool,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-bf-tool {
  --tn-bf-ink: #f7ead1;
  --tn-bf-muted: #d5c3a6;
  --tn-bf-line: #826744;
  --tn-bf-soft-line: #58432d;
  --tn-bf-paper: #21170f;
  --tn-bf-wash: #17100b;
  --tn-bf-button: #2f2115;
  --tn-bf-button-hover: #3a2a1b;
  --tn-bf-accent: #e38b4f;
  --tn-bf-primary: #6a3b1f;
  --tn-bf-primary-hover: #824826;
  --tn-bf-control-surface: #24180f;
  --tn-bf-control-addon: #2f2115;
  --tn-bf-bar: #c98d52;
  background: var(--tn-bf-paper);
  color: var(--tn-bf-ink);
  -webkit-text-fill-color: var(--tn-bf-ink);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.28);
}

body[data-scheme="dark"] .tn-bf-btn--primary,
body[data-scheme="inverse"] .tn-bf-btn--primary,
body[data-scheme="auto"][data-l="dark"] .tn-bf-btn--primary,
body[data-scheme="auto"][data-d="dark"] .tn-bf-btn--primary,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-bf-btn--primary {
  background: var(--tn-bf-primary);
  border-color: var(--tn-bf-primary);
  color: #f7ead1;
  -webkit-text-fill-color: #f7ead1;
}

body[data-scheme="dark"] .tn-bf-btn--primary:hover,
body[data-scheme="inverse"] .tn-bf-btn--primary:hover,
body[data-scheme="auto"][data-l="dark"] .tn-bf-btn--primary:hover,
body[data-scheme="auto"][data-d="dark"] .tn-bf-btn--primary:hover,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-bf-btn--primary:hover {
  background: var(--tn-bf-primary-hover);
}

@media (prefers-color-scheme: dark) {
  body[data-scheme="auto"] .tn-bf-tool,
  body:not([data-scheme]) .tn-bf-tool {
    --tn-bf-ink: #f7ead1;
    --tn-bf-muted: #d5c3a6;
    --tn-bf-line: #826744;
    --tn-bf-soft-line: #58432d;
    --tn-bf-paper: #21170f;
    --tn-bf-wash: #17100b;
    --tn-bf-button: #2f2115;
    --tn-bf-button-hover: #3a2a1b;
    --tn-bf-accent: #e38b4f;
    --tn-bf-primary: #6a3b1f;
    --tn-bf-primary-hover: #824826;
    --tn-bf-control-surface: #24180f;
    --tn-bf-control-addon: #2f2115;
    --tn-bf-bar: #c98d52;
    background: var(--tn-bf-paper);
    color: var(--tn-bf-ink);
    -webkit-text-fill-color: var(--tn-bf-ink);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.28);
  }

  body[data-scheme="auto"] .tn-bf-btn--primary,
  body:not([data-scheme]) .tn-bf-btn--primary {
    background: var(--tn-bf-primary);
    border-color: var(--tn-bf-primary);
    color: #f7ead1;
    -webkit-text-fill-color: #f7ead1;
  }
}

/* Mobile */
@media (max-width: 960px) {
  .tn-bf-grid {
    grid-template-columns: 1fr;
  }

  .tn-bf-input {
    border-right: 0;
    border-bottom: 1px solid var(--tn-bf-line);
  }

  .tn-bf-summary {
    flex: 0 0 auto;
  }
}

@media (max-width: 720px) {
  .tn-bf-page {
    width: calc(100vw - 10px);
  }

  .tn-bf-input,
  .tn-bf-result {
    padding: 10px;
  }

  .tn-bf-fields {
    gap: 10px;
    padding: 12px;
  }

  .tn-bf-band + .tn-bf-band {
    padding-top: 10px;
  }

  .tn-bf-band-grid {
    gap: 8px;
  }

  .tn-bf-command {
    padding: 10px 12px 12px;
  }

  .tn-bf-summary {
    padding: 14px;
  }

  .tn-bf-main strong {
    font-size: clamp(27px, 9vw, 36px);
  }

  .tn-bf-analysis {
    padding: 12px;
  }

  .tn-bf-ladder-row {
    grid-template-columns: minmax(96px, 0.42fr) 50px minmax(84px, max-content) minmax(0, 1fr);
    column-gap: 8px;
  }

  .tn-bf-disclaimer {
    padding: 10px 12px 12px;
  }
}

@media (max-width: 430px) {
  .tn-bf-input,
  .tn-bf-result {
    padding: 10px 7px;
  }

  .tn-bf-fields {
    gap: 9px;
    padding: 10px 7px;
  }

  .tn-bf-band + .tn-bf-band {
    padding-top: 9px;
  }

  .tn-bf-band-grid,
  .tn-bf-actions {
    gap: 7px;
  }

  .tn-bf-field > span {
    font-size: 10.5px;
  }

  .tn-bf-field > input,
  .tn-bf-field > select {
    height: 36px;
    font-size: 13.5px;
    line-height: 36px;
  }

  .tn-bf-field > input {
    padding: 0 6px;
  }

  .tn-bf-field > select {
    padding: 0 25px 0 6px;
    background-position:
      calc(100% - 12px) calc(50% + 1px),
      calc(100% - 7px) calc(50% + 1px);
  }

  .tn-bf-field > b {
    min-width: 30px;
    padding: 0 5px;
  }

  .tn-bf-command {
    padding: 9px 7px 10px;
  }

  .tn-bf-status {
    padding: 7px 8px;
  }

  .tn-bf-summary {
    padding: 12px 7px;
  }

  .tn-bf-metrics {
    gap: 7px;
  }

  .tn-bf-metrics > div {
    min-height: 54px;
    padding: 8px 7px;
  }

  .tn-bf-analysis {
    padding: 12px 8px;
  }

  .tn-bf-ladder-row {
    grid-template-columns: minmax(0, 1fr) 44px minmax(80px, max-content);
    row-gap: 6px;
  }

  .tn-bf-ladder-bar {
    grid-column: 1 / -1;
  }

  .tn-bf-disclaimer {
    padding: 10px 8px 12px;
  }
}

@media (max-width: 370px) {
  .tn-bf-band-grid,
  .tn-bf-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tn-bf-actions .tn-bf-btn:last-child {
    grid-column: 1 / -1;
  }

  .tn-bf-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Profile band: age / sex / units 3-up on desktop */
.tn-bf-band-grid--profile {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 430px) {
  .tn-bf-band-grid--profile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tn-bf-band-grid--profile .tn-bf-field:last-child {
    grid-column: 1 / -1;
  }
}


/* Row-37 companions: explicit component ownership (p/dl excluded from reset) */
.tn-bf-tool dl {
  margin: 0;
}

.tn-bf-tool p {
  margin: 0;
}

/* Metrics at the accepted 22px scale (2026-07-11 user standard) */
.tn-bf-tool .tn-bf-metrics dd {
  font-size: 22px;
  line-height: 1.25;
}

.tn-bf-tool .tn-bf-metrics dt {
  font-size: 11px;
  margin-bottom: 7px;
}

.tn-bf-tool .tn-bf-metrics > div {
  min-height: 64px;
}

/* Girth band: waist / neck / hip 3-up */
.tn-bf-band-grid--girth {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Classification axis chart (dependency-free, point style) */
.tn-bf-tool .tn-bf-chart {
  padding: 8px 12px 12px;
  border: 1px solid var(--tn-bf-soft-line);
  background: var(--tn-bf-control-surface);
}

.tn-bf-tool .tn-bf-chart > svg {
  display: block;
  width: 100%;
  height: 64px;
}

.tn-bf-axis {
  stroke: var(--tn-bf-line);
  stroke-width: 1.5;
}

.tn-bf-band-tick {
  stroke: var(--tn-bf-soft-line);
  stroke-width: 1.5;
}

.tn-bf-marker {
  fill: var(--tn-bf-accent);
  stroke: var(--tn-bf-control-surface);
  stroke-width: 1.5;
}

.tn-bf-tool .tn-bf-chart-labels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin-top: 8px;
}

.tn-bf-tool .tn-bf-chart-cell {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 5px 4px;
  border: 1px solid transparent;
  text-align: center;
}

.tn-bf-tool .tn-bf-chart-cell.is-active {
  border-color: var(--tn-bf-line);
  background: var(--tn-bf-wash);
}

.tn-bf-tool .tn-bf-chart-cell > span {
  color: var(--tn-bf-ink);
  -webkit-text-fill-color: var(--tn-bf-ink);
  font: 700 11px/1.25 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
}

.tn-bf-tool .tn-bf-chart-cell > i {
  color: var(--tn-bf-muted);
  -webkit-text-fill-color: var(--tn-bf-muted);
  font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-style: normal;
  white-space: nowrap;
}

@media (max-width: 430px) {
  .tn-bf-band-grid--girth {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tn-bf-band-grid--girth .tn-bf-field:last-child {
    grid-column: auto;
  }

  .tn-bf-tool .tn-bf-chart {
    padding: 6px 8px 10px;
  }

  .tn-bf-tool .tn-bf-chart-labels {
    gap: 3px;
  }

  .tn-bf-tool .tn-bf-chart-cell > span {
    font-size: 9.5px;
  }

  .tn-bf-tool .tn-bf-chart-cell > i {
    font-size: 9px;
  }

  .tn-bf-tool .tn-bf-metrics dd {
    font-size: 19px;
  }
}

/* Global lower-block parity contract */
.tn-bf-page .tn-article-title h2 {
  min-width: 0;
}

body.tn-bf-page-body :is(.cs-entry__footer, .cs-sight-testimonials, .cs-contact-form) {
  width: min(1180px, 100%) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.tn-bf-page-body .cs-entry__footer {
  margin-top: 28px !important;
  margin-bottom: 0 !important;
}

body.tn-bf-page-body .cs-sight-testimonials,
body.tn-bf-page-body .cs-contact-form {
  margin-top: 24px !important;
  margin-bottom: 0 !important;
}

@media (max-width: 540px) {
  body.tn-bf-page-body :is(.cs-entry__footer, .cs-sight-testimonials, .cs-contact-form) {
    width: calc(100% - 10px) !important;
    max-width: calc(100% - 10px) !important;
  }

  body.tn-bf-page-body .cs-entry__footer {
    margin-top: 24px !important;
  }

  body.tn-bf-page-body .cs-sight-testimonials,
  body.tn-bf-page-body .cs-contact-form {
    margin-top: 22px !important;
  }
}
