/* Wspolny naglowek i tokeny MJKM sa osadzane przez PHP; tutaj pozostaja style kalkulatora. */
:root {
  --chart-control-x-min-left: calc(10% + 54px);
  --chart-control-x-min-bottom: 24px;
  --chart-control-x-max-left: calc(80% - 14px);
  --chart-control-x-max-bottom: 24px;
  --chart-control-y-min-left: 36px;
  --chart-control-y-min-top: calc(88.5% - 20px);
  --chart-control-y-max-left: 36px;
  --chart-control-y-max-top: calc(11.2% + 12px);
  --chart-control-auto-left: 40px;
  --chart-control-auto-bottom: 38px;
  --detail-chart-picker-width: max-content;
}



* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-y: scroll;
  background-color: var(--bg);
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
}

sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.45em;
}

button,
input,
select,
table {
  font: inherit;
}

input,
select,
.number-stepper,
.preview-result,
.preview-metrics-table,
.result-metrics,
.family-cards,
.results-table,
.detail-calculations,
.line-chart-svg,
.chart-range-control,
.math-symbol,
.unit,
.result-number {
  font-variant-numeric: tabular-nums;
}

code {
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--code-bg);
  color: var(--heading);
  font-size: var(--fs-base);
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
}

.layout {
  display: grid;
  gap: var(--space-grid);
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.94fr) minmax(0, 1.06fr);
  gap: var(--space-grid);
}

.panel-config .panel-grid {
  grid-template-columns: minmax(0, 1fr) 600px;
  column-gap: var(--space-grid);
  justify-content: stretch;
  align-items: stretch;
}

.panel-config .config-choice-stack {
  grid-column: 1;
  min-width: 0;
}

.panel-config .card-general {
  grid-column: 2;
  min-width: 0;
}

.config-choice-stack {
  display: grid;
  gap: var(--space-grid);
  align-content: start;
}

.panel-grid-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-grid);
  margin-bottom: var(--space-grid);
  align-items: start;
}

.results-overview-grid {
  display: block;
  margin-bottom: var(--space-grid);
}

.results-summary-card {
  width: 100%;
  max-width: 100%;
  --summary-metrics-table-width: 260px;
  --summary-family-card-width: 320px;
  --summary-result-card-min-height: 370px;
}

.results-summary-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.38fr) minmax(0, 1fr);
  justify-content: stretch;
  gap: var(--space-grid);
  align-items: stretch;
}

.results-summary-part {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.results-table-sections {
  display: grid;
  gap: var(--space-grid);
}

.results-table-section {
  display: grid;
  gap: var(--space-row);
  padding-top: var(--space-grid);
  border-top: 1px solid var(--line);
  overflow-x: auto;
}

.results-table-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.results-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 10px 20px;
}

.results-section-head h3 {
  margin: 0;
  color: var(--heading);
  font-family: var(--font-heading);
  font-size: var(--fs-heading);
  font-weight: 700;
  line-height: 1.2;
}

.results-section-head .section-label {
  margin-bottom: 6px;
}

.results-table-note {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.55;
  max-width: 70ch;
}

body[data-calculator-id="geo-sfbc"] .sfbc-large-eccentricity-warning {
  margin: var(--space-row) 0 0;
  color: var(--danger);
  font-size: var(--fs-small);
  line-height: 1.55;
}

body[data-calculator-id="geo-sfbc"] .sfbc-large-eccentricity-warning[hidden] {
  display: none;
}

.results-table-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  justify-content: center;
  gap: var(--space-grid);
  align-items: stretch;
  min-width: 756px;
}

.detail-top-stack {
  display: grid;
  gap: var(--space-grid);
  margin-bottom: var(--space-grid);
}

.theory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-grid);
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-grid);
}

.how-card-head-wide {
  max-width: none;
}

.how-intro-copy {
  max-width: none;
  font-size: var(--fs-small);
  line-height: 1.62;
  text-wrap: pretty;
}

.how-summary-copy {
  max-width: none;
  font-size: var(--fs-small);
  line-height: 1.62;
  text-wrap: pretty;
}

.how-nowrap-line {
  white-space: nowrap;
}

.theory-card-wide {
  grid-column: auto;
}

.card-general {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  align-self: stretch;
  width: max-content;
  max-width: 100%;
  height: auto;
  gap: var(--space-grid);
  padding-right: 22px;
  padding-left: 22px;
}

.section-label {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card-head p {
  margin: 0 0 18px;
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.7;
  text-align: left;
}

.card-general > .card-head p {
  text-align: justify;
}

.card-general > .card-head {
  width: 100%;
  max-width: none;
}

.input-warning {
  margin: 0;
  padding: 0;
  border-top: 0;
  color: var(--danger);
  text-align: justify;
}

.input-warning strong {
  color: var(--danger);
}

.model-warning {
  margin: 0;
  padding: 0;
  border-top: 0;
  line-height: 1.7;
  text-align: justify;
}

/* GEO-SFBC 0a: narrow domain adaptation of the selected SFSET shell. */
body[data-calculator-id="geo-sfbc"] .sfbc-soil-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 252px;
  column-gap: var(--space-grid);
  align-items: start;
  width: 100%;
  min-width: 0;
  margin-top: var(--space-grid);
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-card > .sfbc-soil-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-main > .sfbc-water-controls {
  margin-bottom: 0;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-card > .sfbc-soil-card-profile {
  grid-column: 2;
  grid-row: 1;
  width: 252px;
  max-width: 100%;
  margin-top: 0;
  justify-self: end;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-card > .sfbc-soil-table-layout {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  margin-top: var(--space-grid);
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-card > .sfbc-soil-settings {
  grid-column: 1 / -1;
  grid-row: 3;
}

@media (max-width: 1100px) {
  body[data-calculator-id="geo-sfbc"] .sfbc-soil-card {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-calculator-id="geo-sfbc"] .sfbc-soil-card > .sfbc-soil-card-profile {
    grid-column: 1;
    grid-row: 2;
    margin-top: var(--space-grid);
  }

  body[data-calculator-id="geo-sfbc"] .sfbc-soil-card > .sfbc-soil-table-layout {
    grid-column: 1;
    grid-row: 3;
  }

  body[data-calculator-id="geo-sfbc"] .sfbc-soil-card > .sfbc-soil-settings {
    grid-column: 1;
    grid-row: 4;
  }
}

body[data-calculator-id="geo-sfbc"] .sfbc-water-controls {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-row);
  margin-bottom: var(--space-grid);
}

body[data-calculator-id="geo-sfbc"] .sfbc-backfill-controls {
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0;
  margin-left: auto;
}

body[data-calculator-id="geo-sfbc"] .sfbc-backfill-presence-field {
  margin-right: -12px;
}

@media (max-width: 700px) {
  body[data-calculator-id="geo-sfbc"] .sfbc-backfill-controls {
    margin-left: 0;
  }

  body[data-calculator-id="geo-sfbc"] .sfbc-backfill-presence-field {
    margin-right: 0;
  }
}

body[data-calculator-id="geo-sfbc"] .sfbc-water-presence-field,
body[data-calculator-id="geo-sfbc"] .sfbc-water-table-field,
body[data-calculator-id="geo-sfbc"] .sfbc-backfill-presence-field,
body[data-calculator-id="geo-sfbc"] .sfbc-backfill-gamma-field {
  display: grid;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  justify-items: center;
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] .sfbc-water-presence-field,
body[data-calculator-id="geo-sfbc"] .sfbc-backfill-presence-field {
  margin-bottom: 0;
  align-self: flex-end;
}

body[data-calculator-id="geo-sfbc"] .sfbc-backfill-gamma-field {
  width: 230px;
}

body[data-calculator-id="geo-sfbc"] .sfbc-water-table-field > span:first-child {
  width: 100%;
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] .sfbc-backfill-gamma-field > span:first-child {
  width: 100%;
  white-space: normal;
  text-wrap: balance;
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] .sfbc-backfill-gamma-field .number-stepper {
  justify-self: center;
}

body[data-calculator-id="geo-sfbc"] .sfbc-water-presence-picker,
body[data-calculator-id="geo-sfbc"] .sfbc-backfill-presence-picker {
  --standard-text-picker-width: 80px;
  width: 80px !important;
  min-width: 80px;
}

body[data-calculator-id="geo-sfbc"] .sfbc-water-presence-picker .standard-text-picker-toggle,
body[data-calculator-id="geo-sfbc"] .sfbc-backfill-presence-picker .standard-text-picker-toggle {
  min-height: 30px;
}

body[data-calculator-id="geo-sfbc"] .sfbc-water-table-field .number-stepper,
body[data-calculator-id="geo-sfbc"] .sfbc-backfill-gamma-field .number-stepper {
  width: 112px;
  max-width: 100%;
}

body[data-calculator-id="geo-sfbc"] .sfbc-water-table-field .number-stepper input,
body[data-calculator-id="geo-sfbc"] .sfbc-backfill-gamma-field .number-stepper input {
  min-height: 30px;
  padding: 0 8px;
  font-size: var(--fs-small);
}

body[data-calculator-id="geo-sfbc"] .sfbc-water-table-field .number-stepper .number-stepper-button:disabled,
body[data-calculator-id="geo-sfbc"] .sfbc-backfill-gamma-field .number-stepper .number-stepper-button:disabled {
  color: var(--muted) !important;
  cursor: default !important;
  opacity: .7;
}

body[data-calculator-id="geo-sfbc"] .sfbc-water-table-field .number-stepper.is-unavailable,
body[data-calculator-id="geo-sfbc"] .sfbc-water-table-field .number-stepper.is-unavailable *,
body[data-calculator-id="geo-sfbc"] .sfbc-backfill-gamma-field .number-stepper.is-unavailable,
body[data-calculator-id="geo-sfbc"] .sfbc-backfill-gamma-field .number-stepper.is-unavailable * {
  cursor: default !important;
}

body[data-calculator-id="geo-sfbc"] .sfbc-water-unavailable {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 30px;
  place-items: center;
  padding: 0 6px;
  color: var(--muted);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 700;
}

body[data-calculator-id="geo-sfbc"] .sfbc-water-unavailable[hidden] {
  display: none;
}

body[data-calculator-id="geo-sfbc"] .sfbc-water-controls > p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.4;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-mode {
  margin: 0 0 var(--space-row);
  color: var(--text);
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-table-wrap {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  vertical-align: top;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-table th,
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table td {
  padding: 8px 12px;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-table .is-inactive {
  color: var(--muted);
  opacity: 0.65;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-note {
  margin: var(--space-row) 0 0;
  color: var(--muted);
  font-size: var(--fs-small);
}

body[data-calculator-id="geo-sfbc"] .panel-config .panel-grid {
  align-items: start;
}

body[data-calculator-id="geo-sfbc"] #scheme-picker {
  display: grid;
  gap: 10px;
}

body[data-calculator-id="geo-sfbc"] .scheme-option {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface-plain);
  text-align: left;
  cursor: pointer;
}

body[data-calculator-id="geo-sfbc"] .scheme-option strong,
body[data-calculator-id="geo-sfbc"] .scheme-option span,
body[data-calculator-id="geo-sfbc"] .family-card span,
body[data-calculator-id="geo-sfbc"] .family-card strong {
  display: block;
}

body[data-calculator-id="geo-sfbc"] .scheme-option.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 24%, transparent);
}

body[data-calculator-id="geo-sfbc"] .scheme-option.is-static {
  cursor: default;
}

body[data-calculator-id="geo-sfbc"] .sfbc-load-scheme {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  color: var(--text);
}

body[data-calculator-id="geo-sfbc"] {
  --sfbc-profile-backfill-fill: color-mix(in srgb, var(--mjkm-amber-base) 38%, var(--surface-plain));
}

body[data-calculator-id="geo-sfbc"] .sfbc-dxf-scheme {
  --sfbc-dxf-paper: var(--surface-plain);
  --sfbc-dxf-fill: var(--surface-accent);
  --sfbc-dxf-line: var(--mjkm-brand-300);
  --sfbc-dxf-soil-fill: var(--sfbc-profile-backfill-fill);
  --sfbc-dxf-soil-line: color-mix(in srgb, var(--mjkm-amber-base) 70%, var(--surface-plain));
  --sfbc-dxf-side-soil-fill: color-mix(in srgb, var(--mjkm-amber-base) 65%, var(--surface-plain));
  --sfbc-dxf-axis: var(--chart-grid);
  --sfbc-dxf-dim: var(--warn);
  --sfbc-dxf-load: var(--warn);
  --sfbc-dxf-ink: var(--heading);
  --sfbc-dxf-muted: var(--text-secondary);
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-display {
  --sfbc-header-center-y: 35px;
  position: relative;
  width: min(100%, 618px);
  min-width: 0;
  margin: 24px auto 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-plain);
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-current-title {
  position: absolute;
  z-index: 1;
  top: var(--sfbc-header-center-y);
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  color: var(--heading);
  font-family: var(--font-heading);
  font-size: var(--fs-heading);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-view-controls {
  position: absolute;
  z-index: 1;
  top: calc(var(--sfbc-header-center-y) - 19px);
  right: 16px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: stretch;
  width: max-content;
  max-width: calc(100% - 32px);
  height: 38px;
  min-height: 36px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-plain);
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-view-controls[hidden] {
  display: none;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-view-option[hidden] {
  display: none;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-view-option {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-left: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface-subtle);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-view-option:first-child {
  border-left: 0;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-view-option.is-active {
  background: var(--surface-selected);
  color: var(--brand);
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-view-option:not(.is-active):hover {
  background: var(--surface-selected);
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-view-option:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 1px var(--brand);
}

@media (max-width: 520px) {
  body[data-calculator-id="geo-sfbc"] .sfbc-scheme-current-title {
    left: 16px;
    transform: translateY(-50%);
    font-size: var(--fs-base);
  }
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-views {
  position: relative;
  width: 100%;
  height: 650px;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-sign-note {
  margin: -16px 16px 16px;
  color: var(--text-secondary);
  font-size: var(--fs-small);
  line-height: 1.4;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-panel {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  min-width: 0;
  padding: 105px 10px 0;
  overflow: hidden;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-artwork {
  width: 100%;
  margin-top: var(--sfbc-offset);
  transform: scale(var(--sfbc-fit-scale));
  transform-origin: center top;
}

body[data-calculator-id="geo-sfbc"].sfbc-graphic-only:not(.sfbc-strip-mode) .preview-card > .sfbc-preview-graphic {
  display: none !important;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-panel.is-inactive {
  display: none;
  pointer-events: none;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-empty {
  margin: 16px 0;
  padding-top: 112px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1399px) {
  body[data-calculator-id="geo-sfbc"] .sfbc-scheme-views {
    height: auto;
    min-height: 420px;
  }

  body[data-calculator-id="geo-sfbc"] .sfbc-scheme-views::before {
    content: "";
    display: block;
    padding-top: calc(155px + 80.8%);
  }
}

body[data-calculator-id="geo-sfbc"] .sfbc-load-scheme:not(.sfbc-dxf-scheme) text {
  fill: currentColor;
  font-size: 14px;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-title {
  font-size: 18px;
  font-weight: 700;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-small-label,
body[data-calculator-id="geo-sfbc"] .sfbc-scheme-dimension-label {
  font-size: 12px;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-footing {
  fill: var(--panel-soft);
  stroke: var(--line);
  stroke-width: 2;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-column {
  fill: var(--surface-plain);
  stroke: var(--brand);
  stroke-width: 2;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-axis {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-ground {
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-dasharray: 7 4;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-dimension {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-force {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.5;
  stroke-linecap: round;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-moment {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-arrowhead {
  fill: var(--brand);
}

body[data-calculator-id="geo-sfbc"] .sfbc-input-group-title {
  margin: 12px 0 0;
  font-size: var(--fs-small);
  line-height: 1.35;
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] .sfbc-input-group-note {
  max-width: var(--general-label-width);
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.35;
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] .sfbc-variants-empty,
body[data-calculator-id="geo-sfbc"] .sfbc-legacy-result-note {
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.4;
}

body[data-calculator-id="geo-sfbc"] .family-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 92px;
}

body[data-calculator-id="geo-sfbc"] .line-chart-svg text {
  fill: var(--text);
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-map {
  --sfbc-dxf-fill: var(--surface-accent);
  --sfbc-dxf-line: var(--mjkm-brand-300);
  --sfbc-dxf-axis: var(--chart-grid);
  --sfbc-dxf-dim: var(--warn);
  --sfbc-dxf-load: var(--warn);
  --sfbc-dxf-ink: var(--heading);
}

body[data-calculator-id="geo-sfbc"] {
  --sfbc-eccentricity-limit-color: var(--mjkm-coral-deep);
  --sfbc-kern-color: var(--mjkm-cyan-deep);
}

html[data-theme="dark"] body[data-calculator-id="geo-sfbc"] {
  --sfbc-eccentricity-limit-color: var(--mjkm-coral-base);
  --sfbc-kern-color: var(--mjkm-cyan-tint);
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-map .sfbc-map-axis-label,
body[data-calculator-id="geo-sfbc"] .sfbc-contact-map .sfbc-map-dimensions text {
  fill: var(--sfbc-dxf-ink);
  font-size: 14px;
  font-weight: 500;
  paint-order: stroke fill;
  stroke: var(--surface-plain);
  stroke-width: 5px;
  stroke-linejoin: round;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-map .sfbc-map-base {
  fill: var(--sfbc-dxf-fill);
  stroke: var(--sfbc-dxf-line);
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-map .sfbc-map-axis-line,
body[data-calculator-id="geo-sfbc"] .sfbc-contact-map .sfbc-map-axis-arrow {
  fill: none;
  vector-effect: non-scaling-stroke;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-map .sfbc-map-axis-line {
  stroke: var(--sfbc-dxf-axis);
  stroke-width: 1;
  stroke-dasharray: 12 5 2 5;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-map .sfbc-map-axis-arrow {
  stroke: var(--sfbc-dxf-line);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-map .sfbc-map-dimensions {
  fill: none;
  stroke: var(--sfbc-dxf-dim);
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-map .sfbc-map-dimensions path {
  vector-effect: non-scaling-stroke;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-map .sfbc-map-dimension-main,
body[data-calculator-id="geo-sfbc"] .sfbc-contact-map .sfbc-map-dimension-tick {
  stroke-width: 2.2;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-map .sfbc-map-dimension-extension {
  stroke-width: 1.1;
  opacity: .78;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-map .sfbc-eccentricity-ellipse {
  fill: none;
  stroke: var(--sfbc-eccentricity-limit-color);
  stroke-width: 1.5;
  stroke-dasharray: none;
  vector-effect: non-scaling-stroke;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-map .sfbc-kern-outline {
  fill: none;
  stroke: var(--sfbc-kern-color);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-map .sfbc-footing-center {
  fill: none;
  stroke: var(--sfbc-dxf-ink);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-map .sfbc-resultant-circle {
  fill: var(--sfbc-dxf-fill);
  stroke: var(--sfbc-dxf-load);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-map .sfbc-resultant-cross {
  fill: none;
  stroke: var(--sfbc-dxf-line);
  stroke-width: 2.1;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-map .sfbc-resultant-label {
  fill: var(--sfbc-dxf-ink);
  font-size: 14px;
  font-weight: 500;
  paint-order: stroke fill;
  stroke: var(--sfbc-dxf-fill);
  stroke-width: 5px;
  stroke-linejoin: round;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-map .sfbc-eccentricity-dimensions {
  fill: none;
  stroke: var(--sfbc-dxf-dim);
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-map .sfbc-eccentricity-dimensions path {
  vector-effect: non-scaling-stroke;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-map .sfbc-eccentricity-projection {
  stroke-width: 1;
  stroke-dasharray: 4 4;
  opacity: .7;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-map .sfbc-eccentricity-dimension-main {
  stroke-width: 1.6;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-map .sfbc-eccentricity-dimension-extension {
  stroke-width: 1;
  opacity: .8;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-map .sfbc-eccentricity-dimension-label {
  fill: var(--sfbc-dxf-ink);
  paint-order: stroke fill;
  stroke: var(--sfbc-dxf-fill);
  stroke-width: 5px;
  stroke-linejoin: round;
  font-size: 14px;
  font-weight: 500;
}

body[data-calculator-id="geo-sfbc"] .sfbc-strip-eccentricity-map .sfbc-strip-kern-limit,
body[data-calculator-id="geo-sfbc"] .sfbc-strip-eccentricity-map .sfbc-strip-large-limit {
  fill: none;
  stroke-width: 2;
  stroke-dasharray: none;
  vector-effect: non-scaling-stroke;
}

body[data-calculator-id="geo-sfbc"] .sfbc-strip-eccentricity-map .sfbc-strip-kern-limit {
  stroke: var(--sfbc-kern-color);
}

body[data-calculator-id="geo-sfbc"] .sfbc-strip-eccentricity-map .sfbc-strip-large-limit {
  stroke: var(--sfbc-eccentricity-limit-color);
}

@media (max-width: 720px) {
  body[data-calculator-id="geo-sfbc"] .family-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

.summary-warning {
  display: block;
  width: calc(100% + 50px);
  max-width: calc(100% + 50px);
  margin: 34px 0 0;
  color: var(--danger);
  font-size: var(--fs-small);
  line-height: 1.55;
  text-align: justify;
}

.summary-warning strong {
  color: var(--danger);
}

.theory-limitation-warning,
.upe-limitation-warning {
  font-size: var(--fs-base);
  line-height: 1.7;
  text-align: justify;
}

.upe-limitation-warning {
  margin: 12px 0 0;
}

.theory-card {
  padding: var(--space-card-y) var(--space-card-x);
}

.theory-card-head-wide {
  max-width: 118ch;
}
.panel-theory > .theory-grid > .theory-card:first-child > .card-head {
  max-width: none;
  margin-bottom: var(--space-grid);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.theory-nowrap-line {
  white-space: nowrap;
}

.theory-formula {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  background: transparent;
}

.theory-formula-mcr .formula-figure {
  max-width: min(100%, 600px);
  padding: 10px 12px;
}

.theory-formula-compact {
  margin-bottom: 0;
}

.formula-gallery {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.equation-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-grid);
  margin-top: var(--space-row);
}

.equation-note {
  padding: var(--space-subcard-y) var(--space-subcard-x);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
}

.equation-note h3 {
  margin: 0 0 6px;
  color: var(--heading);
  font-family: var(--font-heading);
  font-size: var(--fs-heading);
}

.equation-note p {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.65;
}

.formula-caption {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.formula-figure {
  display: block;
  width: auto;
  max-width: min(100%, 760px);
  height: auto;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-plain);
  box-sizing: border-box;
  overflow: hidden;
}

.formula-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.formula-figure-small {
  max-height: 70px;
  padding: 8px 10px;
}

.formula-gallery .theory-formula:nth-child(1) .formula-figure-small,
.formula-gallery .theory-formula:nth-child(3) .formula-figure-small {
  max-height: 92px;
}

.formula-gallery .theory-formula:nth-child(2) .formula-figure-small {
  max-height: 67px;
}

.theory-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: var(--fs-base);
}

.panel-how .theory-list {
  padding-top: 13px;
}

.theory-list li + li {
  margin-top: 8px;
}

.theory-flow {
  display: grid;
  gap: 0;
}

.theory-section {
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
}

.theory-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.theory-section h3 {
  margin: 0 0 6px;
  color: var(--heading);
  font-family: var(--font-heading);
  font-size: var(--fs-heading);
  font-weight: 700;
}

.theory-section p,
.theory-section .theory-list {
  margin-bottom: 0;
  line-height: 1.7;
}

.how-flow {
  display: grid;
  gap: var(--space-row);
}

.how-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: var(--space-row);
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line-ghost);
}

.how-step:first-child {
  border-top: 0;
  padding-top: 2px;
}

.how-step-number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--surface-accent);
  border: 1px solid var(--line);
  color: var(--heading);
  font-weight: 700;
  font-size: var(--fs-base);
}

.how-step h3 {
  margin: 0 0 6px;
  color: var(--heading);
  font-family: var(--font-heading);
  font-size: var(--fs-heading);
  font-weight: 700;
}

.how-step p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.how-summary dt {
  min-width: 110px;
}

.how-note {
  margin: 16px 0 0;
  color: var(--text);
  font-size: var(--fs-small);
  line-height: 1.7;
}

.how-notation-list {
  margin-top: 2px;
}

.equation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 0;
  border-top: 0;
}

.equation-card {
  padding: 0;
  border-bottom: 0;
  background: transparent;
  border-radius: 0;
}

body[data-calculator-id="geo-sfbc"] .theory-section-divider {
  height: 1px;
  margin: 8px 0 14px;
  background: var(--line-faint);
}

.theory-ec3-card {
  margin-top: 16px;
}

.equation-line {
  margin: 0 0 8px;
  color: var(--heading);
  font-family: var(--font-heading);
  font-size: var(--fs-heading);
  font-weight: 700;
  line-height: 1.45;
}

.equation-title {
  margin: 0 0 12px;
  color: var(--heading);
  font-family: var(--font-heading);
  font-size: var(--fs-heading);
  font-weight: 700;
  line-height: 1.3;
}

.equation-text {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.65;
  max-width: 72ch;
}

.equation-name {
  margin-top: 14px;
  margin-bottom: 2px;
  font-weight: 400;
}

.mathml-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 10px;
}

.mathml-equation {
  display: block;
  width: max-content;
  max-width: none;
  color: var(--text);
  font-family: var(--font-math);
  font-size: var(--fs-heading);
  line-height: 1.6;
}

.theory-ec3-card .mathml-equation {
  font-size: calc(var(--fs-heading) * 0.75);
}

.detail-mathml-wrap {
  display: block;
  width: 100%;
  padding-bottom: 8px;
  text-align: left;
}

.detail-mathml-stack {
  display: grid;
  justify-content: start;
  justify-items: start;
  gap: 0.3em;
}

.detail-mathml-row {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0;
  text-align: left;
}

.detail-mathml-equation {
  display: inline-block;
  width: auto;
  max-width: 100%;
  font-size: var(--fs-base);
  line-height: 1.6;
  margin: 0 auto 0 0 !important;
  text-align: left;
  vertical-align: top;
}

.detail-mathml-result-strong,
.detail-mathml-result-strong mtext {
  font-weight: 700;
}

body[data-calculator-id="geo-sfbc"] .calculation-condition-row .calculation-condition-equation {
  display: inline-block;
  width: max-content;
  max-width: none;
  math-style: normal;
  white-space: nowrap;
}

body[data-calculator-id="geo-sfbc"] .calculation-condition-row mtext {
  white-space: nowrap;
}

.formula-card .mathml-wrap,
.detail-calculation-line .mathml-wrap {
  padding-bottom: 6px;
}

.formula-card .mathml-equation,
.detail-calculation-line .mathml-equation,
.detail-calculation-result .mathml-equation {
  font-size: var(--fs-base);
}

.detail-calculation-line .mathml-wrap + .mathml-wrap {
  margin-top: 8px;
}

.theory-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-plain);
}

.theory-card-schemes .card-head {
  align-items: flex-start;
}

.theory-inline-copy {
  white-space: nowrap;
  font-size: var(--fs-small);
}

.theory-table-wrap-fit {
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}


.theory-table {
  width: 100%;
  border-collapse: collapse;
}

.theory-table th,
.theory-table td {
  padding: var(--space-cell-y) var(--space-cell-x);
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-base);
  text-align: left;
  vertical-align: top;
}

.theory-table tr > :last-child {
  border-right: 0;
}

.theory-table thead th {
  background: var(--panel-soft);
  color: var(--heading);
  font-weight: 700;
}

.revisions-table {
  width: auto;
  min-width: 0;
}

.revisions-table th:nth-child(1),
.revisions-table td:nth-child(1),
.revisions-table th:nth-child(2),
.revisions-table td:nth-child(2) {
  text-align: center;
  width: 1%;
  white-space: nowrap;
}

.revisions-table th:nth-child(3),
.revisions-table td:nth-child(3) {
  text-align: left;
  width: 1%;
  white-space: nowrap;
}

.theory-card-schemes .theory-table th,
.theory-card-schemes .theory-table td {
  text-align: center;
  vertical-align: middle;
}

.theory-card-schemes .theory-table th:first-child,
.theory-card-schemes .theory-table td:first-child {
  width: 1%;
  white-space: nowrap;
}

.theory-card-schemes .theory-table th:nth-child(2),
.theory-card-schemes .theory-table td:nth-child(2) {
  text-align: left;
}

.theory-card-schemes .theory-scheme-cell {
  grid-template-columns: minmax(180px, 1fr) 176px;
  justify-items: start;
}

.theory-card-schemes .theory-scheme-copy {
  text-align: left;
}

.theory-card-schemes .theory-scheme-graphic {
  justify-self: end;
}

.theory-scheme-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 14px;
  align-items: center;
}

.theory-scheme-copy strong {
  display: block;
  color: var(--heading);
  font-size: var(--fs-base);
  line-height: 1.35;
}

.theory-scheme-copy .theory-scheme-label {
  display: block;
  color: var(--heading);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.35;
}

.theory-load-cell {
  display: grid;
  gap: 4px;
  justify-items: center;
  line-height: 1.35;
}

.theory-load-note {
  display: block;
  color: var(--text);
  font-size: inherit;
}

.theory-coefficients-stack {
  display: grid;
  gap: 4px;
  justify-items: start;
  line-height: 1.35;
  text-align: left;
}

.theory-moment-equation {
  max-width: 100%;
  font-size: 0.95em;
}

.theory-scheme-graphic {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 3px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-subtle);
}

.theory-scheme-graphic svg,
.theory-scheme-graphic img {
  display: block;
  width: 100%;
  height: auto;
}

.notation-list {
  display: table;
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  border-top: 0;
}

.notation-list div {
  display: table-row;
  background: transparent;
}

.notation-list dt {
  display: table-cell;
  padding: var(--space-cell-y) 30px var(--space-cell-y) 0;
  border-bottom: 0;
  color: var(--heading);
  font-weight: 700;
  white-space: nowrap;
  vertical-align: top;
}

.panel-theory .notation-list dt {
  text-align: center;
}

.notation-list dd {
  display: table-cell;
  width: 100%;
  padding: var(--space-cell-y) 0;
  border-bottom: 0;
  margin: 0;
  color: var(--text);
  vertical-align: top;
}

.notation-list.how-notation-list dd {
  vertical-align: middle;
  white-space: nowrap;
}

.notation-list div:not(:last-child) dt,
.notation-list div:not(:last-child) dd {
  border-bottom: 1px solid var(--line-soft);
}

.bibliography-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.bibliography-list li + li {
  margin-top: 12px;
}

.bibliography-item {
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1.7;
}

.bibliography-item + .bibliography-item {
  margin-top: 12px;
}

.scheme-list {
  display: grid;
  gap: var(--space-row);
}

.scheme-list-theory {
  margin-bottom: var(--space-row);
}

.scheme-card {
  border: 1px solid var(--line);
  background: var(--surface-plain);
  border-radius: 14px;
  padding: var(--space-subcard-y) var(--space-subcard-x);
  display: grid;
  grid-template-columns: 18px 240px 210px;
  gap: var(--space-row);
  align-items: center;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
  min-height: 118px;
}

.scheme-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.scheme-card.is-selected {
  border-color: var(--brand);
  background: var(--surface-selected);
  box-shadow: var(--shadow);
}

.scheme-card.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.scheme-card input {
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  align-self: center;
  justify-self: center;
}

.scheme-indicator {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  align-self: center;
  justify-self: center;
  background: var(--surface-plain);
}

.scheme-card-static {
  cursor: default;
}

.scheme-card-static:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}

.scheme-copy strong {
  display: block;
  margin: 0;
  color: var(--text);
  font-size: var(--fs-choice);
  line-height: 1.35;
  white-space: nowrap;
}

.scheme-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--brand);
  font-size: var(--fs-small);
  font-weight: 700;
}

.scheme-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-accent);
  border: 1px solid var(--line);
}

.scheme-visual {
  width: 210px;
  min-height: 66px;
  margin-left: 12px;
  padding: 4px 5px;
  border-radius: 10px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  justify-self: start;
}

.scheme-visual svg,
.scheme-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.scheme-image,
.theory-scheme-image {
  object-fit: contain;
}

body[data-calculator-id="geo-sfbc"] .scheme-picker {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

body[data-calculator-id="geo-sfbc"] .scheme-select {
  position: relative;
  display: grid;
  min-width: 0;
}

body[data-calculator-id="geo-sfbc"] .scheme-select-toggle,
body[data-calculator-id="geo-sfbc"] .scheme-select-option {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}

body[data-calculator-id="geo-sfbc"] .scheme-select-toggle {
  position: relative;
  padding-right: 30px;
}

body[data-calculator-id="geo-sfbc"] .scheme-select-chevron {
  position: absolute;
  top: 13px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  color: var(--muted);
  pointer-events: none;
}

body[data-calculator-id="geo-sfbc"] .scheme-select.is-open .scheme-select-chevron {
  transform: rotate(225deg);
}

body[data-calculator-id="geo-sfbc"] .calculator-scheme-card {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  justify-items: center;
  gap: 7px;
  min-height: 0;
  padding: 8px;
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] .calculator-scheme-card .scheme-copy {
  display: grid;
  justify-items: center;
  gap: 4px;
  order: 2;
  min-width: 0;
}

body[data-calculator-id="geo-sfbc"] .calculator-scheme-card .scheme-copy strong {
  white-space: normal;
  font-size: var(--fs-small);
  line-height: 1.25;
}

body[data-calculator-id="geo-sfbc"] .calculator-scheme-card .scheme-copy p {
  display: none;
}

body[data-calculator-id="geo-sfbc"] .calculator-scheme-card .scheme-visual {
  order: 1;
  justify-self: stretch;
  width: 100%;
  min-height: 46px;
  margin-left: 0;
  padding: 3px;
  border-radius: 8px;
}

body[data-calculator-id="geo-sfbc"] .calculator-scheme-card .scheme-visual img {
  width: auto;
  max-width: 100%;
  max-height: 42px;
  object-fit: contain;
}

body[data-calculator-id="geo-sfbc"] .calculator-scheme-card .scheme-visual-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-weight: 800;
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: 0;
}

body[data-calculator-id="geo-sfbc"] .scheme-select-menu {
  position: fixed;
  z-index: 160;
  inset: 0;
  display: grid;
  align-items: start;
  justify-items: center;
  overflow: auto;
  padding: 16px 24px 32px;
  background: var(--overlay);
}

body[data-calculator-id="geo-sfbc"] .scheme-select-menu[hidden] {
  display: none;
}

body[data-calculator-id="geo-sfbc"] .scheme-select-menu-panel {
  display: grid;
  gap: 14px;
  width: min(1280px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: var(--space-subcard-y) var(--space-subcard-x);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-plain);
  box-shadow: var(--shadow);
}

body[data-calculator-id="geo-sfbc"] .scheme-select-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-size: var(--fs-heading);
}

body[data-calculator-id="geo-sfbc"] .scheme-select-menu-head button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-plain);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-heading);
  line-height: 1;
  cursor: pointer;
}

body[data-calculator-id="geo-sfbc"] .scheme-select-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body[data-calculator-id="geo-sfbc"] .scheme-select-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  align-items: start;
}

body[data-calculator-id="geo-sfbc"] .scheme-select-group {
  display: grid;
  min-width: 0;
  gap: 10px;
  align-content: start;
}

body[data-calculator-id="geo-sfbc"] .scheme-select-group-options {
  display: grid;
  gap: 12px;
  align-content: start;
  grid-auto-rows: 220px;
}

body[data-calculator-id="geo-sfbc"] .scheme-select-group-empty {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.35;
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] .scheme-select-option.calculator-scheme-card {
  min-height: 230px;
  padding: 14px 12px;
}

body[data-calculator-id="geo-sfbc"] .scheme-select-group-options .scheme-select-option.calculator-scheme-card {
  min-height: 0;
  height: 220px;
  padding: 12px 10px;
  gap: 6px;
}

body[data-calculator-id="geo-sfbc"] .scheme-select-option.calculator-scheme-card .scheme-copy strong {
  font-size: var(--fs-base);
}

body[data-calculator-id="geo-sfbc"] .scheme-select-group-options .scheme-select-option.calculator-scheme-card .scheme-copy strong {
  max-width: 100%;
  font-size: calc(var(--fs-base) * 0.93);
  line-height: 1.2;
  white-space: nowrap;
}

body[data-calculator-id="geo-sfbc"] .scheme-select-option.calculator-scheme-card .scheme-copy p {
  display: block;
  margin: 0;
  color: var(--text);
  font-size: var(--fs-small);
  line-height: 1.45;
}

body[data-calculator-id="geo-sfbc"] .scheme-select-option.calculator-scheme-card .scheme-visual {
  min-height: 125px;
  padding: 8px;
}

body[data-calculator-id="geo-sfbc"] .scheme-select-group-options .scheme-select-option.calculator-scheme-card .scheme-visual {
  min-height: 126px;
  height: 126px;
  padding: 8px;
}

body[data-calculator-id="geo-sfbc"] .scheme-select-option.calculator-scheme-card .scheme-visual img {
  max-height: 112px;
}

body[data-calculator-id="geo-sfbc"] .scheme-select-group-options .scheme-select-option.calculator-scheme-card .scheme-visual img {
  max-height: 110px;
}

body[data-calculator-id="geo-sfbc"] .calculator-config-scheme-picker {
  width: min(100%, 520px);
  max-width: 100%;
  justify-self: start;
}

body[data-calculator-id="geo-sfbc"] .scheme-picker-stack {
  display: grid;
  gap: var(--space-row);
}

body[data-calculator-id="geo-sfbc"] .scheme-picker-field {
  display: grid;
  gap: 8px;
}

body[data-calculator-id="geo-sfbc"] .scheme-picker-field > span {
  color: var(--text);
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.45;
}

body[data-calculator-id="geo-sfbc"] .mcr-options-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 12px;
  align-items: start;
  justify-content: start;
  width: min(100%, 444px);
}

body[data-calculator-id="geo-sfbc"] .mcr-options-row .field {
  margin: 0;
}

@media (max-width: 560px) {
  body[data-calculator-id="geo-sfbc"] .mcr-options-row {
    grid-template-columns: 1fr;
    width: 100%;
  }

  body[data-calculator-id="geo-sfbc"] .mcr-mode-field {
    width: 100%;
  }
}

body[data-calculator-id="geo-sfbc"] .calculator-config-scheme-picker .scheme-select-toggle.calculator-scheme-card {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 254px;
  padding: 10px 34px 10px 10px;
}

body[data-calculator-id="geo-sfbc"] .calculator-config-scheme-picker .scheme-select-toggle.calculator-scheme-card .scheme-copy strong {
  font-size: var(--fs-base);
  line-height: 1.25;
}

body[data-calculator-id="geo-sfbc"] .calculator-config-scheme-picker .scheme-select-toggle.calculator-scheme-card .scheme-copy p {
  display: block;
  margin: 0;
  color: var(--text);
  font-size: var(--fs-small);
  line-height: 1.35;
}

body[data-calculator-id="geo-sfbc"] .calculator-config-scheme-picker .scheme-select-toggle.calculator-scheme-card .scheme-visual {
  min-height: 168px;
  padding: 8px;
}

body[data-calculator-id="geo-sfbc"] .calculator-config-scheme-picker .scheme-select-toggle.calculator-scheme-card .scheme-visual img {
  max-height: 156px;
}

@media (max-width: 900px) {
  body[data-calculator-id="geo-sfbc"] .scheme-select-option-grid {
    grid-template-columns: 1fr;
  }
}

.input-grid {
  display: grid;
  gap: var(--space-row);
}

.general-layout {
  display: grid;
  grid-template-columns: max-content 330px;
  justify-content: start;
  gap: 20px;
  align-items: start;
}

.general-form-column {
  --general-label-width: 160px;
  --general-control-width: 108px;
  display: grid;
  align-content: start;
  gap: var(--space-row);
  padding: var(--space-subcard-y) var(--space-subcard-x);
  padding-right: 16px;
  padding-left: 16px;
  border-radius: 14px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  min-width: 0;
  width: max-content;
  max-width: none;
  align-self: stretch;
  height: 100%;
  box-sizing: border-box;
  justify-items: center;
  text-align: center;
}

.input-grid-general {
  grid-template-columns: 1fr;
  row-gap: var(--space-row);
  max-width: var(--general-label-width);
  justify-items: center;
}

.card-general .field {
  gap: 3px;
  width: var(--general-label-width);
  max-width: 100%;
  justify-items: center;
  text-align: center;
}

.card-general .field > span {
  white-space: nowrap;
  text-align: center;
}

.card-general .field > input,
.card-general .field > select,
.card-general .number-stepper {
  width: min(100%, var(--general-control-width));
  justify-self: center;
}

.card-general .field-note {
  max-width: var(--general-label-width);
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.35;
  text-align: center;
}

.general-form-head {
  width: 100%;
  text-align: center;
}

.general-form-head h2 {
  margin-bottom: 0;
}

.field-centered-control select {
  text-align: center;
  text-align-last: center;
}

#profile-family-field-wrap select:not(.standard-text-picker-native) {
  width: min(100%, var(--general-control-width));
}

.inertia-axis-field,
.bending-axis-field {
  position: relative;
  z-index: 20;
}

.profile-nested-field {
  position: relative;
  z-index: 30;
}

.profile-picker {
  position: relative;
  width: var(--general-label-width);
  display: grid;
  justify-items: center;
}

.profile-picker-toggle {
  width: min(100%, var(--general-control-width));
  min-height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 8px;
  background: var(--surface-plain);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-small);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.profile-picker-toggle:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}

.profile-picker-chevron,
.profile-picker-family-chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.profile-picker.is-open .profile-picker-chevron,
.profile-picker-family.is-expanded .profile-picker-family-chevron {
  transform: rotate(225deg) translateY(-1px);
}

.profile-picker-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  z-index: 80;
  width: 260px;
  min-width: 260px;
  max-height: min(620px, calc(100vh - 80px));
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.profile-picker-group + .profile-picker-group {
  margin-top: 4px;
}

.profile-picker-family,
.profile-picker-profile {
  width: 100%;
  border: 0;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.profile-picker-family {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--surface-plain);
  display: grid;
  grid-template-columns: 14px 1fr 14px;
  align-items: center;
  font-size: var(--fs-small);
  font-weight: 700;
  text-align: center;
}

.profile-picker-family > span:first-child {
  grid-column: 2;
  justify-self: center;
}

.profile-picker-family .profile-picker-family-chevron {
  grid-column: 3;
  justify-self: center;
}

.profile-picker-family:hover,
.profile-picker-profile:hover {
  background: var(--surface-selected);
}

.profile-picker-profile-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px 2px 2px;
}

.profile-picker-profile-column {
  display: grid;
  gap: 4px;
  align-content: start;
}

.profile-picker-profile {
  min-height: 28px;
  padding: 0 6px;
  border-radius: 7px;
  background: transparent;
  font-size: var(--fs-small);
  text-align: center;
}

.profile-picker-profile.is-selected {
  background: var(--surface-selected);
  color: var(--heading);
  font-weight: 700;
}

body[data-calculator-id="geo-sfbc"].has-profile-picker-modal {
  overflow: hidden;
}

body[data-calculator-id="geo-sfbc"] #profile-picker-menu.profile-picker-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  align-items: center;
  justify-items: center;
  width: auto;
  min-width: 0;
  max-height: none;
  overflow: auto;
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: var(--overlay);
  box-shadow: none;
  transform: none;
}

body[data-calculator-id="geo-sfbc"] #profile-picker-menu.profile-picker-menu[hidden] {
  display: none;
}

body[data-calculator-id="geo-sfbc"] .profile-picker-dialog {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 16px;
  width: min(940px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  padding: var(--space-subcard-y) var(--space-subcard-x);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-plain);
  box-shadow: var(--shadow);
}

body[data-calculator-id="geo-sfbc"] .profile-picker-dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

body[data-calculator-id="geo-sfbc"] .profile-picker-dialog-head h2 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: calc(var(--fs-heading) * 0.7);
  text-align: left;
}

body[data-calculator-id="geo-sfbc"] .profile-picker-close-button {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--surface-plain);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 700;
  cursor: pointer;
}

body[data-calculator-id="geo-sfbc"] .profile-picker-close-button:hover,
body[data-calculator-id="geo-sfbc"] .profile-picker-close-button:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}

body[data-calculator-id="geo-sfbc"] .profile-picker-search {
  display: grid;
  gap: 6px;
  max-width: 360px;
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 700;
}

body[data-calculator-id="geo-sfbc"] .profile-picker-search input {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-base);
}

body[data-calculator-id="geo-sfbc"] .profile-picker-search input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}

body[data-calculator-id="geo-sfbc"] .profile-picker-modal-menu {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

body[data-calculator-id="geo-sfbc"] .profile-picker-modal-menu .profile-picker-group + .profile-picker-group {
  margin-top: 0;
}

body[data-calculator-id="geo-sfbc"] .profile-picker-modal-menu .profile-picker-family {
  min-height: 40px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  font-size: var(--fs-base);
}

body[data-calculator-id="geo-sfbc"] .profile-picker-modal-menu .profile-picker-profile-list {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  min-width: 0;
  gap: 8px;
  padding: 10px 8px 8px;
}

body[data-calculator-id="geo-sfbc"] .profile-picker-modal-menu .profile-picker-profile {
  min-height: 34px;
  padding: 0 10px;
  font-size: var(--fs-base);
  text-align: left;
}

body[data-calculator-id="geo-sfbc"] .profile-picker-modal-menu .profile-picker-profile-list.is-centered-family .profile-picker-profile {
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] .profile-picker-empty {
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.field > span {
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
}

.field select:disabled,
.field option:disabled {
  color: var(--line-strong);
}

.field-note {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.45;
  text-align: left;
}

.formula-card {
  margin: 0;
  border: 0;
  padding: 14px 0 2px;
  border-top: 1px solid var(--line-ghost);
  border-bottom: 1px solid var(--line-ghost);
  background: transparent;
}

.formula-value-box {
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.formula-value-box span {
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 700;
}

.formula-expression {
  color: var(--text);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.55;
}

.formula-value-box-full {
  justify-self: start;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.card-general .actions {
  margin-top: 2px;
  padding-top: 0;
}

.preview-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  padding: var(--space-subcard-y) var(--space-subcard-x);
  padding-right: 14px;
  padding-left: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-plain);
  box-shadow: none;
  min-width: 0;
  width: 300px;
  max-width: none;
  justify-self: start;
  align-self: stretch;
  height: 100%;
  box-sizing: border-box;
}

.preview-card .card-head h2,
.result-hero .card-head h2,
.result-families .card-head h2,
.table-card .card-head h2 {
  font-size: var(--fs-heading);
}

.preview-card .card-head {
  text-align: center;
}

.preview-card .card-head p {
  text-align: center;
}

.preview-card .card-head p#preview-description {
  display: block;
}

.preview-card .card-head,
.table-card .card-head {
  max-width: none;
}

.preview-card .card-head p,
.table-card .card-head p {
  font-size: var(--fs-base);
}

.preview-result {
  display: grid;
  justify-items: center;
  align-self: start;
  align-content: start;
  gap: var(--space-row);
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  text-align: center;
}

.preview-name {
  margin: 0;
  color: var(--good);
  font-family: var(--font-heading);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
}

.preview-result .preview-head {
  display: grid;
  justify-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-align: center;
}

.preview-result .hero-card-head,
.preview-card .hero-card-head {
  display: grid;
  justify-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  text-align: center;
}

.preview-card .hero-card-inner {
  width: 100%;
  justify-items: center;
}

.preview-result .preview-name {
  width: 100%;
  text-align: center;
}

.preview-name-stack {
  display: block;
  white-space: nowrap;
}

.preview-result .status-pill {
  justify-self: center;
}

.preview-result .status-pill.is-fail {
  border-color: var(--danger);
  background: var(--status-danger-bg);
  color: var(--danger);
}

.preview-result .preview-head:has(.status-pill.is-fail) .preview-name {
  color: var(--danger);
}

.preview-result .hero-card-head:has(.status-pill.is-fail) .preview-name {
  color: var(--danger);
}

.preview-result:has(.status-pill.is-pass) .result-metrics div:nth-child(4) dt,
.preview-result:has(.status-pill.is-pass) .result-metrics div:nth-child(4) dd {
  color: var(--good);
}

.preview-result:has(.status-pill.is-fail) .result-metrics div:nth-child(4) dt,
.preview-result:has(.status-pill.is-fail) .result-metrics div:nth-child(4) dd {
  color: var(--danger);
}

.preview-metrics-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--text);
  font-size: var(--fs-small);
  line-height: 1.35;
}

.preview-metrics-table th:first-child,
.preview-metrics-table td:first-child {
  width: 42%;
}

.preview-metrics-table th:last-child,
.preview-metrics-table td:last-child {
  width: 58%;
}

.preview-metrics-table th,
.preview-metrics-table td {
  padding: 6px 4px;
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
  vertical-align: middle;
}

.preview-metrics-table thead th {
  border-top: 1px solid var(--line-soft);
}

.preview-metrics-table th {
  color: var(--text);
  font-weight: 700;
}

.preview-metrics-table td {
  color: var(--text);
  font-weight: 700;
}

.preview-metrics-table tbody tr:last-child th,
.preview-metrics-table tbody tr:last-child td {
  border-bottom: 1px solid var(--line-soft);
}

.preview-result:has(.status-pill.is-pass) .preview-utilization-row td {
  color: var(--good);
}

.preview-result:has(.status-pill.is-fail) .preview-utilization-row td {
  color: var(--danger);
}

body[data-calculator-id="geo-sfbc"] .preview-metrics-table .sfbc-check-utilization-row.is-pass td {
  color: var(--good);
}

body[data-calculator-id="geo-sfbc"] .preview-metrics-table .sfbc-check-utilization-row.is-fail td {
  color: var(--danger);
}

body[data-calculator-id="geo-sfbc"] .preview-metrics-table .preview-utilization-row.is-unavailable td,
body[data-calculator-id="geo-sfbc"] .preview-metrics-table .sfbc-check-utilization-row.is-unavailable td {
  color: var(--danger);
}

.preview-mass-ratio-row.is-reference td {
  color: var(--good);
}

.preview-mass-ratio-row.is-heavy td {
  color: var(--danger);
  font-weight: inherit;
}

.preview-mass-ratio-row th,
.preview-mass-ratio-row td {
  white-space: nowrap;
}

.preview-axis-note-row td {
  color: var(--heading);
}

.preview-metrics,
.result-metrics,
.family-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}

.preview-metrics div,
.result-metrics div,
.family-metrics div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  justify-items: center;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  border-radius: 0;
  text-align: center;
}

.preview-metrics div {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  text-align: center;
}

.preview-metrics div:last-child,
.result-metrics div:last-child,
.family-metrics div:last-child {
  border-bottom: 0;
}

.preview-metrics dt,
.result-metrics dt,
.family-metrics dt {
  color: var(--muted);
  font-size: var(--fs-small);
  margin: 0;
}

.preview-metrics dd,
.result-metrics dd,
.family-metrics dd {
  margin: 0;
  color: var(--heading);
  font-size: var(--fs-base);
  font-weight: 700;
  text-align: center;
}

.preview-metrics dt,
.preview-metrics dd {
  text-align: center;
}

.preview-result .result-metrics {
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.preview-result .result-metrics div {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  justify-items: stretch;
  column-gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line-soft);
}

.preview-result .result-metrics div:last-child {
  border-bottom: 0;
}

.preview-result .result-metrics dt {
  color: var(--text);
  text-align: left;
}

.preview-result .result-metrics dd {
  color: var(--text);
  text-align: right;
}

.button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface-plain);
  color: var(--text);
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.button-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text-inverse);
}

.hero-card {
  min-height: 0;
  padding: var(--space-subcard-y) var(--space-subcard-x);
  border-radius: 12px;
  background: var(--surface-plain);
  border: 1px solid var(--line);
  box-shadow: none;
}

.empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.6;
}

.empty-state-action-card {
  padding: var(--space-card-y) var(--space-card-x);
}

.empty-state-action {
  display: grid;
  justify-items: center;
  gap: var(--space-row);
  width: 100%;
}

.empty-state-action p {
  margin: 0;
  max-width: 30ch;
}

.best-profile-name {
  margin: 0 0 8px;
  color: var(--good);
  font-family: var(--font-heading);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.04;
  text-align: center;
}

#best-profile-description,
.result-hero .card-head p,
.result-families .card-head p {
  font-size: var(--fs-base);
  line-height: 1.65;
  text-align: left;
  white-space: normal;
  max-width: none;
}

.family-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-row);
}

.family-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--space-subcard-y) var(--space-subcard-x);
  background: var(--surface-plain);
  box-shadow: none;
}

.family-card-profile {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
}

.family-card-placeholder {
  grid-column: 1 / -1;
  min-height: 220px;
  align-content: center;
}

.family-profile-name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--fs-heading);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  color: var(--text);
}

.family-profile-name-empty {
  color: var(--muted);
}

.family-empty-message {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.7;
  text-align: center;
  white-space: normal;
}

.family-empty-message .family-empty-family,
.family-empty-message .family-empty-text {
  display: block;
}

.family-empty-message .family-empty-family {
  font-weight: 700;
}

.family-card-empty {
  justify-items: center;
}

.family-card-empty .family-result-head,
.family-card-empty .section-label {
  width: 100%;
  text-align: center;
}

.family-result-card .section-label {
  margin-bottom: 0;
  color: var(--text);
}

.family-result-card .profile-name-action {
  font-size: var(--fs-heading);
}

.family-result-card .profile-name-action.preview-name {
  font-size: var(--fs-display);
}

.result-families .family-result-card .profile-name-action.preview-name,
.result-families .family-result-card .preview-name {
  color: var(--good);
  font-family: var(--font-heading);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.05;
}

.family-result-mcr {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.family-result-mcr strong {
  color: var(--good);
  font-family: var(--font-heading);
  font-size: var(--fs-heading);
  line-height: 1.25;
}

.family-result-card .preview-metrics-table {
  width: min(100%, 260px);
  margin-inline: auto;
  table-layout: auto;
}

.results-summary-card .preview-metrics-table {
  width: min(100%, var(--summary-metrics-table-width));
  max-width: 100%;
  margin-inline: auto;
}

.summary-input-data {
  width: min(270px, 100%);
  margin: 10px 0 0;
  padding-top: 0;
  border-top: 0;
  color: var(--text);
  font-size: var(--fs-small);
  line-height: 1.55;
  text-align: left;
}

.summary-input-data strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 700;
}

.summary-input-data .summary-warning strong {
  display: inline;
  margin-bottom: 0;
  color: var(--danger);
}

.summary-input-data p {
  margin: 0;
}

.result-hero,
.result-families,
.detail-metrics-card,
.chart-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.result-hero .hero-card,
.result-families .family-cards {
  flex: 1;
}

.table-card {
  margin-top: 0;
  padding: var(--space-card-y) var(--space-card-x);
  display: flex;
  flex-direction: column;
  gap: var(--space-row);
  width: 100%;
  max-width: none;
  justify-self: stretch;
  height: 100%;
}

.table-wrap {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-plain);
}

.results-table {
  width: max-content;
  min-width: 0;
  max-width: none;
  border-collapse: collapse;
  table-layout: auto;
}

.results-table th,
.results-table td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--line-faint);
  text-align: center;
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.results-table th:first-child,
.results-table td:first-child {
  text-align: left;
  width: auto;
}

.results-table th:not(:first-child),
.results-table td:not(:first-child) {
  width: auto;
}

.results-table thead th {
  position: sticky;
  top: 0;
  background: var(--surface-table-head);
  color: var(--heading);
  font-weight: 700;
  vertical-align: middle;
  z-index: 1;
}

.table-head-stack {
  display: inline-grid;
  gap: 2px;
  align-items: center;
  justify-items: center;
  line-height: 1.15;
  vertical-align: middle;
}

.results-table tbody tr:nth-child(even) {
  background: var(--surface-table-even);
}

.results-table tbody tr:hover {
  background: var(--surface-table-hover);
}

.results-table tbody td[colspan] {
  padding: 20px 14px;
  color: var(--muted);
  text-align: center;
}

.detail-summary {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: var(--space-row);
  padding: var(--space-subcard-y) var(--space-subcard-x);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-plain);
}

.detail-summary.detail-result-layout {
  width: 100%;
  padding: var(--space-subcard-y) var(--space-subcard-x);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-plain);
  justify-items: start;
  box-sizing: border-box;
}

.detail-result-content {
  display: grid;
  grid-template-columns: 320px minmax(420px, 1fr);
  gap: var(--space-grid);
  align-items: stretch;
  width: 100%;
  --detail-panel-fixed-height: 620px;
  --detail-chart-fixed-height: 520px;
}

@media (min-width: 1221px) {
  body[data-calculator-id="geo-sfbc"] .panel-details .detail-result-content {
    grid-template-columns: 320px minmax(420px, 1fr);
  }
}

.detail-result-content .detail-summary {
  width: 100%;
  height: var(--detail-panel-fixed-height);
  min-height: var(--detail-panel-fixed-height);
  align-self: stretch;
}

.detail-result-head {
  display: grid;
  gap: var(--space-row);
}

.detail-result-head h2 {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-heading);
  font-weight: 700;
  line-height: 1.2;
}

.detail-result-head p {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.7;
}

.detail-result-head strong {
  color: var(--text);
  font-weight: 700;
}

.detail-result-preview {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
}

.detail-inline-chart-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: var(--space-row);
  min-width: 0;
  min-height: var(--detail-panel-fixed-height);
  height: var(--detail-panel-fixed-height);
  align-self: stretch;
  overflow: hidden;
  box-sizing: border-box;
  padding: var(--space-subcard-y) var(--space-subcard-x);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-plain);
}

@media (max-width: 860px) {
  .detail-result-content {
    grid-template-columns: 1fr;
  }

  .detail-result-content .detail-summary,
  .detail-result-content .detail-summary.detail-result-layout {
    height: auto;
    min-height: 0;
  }

  .detail-inline-chart-panel {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
  }
}

.detail-result-content .detail-summary.detail-result-layout,
.detail-result-content .detail-inline-chart-panel {
  height: var(--detail-panel-fixed-height);
  min-height: var(--detail-panel-fixed-height);
  align-self: stretch;
}

@media (min-width: 861px) {
  .panel-details .detail-result-content > #checked-profile-card.detail-summary.detail-result-layout,
  .panel-details .detail-result-content > #detail-chart-panel.detail-inline-chart-panel {
    height: var(--detail-panel-fixed-height, 620px);
    min-height: var(--detail-panel-fixed-height, 620px);
  }
}

.detail-chart-toolbar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto max-content;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.detail-chart-toolbar label {
  color: var(--text);
  font-size: var(--fs-heading);
  font-weight: 700;
  line-height: 1.2;
}

.detail-chart-toolbar-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  justify-self: end;
  width: auto;
  max-width: none;
}

.detail-chart-static-title {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
}

.detail-chart-picker.standard-text-picker {
  flex: 0 1 auto;
  justify-self: end;
}

.detail-chart-range {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  z-index: 5;
  align-self: stretch;
  width: 100%;
  min-height: var(--detail-chart-fixed-height, 520px);
  pointer-events: none;
}

.detail-chart-range:empty {
  display: none;
}

.detail-chart-axis-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.detail-chart-axis-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font-size: var(--fs-chart-control);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  pointer-events: auto;
}

.detail-chart-axis-pill-x-min {
  left: var(--chart-control-x-min-left);
  bottom: var(--chart-control-x-min-bottom);
  transform: translateX(-50%);
}

.detail-chart-axis-pill-x-max {
  left: var(--chart-control-x-max-left);
  bottom: var(--chart-control-x-max-bottom);
  transform: translateX(-50%);
}

.detail-chart-axis-pill-y-min {
  left: var(--chart-control-y-min-left);
  top: var(--chart-control-y-min-top);
  transform: translateY(-50%);
}

.detail-chart-axis-pill-y-max {
  left: var(--chart-control-y-max-left);
  top: var(--chart-control-y-max-top);
  transform: translateY(-50%);
}

.detail-chart-range-reset {
  position: absolute;
  right: auto;
  bottom: var(--chart-control-auto-bottom);
  left: var(--chart-control-auto-left);
  top: auto;
  min-height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 2px 8px;
  background: var(--surface-plain);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-chart-control);
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.detail-chart-range-reset:hover,
.detail-chart-range-reset:focus {
  outline: none;
  background: var(--surface-selected);
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: var(--focus-ring);
}

.detail-chart-range-input {
  width: 46px;
  min-width: 0;
  min-height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 1px 4px;
  background: var(--surface-plain);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-chart-control);
  font-weight: 700;
  text-align: center;
  box-sizing: border-box;
  cursor: text;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.detail-chart-range-input:hover {
  border-color: var(--brand);
  background: var(--surface-selected);
}

.detail-chart-range-input:focus {
  position: relative;
  z-index: 1;
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.chart.detail-inline-chart {
  grid-column: 1;
  grid-row: 2;
  height: var(--detail-chart-fixed-height, 520px);
  min-height: var(--detail-chart-fixed-height, 520px);
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.chart.detail-inline-chart.is-panning {
  cursor: grabbing;
}

.chart.detail-inline-chart .mcr-chart-not-applicable {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

.chart.detail-inline-chart .mcr-chart-not-applicable > span {
  white-space: nowrap;
}

.detail-result-warning {
  margin-top: var(--space-row);
}

.detail-result-warning:empty {
  display: none;
}

.detail-result-preview .preview-metrics-table,
.detail-summary.preview-result .preview-metrics-table {
  width: min(100%, 320px);
  max-width: 100%;
  margin-inline: auto;
  table-layout: fixed;
}

#checked-profile-card .preview-metric-label-col {
  width: 46%;
}

#checked-profile-card .preview-metric-value-col {
  width: 54%;
}

.detail-result-layout .model-warning {
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
  margin-top: var(--space-row);
}

.detail-summary-note {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.65;
}

.detail-metrics {
  display: block;
}

.detail-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: var(--space-row);
}

.metric-row {
  display: grid;
  align-content: center;
  min-height: 86px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-plain);
  text-align: center;
}

.metric-row span {
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.3;
}

.metric-row strong {
  margin-top: 6px;
  color: var(--heading);
  font-size: var(--fs-heading);
  line-height: 1.15;
}

.metric-row small {
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 700;
}

.metric-row.is-primary {
  border-color: var(--line-strong);
  background: var(--surface-selected);
}

.metric-row.is-pass strong,
.metric-row.is-reference strong {
  color: var(--good);
}

.metric-row.is-fail strong,
.metric-row.is-heavy strong {
  color: var(--danger);
}

.detail-empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-plain);
  color: var(--text);
  text-align: center;
}

.detail-metrics-table-wrap {
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
  margin-right: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-plain);
}

.detail-metrics-table {
  width: auto;
  min-width: 0;
  border-collapse: collapse;
}

.detail-metrics-table th,
.detail-metrics-table td {
  padding: var(--space-cell-y) var(--space-cell-x);
  border-bottom: 1px solid var(--line-ghost);
  font-size: var(--fs-base);
  line-height: 1.55;
  vertical-align: middle;
}

.detail-metrics-table thead th {
  background: var(--panel-soft);
  color: var(--heading);
  font-weight: 700;
  text-align: left;
}

.detail-metrics-table thead th:first-child,
.detail-metrics-table thead th:last-child {
  text-align: center;
}

.detail-metrics-table tbody tr.is-primary {
  background: var(--surface-selected);
}

.detail-metrics-table td:first-child {
  width: 130px;
  color: var(--heading);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.detail-metrics-table td:nth-child(2) {
  width: auto;
  color: var(--text);
}

.detail-metrics-table td:last-child {
  width: 160px;
  color: var(--heading);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.detail-metrics-table tbody tr:last-child > * {
  border-bottom: 1px solid var(--line-ghost);
}

.detail-preview-metrics-table {
  width: 360px;
  max-width: 100%;
}

.detail-preview-metrics-table th:first-child,
.detail-preview-metrics-table td:first-child {
  width: 58%;
}

.detail-preview-metrics-table th:last-child,
.detail-preview-metrics-table td:last-child {
  width: 42%;
}

.detail-preview-metrics-table tbody tr.is-primary {
  background: var(--surface-selected);
}

.detail-calculation-line > span,
.detail-calculation-result > span {
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.detail-calculation-line > div,
.detail-calculation-result > div {
  min-width: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  text-align: left;
  word-break: break-word;
}

.detail-calculation-line .mathml-wrap,
.detail-calculation-result .mathml-wrap {
  display: block;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.detail-calculation-line .detail-mathml-display-wrap,
.detail-calculation-result .detail-mathml-display-wrap {
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 2px;
}

.detail-calculation-line .detail-mathml-stack,
.detail-calculation-result .detail-mathml-stack {
  display: grid;
  gap: 10px;
  justify-content: start;
  justify-items: start;
}

.detail-calculation-line .mathml-equation,
.detail-calculation-result .mathml-equation {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.detail-calculation-line .mathml-equation.is-display,
.detail-calculation-result .mathml-equation.is-display {
  display: block;
  math-style: normal;
  font-size: 1.05em;
}

body[data-calculator-id="geo-sfbc"] .sfbc-actions-result-grid {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 10px clamp(24px, 3vw, 56px);
  align-items: baseline;
  justify-content: start;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

body[data-calculator-id="geo-sfbc"] .mathml-equation mfrac > * {
  font-size: 1em;
}

.calculation-formula-note {
  display: inline-block;
  margin: 4px 0 0 36px;
  color: var(--text);
  white-space: nowrap;
}

.detail-calculation-line .calculation-formula-note {
  display: block;
  margin: 10px 0 0;
  white-space: normal;
}

.detail-calculation-line .calculation-formula-note + .mathml-wrap {
  margin-top: 10px;
}

.detail-calculation-result .calculation-formula-note {
  display: block;
  margin: 10px 0 0;
}

body[data-calculator-id="geo-sfbc"] .detail-calculation-result .calculation-status + .calculation-status,
body[data-calculator-id="geo-sfbc"] .detail-calculation-line .calculation-substitution-status + .calculation-substitution-status {
  margin-top: 14px;
}

body[data-calculator-id="geo-sfbc"] .detail-calculation-result .calculation-status-message {
  margin: 4px 0 0;
  font-size: var(--fs-small);
  font-weight: 700;
}

body[data-calculator-id="geo-sfbc"] .detail-calculations .calculation-status.is-neutral,
body[data-calculator-id="geo-sfbc"] .detail-calculations .calculation-status.is-neutral .mathml-equation,
body[data-calculator-id="geo-sfbc"] .detail-calculations .calculation-status.is-neutral .mathml-equation * {
  color: var(--text);
}

body[data-calculator-id="geo-sfbc"] .detail-calculations .calculation-status.is-unavailable {
  color: var(--danger);
}

body[data-calculator-id="geo-sfbc"] .detail-calculations .calculation-status.is-unavailable .mathml-equation,
body[data-calculator-id="geo-sfbc"] .detail-calculations .calculation-status.is-unavailable .mathml-equation * {
  color: var(--danger);
}

.chart-card-combined {
  grid-column: 1 / -1;
}

.detail-charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-grid);
  align-items: start;
}

.detail-chart-section {
  display: grid;
  gap: var(--space-row);
  min-width: 0;
  padding: var(--space-subcard-y) var(--space-subcard-x);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-plain);
}

.detail-chart-section .card-head {
  max-width: none;
}

.detail-chart-section .card-head h2 {
  font-size: var(--fs-base);
  line-height: 1.25;
}

.detail-chart-section .card-head p {
  font-size: var(--fs-small);
  line-height: 1.45;
}

.chart {
  min-height: 350px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  padding: 10px 12px;
}

.chart svg {
  display: block;
  width: 100%;
  height: 100%;
}

.chart-title {
  fill: var(--text);
  font-family: var(--font-heading);
  font-size: var(--fs-chart-title);
  font-weight: 700;
}

.chart-grid line {
  stroke: var(--chart-grid);
  stroke-width: 1;
}

.chart-axis {
  stroke: var(--chart-axis);
  stroke-width: 1.2;
}

.chart-label {
  fill: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-chart-axis-value);
  font-weight: 400;
}

.chart-axis-title {
  font-size: var(--fs-chart-axis-title);
}

.chart-series {
  fill: none;
  stroke-width: 2.1;
}

.chart-point {
  stroke-width: 1.2;
}

body[data-calculator-id="geo-sfbc"] .chart-transition-marker {
  stroke-width: 2px;
}

body[data-calculator-id="geo-sfbc"] .chart-transition-marker.is-open {
  fill: var(--panel);
}

.chart-reference {
  stroke: var(--warn);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
}

.chart-reference-capacity {
  stroke: var(--brand);
}

.chart-reference-x {
  stroke: var(--brand-dark);
  stroke-width: 1.25;
  stroke-dasharray: 5 5;
}

.chart-reference-label {
  fill: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-chart-reference);
  font-weight: 400;
}

.chart-legend-line {
  stroke-width: 2.4;
}

.chart-legend-title {
  fill: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-chart-legend);
  font-weight: 400;
}

.chart-legend-label {
  fill: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-chart-legend);
  font-weight: 400;
}

.app-footer {
  margin-top: 28px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  color: var(--brand);
  font-size: var(--fs-small);
  line-height:  1.5;
  font-weight: 400;
  text-align: center;
}

.app-footer-legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: inherit;
}

.results-table-note-centered {
  max-width: 112ch;
  margin: 0 auto;
  text-align: center;
}

.results-table-section:first-child .results-section-head {
  justify-content: flex-start;
  align-items: start;
}

.results-table-section:nth-child(n + 2) .results-section-head {
  justify-content: flex-start;
}

.result-hero {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.result-families {
  width: 100%;
  min-width: 0;
}

.result-families .family-cards {
  gap: 12px;
}

.result-families .family-card {
  min-width: 0;
}

.results-summary-card .result-hero {
  width: 100%;
}

.results-summary-card .result-hero .hero-card {
  flex: 0 0 auto;
  width: min(100%, 300px);
  margin-inline: auto;
  min-height: var(--summary-result-card-min-height);
}

.results-summary-card .result-hero .hero-card.empty-state {
  white-space: nowrap;
}

.results-summary-card .result-families {
  width: 100%;
}

.results-summary-card .result-families .family-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
  align-items: start;
  gap: 12px;
}

.results-summary-card .result-families .family-card {
  min-height: var(--summary-result-card-min-height);
  padding: 14px 10px;
}

.contact-copy {
  max-width: none;
}

.panel-contact .how-grid,
.panel-revisions .theory-grid {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
}

.panel-contact .theory-card-wide,
.panel-revisions .theory-card-wide {
  width: 100%;
  max-width: none;
  justify-self: stretch;
  box-sizing: border-box;
}

.panel-contact .card-head,
.panel-revisions .card-head,
.panel-revisions .theory-table-wrap {
  width: max-content;
  max-width: 100%;
}

.contact-intro-line {
  display: inline-block;
}

.contact-link {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.panel-results .results-table-section {
  overflow: visible;
}

.panel-results .results-table-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--space-grid);
  min-width: 0;
}

body[data-calculator-id="geo-sfbc"] .sfbc-results-comparison-card {
  grid-column: 1 / -1;
}

body[data-calculator-id="geo-sfbc"] .sfbc-comparison-card {
  width: min(100%, 360px);
  min-width: 0;
  min-height: 0;
  height: auto;
  align-self: start;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: var(--space-row);
}

body[data-calculator-id="geo-sfbc"] .results-summary-card .sfbc-comparison-card {
  padding: var(--space-subcard-y) var(--space-subcard-x);
}

.sfbc-comparison-card-title {
  width: 100%;
  text-align: center;
  font-weight: 700;
  font-size: var(--fs-small);
  line-height: 1.25;
}

.sfbc-comparison-card-geometry {
  width: 100%;
  text-align: center;
  font-size: var(--fs-small);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body[data-calculator-id="geo-sfbc"] .panel-results .results-summary-card .sfbc-comparison-card .preview-name {
  white-space: nowrap;
  max-width: 100%;
  font-size: clamp(16px, 1.5vw, 22px);
  overflow-wrap: normal;
}

body[data-calculator-id="geo-sfbc"] .results-summary-card .sfbc-comparison-card .preview-name-stack {
  display: grid;
  gap: 5px;
  white-space: nowrap;
}

body[data-calculator-id="geo-sfbc"] .results-summary-card .sfbc-comparison-card .sfbc-capacity-line {
  display: block;
  white-space: nowrap;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

body[data-calculator-id="geo-sfbc"] .results-summary-card .sfbc-comparison-card .preview-metrics-table {
  width: min(100%, 300px);
  max-width: 100%;
  table-layout: fixed;
}

body[data-calculator-id="geo-sfbc"] .results-summary-card .sfbc-comparison-card .preview-metrics-table :is(th, td):first-child { width: 45%; }
body[data-calculator-id="geo-sfbc"] .results-summary-card .sfbc-comparison-card .preview-metrics-table :is(th, td):last-child { width: 55%; }

body[data-calculator-id="geo-sfbc"] .panel-results .results-table-grid.sfbc-variant-table-grid {
  grid-template-columns: minmax(0, 1fr);
}

body[data-calculator-id="geo-sfbc"] .panel-results .results-table-grid.sfbc-variant-table-grid .sfbc-variants-table-wrap {
  display: block;
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  align-self: center;
  overflow-x: auto;
}

body[data-calculator-id="geo-sfbc"] .panel-results .results-table-grid.sfbc-variant-table-grid .sfbc-variants-table {
  width: max-content;
  min-width: 0;
  max-width: none;
  table-layout: auto;
}

body[data-calculator-id="geo-sfbc"] .panel-results .sfbc-variants-table th,
body[data-calculator-id="geo-sfbc"] .panel-results .sfbc-variants-table td {
  padding: 7px 8px;
  font-size: var(--fs-small);
  line-height: 1.3;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

body[data-calculator-id="geo-sfbc"] .panel-results .sfbc-variants-table th:first-child,
body[data-calculator-id="geo-sfbc"] .panel-results .sfbc-variants-table td:first-child {
  text-align: left;
}

body[data-calculator-id="geo-sfbc"] .panel-results .sfbc-variants-table th .table-head-stack > span:last-child {
  font-weight: 400;
}

body[data-calculator-id="geo-sfbc"]:not(.sfbc-graphic-only) #sgn-unavailable-card .sfbc-variants-table th:last-child,
body[data-calculator-id="geo-sfbc"]:not(.sfbc-graphic-only) #sgn-unavailable-card .sfbc-variants-table td:last-child {
  text-align: left;
}

body[data-calculator-id="geo-sfbc"] .panel-results .sfbc-variants-table tr.is-main-variant {
  background: var(--surface-selected);
}

body[data-calculator-id="geo-sfbc"] .panel-results .results-condition-cell.is-pass,
body[data-calculator-id="geo-sfbc"] .panel-results .results-delta-cell.is-favorable {
  color: var(--good);
}

body[data-calculator-id="geo-sfbc"] .panel-results .results-condition-cell.is-fail,
body[data-calculator-id="geo-sfbc"] .panel-results .results-condition-cell.is-unavailable,
body[data-calculator-id="geo-sfbc"] .panel-results .results-delta-cell.is-unfavorable {
  color: var(--danger);
}

body[data-calculator-id="geo-sfbc"] .panel-results .results-delta-cell.is-reference {
  color: var(--muted);
}

#sgn-unavailable-card[hidden] {
  display: none !important;
}


.panel-results .results-table-grid > .table-card {
  width: 100%;
  min-width: 0;
  max-width: none;
  align-items: stretch;
}

.panel-results .results-table-grid > .table-card .card-head {
  width: 100%;
  text-align: center;
}

.panel-results .results-table-grid > .table-card .card-head h2 {
  text-align: center;
  margin-bottom: 0;
}

.panel-results .results-table-grid .table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  align-self: stretch;
  justify-self: stretch;
}

.panel-results .results-table-grid .results-table {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.panel-results .results-table-grid .results-table-note {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: center;
}

@media (max-width: 1180px) {
  .panel-results .results-table-grid {
    grid-template-columns: 1fr;
  }
}

/* Wspólny styl zakładek kalkulatora. */
.panel-grid,
.panel-grid-results,
.results-overview-grid,
.results-table-sections,
.results-table-grid,
.detail-top-stack,
.theory-grid,
.how-grid,
.config-choice-stack,
.scheme-list,
.input-grid {
  gap: var(--space-grid);
}

.card,
.theory-card,
.table-card,
.empty-state-action-card {
  padding: var(--space-card-y) var(--space-card-x);
}

.card-head,
.preview-card .card-head,
.table-card .card-head {
  max-width: none;
}

.card-head h2,
.results-section-head h3 {
  margin: 0 0 8px;
  color: var(--heading);
  font-family: var(--font-heading);
  font-size: var(--fs-heading);
  font-weight: 700;
  line-height: 1.2;
}

.card-head p,
.how-step p,
.theory-section p,
.contact-copy,
.detail-summary-note,
#best-profile-description,
.result-families .card-head p {
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.7;
}

/* Szablon justowania: krótkie teksty zostają do lewej, długie bloki dostają klasę poniżej. */
.text-justify-long,
.card-head .input-warning,
.input-warning,
.model-warning {
  text-align: justify;
  text-wrap: pretty;
  hyphens: auto;
}

.card-head .input-warning,
.input-warning,
.model-warning {
  padding: 0;
  border-top: 0;
  color: var(--danger);
}

.card-head .input-warning strong,
.input-warning strong,
.model-warning strong {
  color: var(--danger);
}

.scheme-card,
.scheme-visual,
.general-form-column,
.preview-card,
.hero-card,
.family-card,
.detail-summary,
.detail-empty-state,
.detail-metrics-table-wrap,
.detail-calculation-step,
.chart,
.table-wrap,
.theory-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.general-form-column,
.hero-card,
.chart,
.detail-calculation-step {
  background: var(--surface-plain);
}

.field input,
.field select,
.button {
  min-height: 42px;
  border-radius: 8px;
  font-size: var(--fs-base);
}

.card-general .field input,
.card-general .field select {
  min-height: 30px;
  padding: 0 8px;
  font-size: var(--fs-small);
}

.theory-table th,
.theory-table td,
.results-table th,
.results-table td,
.detail-metrics-table th,
.detail-metrics-table td {
  padding: var(--space-cell-y) var(--space-cell-x);
  font-size: var(--fs-base);
  line-height: 1.55;
}

.results-table th,
.results-table td {
  white-space: nowrap;
}

.table-wrap {
  overflow: auto;
}

.theory-table thead th,
.results-table thead th,
.detail-metrics-table thead th {
  background: var(--panel-soft);
  color: var(--heading);
  font-weight: 700;
}

.theory-list,
.notation-list dd,
.formula-expression,
.equation-text,
.field-note,
.empty-state {
  font-size: var(--fs-base);
  line-height: 1.7;
}

.section-label,
.field > span,
.scheme-meta,
.formula-value-box span,
.preview-metrics dt,
.result-metrics dt,
.family-metrics dt,
.detail-calculation-step-symbol,
.detail-calculation-line > span,
.detail-calculation-result > span,
.detail-calculation-note,
.results-table-note {
  font-size: var(--fs-small);
  line-height: 1.55;
}

.section-label,
.field > span,
.scheme-meta,
.formula-value-box span,
.results-table-note,
.detail-calculation-step-symbol,
.detail-calculation-line > span,
.detail-calculation-result > span,
.detail-calculation-note {
  color: var(--text);
}

@media (max-width: 1220px) {
  .panel-grid,
  .results-overview-grid,
  .results-summary-grid,
  .general-layout,
  .panel-grid-results,
  .detail-charts-grid {
    grid-template-columns: 1fr;
  }

  .detail-metric-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .panel-config .panel-grid {
    grid-template-columns: 1fr;
  }

  .results-summary-card {
    width: 100%;
  }

  .results-summary-card .result-hero,
  .results-summary-card .result-families {
    width: 100%;
  }

  .panel-config .config-choice-stack,
  .panel-config .card-general {
    grid-column: auto;
  }

  .mode-copy p {
    white-space: normal;
  }

}

@media (max-width: 1080px) {

  .card,
  .theory-card {
    padding: 22px;
  }

  .scheme-card {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .scheme-visual {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
  }

}

@media (max-width: 860px) {
  .detail-result-content {
    grid-template-columns: 1fr;
  }

  .detail-result-content .detail-summary,
  .detail-result-content .detail-summary.detail-result-layout {
    height: auto;
    min-height: 0;
  }

  .detail-inline-chart-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .detail-chart-range {
    grid-column: 1;
    grid-row: 2;
    min-height: 350px;
  }

  .chart.detail-inline-chart {
    grid-column: 1;
    grid-row: 2;
    height: 350px;
    min-height: 350px;
  }

  .detail-chart-toolbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .detail-chart-toolbar-controls {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
  }

  .detail-chart-picker {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .detail-chart-axis-pill {
    gap: 4px;
    padding: 3px 4px 3px 6px;
  }

  .detail-chart-axis-pill span {
    max-width: 54px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .detail-chart-range-input {
    width: 42px;
  }

  .text-justify-long,
  .card-head .input-warning,
  .input-warning,
  .model-warning {
    text-align: left;
    hyphens: manual;
  }

  .theory-nowrap-line {
    white-space: normal;
  }

  .how-nowrap-line {
    white-space: normal;
  }

  .results-section-head {
    align-items: start;
  }

  .results-section-head .results-table-note {
    max-width: none;
  }

  .how-step {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .equation-notes,
  .family-cards {
    grid-template-columns: 1fr;
  }

  .notation-list {
    display: grid;
    width: 100%;
  }

  .notation-list div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .notation-list dt {
    display: block;
    padding-bottom: 0;
    padding-right: 0;
    border-bottom: 0;
    white-space: normal;
  }

  .notation-list dd {
    display: block;
    width: auto;
    padding-top: 4px;
    border-bottom: 0;
  }

  .notation-list.how-notation-list dd {
    white-space: normal;
  }

  .notation-list div:not(:last-child) dt {
    border-bottom: 0;
  }

  .notation-list div:not(:last-child) dd {
    border-bottom: 1px solid var(--line-soft);
  }

  .theory-scheme-cell {
    grid-template-columns: 1fr;
  }

  .theory-inline-copy {
    white-space: normal;
  }

  .theory-table.theory-table-fit {
    width: 100%;
    min-width: 860px;
  }
}

@media (max-width: 760px) {
  .results-summary-card .result-hero,
  .results-summary-card .result-families,
  .summary-input-data {
    width: 100%;
  }

  .results-summary-card .result-families .family-cards {
    grid-template-columns: 1fr;
  }

  .panel-results .results-table-grid {
    grid-template-columns: 1fr;
  }

  body {
    font-size: var(--fs-base);
  }

  .input-grid-general {
    max-width: none;
  }

  .detail-metric-grid {
    grid-template-columns: 1fr;
  }
}

.mode-list {
  display: grid;
  gap: var(--space-row);
  margin-bottom: 0;
}

.mode-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: var(--space-row);
  align-items: start;
  padding: var(--space-subcard-y) var(--space-subcard-x);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.mode-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.mode-card-static,
.mode-list .mode-card:not(:has(input)) {
  grid-template-columns: minmax(0, 1fr);
  cursor: default;
}

.mode-card-static:hover,
.mode-list .mode-card:not(:has(input)):hover {
  transform: none;
}

.mode-card.is-selected {
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
  background: var(--surface-selected);
}

.mode-card input {
  margin-top: 3px;
}

.mode-copy {
  min-width: 0;
}

.mode-copy strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: var(--fs-choice);
  line-height: 1.4;
}

.mode-copy p,
.mode-copy > span {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.6;
  overflow-wrap: break-word;
  white-space: normal;
}

.field.is-hidden {
  display: none;
}

body[data-calculator-id="geo-sfbc"] [hidden],
body[data-calculator-id="geo-sfbc"] .is-hidden {
  display: none !important;
}

.formula-card-stack {
  padding: 0;
  border: 0;
  background: transparent;
}

.formula-grid {
  display: grid;
  gap: 12px;
}

.formula-result {
  color: var(--heading);
  font-size: var(--fs-heading);
  line-height: 1.2;
}

.formula-value-box-soft {
  background: var(--surface-table-head);
}

.preview-head,
.hero-card-head,
.detail-summary-head,
.family-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: var(--space-row);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill.is-pass {
  border-color: var(--status-good-line);
  background: var(--status-good-bg);
  color: var(--good);
}

.status-pill.is-fail {
  border-color: var(--danger-line);
  background: var(--status-warn-bg);
  color: var(--danger);
}

body[data-calculator-id="geo-sfbc"] .status-pill.is-unavailable {
  border-color: var(--line);
  background: var(--status-warn-bg);
  color: var(--text);
}

.hero-card-inner {
  display: grid;
  gap: var(--space-row);
}

.family-card-head .section-label {
  margin-bottom: 0;
}

.profile-name-action {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--good);
  font: inherit;
  font-family: var(--font-heading);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  cursor: pointer;
}

.profile-name-action:hover,
.profile-name-action:focus {
  color: var(--good);
  text-decoration: none;
}

.table-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.table-link:hover,
.table-link:focus {
  color: var(--link-hover);
  text-decoration: none;
}

.detail-summary-note {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.65;
}

.scheme-card p {
  margin: 6px 0 0;
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.55;
}

.preview-result.empty-state,
.hero-card.empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--text);
  text-align: center;
}

.preview-result.empty-state.empty-sgu-state,
.hero-card.empty-state.empty-sgu-state,
.empty-state.empty-sgu-state,
.detail-empty-state.empty-sgu-state,
.family-empty-message.empty-sgu-state {
  color: var(--danger);
}

.panel-results .results-table tbody td,
.panel-results .results-table .table-link {
  color: var(--text);
}

.panel-results .results-table th,
.panel-results .results-table td {
  padding: 7px 8px;
  font-size: var(--fs-small);
  line-height: 1.3;
}

.panel-results .results-table .table-head-stack {
  gap: 1px;
  line-height: 1.1;
}

.panel-results .results-table tbody td.results-utilization-cell.is-pass {
  color: var(--good);
}

.panel-results .results-table tbody td.results-utilization-cell.is-fail {
  color: var(--danger);
}

.panel-results .results-table tbody td.results-mass-ratio-cell.is-reference {
  color: var(--good);
  background: transparent;
  font-weight: inherit;
}

.panel-results .results-table tbody td.results-mass-ratio-cell.is-heavy {
  color: var(--danger);
  background: transparent;
  font-weight: inherit;
}

.panel-results .results-table tbody td.empty-sgu-table-cell {
  color: var(--danger);
}

/* Doprecyzowanie wspólnego stylu dla elementów z końca arkusza. */
.mode-card,
.scheme-card,
.scheme-visual,
.general-form-column,
.preview-card,
.hero-card,
.family-card,
.detail-summary,
.detail-empty-state,
.detail-metrics-table-wrap,
.detail-calculation-step,
.chart,
.table-wrap,
.theory-table-wrap {
  border-radius: var(--radius);
}

.mode-card,
.scheme-card,
.scheme-visual,
.general-form-column,
.hero-card,
.detail-calculation-step {
  background: var(--surface-plain);
}

.mode-card.is-selected,
.scheme-card.is-selected {
  background: var(--surface-selected);
}

.mode-copy p,
.scheme-card p,
.detail-summary-note {
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.7;
}

.formula-grid,
.hero-card-inner {
  gap: var(--space-row);
}

.card.card-general {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-right: 22px;
  padding-left: 22px;
}

.card-general .input-warning {
  width: 100%;
  max-width: none;
  justify-self: stretch;
  overflow-wrap: normal;
}

body[data-calculator-id="geo-sfbc"] .general-layout {
  grid-template-columns: max-content 300px;
  width: max-content;
  max-width: 100%;
  gap: 22px;
  justify-content: center;
  justify-self: center;
}

body[data-calculator-id="geo-sfbc"] .general-form-column {
  --general-label-width: 160px;
  --general-control-width: 112px;
  width: max-content;
  justify-self: auto;
}

body[data-calculator-id="geo-sfbc"] .input-grid-general {
  max-width: var(--general-label-width);
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-field .standard-text-picker {
  --standard-text-picker-width: var(--general-label-width);
  justify-self: center;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-field .standard-text-picker-toggle {
  justify-content: center;
}

body[data-calculator-id="geo-sfbc"] .sfbc-foundation-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  width: 100%;
  gap: 12px;
}

body[data-calculator-id="geo-sfbc"] .sfbc-foundation-type-field {
  display: grid;
  gap: 0;
  justify-items: start;
  text-align: left;
}

body[data-calculator-id="geo-sfbc"] .sfbc-foundation-header h2 {
  margin-bottom: 0;
}

body[data-calculator-id="geo-sfbc"] .sfbc-foundation-caption {
  margin: 12px 0 0;
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.5;
}

body[data-calculator-id="geo-sfbc"] #scheme-picker {
  display: inline-grid;
  gap: 0;
  max-width: 100%;
  justify-self: start;
}

body[data-calculator-id="geo-sfbc"] .sfbc-foundation-type-picker .standard-text-picker-option.is-disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.7;
}

body[data-calculator-id="geo-sfbc"] #sfbc-foundation-graphic[hidden] {
  display: none;
}

body[data-calculator-id="geo-sfbc"] .sfbc-right-input-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-grid);
  align-content: start;
  min-width: 0;
}

body[data-calculator-id="geo-sfbc"] .panel-config .sfbc-right-input-stack > :is(.sfbc-loads-card, .card-general) {
  grid-column: 1;
  grid-row: auto;
  width: 100%;
  min-width: 0;
  align-self: start;
}

body[data-calculator-id="geo-sfbc"] .sfbc-loads-card .card-head {
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] .sfbc-loads-card .card-head p {
  margin-bottom: var(--space-row);
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-loads {
  min-width: 0;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-loads-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 8px;
  justify-items: center;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-loads-grid [data-field-wrap="vEdKN"] {
  grid-column: 1 / -1;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-loads-grid :is([data-field-wrap="vEdKNm"], [data-field-wrap="qEdKPa"]) {
  grid-column: 1 / -1;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-loads .field {
  display: grid;
  gap: 4px;
  justify-items: center;
  width: 100%;
  min-width: 0;
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-loads .number-stepper {
  width: min(100%, 112px);
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-loads .number-stepper input {
  min-height: 30px;
  padding: 0 8px;
  font-size: var(--fs-small);
}

body[data-calculator-id="geo-sfbc"] .sfbc-scheme-loads > p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.4;
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] .preview-card {
  min-width: 0;
  width: 360px;
  max-width: 100%;
  min-height: 365px;
  justify-self: auto;
}

body[data-calculator-id="geo-sfbc"] .preview-card .preview-name {
  white-space: nowrap;
  max-width: 100%;
  font-size: clamp(16px, 1.5vw, 22px);
  overflow-wrap: normal;
}

body[data-calculator-id="geo-sfbc"] .preview-card .preview-name-stack {
  display: grid;
  gap: 5px;
  white-space: nowrap;
}

body[data-calculator-id="geo-sfbc"] .preview-card #main-result-card .preview-name-stack {
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  justify-items: start;
  text-align: left;
}

body[data-calculator-id="geo-sfbc"] .preview-card .sfbc-capacity-line {
  display: block;
  white-space: nowrap;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

body[data-calculator-id="geo-sfbc"] .preview-result .hero-card-head .sfbc-capacity-line.is-pass {
  color: var(--good);
}

body[data-calculator-id="geo-sfbc"] .preview-result .hero-card-head .sfbc-capacity-line.is-fail {
  color: var(--danger);
}

body[data-calculator-id="geo-sfbc"] .preview-result.is-unavailable .preview-name {
  color: var(--text);
}

body[data-calculator-id="geo-sfbc"] .mcr-mode-field {
  display: block;
  width: 100%;
  margin: 0;
  text-align: left;
}

body[data-calculator-id="geo-sfbc"] .mcr-standard-text-picker {
  justify-self: start;
}

body[data-calculator-id="geo-sfbc"] .mcr-standard-text-picker .standard-text-picker-toggle,
body[data-calculator-id="geo-sfbc"] .mcr-standard-text-picker .standard-text-picker-display {
  text-align: left;
}

body[data-calculator-id="geo-sfbc"] .mcr-standard-text-picker.is-disabled {
  opacity: 0.72;
}

body[data-calculator-id="geo-sfbc"] .mcr-standard-text-picker.is-disabled .standard-text-picker-toggle {
  cursor: not-allowed;
}

body[data-calculator-id="geo-sfbc"] .preview-card .preview-metrics-table {
  width: 300px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  inline-size: 300px !important;
  min-inline-size: 0 !important;
  max-inline-size: 100% !important;
  table-layout: fixed !important;
  justify-self: center;
  box-sizing: border-box;
}

body[data-calculator-id="geo-sfbc"] .preview-card .preview-metric-label-col {
  width: 45% !important;
}

body[data-calculator-id="geo-sfbc"] .preview-card .preview-metric-value-col {
  width: 55% !important;
}

body[data-calculator-id="geo-sfbc"] .preview-card .preview-metrics-table th,
body[data-calculator-id="geo-sfbc"] .preview-card .preview-metrics-table td {
  white-space: nowrap;
}

body[data-calculator-id="geo-sfbc"] .preview-card .preview-metrics-table .sfbc-eccentricity-metric td:first-child,
body[data-calculator-id="geo-sfbc"] .panel-results .sfbc-comparison-card .preview-metrics-table .sfbc-eccentricity-metric td:first-child {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

body[data-calculator-id="geo-sfbc"] .panel-results .family-result-card .preview-metrics-table {
  width: min(100%, var(--summary-metrics-table-width));
  max-width: 100%;
  table-layout: fixed;
}

body[data-calculator-id="geo-sfbc"] .preview-card .hero-card-inner {
  display: grid;
  justify-content: center;
  justify-items: center;
}

body[data-calculator-id="geo-sfbc"] .preview-card .preview-result {
  min-height: 250px;
}

body[data-calculator-id="geo-sfbc"] .preview-card #main-result-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  justify-self: stretch;
}

body[data-calculator-id="geo-sfbc"] .preview-card {
  grid-template-rows: auto auto auto;
  align-content: start;
  height: auto;
}

body[data-calculator-id="geo-sfbc"] .sfbc-main-result-notes {
  width: 100%;
  margin-top: 12px;
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.7;
  text-align: left;
  justify-self: stretch;
}

body[data-calculator-id="geo-sfbc"] .sfbc-main-result-notes h3 { margin: 0 0 8px; font-size: var(--fs-base); }
body[data-calculator-id="geo-sfbc"] .sfbc-main-result-notes p { margin: 0 0 8px; }
body[data-calculator-id="geo-sfbc"] .sfbc-main-result-notes p:last-child { margin-bottom: 0; }
body[data-calculator-id="geo-sfbc"] p.warning-critical { color: var(--danger); }
body[data-calculator-id="geo-sfbc"] .sfbc-main-result-notes strong { color: var(--text); }
body[data-calculator-id="geo-sfbc"] .sfbc-strip-variant-notes .warning-critical,
body[data-calculator-id="geo-sfbc"] .sfbc-strip-variant-notes .warning-critical sub { color: var(--danger); }

body[data-calculator-id="geo-sfbc"] .sfbc-preview-graphic {
  width: 100%;
  min-width: 0;
  margin-top: 16px;
}

body[data-calculator-id="geo-sfbc"] .sfbc-preview-graphic-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: var(--panel-soft);
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-preview-frame {
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-plain);
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-step-graphic {
  width: 100%;
  max-width: 1000px;
  margin: 24px auto 0;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-step-frame {
  background: var(--surface-plain);
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-step-stage {
  max-width: 700px;
  margin: 0 auto;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-step-stage .sfbc-contact-units {
  display: block;
  color: var(--muted);
  font-size: var(--fs-small);
  text-align: right;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-step-stage > svg {
  display: block;
  width: 100%;
  height: auto;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-step-graphic .sfbc-map-legend {
  margin: 24px 0 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.3;
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-step-graphic .sfbc-map-legend h3 {
  margin: 0 0 8px;
  font-size: inherit;
  font-weight: 600;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-step-graphic .sfbc-map-key {
  margin: 0;
  font-size: inherit;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-step-graphic .sfbc-map-key span {
  white-space: nowrap;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-step-graphic .sfbc-map-key span::before {
  width: 20px;
  margin-right: 7px;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-step-graphic .sfbc-map-key-center::before {
  height: 20px;
  background-size: 1.5px 17px, 17px 1.5px;
  vertical-align: -4px;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-step-graphic .sfbc-map-key-resultant-icon {
  width: 20px;
  height: 20px;
  margin-right: 7px;
  vertical-align: -4px;
}

body[data-calculator-id="geo-sfbc"] .sfbc-preview-graphic-frame h3 {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: var(--fs-small);
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-card-profile .sfbc-preview-graphic-frame {
  padding: 0;
  background: transparent;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-card-profile .sfbc-preview-graphic-frame h3 {
  margin: 0;
  padding: 6px 8px;
  color: #ffffff;
}

body[data-calculator-id="geo-sfbc"] .sfbc-preview-graphic-frame p {
  margin: 8px 0 0;
  color: var(--text);
  font-size: var(--fs-small);
  line-height: 1.4;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-preview-frame .sfbc-contact-preview-caption {
  margin: 0 0 8px;
  color: var(--text);
  font-weight: 700;
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-preview svg,
body[data-calculator-id="geo-sfbc"] .sfbc-soil-preview svg {
  display: block;
  width: 100%;
  height: auto;
}

body[data-calculator-id="geo-sfbc"] .sfbc-map-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 13px;
  margin-top: 7px;
  color: var(--text);
  font-size: var(--fs-small);
  line-height: 1.3;
}

body[data-calculator-id="geo-sfbc"] .sfbc-map-key span::before {
  display: inline-block;
  width: 15px;
  margin-right: 5px;
  text-align: center;
  font-weight: 800;
}

body[data-calculator-id="geo-sfbc"] .sfbc-map-key-kern::before,
body[data-calculator-id="geo-sfbc"] .sfbc-map-key-ellipse::before {
  content: "";
  height: 3px;
  border-radius: 2px;
  vertical-align: middle;
}
body[data-calculator-id="geo-sfbc"] .sfbc-map-key-kern::before { background: var(--sfbc-kern-color); }
body[data-calculator-id="geo-sfbc"] .sfbc-map-key-ellipse::before { background: var(--sfbc-eccentricity-limit-color); }
body[data-calculator-id="geo-sfbc"] .sfbc-map-key-center::before {
  content: "";
  height: 15px;
  background-image: linear-gradient(var(--heading), var(--heading)), linear-gradient(var(--heading), var(--heading));
  background-position: center;
  background-size: 1.5px 13px, 13px 1.5px;
  background-repeat: no-repeat;
  vertical-align: -2px;
}
body[data-calculator-id="geo-sfbc"] .sfbc-map-key-resultant-icon {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 5px;
  vertical-align: -2px;
}

body[data-calculator-id="geo-sfbc"] .sfbc-map-key-resultant-icon circle {
  fill: var(--surface-accent);
  stroke: var(--warn);
  stroke-width: 2.5;
}

body[data-calculator-id="geo-sfbc"] .sfbc-map-key-resultant-icon path {
  fill: none;
  stroke: var(--mjkm-brand-300);
  stroke-width: 2.1;
  stroke-linecap: round;
}

body[data-calculator-id="geo-sfbc"] .sfbc-contact-preview .sfbc-map-dimensions,
body[data-calculator-id="geo-sfbc"] .sfbc-contact-preview .sfbc-map-axis-line,
body[data-calculator-id="geo-sfbc"] .sfbc-contact-preview .sfbc-map-axis-arrow,
body[data-calculator-id="geo-sfbc"] .sfbc-contact-preview .sfbc-map-axis-label {
  display: none;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-profile-band {
  fill: color-mix(in srgb, var(--mjkm-amber-base) 65%, var(--surface-plain));
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-profile-backfill {
  fill: var(--sfbc-profile-backfill-fill);
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-profile-continuation {
  fill: none;
  stroke: var(--heading);
  stroke-width: 2;
  stroke-dasharray: 10 7;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-profile-footing,
body[data-calculator-id="geo-sfbc"] .sfbc-soil-profile-stem {
  fill: #7e858e;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-profile-ground-level {
  stroke: var(--heading);
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-profile-backfill-label {
  fill: var(--heading);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  paint-order: stroke;
  stroke: var(--surface-plain);
  stroke-width: 3px;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-profile-foundation-label {
  fill: var(--text-inverse);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-anchor: middle;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-profile-index {
  fill: var(--heading);
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: var(--surface-plain);
  stroke-width: 5px;
  stroke-linejoin: round;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-profile-water {
  fill: none;
  stroke: var(--brand);
  stroke-width: 3;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-profile-water-label {
  fill: var(--brand);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  paint-order: stroke fill;
  stroke: var(--surface-plain);
  stroke-width: 3px;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-profile-level {
  fill: var(--heading);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  paint-order: stroke fill;
  stroke: var(--surface-plain);
  stroke-width: 3px;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-profile-name {
  fill: var(--heading);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  paint-order: stroke;
  stroke: var(--surface-plain);
  stroke-width: 3px;
  stroke-linejoin: round;
}

body[data-calculator-id="geo-sfbc"] .sfbc-graphic-dialog {
  position: fixed;
  width: min(1100px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  background: var(--surface-plain);
  color: var(--text);
  box-shadow: 0 22px 60px rgba(19, 31, 50, .28);
  overflow: auto;
}

body.has-sfbc-graphic-dialog {
  overflow: hidden;
}

body[data-calculator-id="geo-sfbc"] .sfbc-graphic-dialog::backdrop {
  background: rgba(19, 31, 50, .68);
}

body[data-calculator-id="geo-sfbc"] .sfbc-graphic-dialog header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-plain);
}

body[data-calculator-id="geo-sfbc"] .sfbc-graphic-dialog h2 {
  margin: 0;
  font-size: var(--fs-heading);
}

body[data-calculator-id="geo-sfbc"] .sfbc-graphic-dialog header button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-subtle);
  color: var(--heading);
  font-size: 24px;
  cursor: pointer;
}

body[data-calculator-id="geo-sfbc"] .sfbc-graphic-dialog-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 18px;
}

body[data-calculator-id="geo-sfbc"] .sfbc-graphic-dialog-stage svg {
  display: block;
  width: 100%;
  max-width: 1000px;
  max-height: calc(100dvh - 155px);
  height: auto;
}

body[data-calculator-id="geo-sfbc"] #sfbc-contact-dialog {
  width: min(850px, calc(100vw - 24px));
}

body[data-calculator-id="geo-sfbc"] #sfbc-contact-dialog h2 {
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.25;
}

body[data-calculator-id="geo-sfbc"] #sfbc-contact-dialog .sfbc-graphic-dialog-stage {
  position: relative;
  padding: 8px 12px 0;
}

body[data-calculator-id="geo-sfbc"] #sfbc-contact-dialog .sfbc-contact-units {
  position: absolute;
  top: 12px;
  right: 16px;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.2;
}

body[data-calculator-id="geo-sfbc"] #sfbc-contact-dialog .sfbc-graphic-dialog-stage svg {
  width: min(100%, 700px);
  max-width: 700px;
  max-height: min(550px, calc(100dvh - 280px));
  object-fit: contain;
}

body[data-calculator-id="geo-sfbc"] #sfbc-contact-dialog .sfbc-contact-actions {
  margin: 2px 18px 6px;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] #sfbc-contact-dialog .sfbc-contact-actions[hidden] {
  display: none;
}

body[data-calculator-id="geo-sfbc"] #sfbc-contact-dialog .sfbc-contact-actions-title {
  margin: 0 0 8px;
  font-size: inherit;
  font-weight: 600;
}

body[data-calculator-id="geo-sfbc"] #sfbc-contact-dialog .sfbc-contact-actions-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
}

body[data-calculator-id="geo-sfbc"] #sfbc-contact-dialog .sfbc-map-legend {
  margin: 24px 12px 16px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.3;
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] #sfbc-contact-dialog .sfbc-map-legend h3 {
  margin: 0 0 8px;
  font-size: inherit;
  font-weight: 600;
}

body[data-calculator-id="geo-sfbc"] #sfbc-contact-dialog .sfbc-map-key {
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
  font-size: inherit;
}

body[data-calculator-id="geo-sfbc"] #sfbc-contact-dialog .sfbc-map-key span {
  white-space: nowrap;
}

body[data-calculator-id="geo-sfbc"] #sfbc-contact-dialog .sfbc-map-key span::before {
  width: 20px;
  margin-right: 7px;
}

body[data-calculator-id="geo-sfbc"] #sfbc-contact-dialog .sfbc-map-key-center::before {
  height: 20px;
  background-size: 1.5px 17px, 17px 1.5px;
  vertical-align: -4px;
}

body[data-calculator-id="geo-sfbc"] #sfbc-contact-dialog .sfbc-map-key-resultant-icon {
  width: 20px;
  height: 20px;
  margin-right: 7px;
  vertical-align: -4px;
}

@media (max-width: 870px) {
  body[data-calculator-id="geo-sfbc"] #sfbc-contact-dialog .sfbc-map-key {
    flex-wrap: wrap;
  }
}

body[data-calculator-id="geo-sfbc"] .sfbc-graphic-dialog > p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: var(--fs-small);
  line-height: 1.45;
}

/* Pakiet kalkulatorow: normalizacja kart danych wejściowych. */
body[data-calculator-id="geo-sfbc"] .panel-config .general-form-column {
  --general-label-width: 160px;
  --general-control-width: 112px;
  justify-items: center;
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] .panel-config .card-general .field {
  gap: 6px;
}

body[data-calculator-id="geo-sfbc"] .panel-config .card-general .field > input,
body[data-calculator-id="geo-sfbc"] .panel-config .card-general .field > select,
body[data-calculator-id="geo-sfbc"] .panel-config .card-general .number-stepper,
body[data-calculator-id="geo-sfbc"] .panel-config .profile-picker-toggle {
  width: min(100%, var(--general-control-width));
  min-height: 30px;
}

body[data-calculator-id="geo-sfbc"] .panel-config .card-general .profile-picker {
  width: var(--general-label-width);
}

body[data-calculator-id="geo-sfbc"] .panel-config #profile-nested-field-wrap {
  width: var(--general-label-width);
}

body[data-calculator-id="geo-sfbc"] .panel-config #profile-picker-toggle {
  justify-content: space-between;
  padding-right: 12px;
  padding-left: 12px;
}

body[data-calculator-id="geo-sfbc"] .panel-config #profile-nested-field-wrap.is-wide-profile,
body[data-calculator-id="geo-sfbc"] .panel-config .card-general .profile-picker.is-wide-profile {
  width: var(--general-label-width);
}

body[data-calculator-id="geo-sfbc"] .panel-config .profile-picker.is-wide-profile #profile-picker-toggle {
  width: var(--profile-picker-dynamic-width, 160px);
  gap: 6px;
  padding-right: 10px;
  padding-left: 10px;
  font-size: calc(var(--fs-small) * 0.92);
}

body[data-calculator-id="geo-sfbc"] .panel-config #profile-picker-value {
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  text-align: center;
}

/* Pakiet kalkulatorow: normalizacja paska wykresu w szczegółach. */
body[data-calculator-id="geo-sfbc"] .detail-chart-toolbar,
body[data-calculator-id="geo-sfbc"] .detail-chart-toolbar-controls {
  min-height: 30px;
  align-items: center;
}

body[data-calculator-id="geo-sfbc"] .results-summary-card .result-hero .hero-card.empty-state {
  white-space: normal;
  min-width: 0;
  overflow-wrap: anywhere;
}

body[data-calculator-id="geo-sfbc"] #detail-chart-panel {
  grid-template-rows: auto minmax(0, 1fr);
}

body[data-calculator-id="geo-sfbc"] #detail-chart-heading,
body[data-calculator-id="geo-sfbc"] #detail-chart-range,
body[data-calculator-id="geo-sfbc"] #detail-chart-panel #detail-chart {
  grid-row: 2;
}

body[data-calculator-id="geo-sfbc"] #detail-chart-heading {
  padding: 5px 12% 0;
  z-index: 6;
}

body[data-calculator-id="geo-sfbc"] #detail-chart-heading p {
  color: var(--chart-series-primary);
  font-size: var(--fs-small);
  line-height: 1.25;
}

body[data-calculator-id="geo-sfbc"] #detail-chart-heading .sfbc-chart-baseline,
body[data-calculator-id="geo-sfbc"] #detail-chart-heading .sfbc-chart-gaps {
  color: var(--text);
  font-size: var(--fs-small);
  margin: 4px 0 0;
}

body[data-calculator-id="geo-sfbc"] #detail-chart-heading .sfbc-chart-gaps {
  color: var(--text);
}

body[data-calculator-id="geo-sfbc"] .chart-reference.sfbc-chart-current-axis {
  stroke: var(--brand);
  stroke-width: 1.25;
  stroke-dasharray: 5 5;
}

body[data-calculator-id="geo-sfbc"] .chart-reference-x.sfbc-chart-current-axis {
  stroke: var(--text);
  stroke-width: 1.25;
  stroke-dasharray: 5 5;
}

body[data-calculator-id="geo-sfbc"] #detail-chart .line-chart-svg .sfbc-chart-current-x-label {
  fill: var(--text);
}

body[data-calculator-id="geo-sfbc"] #detail-chart .line-chart-svg .chart-reference-x.sfbc-chart-water-axis {
  stroke: var(--info);
  stroke-width: 1.4;
  stroke-dasharray: 3 5;
}

body[data-calculator-id="geo-sfbc"] #detail-chart .line-chart-svg .sfbc-chart-water-label {
  fill: var(--info);
}

body[data-calculator-id="geo-sfbc"] #detail-chart .line-chart-svg .chart-reference-x.sfbc-chart-eccentricity-axis {
  stroke: var(--warn);
  stroke-width: 1.4;
  stroke-dasharray: 3 6;
}

body[data-calculator-id="geo-sfbc"] #detail-chart .line-chart-svg .sfbc-chart-eccentricity-label {
  fill: var(--warn);
  stroke: none;
  font-weight: 400;
}

body[data-calculator-id="geo-sfbc"] #detail-chart .line-chart-svg .sfbc-chart-notes-heading,
body[data-calculator-id="geo-sfbc"] #detail-chart .line-chart-svg .sfbc-chart-eccentricity-note,
body[data-calculator-id="geo-sfbc"] #detail-chart .line-chart-svg .sfbc-chart-calculation-note {
  fill: var(--text);
  font-size: calc(var(--fs-chart-legend) * var(--detail-chart-text-scale, 1)) !important;
}

body[data-calculator-id="geo-sfbc"] #detail-chart .line-chart-svg .sfbc-chart-notes-heading {
  font-weight: 700;
}

body[data-calculator-id="geo-sfbc"] #detail-chart .line-chart-svg .sfbc-chart-inclination-note {
  fill: var(--text);
  font-size: calc(var(--fs-chart-legend) * var(--detail-chart-text-scale, 1)) !important;
}

/* The foundation preview embeds a global SVG text rule with !important. */
body[data-calculator-id="geo-sfbc"] #detail-chart .line-chart-svg .chart-label {
  font-size: calc(var(--fs-chart-axis-value) * var(--detail-chart-text-scale, 1)) !important;
}

body[data-calculator-id="geo-sfbc"] #detail-chart .line-chart-svg .sfbc-chart-domain-bound {
  fill: var(--text);
  font-size: calc(var(--fs-chart-axis-value) * var(--detail-chart-text-scale, 1)) !important;
  font-weight: 400;
}

body[data-calculator-id="geo-sfbc"] #detail-chart .line-chart-svg .sfbc-chart-limit-label {
  fill: var(--warn);
}

body[data-calculator-id="geo-sfbc"] #detail-chart .line-chart-svg .chart-axis-title {
  font-size: calc(var(--fs-chart-axis-title) * var(--detail-chart-text-scale, 1)) !important;
}

body[data-calculator-id="geo-sfbc"] #detail-chart .line-chart-svg .chart-reference-label {
  font-size: calc(var(--fs-chart-reference) * var(--detail-chart-text-scale, 1)) !important;
}

body[data-calculator-id="geo-sfbc"] #detail-chart .line-chart-svg .chart-title {
  font-size: calc(var(--fs-chart-title) * var(--detail-chart-text-scale, 1)) !important;
}

body[data-calculator-id="geo-sfbc"] #detail-chart .line-chart-svg .chart-legend-title,
body[data-calculator-id="geo-sfbc"] #detail-chart .line-chart-svg .chart-legend-label {
  font-size: calc(var(--fs-chart-legend) * var(--detail-chart-text-scale, 1)) !important;
}

body[data-calculator-id="geo-sfbc"] #detail-chart-range {
  position: relative;
  align-self: stretch;
  z-index: 5;
  height: 100%;
  min-height: 0;
  pointer-events: none;
}

body[data-calculator-id="geo-sfbc"] #detail-chart-range:not(.is-chart-geometry-ready) .detail-chart-axis-controls {
  visibility: hidden;
}

body[data-calculator-id="geo-sfbc"] #detail-chart-range .detail-chart-axis-pill,
body[data-calculator-id="geo-sfbc"] #detail-chart-range .detail-chart-range-reset {
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  transform: none;
  pointer-events: auto;
}

body[data-calculator-id="geo-sfbc"] #detail-chart-panel #detail-chart {
  height: 100%;
  min-height: 0;
  cursor: default;
  touch-action: auto;
  user-select: text;
  -webkit-user-select: text;
}

body[data-calculator-id="geo-sfbc"] #detail-chart .line-chart-svg text,
body[data-calculator-id="geo-sfbc"] #detail-chart .line-chart-svg tspan {
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
}

@media (max-width: 760px) {
  body[data-calculator-id="geo-sfbc"] #detail-chart-panel {
    grid-template-rows: auto auto minmax(350px, 1fr);
    height: auto;
    min-height: 520px;
  }

  body[data-calculator-id="geo-sfbc"] #detail-chart-heading {
    grid-row: 2;
    position: static;
    padding: 0 8px 8px;
  }

  body[data-calculator-id="geo-sfbc"] #detail-chart-range,
  body[data-calculator-id="geo-sfbc"] #detail-chart-panel #detail-chart {
    grid-row: 3;
    min-height: 350px;
  }
}

body[data-calculator-id="geo-sfbc"] .detail-calculation-warning-content:not(.is-empty) {
  color: var(--danger);
}

@media (max-width: 760px) {
  body[data-calculator-id="geo-sfbc"] .panel-config,
  body[data-calculator-id="geo-sfbc"] .panel-config .panel-grid,
  body[data-calculator-id="geo-sfbc"] .panel-config .config-choice-stack,
  body[data-calculator-id="geo-sfbc"] .panel-config .sfbc-soil-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body[data-calculator-id="geo-sfbc"] .panel-config .panel-grid,
  body[data-calculator-id="geo-sfbc"] .panel-config .config-choice-stack {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-calculator-id="geo-sfbc"] .sfbc-soil-card .table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }
}

/* Pakiet kalkulatorow: normalizacja tabel wynikow. */
body[data-calculator-id="geo-sfbc"] .panel-results .results-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
}

body[data-calculator-id="geo-sfbc"] .panel-results .results-table th,
body[data-calculator-id="geo-sfbc"] .panel-results .results-table td {
  padding-right: 7px;
  padding-left: 7px;
  white-space: nowrap;
  overflow-wrap: normal;
}

body[data-calculator-id="geo-sfbc"] .panel-results .results-table th:nth-child(1),
body[data-calculator-id="geo-sfbc"] .panel-results .results-table td:nth-child(1) {
  width: auto;
}

body[data-calculator-id="geo-sfbc"] .panel-results .results-table th:nth-child(2),
body[data-calculator-id="geo-sfbc"] .panel-results .results-table td:nth-child(2),
body[data-calculator-id="geo-sfbc"] .panel-results .results-table th:nth-child(3),
body[data-calculator-id="geo-sfbc"] .panel-results .results-table td:nth-child(3),
body[data-calculator-id="geo-sfbc"] .panel-results .results-table th:nth-child(5),
body[data-calculator-id="geo-sfbc"] .panel-results .results-table td:nth-child(5),
body[data-calculator-id="geo-sfbc"] .panel-results .results-table th:nth-child(6),
body[data-calculator-id="geo-sfbc"] .panel-results .results-table td:nth-child(6) {
  width: auto;
}

body[data-calculator-id="geo-sfbc"] .panel-results .results-table th:nth-child(4),
body[data-calculator-id="geo-sfbc"] .panel-results .results-table td:nth-child(4) {
  width: auto;
}

body[data-calculator-id="geo-sfbc"] .panel-results .results-table th:nth-child(7),
body[data-calculator-id="geo-sfbc"] .panel-results .results-table td:nth-child(7) {
  width: auto;
}

/* Pakiet kalkulatorow: normalizacja zakladek Teoria i Rewizje. */
body[data-calculator-id="geo-sfbc"] .panel-theory .theory-grid,
body[data-calculator-id="geo-sfbc"] .panel-revisions .theory-grid {
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  align-items: start;
  gap: var(--space-grid);
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card,
body[data-calculator-id="geo-sfbc"] .panel-revisions .theory-card {
  width: 100%;
  max-width: none;
  justify-self: stretch;
  box-sizing: border-box;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-wide,
body[data-calculator-id="geo-sfbc"] .panel-revisions .theory-card-wide {
  grid-column: 1 / -1;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .card-head,
body[data-calculator-id="geo-sfbc"] .panel-revisions .card-head {
  width: 100%;
  max-width: none;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card p,
body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card li {
  line-height: 1.65;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-theory-stage,
body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-theory-intro {
  min-width: 0;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-theory-stage h3 {
  margin: 20px 0 6px;
  color: var(--heading);
  font-family: var(--font-heading);
  font-size: var(--fs-base);
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-theory-status {
  padding: 12px 16px;
  border-left: 3px solid var(--brand);
  background: var(--surface-subtle);
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-theory-equations {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 16px 0;
  padding: 14px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface-subtle);
  font-family: var(--font-math);
  font-variant-numeric: tabular-nums;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-theory-equations p {
  margin: 0;
  overflow-wrap: anywhere;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-theory .theory-flow {
  min-width: 0;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-theory .theory-section {
  min-width: 0;
  border-top: 0;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-theory .sfbc-theory-chapter:not(:first-child) {
  border-top: 1px solid var(--line-soft);
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-card .equation-name {
  color: var(--text);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.65;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-theory .sfbc-formula-group {
  margin: 0 0 12px;
  color: var(--text);
  font-size: var(--fs-base);
  font-weight: 700;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-theory .sfbc-formula-group > u {
  font-weight: 400;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-theory .sfbc-formula-group-plain {
  font-weight: 400;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-theory .sfbc-formula-group-spaced {
  margin-top: 1.65em;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-theory .sfbc-formula-group-space-after {
  margin-bottom: 1.65em;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-theory .sfbc-formula-group-tight-after {
  margin-bottom: 0;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-theory .sfbc-formula-note-compact {
  margin-top: 0;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-theory .sfbc-friction-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-theory .sfbc-friction-row .mathml-equation {
  display: inline-block;
  width: auto;
  margin: 0;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-undrained-bearing .equation-card + .equation-card {
  margin-top: 1.65em;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-card .mathml-equation {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
  font-size: var(--fs-base);
  line-height: 1.85;
  math-style: normal;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-card .mathml-equation mi,
body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-card .mathml-equation mn,
body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-card .mathml-equation mo,
body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-card .mathml-equation mtext {
  font-family: var(--font-math);
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-card .mathml-equation mfrac > *,
body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-card .mathml-equation msqrt,
body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-card .mathml-equation msqrt > *,
body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-card .mathml-equation mroot,
body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-card .mathml-equation mroot > * {
  font-size: 1em;
  math-style: normal;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-card .mathml-equation mtable {
  margin-left: 0;
  margin-right: auto;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-card .mathml-wrap,
body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-card .mathml-equation mtd {
  text-align: left;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-base-inclination-line {
  max-width: none;
  white-space: nowrap;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-base-inclination-line .mathml-equation {
  display: inline-block;
  width: auto;
  margin: 0;
  vertical-align: middle;
  font-size: var(--fs-base);
  line-height: inherit;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-card-inline-note .mathml-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-card-inline-note .mathml-equation,
body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-card-inline-note .sfbc-formula-inline-note {
  flex: 0 0 auto;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-card-inline-note .mathml-equation {
  margin-right: 0;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-card-inline-note .sfbc-formula-inline-note {
  white-space: nowrap;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-formula-symbols .notation-list {
  margin-top: 0;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-contact-figure {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-contact-figure img {
  display: block;
  width: min(100%, 620px);
  height: auto;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-contact-figure figcaption {
  max-width: 78ch;
  color: var(--text);
  font-size: var(--fs-small);
  line-height: 1.55;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-table.sfbc-contact-table {
  min-width: 680px;
  margin: 0 0 18px;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-contact-table th:first-child {
  width: 12%;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-contact-table th:nth-child(2) {
  width: 34%;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-table-wrap,
body[data-calculator-id="geo-sfbc"] .panel-revisions .theory-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-table th,
body[data-calculator-id="geo-sfbc"] .panel-theory .theory-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
  vertical-align: top;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-foundation-types-table-wrap {
  display: inline-block;
  vertical-align: top;
  width: fit-content;
  max-width: 100%;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-foundation-types-table {
  width: auto;
  max-width: 100%;
  table-layout: auto;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-foundation-types-table th,
body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-foundation-types-table td {
  vertical-align: middle;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-foundation-types-table th:nth-child(-n+2),
body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-foundation-types-table td:nth-child(-n+2) {
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-foundation-types-table th:first-child,
body[data-calculator-id="geo-sfbc"] .panel-theory .sfbc-foundation-types-table td:first-child {
  width: 1%;
  white-space: nowrap;
  overflow-wrap: normal;
}

body[data-calculator-id="geo-sfbc"] .panel-revisions .revisions-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

body[data-calculator-id="geo-sfbc"] .panel-revisions .revisions-table th,
body[data-calculator-id="geo-sfbc"] .panel-revisions .revisions-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
  vertical-align: top;
}

body[data-calculator-id="geo-sfbc"] .panel-revisions .revisions-table th:nth-child(1),
body[data-calculator-id="geo-sfbc"] .panel-revisions .revisions-table td:nth-child(1),
body[data-calculator-id="geo-sfbc"] .panel-revisions .revisions-table th:nth-child(2),
body[data-calculator-id="geo-sfbc"] .panel-revisions .revisions-table td:nth-child(2) {
  width: 18%;
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] .panel-revisions .revisions-table th:nth-child(3),
body[data-calculator-id="geo-sfbc"] .panel-revisions .revisions-table td:nth-child(3) {
  width: 64%;
  text-align: left;
}

@media (min-width: 1221px) {
  body[data-calculator-id="geo-sfbc"] .panel-config .panel-grid {
    grid-template-columns: minmax(0, 1fr) 560px;
  }

  body[data-calculator-id="geo-sfbc"] .panel-config .mode-copy > span {
    white-space: normal;
    font-size: var(--fs-base);
    line-height: 1.7;
  }
}

.access-card {
  width: min(100%, 1360px);
  max-width: 1360px;
  margin: 0 auto;
}

.access-card-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 36px;
  align-items: start;
}

.access-panel {
  min-width: 0;
}





.access-form {
  display: grid;
  gap: 18px;
  max-width: 520px;
  margin-top: 26px;
}

.access-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel-soft);
  color: var(--text);
  font: inherit;
}









.access-submit {
  width: fit-content;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--brand);
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}



.access-notice,
.access-response,
.access-dev-link {
  margin-top: 18px;
  color: var(--text);
}

.access-response {
  white-space: pre-line;
}

.access-dev-link a {
  color: var(--link);
  font-weight: 700;
}

@media (max-width: 1220px) {
  .access-card-split {
    grid-template-columns: 1fr;
  }

  .card.card-general {
    width: 100%;
  }

  .card-general .input-warning {
    max-width: none;
  }

  .preview-card {
    width: 100%;
  }

  body[data-calculator-id="geo-sfbc"] .preview-card {
    width: 360px;
    max-width: 100%;
  }

  .mode-copy p {
    white-space: normal;
  }
}

@media (max-width: 760px) {
  body[data-calculator-id="geo-sfbc"] .panel-config .card-general,
  body[data-calculator-id="geo-sfbc"] .panel-config .general-layout,
  body[data-calculator-id="geo-sfbc"] .panel-config .general-form-column,
  body[data-calculator-id="geo-sfbc"] .panel-config .preview-card {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  body[data-calculator-id="geo-sfbc"] .panel-config .general-layout {
    grid-template-columns: minmax(0, 1fr);
    justify-self: stretch;
  }

  body[data-calculator-id="geo-sfbc"] .panel-details .detail-metrics-card,
  body[data-calculator-id="geo-sfbc"] .panel-details .detail-metrics,
  body[data-calculator-id="geo-sfbc"] .panel-details .detail-calculations,
  body[data-calculator-id="geo-sfbc"] .panel-details .detail-calculations-body,
  body[data-calculator-id="geo-sfbc"] .panel-details .detail-calculation-step,
  body[data-calculator-id="geo-sfbc"] .panel-details .detail-calculation-line,
  body[data-calculator-id="geo-sfbc"] .panel-details .detail-calculation-result {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  body[data-calculator-id="geo-sfbc"] .panel-details .detail-calculation-line > div,
  body[data-calculator-id="geo-sfbc"] .panel-details .detail-calculation-result > div,
  body[data-calculator-id="geo-sfbc"] .panel-details .detail-calculation-line .mathml-wrap,
  body[data-calculator-id="geo-sfbc"] .panel-details .detail-calculation-result .mathml-wrap {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .detail-calculation-step-head,
  .detail-calculation-line,
  .detail-calculation-result {
    grid-template-columns: 1fr;
  }

  .detail-calculation-step-head {
    display: grid;
  }

  .detail-calculation-step-symbol {
    white-space: normal;
  }
}

/* Pakiet kalkulatorow: normalizacja Kontakt i Dostep. */
body[data-calculator-id="geo-sfbc"] .panel-contact .how-grid {
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  align-items: start;
  gap: var(--space-grid);
}

body[data-calculator-id="geo-sfbc"] .panel-contact .theory-card,
body[data-calculator-id="geo-sfbc"] .panel-contact .theory-card-wide {
  width: 100%;
  max-width: none;
  justify-self: stretch;
  box-sizing: border-box;
}

body[data-calculator-id="geo-sfbc"] .panel-contact .card-head {
  width: 100%;
  max-width: none;
}

body[data-calculator-id="geo-sfbc"] .panel-contact .contact-copy {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.7;
}

body[data-calculator-id="geo-sfbc"] .panel-contact .contact-intro-line {
  display: inline;
}

body[data-calculator-id="geo-sfbc"] .panel-contact .contact-link {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

body[data-calculator-id="geo-sfbc"] .access-card {
  width: min(100%, 1360px);
  max-width: 1360px;
  margin: 0 auto;
  box-sizing: border-box;
}

body[data-calculator-id="geo-sfbc"] .access-card-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 36px;
  align-items: start;
}

body[data-calculator-id="geo-sfbc"] .access-panel {
  min-width: 0;
}

body[data-calculator-id="geo-sfbc"] .access-panel .card-head {
  width: 100%;
  max-width: none;
  margin-bottom: 22px;
}

body[data-calculator-id="geo-sfbc"] .access-panel .card-head p,
body[data-calculator-id="geo-sfbc"] .access-notice,
body[data-calculator-id="geo-sfbc"] .access-response,
body[data-calculator-id="geo-sfbc"] .access-dev-link {
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.7;
}



body[data-calculator-id="geo-sfbc"] .access-form {
  display: grid;
  gap: 18px;
  max-width: 520px;
  margin-top: 26px;
}



body[data-calculator-id="geo-sfbc"] .access-form .field {
  display: grid;
  gap: 8px;
  width: 100%;
}

body[data-calculator-id="geo-sfbc"] .access-form input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-base);
  line-height: 1.3;
}



body[data-calculator-id="geo-sfbc"] .access-dev-link a {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}

body[data-calculator-id="geo-sfbc"] .access-submit {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font: inherit;
  font-size: var(--fs-base);
  font-weight: 700;
  cursor: pointer;
}

body[data-calculator-id="geo-sfbc"] .access-submit {
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--brand);
  background: var(--brand-soft);
  color: var(--text);
}



@media (max-width: 1220px) {
  body[data-calculator-id="geo-sfbc"] .access-card-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Pakiet kalkulatorow: tabela rewizji dopasowana do zawartosci. */
body[data-calculator-id="geo-sfbc"] .panel-revisions .theory-table-wrap {
  width: max-content;
  max-width: 100%;
  justify-self: start;
  overflow-x: auto;
}

body[data-calculator-id="geo-sfbc"] .panel-revisions .revisions-table {
  width: auto;
  min-width: 0;
  max-width: 100%;
  table-layout: auto;
}

body[data-calculator-id="geo-sfbc"] .panel-revisions .revisions-table th,
body[data-calculator-id="geo-sfbc"] .panel-revisions .revisions-table td {
  line-height: 1.45;
  vertical-align: top;
}

body[data-calculator-id="geo-sfbc"] .panel-revisions .revisions-table th:nth-child(1),
body[data-calculator-id="geo-sfbc"] .panel-revisions .revisions-table td:nth-child(1),
body[data-calculator-id="geo-sfbc"] .panel-revisions .revisions-table th:nth-child(2),
body[data-calculator-id="geo-sfbc"] .panel-revisions .revisions-table td:nth-child(2) {
  width: 1%;
  white-space: nowrap;
  overflow-wrap: normal;
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] .panel-revisions .revisions-table th:nth-child(3),
body[data-calculator-id="geo-sfbc"] .panel-revisions .revisions-table td:nth-child(3) {
  width: auto;
  max-width: 76ch;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}

/* Pakiet kalkulatorow: tabela schematow dopasowana do zawartosci. */
.panel-theory .theory-card-schemes .theory-table-wrap.theory-table-wrap-fit {
  width: max-content;
  max-width: 100%;
  justify-self: start;
  overflow-x: auto;
}

.panel-theory .theory-card-schemes .theory-table.theory-table-fit {
  width: max-content;
  min-width: 0;
  max-width: none;
  table-layout: auto;
}

.panel-theory .theory-card-schemes .theory-table.theory-table-fit th,
.panel-theory .theory-card-schemes .theory-table.theory-table-fit td {
  width: auto;
  overflow-wrap: normal;
  vertical-align: middle;
}

.panel-theory .theory-card-schemes .theory-table.theory-table-fit th:first-child,
.panel-theory .theory-card-schemes .theory-table.theory-table-fit td:first-child {
  width: 1%;
  min-width: 54px;
  white-space: nowrap;
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-table-wrap.theory-table-wrap-fit {
  width: min(100%, 1240px);
  max-width: 1240px;
  justify-self: center;
  margin-left: auto;
  margin-right: auto;
  overflow-x: visible;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-table.theory-table-fit {
  width: 100%;
  min-width: 0;
  max-width: 1240px;
  table-layout: fixed;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-table.theory-table-fit th,
body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-table.theory-table-fit td {
  padding: 7px 8px;
  font-size: calc(var(--fs-base) * 1.08);
  line-height: 1.38;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-table.theory-table-fit thead th {
  font-size: calc(var(--fs-base) * 1.08);
  font-weight: 700;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-scheme-col-no {
  width: 4.5%;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-scheme-col-graphic {
  width: 46%;
}

body[data-calculator-id="geo-sfbc"] .results-summary-card .result-families .family-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  max-height: none;
  overflow: visible;
}

body[data-calculator-id="geo-sfbc"] .results-summary-card .result-families .family-card {
  min-height: 0;
  align-content: start;
}

@media (max-width: 1180px) {
  body[data-calculator-id="geo-sfbc"] .results-summary-card .result-families .family-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

body[data-calculator-id="geo-sfbc"] .result-families .family-result-card .preview-name {
  font-size: var(--fs-heading);
  line-height: 1.2;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-scheme-col-moment {
  width: 21.25%;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-scheme-col-coefficients {
  width: 28.25%;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-table.theory-table-fit th:first-child,
body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-table.theory-table-fit td:first-child {
  min-width: 0;
  width: 4.5%;
  padding-left: 4px;
  padding-right: 4px;
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-scheme-cell {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  justify-items: start;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-table.theory-table-fit th:nth-child(2) {
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-table.theory-table-fit td:nth-child(2) {
  text-align: left;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-scheme-copy {
  display: grid;
  gap: 3px;
  justify-items: start;
  width: 100%;
  max-width: none;
  text-align: left;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-scheme-copy .theory-scheme-label {
  font-size: inherit;
  line-height: 1.35;
  text-align: left;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-scheme-copy-row {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  column-gap: 6px;
  align-items: baseline;
  width: 100%;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-scheme-load-line {
  max-width: 100%;
  color: var(--text);
  font-size: inherit;
  line-height: 1.25;
  text-align: left;
  white-space: nowrap;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-scheme-copy-prefix {
  color: var(--text);
  font-weight: 400;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-scheme-copy-value {
  min-width: 0;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-scheme-graphic {
  box-sizing: border-box;
  width: min(100%, 470px);
  max-width: 470px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  justify-self: start;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-scheme-graphic img,
body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-scheme-graphic svg {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-table.theory-table-fit th:nth-child(3),
body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-table.theory-table-fit td:nth-child(3) {
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-table.theory-table-fit th:nth-child(4),
body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-table.theory-table-fit td:nth-child(4) {
  text-align: center;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-table.theory-table-fit td:nth-child(3) {
  font-size: calc(var(--fs-base) * 1.08);
  overflow-wrap: normal;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-table.theory-table-fit td:nth-child(4) {
  font-size: calc(var(--fs-base) * 1.08);
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-moment-equation {
  display: inline-block;
  max-width: 100%;
  font-size: 1em;
  line-height: 1.25;
  math-style: normal;
  vertical-align: middle;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-table.theory-table-fit .mathml-equation {
  font-size: 1em;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-table.theory-table-fit mfrac > *,
body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-table.theory-table-fit msqrt,
body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-table.theory-table-fit msqrt > *,
body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-table.theory-table-fit mroot,
body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-table.theory-table-fit mroot > * {
  font-size: 1em;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-moment-text {
  display: inline-block;
  max-width: 100%;
  color: var(--text);
  font-size: inherit;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-coefficients-stack {
  width: 100%;
  font-size: inherit;
  line-height: 1.35;
  justify-items: center;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-coefficient-nowrap {
  white-space: normal;
}

body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-end-moment-text,
body[data-calculator-id="geo-sfbc"] .panel-theory .theory-card-schemes .theory-end-moment-coefficients {
  font-size: inherit;
  line-height: 1.35;
}
/* Pakiet kalkulatorow: karta schematu rowna wysokosci danych ogolnych. */
@media (min-width: 1221px) {
  body[data-calculator-id="geo-sfbc"] .panel-config .panel-grid {
    align-items: stretch;
    grid-template-rows: auto minmax(0, 1fr);
  }

  body[data-calculator-id="geo-sfbc"] .panel-config .config-choice-stack {
    display: contents;
  }

  body[data-calculator-id="geo-sfbc"] .panel-config .config-choice-stack > .card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  body[data-calculator-id="geo-sfbc"] .panel-config .config-choice-stack > .card:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    height: auto;
    min-height: 0;
  }

  body[data-calculator-id="geo-sfbc"] .panel-config .card-general {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    height: auto;
  }
}

.detail-result-content {
  --detail-summary-fixed-height: 720px;
}

.detail-summary-bottom-warning {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
  align-self: stretch;
}

.detail-summary-bottom-warning:empty {
  display: none;
}

.detail-summary-bottom-warning .input-warning {
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.result-families .card-head {
  order: 1;
}

.result-families .family-cards {
  order: 2;
}

@media (min-width: 861px) {
  body[data-calculator-id="geo-sfbc"] .panel-details .detail-result-content > #checked-profile-card.detail-summary.detail-result-layout {
    height: auto;
    min-height: var(--detail-summary-fixed-height, 720px);
  }

  body[data-calculator-id="geo-sfbc"] .panel-details .detail-result-content > #detail-chart-panel.detail-inline-chart-panel {
    height: var(--detail-chart-panel-height, var(--detail-summary-fixed-height, 720px));
    min-height: var(--detail-chart-panel-height, var(--detail-summary-fixed-height, 720px));
  }
}

/* Wzorzec mobilny: szerokie wzory i tabele przewijaja sie wewnatrz sekcji teorii. */
@media (max-width: 760px) {
  body[data-calculator-id="geo-sfbc"] .panel-theory .theory-flow,
  body[data-calculator-id="geo-sfbc"] .panel-theory .theory-section,
  body[data-calculator-id="geo-sfbc"] .panel-theory .equation-grid,
  body[data-calculator-id="geo-sfbc"] .panel-theory .equation-card,
  body[data-calculator-id="geo-sfbc"] .panel-theory .theory-formula-item {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  body[data-calculator-id="geo-sfbc"] .panel-theory .theory-flow,
  body[data-calculator-id="geo-sfbc"] .panel-theory .equation-grid {
    grid-template-columns: minmax(0, 1fr);
  }


}

@media (min-width: 1221px) {
  body[data-calculator-id="geo-sfbc"] .panel-config .panel-grid {
    align-items: start;
    grid-template-rows: auto;
  }

  body[data-calculator-id="geo-sfbc"] .panel-config .config-choice-stack {
    display: grid;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  body[data-calculator-id="geo-sfbc"] .panel-config .config-choice-stack > .card:nth-child(1),
  body[data-calculator-id="geo-sfbc"] .panel-config .config-choice-stack > .card:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
    height: auto;
  }

  body[data-calculator-id="geo-sfbc"] .panel-config .card-general {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    height: auto;
  }
}


body[data-calculator-id="geo-sfbc"] .sfbc-soil-table {
  width: max-content;
  min-width: 0;
  max-width: none;
  table-layout: auto;
}
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table th,
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table td { padding: 8px 6px; white-space: normal; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table td:nth-child(1) { width: 38px; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table td:nth-child(2) { width: 100px; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table td:nth-child(3) { width: 165px; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table td:nth-child(4) { width: 110px; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table td:nth-child(5) { width: 70px; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table td:nth-child(n+6) { width: 80px; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table input,
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table select,
body[data-calculator-id="geo-sfbc"] .sfbc-soil-catalog-trigger,
body[data-calculator-id="geo-sfbc"] .sfbc-soil-readonly,
body[data-calculator-id="geo-sfbc"] .sfbc-soil-infinite {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  font-size: var(--fs-small);
}
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table input,
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table select,
body[data-calculator-id="geo-sfbc"] .sfbc-soil-catalog-trigger {
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-plain);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-small);
}
body[data-calculator-id="geo-sfbc"] .sfbc-soil-catalog-trigger { text-align: left; cursor: pointer; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-readonly,
body[data-calculator-id="geo-sfbc"] .sfbc-soil-infinite { display: flex; align-items: center; justify-content: center; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-infinite { font-size: 1.2rem; font-weight: 700; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table :is(input,select,button):focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-settings { display: grid; gap: 12px; margin-top: 16px; container: sfbc-soil-settings / inline-size; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-drainage-note { margin: 0; color: var(--text); font-weight: 700; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-picker-row {
  display: grid;
  grid-template-columns: minmax(0, 270fr) minmax(0, 220fr) minmax(0, 220fr);
  justify-content: start;
  width: min(100%, 742px);
  min-width: 0;
  gap: 16px;
  margin-inline: 0;
}
body[data-calculator-id="geo-sfbc"] .sfbc-soil-picker-row:not(.is-formula) {
  grid-template-columns: minmax(0, 270fr) minmax(0, 220fr) minmax(0, 220fr);
  width: min(100%, 742px);
}
body[data-calculator-id="geo-sfbc"] .sfbc-soil-setting {
  display: grid;
  grid-template-rows: minmax(3.2em, auto) 30px;
  gap: 5px;
  min-width: 0;
  width: 100%;
  margin: 0;
  align-content: start;
}
body[data-calculator-id="geo-sfbc"] .sfbc-soil-setting > span:first-child {
  align-self: end;
  width: 100%;
  text-align: center;
}
body[data-calculator-id="geo-sfbc"] .sfbc-soil-setting-picker,
body[data-calculator-id="geo-sfbc"] .sfbc-soil-setting-picker .standard-text-picker-toggle {
  box-sizing: border-box;
  min-width: 0;
}
body[data-calculator-id="geo-sfbc"] .sfbc-soil-setting-picker {
  justify-self: start;
  min-width: 100%;
  max-width: 100%;
}
body[data-calculator-id="geo-sfbc"] .sfbc-soil-setting-picker .standard-text-picker-toggle {
  width: 100%;
  height: 30px;
  min-height: 30px;
  padding: 0 32px 0 12px;
  justify-content: flex-start;
  text-align: left;
}
body[data-calculator-id="geo-sfbc"] .sfbc-soil-setting-picker .standard-text-picker-display {
  min-width: 0;
  width: 100%;
  white-space: nowrap;
  text-align: left;
}
body[data-calculator-id="geo-sfbc"] #sfbc-soil-tauMaxMethod-picker-menu .standard-text-picker-option,
body[data-calculator-id="geo-sfbc"] #sfbc-soil-consolidationState-picker-menu .standard-text-picker-option,
body[data-calculator-id="geo-sfbc"] #sfbc-soil-waterAirGapPossible-picker-menu .standard-text-picker-option {
  white-space: normal;
  overflow-wrap: anywhere;
}
@container sfbc-soil-settings (max-width: 742px) {
  body[data-calculator-id="geo-sfbc"] .sfbc-soil-picker-row,
  body[data-calculator-id="geo-sfbc"] .sfbc-soil-picker-row:not(.is-formula) {
    grid-template-columns: minmax(0, 1fr);
  }
  body[data-calculator-id="geo-sfbc"] .sfbc-soil-setting-picker {
    justify-self: center;
    min-width: 0;
  }
  body[data-calculator-id="geo-sfbc"] .sfbc-soil-setting {
    grid-template-rows: minmax(3.2em, auto) auto;
  }
  body[data-calculator-id="geo-sfbc"] .sfbc-soil-setting-picker .standard-text-picker-toggle {
    height: auto;
    padding-block: 4px;
  }
  body[data-calculator-id="geo-sfbc"] .sfbc-soil-setting-picker .standard-text-picker-display {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
/* Tabela jednego gruntu ma ten sam układ kontrolek i nagłówków co profil GEO-SFSET. */
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table-layout {
  display: grid;
  width: 100%;
  max-width: 100%;
  justify-items: start;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-table-wrap {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-table {
  width: 100%;
  min-width: 883px;
  max-width: none;
  table-layout: fixed;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-table th,
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table td {
  padding: 8px 4px;
  white-space: normal;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-table :is(th, td):nth-child(1) { width: 38px; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table :is(th, td):nth-child(2) { width: 100px; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table :is(th, td):nth-child(3) { width: 165px; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table :is(th, td):nth-child(4) { width: 110px; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table :is(th, td):nth-child(5) { width: 70px; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table :is(th, td):nth-child(n+6) { width: 80px; }

body[data-calculator-id="geo-sfbc"] .sfbc-soil-table .sfbc-soil-heading {
  color: #ffffff;
  padding: 6px 5px;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.55;
  vertical-align: top;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-table .sfbc-soil-left-heading { text-align: left; }

body[data-calculator-id="geo-sfbc"] .sfbc-soil-header-symbol {
  display: inline-grid;
  gap: 1px;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  line-height: inherit;
  text-align: center;
  cursor: help;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-header-unit {
  display: block;
  font-size: var(--fs-small);
  line-height: 1.55;
  white-space: nowrap;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-header-symbol:hover,
body[data-calculator-id="geo-sfbc"] .sfbc-soil-header-symbol:focus-visible {
  color: var(--brand);
  outline: none;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-header-symbol:focus-visible { box-shadow: var(--focus-ring); }

body[data-calculator-id="geo-sfbc"] .sfbc-soil-header-tooltip {
  box-sizing: border-box;
  position: fixed;
  z-index: 1200;
  width: max-content;
  max-width: min(640px, calc(100vw - 16px));
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-plain);
  color: var(--heading);
  box-shadow: 0 10px 24px color-mix(in srgb, #000000 30%, transparent);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.35;
  white-space: pre-line;
  overflow-wrap: anywhere;
  pointer-events: none;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-header-tooltip[hidden] { display: none; }

body[data-calculator-id="geo-sfbc"] .sfbc-soil-table .sfbc-soil-row-picker,
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table .sfbc-soil-row-picker .standard-text-picker-toggle {
  box-sizing: border-box;
  width: 100% !important;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-table .sfbc-soil-row-picker .standard-text-picker-toggle {
  justify-content: flex-start;
  padding: 0 28px 0 8px;
  font-size: var(--fs-small);
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-table .sfbc-soil-row-picker .standard-text-picker-display { text-align: left; }

body[data-calculator-id="geo-sfbc"] .standard-text-picker-menu-portal {
  box-sizing: border-box;
  max-width: calc(100vw - 16px);
  z-index: 1300;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-table .sfbc-soil-catalog-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 0 8px;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-catalog-trigger::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg) translateY(-2px);
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-table .sfbc-soil-readonly,
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table .sfbc-soil-infinite {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-plain);
  color: var(--muted);
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-table .sfbc-soil-infinite { color: var(--heading); }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table .sfbc-soil-type-display {
  justify-content: flex-start;
  padding: 0 8px;
  color: var(--heading);
  font-weight: 400;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-table .sfbc-soil-number-input {
  min-width: 0;
  padding: 0 4px;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table .sfbc-soil-number-input::-webkit-inner-spin-button,
body[data-calculator-id="geo-sfbc"] .sfbc-soil-table .sfbc-soil-number-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body[data-calculator-id="geo-sfbc"] .sfbc-soil-table tbody tr:hover { background: transparent; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-picker-dialog {
  width: min(860px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-plain);
  color: var(--text);
  box-shadow: var(--shadow);
}
body[data-calculator-id="geo-sfbc"] .sfbc-soil-picker-dialog::backdrop { background: color-mix(in srgb, var(--overlay) 82%, transparent); }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-picker-dialog[open] { display: grid; grid-template-rows: auto auto minmax(0,1fr); }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-picker-header { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-picker-header p { margin: 0; color: var(--muted); font-size: var(--fs-small); font-weight: 700; text-transform: uppercase; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-picker-header h2 { margin: 4px 0 0; color: var(--text); font-size: calc(var(--fs-heading) * 0.7); text-align: left; }
body[data-calculator-id="geo-sfbc"] #sfbc-soil-picker-close { display: grid; place-items: center; width: 36px; min-width: 36px; height: 36px; padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-plain); color: var(--text); font: inherit; font-size: 24px; cursor: pointer; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-picker-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 24px; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-picker-filters button { min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-plain); color: var(--text); font: inherit; font-size: var(--fs-small); font-weight: 700; cursor: pointer; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-picker-filters button.is-active,
body[data-calculator-id="geo-sfbc"] .sfbc-soil-picker-filters button:hover,
body[data-calculator-id="geo-sfbc"] .sfbc-soil-picker-filters button:focus-visible { border-color: var(--brand); background: var(--surface-selected); outline: none; box-shadow: var(--focus-ring); }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-picker-table-wrap { display: inline-block; width: fit-content; max-width: calc(100% - 48px); min-height: 0; margin: 0 24px 24px; justify-self: start; overflow: auto; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-picker-table { width: max-content; min-width: 0; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-picker-table th,
body[data-calculator-id="geo-sfbc"] .sfbc-soil-picker-table td { white-space: nowrap; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-picker-table tbody tr { cursor: pointer; }
body[data-calculator-id="geo-sfbc"] .sfbc-soil-picker-table tbody tr:hover,
body[data-calculator-id="geo-sfbc"] .sfbc-soil-picker-table tbody tr:focus-visible,
body[data-calculator-id="geo-sfbc"] .sfbc-soil-picker-table tbody tr.is-selected { outline: none; background: var(--surface-selected); }
/* GEO-SFBC: indywidualne dopasowanie roboczego kalkulatora do layoutu MJKM. */
body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .app-shell.mjkm-layout-frame { margin-top: 0; }
.geo-sfbc-layout-ribbon-main, .geo-sfbc-layout-ribbon-actions { display: flex; align-items: center; gap: 20px; min-width: 0; }
.geo-sfbc-layout-ribbon-actions { gap: 12px; }
.geo-sfbc-layout-brand, .geo-sfbc-layout-hub {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 36px; padding: 0 12px; border: 1px solid transparent; border-radius: 8px;
  color: var(--text); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.geo-sfbc-layout-hub { color: var(--muted); font-weight: 600; }
.geo-sfbc-layout-brand:hover, .geo-sfbc-layout-hub:hover, .geo-sfbc-layout-brand:focus-visible, .geo-sfbc-layout-hub:focus-visible {
  border-color: var(--line); background: var(--panel-soft); color: var(--text); text-decoration: none;
}
.geo-sfbc-layout-brand:focus-visible, .geo-sfbc-layout-hub:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.geo-sfbc-layout-brand-mark, .geo-sfbc-layout-brand-mark img { display: block; width: 28px; height: 28px; flex: 0 0 28px; }
.geo-sfbc-layout-brand-name { display: inline-flex; align-items: baseline; gap: 4px; }
.geo-sfbc-layout-brand-name strong { font-weight: 800; }
.geo-sfbc-layout-brand-name > span { color: var(--muted); font-weight: 400; }
.geo-sfbc-layout-cube-dark, html[data-theme="dark"] .geo-sfbc-layout-cube-light { display: none !important; }
html[data-theme="dark"] .geo-sfbc-layout-cube-dark { display: block !important; }
.geo-sfbc-layout-contact {
  min-height: 36px; padding: 0 12px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer;
}
.geo-sfbc-layout-contact:hover, .geo-sfbc-layout-contact:focus-visible { border-color: var(--line); background: var(--panel-soft); color: var(--text); }
.geo-sfbc-layout-contact:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.geo-sfbc-layout-theme .str-theme-toggle { box-sizing: border-box; width: 32px; min-width: 32px; height: 32px; min-height: 32px; padding: 4px; }
.geo-sfbc-layout-theme svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.geo-sfbc-layout-theme-moon, html[data-theme="light"] .geo-sfbc-layout-theme-sun { display: none; }
html[data-theme="light"] .geo-sfbc-layout-theme-moon { display: block; }
.geo-sfbc-layout-header-body {
  margin-bottom: 16px; padding: 0 24px 14px; border-inline: 1px solid var(--line);
  border-bottom: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: var(--surface-plain);
}
.geo-sfbc-layout-titlebar.topbar { display: block; margin: 0; padding: 24px 0 16px; border: 0; }
.geo-sfbc-layout-titlebar .brand-block > h1 { margin: 0; padding: 0; font-size: 24px; white-space: normal; }
.geo-sfbc-layout-info-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.geo-sfbc-layout-info-content > :is(.panel-how, .panel-theory) > :is(.how-grid, .theory-grid) > .card {
  width: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
.geo-sfbc-layout-info-content > :is(.panel-how, .panel-theory) > :is(.how-grid, .theory-grid) > .card + .card {
  margin-top: var(--space-grid); padding-top: var(--space-grid); border-top: 1px solid var(--line);
}
.geo-sfbc-layout-info-content .panel-theory .theory-grid > .card:first-child > .card-head,
.geo-sfbc-layout-info-content .panel-revisions .card-head,
.geo-sfbc-layout-info-content .panel-contact .card-head > h2 { display: none; }
.geo-sfbc-layout-info-content .panel-how .how-step { border-top: 0; }
body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .panel-config > .panel-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.34fr); grid-template-rows: auto; align-items: start;
}
.geo-sfbc-layout-input-group { display: grid; gap: var(--space-grid); min-width: 0; }
.geo-sfbc-layout-input-group > .card-head { margin-bottom: 0; }
@container mjkm-input-panel (min-width: 841px) {
  body[data-calculator-id="geo-sfbc"] .panel-config .mjkm-input-group.mjkm-input-group > .mjkm-input-columns {
    grid-template-rows: auto auto;
    align-items: start;
  }
  body[data-calculator-id="geo-sfbc"] .panel-config .mjkm-input-columns > .config-choice-stack {
    display: contents;
  }
  body[data-calculator-id="geo-sfbc"] .panel-config .mjkm-input-columns > .config-choice-stack > .card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
  body[data-calculator-id="geo-sfbc"] .panel-config .mjkm-input-columns > .config-choice-stack > .card:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }
  body[data-calculator-id="geo-sfbc"] .panel-config .mjkm-input-columns > .sfbc-right-input-stack {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }
}
body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .panel-config .geo-sfbc-layout-input-group > .config-choice-stack,
body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .panel-config .geo-sfbc-layout-input-group > .card-general { grid-column: auto; grid-row: auto; width: 100%; min-width: 0; height: auto; }
body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .panel-config .geo-sfbc-layout-input-group > .sfbc-soil-card { grid-column: auto; margin-top: 0; }
body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .card-general .general-layout { grid-template-columns: minmax(0, 1fr); }
body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .card-general .general-form-column { width: 100%; max-width: 100%; height: auto; padding: 0; border: 0; border-radius: 0; background: transparent; }
body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .panel-config > .panel-grid > .preview-card {
  width: 100%; max-width: 100%; height: auto; min-height: 0; grid-template-rows: auto auto auto auto; align-content: start; align-self: start;
}
.geo-sfbc-layout-result-controls { margin-top: var(--space-grid); overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); }
.geo-sfbc-layout-result-intro { margin: 0; padding: var(--space-row) var(--space-grid); color: var(--muted); line-height: 1.4; }
body[data-layout="results-below-input"] .panel-results .results-summary-grid { display: block; }
body[data-layout="results-below-input"] .geo-sfbc-layout-results-card { width: 100%; min-width: 0; }
.geo-sfbc-layout-section-head { margin-bottom: var(--space-grid); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
body[data-layout="results-below-input"] .panel-results .results-family-card,
body[data-layout="results-below-input"] .panel-results .results-table-grid > .table-card { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body[data-layout="results-below-input"] .panel-results .results-table-sections { margin-top: var(--space-grid); padding-top: var(--space-grid); border-top: 1px solid var(--line); }
body[data-layout="results-below-input"] .panel-results .results-table-grid { grid-template-columns: minmax(0, 1fr); min-width: 0; }
body[data-layout="results-below-input"] .panel-results .results-table-grid > .table-card + .table-card { margin-top: var(--space-grid); padding-top: var(--space-grid); border-top: 1px solid var(--line); }
body[data-layout="results-below-input"] .panel-details .detail-result-content { display: block; }
body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .panel-details .detail-result-content > #checked-profile-card.detail-summary { height: auto; min-height: 0; }
body[data-layout="results-below-input"] .panel-details .detail-top-stack { margin-bottom: 0; }
body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .panel-chart > #detail-chart-panel { width: 100%; height: 720px; min-height: 620px; }
body[data-layout="results-below-input"] .layout { overflow-anchor: none; }
@media (max-width: 1220px) {
  body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .panel-config > .panel-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .geo-sfbc-layout-header-body { padding-inline: 14px; }
  .geo-sfbc-layout-ribbon-main, .geo-sfbc-layout-ribbon-actions { flex-wrap: wrap; gap: 8px 12px; }
body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .panel-chart > #detail-chart-panel { height: auto; }
}
/* The GEO-SFBC range controls are positioned from the actual SVG bounds in JS. */
@media (min-width: 861px) {
  body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .panel-chart > #detail-chart-panel {
    height: auto;
    min-height: 0;
    grid-template-rows: auto auto;
  }
  body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .panel-chart #detail-chart-heading,
  body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .panel-chart #detail-chart-range,
  body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .panel-chart #detail-chart {
    width: min(100%, 1100px);
    justify-self: center;
  }
  body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .panel-chart #detail-chart-range,
  body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .panel-chart #detail-chart-panel #detail-chart {
    height: auto;
    min-height: 0;
    aspect-ratio: 760 / var(--sfbc-chart-svg-height, 600);
  }
}

@media (min-width: 861px) {
  body[data-calculator-id="geo-sfbc"] .panel-details .detail-result-content > #detail-chart-panel.detail-inline-chart-panel {
    height: auto;
    min-height: calc(var(--detail-chart-panel-height, var(--detail-summary-fixed-height, 720px)) + var(--sfbc-chart-note-extra, 0px));
    grid-template-rows: auto auto;
  }

  body[data-calculator-id="geo-sfbc"] #detail-chart-panel #detail-chart-range,
  body[data-calculator-id="geo-sfbc"] #detail-chart-panel #detail-chart {
    height: auto;
    min-height: 0;
    aspect-ratio: 760 / var(--sfbc-chart-svg-height, 600);
  }
}

@media (max-width: 860px) {
  body[data-calculator-id="geo-sfbc"] #detail-chart-panel {
    height: auto;
    min-height: 0;
    grid-template-rows: auto auto;
  }

  body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .panel-chart > #detail-chart-panel {
    height: auto;
    min-height: calc(720px + var(--sfbc-chart-note-extra, 0px));
  }

  body[data-calculator-id="geo-sfbc"] #detail-chart-panel #detail-chart-range,
  body[data-calculator-id="geo-sfbc"] #detail-chart-panel #detail-chart {
    height: auto;
    min-height: var(--sfbc-chart-mobile-min-height, 350px);
    aspect-ratio: 760 / var(--sfbc-chart-svg-height, 600);
  }
}

@media (max-width: 760px) {
  body[data-calculator-id="geo-sfbc"] #detail-chart-panel {
    grid-template-rows: auto auto auto;
  }

  body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .panel-chart > #detail-chart-panel {
    min-height: calc(620px + var(--sfbc-chart-note-extra, 0px));
  }
}

/* BATCH 20261004_MJKM_RESULT_CARDS_TABLES_INPUTS_01 */
body[data-calculator-id="geo-sfbc"] .panel-results :is(.results-table, .selection-results-table, .result-parameter-table) tbody :is(th, td, strong) {
  font-weight: 400 !important;
}
body[data-calculator-id="geo-sfbc"] .panel-config .card-general .general-form-head {
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
}
body[data-calculator-id="geo-sfbc"] .panel-config .card-general .general-form-column,
body[data-calculator-id="geo-sfbc"] .panel-config .card-general .field {
  justify-items: center;
  text-align: center;
}
body[data-calculator-id="geo-sfbc"] .panel-config .card-general .field > :is(input, select, textarea, .number-stepper, .profile-picker) {
  margin-inline: auto;
}

/* GEO-SFBC: stopa ma pary L–B i t–hₛ; ława i płyta mają jedną kolumnę. */
body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .panel-config .card-general {
  grid-template-rows: auto;
}
body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .panel-config .card-general .general-layout {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
}
body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .panel-config .card-general .general-form-column .input-grid-general {
  box-sizing: border-box;
  width: min(100%, 560px);
  max-width: none;
  margin-inline: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  justify-items: stretch;
}
body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"].sfbc-graphic-only .panel-config .card-general .general-form-column .input-grid-general {
  width: min(100%, 280px);
  grid-template-columns: minmax(0, 1fr);
}
body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .panel-config .card-general .input-grid-general > .field {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}
body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .panel-config .card-general .input-grid-general > .field > span:first-child {
  white-space: normal;
}
body[data-calculator-id="geo-sfbc"] .panel-config .card-general .sfbc-empty-field-note {
  visibility: hidden;
}
body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .panel-config .card-general .input-grid-general > :is(
  [data-field-wrap="foundationDepthM"], [data-field-wrap="contactType"]
) {
  grid-column: 1 / -1;
  width: min(100%, 280px);
  justify-self: center;
}
body[data-calculator-id="geo-sfbc"][data-layout="results-below-input"] .panel-config .card-general .sfbc-contact-field .standard-text-picker {
  --standard-text-picker-width: 220px;
}
body[data-calculator-id="geo-sfbc"] .preview-card .preview-metrics-table :is(th, td):first-child { width: 45%; white-space: normal; }
body[data-calculator-id="geo-sfbc"] .preview-card .preview-metrics-table :is(th, td):last-child { width: 55%; }
body[data-calculator-id="geo-sfbc"] .sfbc-governing-condition { margin: 8px 0; text-align: center; font-size: var(--fs-small); }
body[data-calculator-id="geo-sfbc"] .sfbc-summary-group th { padding-top: 12px; text-align: left; color: var(--muted); }
