.sma-topic-body .sma-topic-sections {
    padding-left: 1.15rem;
}

.sma-topic-body .sma-topic-sections > li {
    margin-bottom: 0.85rem;
}

.sma-topic-body .sma-topic-steps {
    margin: 0.4rem 0 0;
    padding-left: 1.25rem;
}

.sma-topic-body .sma-topic-steps > li {
    margin-top: 0.35rem;
}

[data-theme="dark"] .sma-topic-body .sma-topic-steps > li {
    color: var(--bs-body-color, #e6e6e6);
}

[data-theme="light"] .sma-topic-body .sma-topic-steps > li {
    color: var(--bs-body-color, #212529);
}

/* Direct-login weekly topic gate — under reauth (1060), over app chrome */
#safetyTopicGateModal.modal {
    z-index: 1055;
}

#safetyTopicGateModal .modal-dialog {
    max-width: 40rem;
}

#safetyTopicGateModal .sma-topic-body {
    max-height: min(55vh, 28rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

html[data-theme="light"] #safetyTopicGateModal .btn-primary:disabled {
    background-color: #9ec5fe;
    border-color: #9ec5fe;
    color: #fff;
    opacity: 0.65;
}

html[data-theme="dark"] #safetyTopicGateModal .btn-primary:disabled {
    background-color: #2a5c66;
    border-color: #2a5c66;
    color: #8b949e;
    opacity: 1;
}

html[data-theme="light"] #safetyTopicGateModal .modal-content {
    background-color: #f5f7fa;
    color: #1f2428;
    border-color: #e2e8f0;
}

html[data-theme="light"] #safetyTopicGateModal .modal-header,
html[data-theme="light"] #safetyTopicGateModal .modal-footer {
    background-color: #f5f7fa;
    border-color: #e2e8f0;
}

html[data-theme="light"] #safetyTopicGateModal .modal-title,
html[data-theme="light"] #safetyTopicGateModal #safetyTopicGateName {
    color: #1f2428;
}

html[data-theme="light"] #safetyTopicGateModal .text-muted,
html[data-theme="light"] #safetyTopicGateModal #safetyTopicGateWeek {
    color: #57606a;
}

html[data-theme="light"] #safetyTopicGateModal .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

html[data-theme="light"] #safetyTopicGateModal .btn-outline-secondary {
    color: #1f2428;
    border-color: #c5cdd6;
}

html[data-theme="dark"] #safetyTopicGateModal .modal-content {
    background-color: #1f2324;
    color: #e6edf3;
    border-color: #30363d;
}

html[data-theme="dark"] #safetyTopicGateModal .modal-header,
html[data-theme="dark"] #safetyTopicGateModal .modal-footer {
    background-color: #1f2324;
    border-color: #30363d;
}

html[data-theme="dark"] #safetyTopicGateModal .modal-title,
html[data-theme="dark"] #safetyTopicGateModal #safetyTopicGateName {
    color: #e6edf3;
}

html[data-theme="dark"] #safetyTopicGateModal .text-muted,
html[data-theme="dark"] #safetyTopicGateModal #safetyTopicGateWeek {
    color: #8b949e;
}

html[data-theme="dark"] #safetyTopicGateModal .btn-primary {
    background-color: #4FC4DB;
    border-color: #4FC4DB;
    color: #0b2026;
}

html[data-theme="dark"] #safetyTopicGateModal .btn-outline-secondary {
    color: #e6edf3;
    border-color: #495057;
}

html[data-theme="light"] #smaExportPdf.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

html[data-theme="dark"] #smaExportPdf.btn-outline-primary {
    color: #4FC4DB;
    border-color: #4FC4DB;
}

html[data-theme="light"] #smaPdfStatus {
    color: #57606a;
}

html[data-theme="dark"] #smaPdfStatus {
    color: #8b949e;
}
