.lalb-wizard .lalb-step-title { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; font-weight: 600; }
.lalb-step-text { min-width: 0; overflow-wrap: anywhere; }
.lalb-step-progress { flex-shrink: 0; font-size: 14px; font-weight: 400; color: #52677a; }
.lalb-wizard .panel-title:focus { outline: none; }
.lalb-step-tools { margin-bottom: 12px; }
.lalb-step-tools[hidden], .lalb-wizard [hidden] { display: none !important; }
.lalb-wizard .step-status { margin: 0 18px 18px; }
.lalb-wizard .wizard-select-choices { margin: 0; }
.lalb-editor { margin-bottom: 20px; min-width: 0; }
.lalb-editor h4 { margin: 0 0 12px; color: #003366; font-size: 18px; }
.lalb-editor iframe { display: block; width: 100%; max-width: 100%; height: 550px; border: 1px solid #b7c9db; border-radius: 6px; }
.lalb-editor iframe.is-correct { border-color: #16803c; }
.lalb-editor iframe.is-incorrect { border-color: #b91c1c; }
.lalb-editor-status { margin: 12px 0; }
.lalb-editor-status:empty { display: none; }
.lalb-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lalb-wizard .btn { min-height: 44px; max-width: 100%; padding: 10px 14px; white-space: normal; }
.lalb-wizard .btn-primary { background: #003366; border-color: #003366; }
.lalb-wizard .btn-primary:hover { background: #002449; }
.lalb-wizard .table-responsive { max-width: 100%; margin-bottom: 0; }
.lalb-charge-choices { min-width: 260px; }
.lalb-wizard .table th, .lalb-wizard .table td { vertical-align: middle; }
.lalb-finished { padding: 20px; border-left: 4px solid #377848; border-radius: 6px; background: #edf6ef; color: #285736; }
.lalb-finished p { font-weight: 600; margin: 0 0 16px; }
.lalb-wizard-page .navbar.navbar-fixed-bottom { position: static; width: auto; max-width: 1170px; }
.lalb-wizard-page #content { padding-bottom: 0; }
@media (max-width: 767px) {
    .lalb-wizard .panel-title { align-items: stretch; }
    .lalb-step-progress { align-self: flex-end; }
    .lalb-wizard .step-status { margin: 0 16px 16px; }
    .lalb-wizard-page .navbar-fixed-bottom .navbar-text,
    .lalb-wizard-page .navbar-fixed-bottom .navbar-btn { float: none !important; display: block; margin: 16px 0; }
}

.lalb-wizard .exercise-intro h2 { overflow-wrap: anywhere; }

.lalb-wizard .alert-success { background: #edf6ef; border-color: #cfe2d3; color: #285736; }
.lalb-wizard .alert-danger { background: #fff0ee; border-color: #e4b6b4; color: #a12622; }
@media (max-width: 767px) {
    .lalb-charge-table, .lalb-charge-table tbody { display: block; width: 100%; }
    .lalb-charge-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .lalb-charge-table tbody > tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; padding: 12px 0; border-top: 1px solid #e0e6ec; }
    .lalb-wizard .lalb-charge-table tbody > tr > th,
    .lalb-wizard .lalb-charge-table tbody > tr > td { padding: 0; border: 0; }
    .lalb-charge-table tbody th { align-self: center; color: #003366; font-size: 20px; }
    .lalb-atom-number { align-self: center; text-align: right; font-size: 14px; color: #52677a; }
    .lalb-atom-number::before { content: attr(data-label) ': '; }
    .lalb-charge-table tbody > tr > td:last-child { grid-column: 1 / -1; }
    .lalb-charge-choices { min-width: 0; }
}
