/* The page around this uses large type; the report sets its own data size
   (matching the 14-15px body text in the site's cards) so tables and
   label/value rows stay readable. */
.bsc-shell { max-width: 1120px; font-size: 15px; line-height: 1.55; }
.bsc-shell .bs-card { padding: 22px 24px; box-sizing: border-box; margin-top: 16px; }
.bsc-shell .bs-card:first-child { margin-top: 0; }
.bsc-shell .bs-card h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.25; }
.bsc-shell p { margin: 0 0 10px; }

/* Forms */
.bsc-shell .bsc-field { margin-bottom: 14px; }
.bsc-shell .bsc-field > label, .bsc-label { display: block; margin: 0 0 6px; font-weight: 700; }
.bsc-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.bsc-row input { flex: 1 1 260px; }
.bsc-shell input[type=text], .bsc-shell input[type=email] { width: 100%; max-width: 560px; padding: 10px 12px; box-sizing: border-box; font-size: 16px; }
.bsc-hint { color: var(--bs-muted, #9aa3b2); font-size: 14px; margin: 8px 0 0; }
.bsc-check { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; }
.bsc-check input { margin-top: 5px; }
.bsc-error { border-left: 4px solid #d6454a; }
.bsc-done { border-left: 4px solid #2ea36b; }
.bsc-busy { opacity: 0.6; pointer-events: none; }
.bsc-link { background: none; border: 0; color: var(--bs-muted, #9aa3b2); text-decoration: underline; cursor: pointer; font: inherit; margin-left: 12px; }
.bsc-steps { line-height: 1.7; }
.bsc-offer { border-left: 4px solid var(--bs-green, #17d13c); }

/* Report */
.bsc-results { margin-top: 28px; }
.bsc-results-heading { display: block; margin: 0 0 12px; font-size: 22px; line-height: 1.3; overflow-wrap: anywhere; }
.bsc-muted { color: var(--bs-muted, #9aa3b2); }
.bsc-reused { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 14px; padding: 10px 14px; border-radius: 8px; background: rgba(74,144,194,.12); border-left: 3px solid #4a90c2; font-size: 14px; }
.bsc-reused[hidden] { display: none; }
.bsc-recheck[disabled] { opacity: 0.5; cursor: not-allowed; }
.bsc-ok { color: #17d13c; }
.bsc-bad { color: #ff6b72; }
.bsc-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; overflow-wrap: anywhere; }
.bsc-note { display: block; font-size: 13px; color: var(--bs-muted, #9aa3b2); }

.bsc-grade-card { display: flex; gap: 24px; align-items: flex-start; }
.bsc-grade { flex: none; width: 104px; height: 104px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid var(--bs-border, #26343f); }
.bsc-grade-letter { font-size: 52px; font-weight: 700; line-height: 1; }
.bsc-grade-score { font-size: 13px; color: var(--bs-muted, #9aa3b2); margin-top: 4px; }
.bsc-grade[data-grade="A"] { border-color: #17d13c; color: #17d13c; }
.bsc-grade[data-grade="B"] { border-color: #8bd13c; color: #8bd13c; }
.bsc-grade[data-grade="C"] { border-color: #e0b52d; color: #e0b52d; }
.bsc-grade[data-grade="D"] { border-color: #f08a24; color: #f08a24; }
.bsc-grade[data-grade="F"] { border-color: #ff232d; color: #ff232d; }
.bsc-grade-body { flex: 1 1 auto; min-width: 0; }
.bsc-grade-body h3 { margin: 0 0 2px; font-size: 19px; }
.bsc-top { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }

.bsc-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.bsc-card-head h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.bsc-count { flex: none; font-size: 13px; font-weight: 700; }
.bsc-count.sev-critical, .bsc-count.sev-high { color: #ff6b72; }
.bsc-count.sev-medium { color: #f5a25a; }
.bsc-count.sev-low { color: #e8c75c; }
.bsc-count.sev-ok { color: #17d13c; }

/* Inside a section: facts on the left, issues on the right; full-width
   extras (tables, expandable raw data) below. Stacks on narrow screens. */
.bsc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 36px; align-items: start; }
.bsc-body > * { grid-column: 1; }
.bsc-body > .bsc-findings, .bsc-body > .bsc-clean { grid-column: 2; grid-row: 1 / span 12; margin-top: 0; }
.bsc-body > .bsc-more, .bsc-body > .bsc-table-wrap, .bsc-body > .bsc-wide { grid-column: 1 / -1; }
.bsc-card[data-card="components"] .bsc-body { display: block; }
.bsc-card[data-card="components"] .bsc-findings { margin-top: 16px; }
@media (max-width: 900px) {
    .bsc-body { display: block; }
    .bsc-body > .bsc-findings, .bsc-body > .bsc-clean { margin-top: 14px; }
}

/* Label/value rows: the label column is capped so values never get squeezed. */
.bsc-facts { margin: 0 0 12px; display: grid; grid-template-columns: minmax(110px, 180px) minmax(0, 1fr); gap: 7px 16px; }
.bsc-facts dt { color: var(--bs-muted, #9aa3b2); }
.bsc-facts dd { margin: 0; min-width: 0; overflow-wrap: break-word; }
@media (max-width: 480px) {
    .bsc-facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .bsc-facts dt { font-size: 13px; margin-top: 8px; }
}

.bsc-checks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.bsc-checks li { min-width: 0; }
.bsc-checks span.bsc-muted { display: block; font-size: 14px; }
.bsc-header-name { font-weight: 600; margin-right: 10px; }
.bsc-set, .bsc-unset { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; vertical-align: 1px; }
.bsc-set { background: rgba(23,209,60,.15); color: #5fe07a; }
.bsc-unset { background: rgba(255,255,255,0.07); color: var(--bs-muted, #9aa3b2); }

.bsc-findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bsc-findings li { padding: 11px 13px; border-radius: 8px; background: rgba(255,255,255,0.03); border-left: 3px solid var(--bs-border, #26343f); }
.bsc-findings li.sev-critical, .bsc-findings li.sev-high { border-left-color: #ff232d; }
.bsc-findings li.sev-medium { border-left-color: #f08a24; }
.bsc-findings li.sev-low { border-left-color: #e0b52d; }
.bsc-findings li.sev-info { border-left-color: #4a90c2; }
.bsc-findings strong { display: block; font-size: 15px; line-height: 1.4; }
.bsc-findings p { margin: 5px 0 0; font-size: 14px; }
.bsc-fix { color: var(--bs-muted, #9aa3b2); }
.bsc-product { display: inline-block; margin-top: 5px; font-size: 13px; color: var(--bs-green, #17d13c); }
.bsc-clean { margin: 0; }
.bsc-sev { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; margin-right: 7px; vertical-align: 2px; background: rgba(255,255,255,0.08); }
.bsc-sev.sev-critical, .bsc-sev.sev-high { background: rgba(255,35,45,.18); color: #ff6b72; }
.bsc-sev.sev-medium { background: rgba(240,138,36,.18); color: #f5a25a; }
.bsc-sev.sev-low { background: rgba(224,181,45,.18); color: #e8c75c; }
.bsc-sev.sev-info { background: rgba(74,144,194,.18); color: #7fb4dc; }

.bsc-checking { color: var(--bs-muted, #9aa3b2); margin: 0; }
.bsc-spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: bsc-spin .8s linear infinite; vertical-align: -1px; margin-right: 6px; }
@keyframes bsc-spin { to { transform: rotate(360deg); } }

.bsc-table-wrap { overflow-x: auto; }
.bsc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bsc-table th { text-align: left; font-size: 13px; color: var(--bs-muted, #9aa3b2); font-weight: 600; padding: 6px 10px 6px 0; border-bottom: 1px solid rgba(255,255,255,0.12); white-space: nowrap; }
.bsc-table td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.bsc-status { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: rgba(255,255,255,0.08); white-space: nowrap; }
.bsc-status--abandoned, .bsc-status--homeless, .bsc-status--closed { background: rgba(255,35,45,.18); color: #ff6b72; }
.bsc-status--active { background: rgba(23,209,60,.15); color: #5fe07a; }

.bsc-more { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.06); }
.bsc-more summary { cursor: pointer; color: var(--bs-muted, #9aa3b2); font-size: 14px; }
.bsc-more summary:hover { color: inherit; }
.bsc-pre { margin: 8px 0 0; max-height: 380px; overflow: auto; padding: 12px 14px; border-radius: 8px; background: rgba(0,0,0,0.25); font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.bsc-kv { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
.bsc-kv td { padding: 5px 12px 5px 0; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,0.06); overflow-wrap: anywhere; }
.bsc-kv td:first-child { white-space: nowrap; color: var(--bs-muted, #9aa3b2); width: 1%; }

@media (max-width: 650px) {
    .bsc-shell .bs-card { padding: 16px; }
    .bsc-grade-card { flex-direction: column; gap: 14px; }
    .bsc-grade { width: 84px; height: 84px; }
    .bsc-grade-letter { font-size: 42px; }
}
