.bsc {
  --bsc-radius: 20px;
  display: block;
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px var(--gutter) 0;
  color: var(--ink);
}

.bsc-intro {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.bsc-title {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  margin-bottom: 16px;
}

.bsc-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 auto 14px;
  max-width: 640px;
}

.bsc-byline {
  font-size: 14px;
  color: var(--muted);
}

.bsc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.bsc-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.bsc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--bsc-radius);
  padding: 28px;
}

.bsc-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.bsc-card-titles {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.bsc-step {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--coral-tint);
  color: var(--coral-text);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bsc .bsc-card-title {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin: 3px 0 2px;
}

.bsc-card-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.bsc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.bsc-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}



.bsc-input-wrap {
  position: relative;
  display: block;
}

.bsc-input {
  width: 100%;
  min-height: 46px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  padding: 10px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -moz-appearance: textfield;
  appearance: none;
}

select.bsc-input {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111827' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.bsc-input-wrap .bsc-input {
  padding-right: 44px;
}

.bsc-input::-webkit-outer-spin-button,
.bsc-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bsc-input:hover {
  border-color: #d1d5db;
}

.bsc-input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 118, 117, 0.22);
}

.bsc-input[aria-invalid="true"] {
  border-color: #dc2626;
}

.bsc-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
}

.bsc-hint {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

.bsc-error {
  font-size: 12.5px;
  color: #b91c1c;
}

.bsc-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.bsc-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.bsc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bsc-chip {
  min-height: 42px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.bsc-chip:hover {
  border-color: var(--coral);
}

.bsc-chip[aria-pressed="true"] {
  background: var(--coral-text);
  border-color: var(--coral-text);
  color: var(--white);
}

.bsc-switch {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
}

.bsc-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.bsc-switch-ui {
  flex: 0 0 42px;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  margin-top: 2px;
  transition: background 0.2s ease;
}

.bsc-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.2);
  transition: transform 0.2s ease;
}

.bsc-switch input:checked + .bsc-switch-ui {
  background: var(--coral-text);
}

.bsc-switch input:checked + .bsc-switch-ui::after {
  transform: translateX(18px);
}

.bsc-switch input:focus-visible + .bsc-switch-ui {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.bsc-switch-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
}

.bsc-switch-text span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.bsc-summary {
  position: sticky;
  top: 96px;
}

.bsc-summary-inner {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--bsc-radius);
  padding: 28px 24px 22px;
}

.bsc .bsc-summary-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
}

.bsc-empty p {
  color: var(--footer-text);
  font-size: 15px;
  line-height: 1.55;
  padding: 18px 0 24px;
}

.bsc-hero {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.bsc-hero-num {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  color: var(--white);
}

.bsc-hero-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--footer-text);
}

.bsc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 16px;
}

.bsc-stats div {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
}

.bsc-stats dt {
  font-size: 12px;
  color: var(--footer-text);
}

.bsc-stats dd {
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  margin: 2px 0 0;
}

.bsc-small {
  font-size: 12px;
  line-height: 1.5;
  color: #9ca3af;
  margin-top: 14px;
}

.bsc-article {
  max-width: 820px;
  margin: 56px auto 0;
}

.bsc-article h2:first-child {
  margin-top: 0;
}

.bsc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .bsc-layout {
    grid-template-columns: 1fr;
  }
  .bsc-summary {
    position: static;
  }
}

@media (max-width: 720px) {
  .bsc {
    padding-top: 32px;
  }
  .bsc-card {
    padding: 20px 16px;
  }
  .bsc-grid-2 {
    grid-template-columns: 1fr;
  }
  .bsc-hero-num {
    font-size: 52px;
  }
}

@media print {
  body {
    background: #fff;
  }
  .bsc-layout {
    display: block;
  }
  .bsc-summary {
    position: static;
  }
  .bsc-summary-inner {
    background: #fff;
    color: #111827;
    border: 1px solid #e5e7eb;
  }
  .bsc-stats div {
    background: #f9fafb;
  }
}

.bsc-segment {
  display: inline-flex;
  background: var(--placeholder);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 2px;
}

.bsc-segment-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  min-height: 36px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.bsc-segment-btn[aria-checked="true"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.12);
}

.bsc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bsc-grid-2.bsc-gap-top {
  margin-top: 18px;
}

.bsc-span-2 {
  grid-column: span 2;
}

.bsc-hint-gap {
  display: block;
  margin-top: 10px;
}







.bsc-verdict {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 16px;
}

.bsc-verdict::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.bsc-verdict.is-good {
  color: #86efac;
  background: rgba(134, 239, 172, 0.12);
}

.bsc-verdict.is-warn {
  color: #fde68a;
  background: rgba(253, 230, 138, 0.12);
}

.bsc-verdict.is-bad {
  color: #fca5a5;
  background: rgba(252, 165, 165, 0.14);
}



.bsc-diagram-card {
  margin-top: 28px;
}

.bsc-diagram {
  margin: 0;
  border-radius: 16px;
  background: #fbf7f4;
  border: 1px solid var(--border);
  overflow: hidden;
}

.bsc-diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .bsc-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bsc-span-2 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 400px) {
  .bsc-grid-3,
  .bsc-grid-4 {
    grid-template-columns: 1fr;
  }
}

.bsc-chart-card {
  margin-bottom: 28px;
}

.bsc-chart-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 18px;
}

.bsc-regions {
  flex-wrap: wrap;
}

.bsc-segment-btn:focus-visible,
.bsc-chip:focus-visible,
.bsc-link-btn:focus-visible,
.bsc-table-wrap:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.bsc-segment-btn:hover {
  color: var(--ink);
}

.bsc-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}

.bsc-check[hidden] {
  display: none;
}

.bsc-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--coral-text);
  cursor: pointer;
}

.bsc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}

.bsc-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 15px;
}

.bsc-table th,
.bsc-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.bsc-table thead th {
  background: var(--soft);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.bsc-table tbody tr:last-child th,
.bsc-table tbody tr:last-child td {
  border-bottom: 0;
}

.bsc-table tbody tr {
  transition: background 0.15s ease;
}

.bsc-table tbody tr:hover {
  background: #fdf8f8;
}

.bsc-table tbody tr.is-picked {
  background: var(--coral-tint);
}

.bsc-table tbody th {
  font-weight: 600;
}

.bsc-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  min-height: 40px;
}

.bsc-pick input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--coral-text);
  cursor: pointer;
}

.bsc-pick-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.bsc-size-name {
  font-weight: 700;
}

.bsc-size-aka {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.bsc-dim {
  display: block;
  font-weight: 700;
  white-space: nowrap;
}

.bsc-dim-alt {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.bsc-note {
  color: var(--muted);
  font-size: 14px;
  min-width: 150px;
}

.bsc-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  padding: 4px 10px;
  border-radius: 8px;
}

.bsc-tag.is-good {
  background: #ecfdf3;
  color: #166534;
}

.bsc-tag.is-warn {
  background: #fff7e6;
  color: #92400e;
}

.bsc-tag.is-bad {
  background: #fef2f2;
  color: #b91c1c;
}

.bsc-chips[aria-label] {
  margin-top: 0;
}

.bsc-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.bsc-link-btn {
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  min-height: 40px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.bsc-link-btn:hover {
  border-color: var(--coral);
}

.bsc-error {
  margin-top: 10px;
}

.bsc-error[hidden],
.bsc-field[hidden],
#bsc-height-met[hidden],
.bsc-height[hidden] {
  display: none;
}

.bsc-height {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bsc-pick-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 12px;
}

.bsc-stats .bsc-stat-wide {
  grid-column: 1 / -1;
}

.bsc-fits,
.bsc-tip {
  font-size: 14px;
  line-height: 1.55;
  color: var(--footer-text);
}

.bsc-fits strong {
  color: var(--white);
}

.bsc-tip {
  border-top: 1px solid var(--footer-border);
  padding-top: 14px;
  margin-top: 12px;
}

.bsc-tip:empty {
  display: none;
}

.bsc-cmp-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  margin-top: 18px;
  align-items: start;
}

.bsc-cmp-stats {
  display: grid;
  gap: 10px;
}

.bsc-cmp-stats div {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
}

.bsc-cmp-stats dt {
  font-size: 12.5px;
  color: var(--muted);
}

.bsc-cmp-stats dd {
  font-size: 17px;
  font-weight: 700;
  margin: 2px 0 0;
}

.bsc-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bsc-table-scroll table {
  min-width: 520px;
}

@media (max-width: 900px) {
  .bsc-cmp-body {
    grid-template-columns: 1fr;
  }
  .bsc-cmp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .bsc-article.content-card {
    padding: 28px 18px;
  }
  .bsc-segment-btn {
    padding: 8px 12px;
  }
  .bsc-chart-controls {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bsc *,
  .bsc *::after {
    transition: none !important;
  }
}

.bsc-diagram-card .bsc-diagram svg {
  max-height: 620px;
}

.bsc ::selection {
  background: var(--coral-tint-2);
  color: var(--ink);
}

.bsc-dim,
.bsc-dim-alt,
.bsc-stats dd,
.bsc-cmp-stats dd,
.bsc-hero-num,
.bsc-tag,
.bsc-input {
  font-variant-numeric: tabular-nums;
}

.bsc-article p,
.bsc-article li,
.bsc-lead,
.bsc-card-sub,
.bsc-tip,
.bsc-fits {
  text-wrap: pretty;
}

.bsc-article h2,
.bsc-article h3,
.bsc-title {
  text-wrap: balance;
}

@media (max-width: 640px) {
  .bsc-table {
    min-width: 0;
  }
  .bsc-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .bsc-table,
  .bsc-table tbody {
    display: block;
  }
  .bsc-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
  }
  .bsc-table tbody tr:last-child {
    border-bottom: 0;
  }
  .bsc-table tbody th,
  .bsc-table tbody td {
    display: block;
    padding: 0;
    border: 0;
  }
  .bsc-table tbody td:nth-child(2) {
    text-align: right;
  }
  .bsc-table tbody td.bsc-note {
    grid-column: 1 / -1;
    min-width: 0;
    padding-left: 30px;
  }
  .bsc-table tbody td:nth-child(4),
  .bsc-table tbody td:nth-child(5) {
    padding-left: 30px;
    grid-column: 1 / -1;
  }
  .bsc-table tbody td:nth-child(4) {
    grid-column: 1 / 2;
  }
  .bsc-table tbody td:nth-child(5) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .bsc-table tbody td[data-label]::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 68px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
  }
}
