body.ui-bootstrap { color: #212529; }
.score-choice, .confidence-choice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 3rem;
    padding: 0 0.9rem;
    border: 1px solid #212529;
    background: #fff;
    cursor: pointer;
}
.score-choice input, .confidence-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.score-choice:has(input:checked), .confidence-choice:has(input:checked) {
    background: #212529;
    color: #fff;
}
.score-choice:has(input:disabled), .confidence-choice:has(input:disabled) {
    cursor: default;
}
.score-followup {
    display: none;
    flex-direction: column;
    gap: 2rem;
}
form.autosave:has(input[name="score"]:checked) .score-followup {
    display: flex;
}
.question-code {
    font-weight: 600;
    letter-spacing: 0.04em;
}
.assessment-progress {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 2.25rem;
}
.assessment-progress-section {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-width: 0;
}
.assessment-progress-section:hover,
.assessment-progress-section:focus-within {
    z-index: 5;
}
.assessment-progress-dimension,
.assessment-progress-question {
    position: relative;
    display: block;
    overflow: visible;
    text-decoration: none;
    background: #dee2e6;
    border-radius: 999px;
}
.assessment-progress-dimension {
    height: 1.35rem;
    background: linear-gradient(to right, #212529 var(--fill), #dee2e6 var(--fill));
}
.assessment-progress-dimension.is-complete {
    background: #212529;
}
.assessment-progress-questions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    min-height: 1.15rem;
}
.assessment-progress-question {
    flex: 0 0 0.95rem;
    width: 0.95rem;
    height: 0.95rem;
}
.assessment-progress-question.is-answered {
    background: #212529;
}
.assessment-progress-dimension.is-current,
.assessment-progress-question.is-current {
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px #212529;
}
.assessment-progress-section:hover .assessment-progress-dimension {
    filter: brightness(1.15);
    box-shadow: 0 0 0 2px #212529;
}
.assessment-progress-section:hover .assessment-progress-question:not(.is-answered) {
    background: #adb5bd;
}
.assessment-progress-question:hover {
    background: #212529;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #212529;
    z-index: 2;
}
.assessment-question {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}
.assessment-question h1 {
    margin: 0;
    line-height: 1.4;
}
.assessment-question > p {
    margin-bottom: 0;
}
#save-state {
    align-self: flex-start;
    max-width: 100%;
    height: auto;
    white-space: normal;
}
.assessment-question form.autosave {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 0.85rem;
}
.assessment-question form.autosave fieldset,
.assessment-question form.autosave .mb-4 {
    margin-bottom: 0;
}
.assessment-question form.autosave legend {
    margin-bottom: 0.9rem;
}
.assessment-question form.autosave .form-text,
.assessment-question form.autosave .mt-1,
.assessment-question form.autosave .mt-3 {
    margin-top: 0.9rem;
}
.assessment-question form.autosave .mb-4 {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.assessment-question .question-actions {
    margin-top: 0.75rem;
}
.assessment-question #assessment-submit {
    margin-top: 1.75rem;
}
.assessment-progress-tip {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    z-index: 6;
    width: max-content;
    max-width: 13rem;
    padding: 0.15rem 0.4rem;
    border-radius: 0.3rem;
    background: #212529;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.3;
    white-space: normal;
    pointer-events: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}
.assessment-progress-dimension .assessment-progress-tip {
    top: calc(100% + 2.15rem);
    max-width: none;
    white-space: nowrap;
}
.assessment-progress-question .assessment-progress-tip {
    top: auto;
    bottom: calc(100% + 2.25rem);
}
.assessment-progress-section.tip-end .assessment-progress-tip {
    left: auto;
    right: 0;
}
.assessment-progress-dimension:hover .assessment-progress-tip,
.assessment-progress-question:hover .assessment-progress-tip {
    display: block;
}
body.ui-bootstrap .card { border-radius: 0; }
[data-report-panel][hidden] { display: none !important; }
.maturity-scale { margin-top: 0.5rem; }
.maturity-track {
    position: relative;
    height: 2.75rem;
    margin-top: 1.75rem;
    border-radius: 0.4rem;
}
.maturity-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    transform: translateX(-50%);
}
.maturity-marker.here { background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); }
.maturity-marker.bench { background: #6f42c1; }
.maturity-marker-label {
    position: absolute;
    bottom: calc(100% + 0.3rem);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}
.maturity-marker.here .maturity-marker-label { color: #0d6efd; }
.maturity-marker.bench .maturity-marker-label { color: #6f42c1; }
.maturity-marker.raised .maturity-marker-label { bottom: calc(100% + 1.15rem); }
.maturity-marker.align-start .maturity-marker-label { left: 0; transform: none; }
.maturity-marker.align-end .maturity-marker-label { left: auto; right: 0; transform: none; }
.maturity-labels {
    display: grid;
    margin-top: 0.55rem;
}
.maturity-step {
    padding: 0 0.25rem;
    text-align: center;
    font-weight: 600;
    line-height: 1.3;
}
.report-see-item { display: flex; gap: 0.5rem; margin-bottom: 0.35rem; }
.report-mark { width: 1.1rem; flex: none; font-weight: 700; }
.report-mark.good { color: #2f9e44; }
.report-mark.warn { color: #b86e00; }
.benchmark-chart { position: relative; height: 420px; }
.sunburst-layout { display: flex; align-items: flex-start; gap: 1.5rem 2rem; }
.sunburst-chart { flex: 1 1 28rem; min-width: 0; }
.sunburst { max-width: 720px; margin: 0 auto; }
.sunburst svg { width: 100%; height: auto; display: block; }
.sunburst-scale { display: flex; align-items: center; gap: 0.85rem; width: min(100%, 36rem); margin: 1.25rem auto 0; font-size: 1.05rem; font-weight: 600; color: #212529; }
.sunburst-scale-bar { flex: 1; height: 1.5rem; border-radius: 999px; background: linear-gradient(90deg, #c44747, #d4a017, #1c7c8c); }
.sunburst-key { flex: 0 1 22rem; min-width: 16rem; }
.sunburst-key-list { list-style: none; margin: 0; padding: 0; }
.sunburst-key-list li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); margin: 0 0 0.55rem; font-size: 0.875rem; line-height: 1.35; }
.sunburst-key-code { font-weight: 700; }
@media (max-width: 991.98px) {
    .sunburst-layout { flex-direction: column; }
    .sunburst-key { flex-basis: auto; width: 100%; }
}
@media print {
    nav, .d-print-none, .print-hide, .navbar, dialog { display: none !important; }
    body { background: #fff; }
    main { max-width: none; }
    #report-narrative { display: block !important; opacity: 1 !important; }
    #report-explore { display: none !important; }
}
