/* BusinessTemperature — a deep teal with a warm reading. The CSP allows no inline styles: everything visual is a class,
   and charts are SVG whose sizes are attributes. */
:root {
    --bt-brand: #0E6E73;
    --bt-brand-dark: #0A5156;
    --bt-brand-2: #1B9AA0;
    --bt-warm: #F2A541;
    --bt-hot: #D9534F;
    --bt-soft: #E6F3F3;
    --bt-warm-soft: #FFF4E3;
    --bt-ink: #14262A;
}
[data-bs-theme="dark"] {
    --bt-soft: #0f2a2c;
    --bt-warm-soft: #2d2412;
    --bt-ink: #e9f1f1;
}
body { background: var(--bs-tertiary-bg); }
.bt-nav { background: var(--bs-body-bg); }
.bt-logo { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, var(--bt-brand), var(--bt-brand-2)); color: #fff; }
.bt-logo .material-icons { font-size: 20px; }
.btn-brand { --bs-btn-bg: var(--bt-brand); --bs-btn-border-color: var(--bt-brand); --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--bt-brand-dark); --bs-btn-hover-border-color: var(--bt-brand-dark); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--bt-brand-dark); --bs-btn-active-color: #fff; --bs-btn-disabled-bg: var(--bt-brand); --bs-btn-disabled-border-color: var(--bt-brand); }
.btn-outline-brand { --bs-btn-color: var(--bt-brand); --bs-btn-border-color: var(--bt-brand); --bs-btn-hover-bg: var(--bt-brand);
    --bs-btn-hover-border-color: var(--bt-brand); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--bt-brand-dark); --bs-btn-active-color: #fff; }
[data-bs-theme="dark"] .btn-outline-brand { --bs-btn-color: #5CC6C9; --bs-btn-border-color: #5CC6C9; }
.text-brand { color: var(--bt-brand) !important; }
[data-bs-theme="dark"] .text-brand { color: #5CC6C9 !important; }
.text-warm { color: #b46d0c !important; }
.bg-soft { background: var(--bt-soft) !important; }
.bg-warm-soft { background: var(--bt-warm-soft) !important; }
.card { border: 0; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04); border-radius: 14px; }
.card-header { background: transparent; border-bottom-color: var(--bs-border-color-translucent); }
.bt-hero { background: linear-gradient(135deg, var(--bt-brand-dark), var(--bt-brand) 55%, var(--bt-brand-2)); color: #fff; border-radius: 18px; position: relative; overflow: hidden; }
.bt-hero .lead { opacity: .93; }
.bt-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(242,165,65,.55), rgba(242,165,65,0) 70%); }
.bt-kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--bs-secondary-color); }
.bt-stat .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--bs-secondary-color); }
.bt-stat .value { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.bt-empty { padding: 3rem 1rem; text-align: center; color: var(--bs-secondary-color); }
.bt-empty .material-icons { font-size: 48px; color: var(--bt-brand-2); }
.bt-link-box { word-break: break-all; font-family: var(--bs-font-monospace); background: var(--bt-soft); padding: .75rem; border-radius: 10px; }
.table > :not(caption) > * > * { vertical-align: middle; }
.bt-badge { font-weight: 500; }
.bt-status-Draft { background: var(--bs-secondary-bg); color: var(--bs-body-color); }
.bt-status-Open { background: #d1f0e4; color: #0d5c3d; }
.bt-status-Closed { background: #dde3ea; color: #33404d; }
[data-bs-theme="dark"] .bt-status-Open { background: #12392b; color: #9fe3c5; }
[data-bs-theme="dark"] .bt-status-Closed { background: #2a323b; color: #cbd5df; }
.bt-example { background: var(--bt-warm-soft); color: #8a4f00; }

/* The assessment's step rail */
.bt-steps { list-style: none; padding: 0; margin: 0; }
.bt-steps a, .bt-steps span.bt-step { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: 10px; color: inherit; text-decoration: none; }
.bt-steps a:hover { background: var(--bt-soft); }
.bt-steps a.active { background: var(--bt-soft); font-weight: 600; }
.bt-steps .material-icons { font-size: 20px; color: var(--bs-secondary-color); }
.bt-steps .done .material-icons { color: #198754; }
.bt-steps .todo .material-icons { color: var(--bt-warm); }

/* Bars and gauges — SVG, sized by attributes */
.bt-bar { width: 100%; height: 10px; display: block; }
.bt-bar-track { fill: var(--bs-secondary-bg); }
.bt-bar-fill { fill: var(--bt-brand); }
.bt-bar-fill.warm { fill: var(--bt-warm); }
.bt-bar-fill.na { fill: #9aa5ad; }
.bt-index { display: inline-flex; align-items: center; justify-content: center; min-width: 3.2rem; padding: .2rem .5rem; border-radius: 8px; font-weight: 700; }
.bt-band-Low { background: #fde2e1; color: #9b1c1c; }
.bt-band-Middle { background: #fff1d6; color: #8a4f00; }
.bt-band-High { background: #d8f1ea; color: #0d5c3d; }
.bt-band-None { background: var(--bs-secondary-bg); color: var(--bs-secondary-color); font-weight: 500; font-size: .8rem; }
[data-bs-theme="dark"] .bt-band-Low { background: #4a1d1d; color: #ffb4b0; }
[data-bs-theme="dark"] .bt-band-Middle { background: #4a3510; color: #ffd38a; }
[data-bs-theme="dark"] .bt-band-High { background: #12392b; color: #9fe3c5; }
.bt-thermo { width: 100%; height: 14px; display: block; }

/* The survey */
.bt-survey { max-width: 760px; margin: 0 auto; }
.bt-q { scroll-margin-top: 1rem; }
.bt-q .bt-q-num { font-size: .8rem; color: var(--bs-secondary-color); font-weight: 600; letter-spacing: .03em; }
.bt-q .bt-period { font-size: .85rem; color: var(--bt-brand); font-weight: 500; }
[data-bs-theme="dark"] .bt-q .bt-period { color: #5CC6C9; }
.bt-opt { display: flex; align-items: flex-start; gap: .65rem; padding: .7rem .85rem; border: 1px solid var(--bs-border-color); border-radius: 12px; margin-bottom: .45rem;
    cursor: pointer; background: var(--bs-body-bg); }
.bt-opt:hover { border-color: var(--bt-brand-2); }
.bt-opt input { margin-top: .2rem; flex: 0 0 auto; }
.bt-opt.special { border-style: dashed; }
.bt-opt.checked { border-color: var(--bt-brand); background: var(--bt-soft); }
.bt-opt.disabled { opacity: .5; }
.bt-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; margin-bottom: .45rem; }
@media (max-width: 575px) { .bt-scale { grid-template-columns: 1fr; } }
.bt-scale .bt-opt { margin-bottom: 0; flex-direction: column; align-items: center; text-align: center; font-size: .9rem; }
@media (max-width: 575px) { .bt-scale .bt-opt { flex-direction: row; text-align: left; } }
.bt-progress { height: 8px; }
.bt-sticky { position: sticky; top: 0; z-index: 10; background: var(--bs-tertiary-bg); padding: .5rem 0; }
.js .bt-paged .bt-q { display: none; }
.js .bt-paged .bt-q.current { display: block; }
.bt-evidence { border-left: 3px solid var(--bt-warm); padding-left: .85rem; }
.bt-privacy { background: var(--bt-warm-soft); border-radius: 12px; }
.d-none-js { display: none; }
.js .d-js-none { display: none !important; }
.bt-finding { border-left: 4px solid var(--bt-brand); }
.bt-finding.tentative { border-left-color: var(--bt-warm); }
.bt-finding.insufficient { border-left-color: #9aa5ad; }
.bt-ref { display: inline-block; font-size: .78rem; background: var(--bs-secondary-bg); border-radius: 6px; padding: .1rem .45rem; margin: .1rem .2rem .1rem 0; }
.bt-grid-week input { min-width: 6.5rem; }
.bt-mono { font-family: var(--bs-font-monospace); }

/* The guided flow: a numbered stepper (scrolls sideways on a phone) */
.bt-stepper { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.bt-stage { flex: 1 0 9.5rem; display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 12px;
    background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); color: inherit; text-decoration: none; min-width: 9.5rem; }
.bt-stage:hover { border-color: var(--bt-brand-2); }
.bt-stage-num { flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; background: var(--bs-secondary-bg); color: var(--bs-secondary-color); }
.bt-stage-num .material-icons { font-size: 18px; }
.bt-stage-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.bt-stage-label { font-weight: 600; font-size: .92rem; white-space: nowrap; }
.bt-stage-note { font-size: .75rem; color: var(--bs-secondary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-stage.done .bt-stage-num { background: #d1f0e4; color: #0d5c3d; }
[data-bs-theme="dark"] .bt-stage.done .bt-stage-num { background: #12392b; color: #9fe3c5; }
.bt-stage.current { border-color: var(--bt-brand); background: var(--bt-soft); box-shadow: 0 0 0 2px rgba(14,110,115,.15); }
.bt-stage.current .bt-stage-num { background: var(--bt-brand); color: #fff; }

/* Choice cards (groups, kinds of assessment) */
.bt-choice { position: relative; display: block; border: 2px solid var(--bs-border-color); border-radius: 14px; padding: 1rem 1rem 1rem 3.25rem; cursor: pointer; background: var(--bs-body-bg); height: 100%; }
.bt-choice:hover { border-color: var(--bt-brand-2); }
.bt-choice > input { position: absolute; left: 1.1rem; top: 1.15rem; width: 1.3rem; height: 1.3rem; }
.bt-choice.checked { border-color: var(--bt-brand); background: var(--bt-soft); }
.bt-choice .bt-choice-icon { position: absolute; right: 1rem; top: 1rem; color: var(--bt-brand); }
.bt-choice .bt-choice-more { margin-top: .75rem; }
.bt-choice:not(.checked) .bt-choice-more { display: none; }
.bt-chip-check { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--bs-border-color); border-radius: 999px; padding: .3rem .8rem; margin: 0 .35rem .35rem 0; cursor: pointer; background: var(--bs-body-bg); font-size: .9rem; }
.bt-chip-check input { margin: 0; }
.bt-chip-check.checked { border-color: var(--bt-brand); background: var(--bt-soft); font-weight: 600; }
.bt-doc-row { display: flex; align-items: flex-start; gap: .85rem; padding: .85rem 0; border-top: 1px solid var(--bs-border-color); }
.bt-doc-icon { font-size: 1.6rem; color: var(--bs-secondary-color); margin-top: .1rem; }
.bt-doc-icon.done { color: var(--bs-success); }
.bt-doc-files { list-style: none; padding: 0; margin: .4rem 0 0; font-size: .9rem; }
.bt-doc-files li { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; padding: .1rem 0; word-break: break-word; }
.bt-doc-add { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 575.98px) { .bt-doc-row { flex-wrap: wrap; } .bt-doc-row > div { flex: 1 1 calc(100% - 2.5rem); } .bt-doc-add { margin-left: 2.45rem; } }
.bt-remind-row { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: .15rem; }
.bt-remind-when { flex: 0 0 9.5rem; font-size: .9rem; color: var(--bs-secondary-color); margin: 0 .35rem .35rem 0; }
@media (max-width: 575.98px) { .bt-remind-when { flex-basis: 100%; } }
.bt-help { font-size: .85rem; color: var(--bs-secondary-color); }
details.bt-more > summary { cursor: pointer; font-weight: 600; color: var(--bt-brand); list-style: none; }
details.bt-more > summary::-webkit-details-marker { display: none; }
details.bt-more > summary::before { content: "＋ "; }
details.bt-more[open] > summary::before { content: "－ "; }
[data-bs-theme="dark"] details.bt-more > summary { color: #5CC6C9; }
.bt-glance { border-left: 4px solid var(--bt-brand); }
.bt-glance li { margin-bottom: .35rem; }
.bt-tabs .nav-link { font-weight: 600; }
.bt-tabs .nav-link.active { color: var(--bt-brand); border-bottom: 3px solid var(--bt-brand); }
.bt-big-number { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.bt-intro-start { font-size: 1.15rem; }

.bt-step-no { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--bt-brand); color: #fff; font-size: .95rem; margin-right: .35rem; vertical-align: .1em; }
.border-brand { border-color: var(--bt-brand) !important; border-width: 2px !important; }
.bt-checklist { list-style: none; padding: 0; margin: 0; }
.bt-checklist li { display: flex; gap: .75rem; align-items: center; padding: .65rem 0; border-top: 1px solid var(--bs-border-color); }
.bt-checklist li:first-child { border-top: 0; }
.bt-checklist .bt-tick { width: 2rem; height: 2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--bs-border-color); flex: none; font-weight: 700; }
.bt-checklist li.done .bt-tick { background: var(--bt-brand); border-color: var(--bt-brand); color: #fff; }
.bt-checklist li.current .bt-tick { border-color: var(--bt-brand); color: var(--bt-brand); }
.bt-checklist a { font-weight: 600; text-decoration: none; }
.bt-legend span { display: inline-flex; align-items: center; gap: .3rem; margin-right: 1rem; font-size: .85rem; }
.bt-legend i { display: inline-block; width: .9rem; height: .9rem; border-radius: 3px; }
details.bt-q-detail > summary { cursor: pointer; list-style: none; }
details.bt-q-detail > summary::-webkit-details-marker { display: none; }
details.bt-q-detail[open] { border-color: var(--bt-brand); }
@media (max-width: 575px) { .bt-opt { padding: .9rem 1rem; font-size: 1.02rem; } .bt-opt input { width: 1.25rem; height: 1.25rem; } }

/* Action plan: AI suggestions */
.bt-ai-bar { border: 1px dashed var(--bt-brand-2); background: var(--bt-soft); }
.bt-ai-icon { color: var(--bt-warm); }
.bt-ai-bar .bt-ai-text { flex: 1 1 20rem; min-width: 0; }
.bt-ai-sm { font-size: 17px; }
.bt-ai-review { border: 2px solid var(--bt-warm); }
.bt-suggestion:has(input[name="keep"]:not(:checked)) { opacity: .55; }
.bt-ai-filled { background: var(--bt-warm-soft) !important; border-color: var(--bt-warm) !important; }
.bt-ai-note { background: var(--bt-warm-soft); }

/* Respondent guide video (survey welcome, How it works) */
.bt-guide summary { cursor: pointer; font-weight: 600; color: var(--bt-brand); list-style: none; display: inline-flex; align-items: center; gap: .35rem; }
.bt-guide summary::-webkit-details-marker { display: none; }
.bt-guide-video { width: 100%; max-width: 720px; aspect-ratio: 16 / 9; border-radius: 12px; background: #062226; display: block; }
