.g4a-sbt-wrap {
    --g4a-navy: #050a2e;
    --g4a-blue: #2563ff;
    --g4a-cyan: #00c8ff;
    --g4a-violet: #8a2dff;
    --g4a-bg: #e8edf5;
    --g4a-line: #e5e7eb;
    --g4a-muted: #64748b;
    --g4a-text: #111827;
    color: var(--g4a-text);
    font-family: inherit;
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px;
    background: var(--g4a-bg);
    border-radius: 12px;
    box-sizing: border-box;
}

.g4a-sbt-wrap *,
.g4a-sbt-wrap *::before,
.g4a-sbt-wrap *::after {
    box-sizing: border-box;
}

.g4a-sbt-header {
    display: none;
}

.g4a-sbt-header h2,
.g4a-sbt-class h3,
.g4a-sbt-session-card h4,
.g4a-sbt-detail h4,
.g4a-sbt-block h5 {
    letter-spacing: 0;
    margin: 0;
}

.g4a-sbt-class {
    margin: 0 0 24px;
}

.g4a-sbt-class-heading {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 22px 24px;
}

.g4a-sbt-eyebrow {
    color: var(--g4a-blue);
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.g4a-sbt-class-heading h3 {
    color: var(--g4a-navy);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;
}

.g4a-sbt-class-heading p {
    color: var(--g4a-muted);
    margin: 8px 0 0;
}

.g4a-sbt-class-heading .g4a-sbt-meta {
    font-size: 14px;
}

.g4a-sbt-progress-card {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    min-width: 280px;
    padding: 14px;
}

.g4a-sbt-progress-copy {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.g4a-sbt-progress-copy span {
    color: var(--g4a-muted);
    font-size: 12px;
    font-weight: 700;
}

.g4a-sbt-progress-copy strong {
    color: var(--g4a-blue);
    font-size: 14px;
    white-space: nowrap;
}

.g4a-sbt-progress-track {
    background: #dbe3ee;
    border-radius: 999px;
    height: 9px;
    overflow: hidden;
}

.g4a-sbt-progress-track span {
    background: linear-gradient(90deg, var(--g4a-cyan), var(--g4a-blue), var(--g4a-violet));
    border-radius: inherit;
    display: block;
    height: 100%;
}

.g4a-sbt-role,
.g4a-sbt-status,
.g4a-sbt-sample-empty,
.g4a-sbt-autosave-status {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    padding: 5px 10px;
    white-space: nowrap;
}

.g4a-sbt-role {
    background: #eff6ff;
    color: var(--g4a-blue);
    margin-top: 12px;
}

.g4a-sbt-filter {
    display: flex;
    gap: 10px;
    margin: 0 0 14px;
    overflow-x: auto;
    padding: 2px 0 8px;
    scrollbar-width: none;
}

.g4a-sbt-filter::-webkit-scrollbar {
    display: none;
}

.g4a-sbt-filter-button {
    background: #ffffff;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    color: #475569;
    cursor: pointer;
    flex: 0 0 auto;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 9px 15px;
}

.g4a-sbt-filter-button.is-active {
    background: var(--g4a-navy);
    border-color: var(--g4a-navy);
    color: #ffffff;
}

.g4a-sbt-layout {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(330px, 0.38fr) minmax(0, 0.62fr);
    min-height: 690px;
}

.g4a-sbt-session-list,
.g4a-sbt-detail-panel {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.g4a-sbt-session-list {
    display: flex;
    flex-direction: column;
    min-height: 690px;
}

.g4a-sbt-list-head {
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid var(--g4a-line);
    color: var(--g4a-navy);
    display: flex;
    justify-content: space-between;
    padding: 15px 16px;
}

.g4a-sbt-list-head strong {
    font-size: 15px;
}

.g4a-sbt-list-head span {
    color: var(--g4a-muted);
    font-size: 13px;
    font-weight: 700;
}

.g4a-sbt-list-scroll {
    flex: 1;
    max-height: 642px;
    overflow-y: auto;
    padding: 14px;
}

.g4a-sbt-list-scroll::-webkit-scrollbar,
.g4a-sbt-detail-panel::-webkit-scrollbar {
    width: 7px;
}

.g4a-sbt-list-scroll::-webkit-scrollbar-thumb,
.g4a-sbt-detail-panel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.g4a-sbt-session-card {
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    margin-bottom: 14px;
    overflow: hidden;
}

.g4a-sbt-session-head {
    align-items: flex-start;
    background: #f8fafc;
    border: 0;
    border-bottom: 1px solid #eef2f7;
    color: inherit;
    cursor: pointer;
    display: flex;
    font: inherit;
    gap: 12px;
    justify-content: space-between;
    padding: 15px;
    text-align: left;
    width: 100%;
}

.g4a-sbt-session-head h4 {
    color: var(--g4a-navy);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.g4a-sbt-session-head p {
    color: var(--g4a-muted);
    font-size: 12px;
    margin: 5px 0 0;
}

.g4a-sbt-session-meta {
    color: var(--g4a-blue);
    font-size: 12px;
    font-weight: 800;
    margin-top: 10px;
}

.g4a-sbt-chevron {
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    display: block;
    height: 9px;
    margin-top: 3px;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    width: 9px;
}

.g4a-sbt-session-card.is-collapsed .g4a-sbt-chevron {
    transform: rotate(-45deg);
}

.g4a-sbt-session-body {
    max-height: 1400px;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.g4a-sbt-session-sample {
    padding: 12px 14px 0;
}

.g4a-sbt-sample-link {
    background: #eef2ff;
    border: 1px solid #dbe3ff;
    border-radius: 999px;
    color: var(--g4a-violet);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 11px;
    text-decoration: none;
}

.g4a-sbt-sample-empty {
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
}

.g4a-sbt-assignment-list {
    padding: 10px 0 0;
}

.g4a-sbt-card {
    background: #ffffff;
    border: 0;
    border-left: 4px solid #9ca3af;
    border-top: 1px solid #f1f5f9;
    color: inherit;
    display: block;
    min-height: 86px;
    padding: 13px 14px;
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.g4a-sbt-card:hover,
.g4a-sbt-card.is-active {
    background: #f8fafc;
}

.g4a-sbt-card.is-active {
    box-shadow: inset 0 0 0 2px rgba(37, 99, 255, 0.14);
}

.g4a-sbt-card-title-row {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.g4a-sbt-card h5 {
    color: var(--g4a-navy);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    margin: 0;
}

.g4a-sbt-card p {
    color: var(--g4a-muted);
    font-size: 12px;
    line-height: 1.4;
    margin: 7px 0 0;
}

.g4a-sbt-card small {
    color: #94a3b8;
    display: block;
    font-size: 11px;
    margin-top: 7px;
}

.g4a-sbt-status-not-started {
    border-left-color: #9ca3af;
}

.g4a-sbt-status-not-started .g4a-sbt-status,
.g4a-sbt-status.g4a-sbt-status-not-started {
    background: #f1f5f9;
    color: #475569;
}

.g4a-sbt-status-draft {
    border-left-color: #d97706;
}

.g4a-sbt-status-draft .g4a-sbt-status,
.g4a-sbt-status.g4a-sbt-status-draft {
    background: #fef3c7;
    color: #b45309;
}

.g4a-sbt-status-submitted {
    border-left-color: #3b82f6;
}

.g4a-sbt-status-submitted .g4a-sbt-status,
.g4a-sbt-status.g4a-sbt-status-submitted {
    background: #dbeafe;
    color: #1d4ed8;
}

.g4a-sbt-status-needs-revision {
    border-left-color: #ef4444;
}

.g4a-sbt-status-needs-revision .g4a-sbt-status,
.g4a-sbt-status.g4a-sbt-status-needs-revision {
    background: #fee2e2;
    color: #dc2626;
}

.g4a-sbt-status-accepted {
    border-left-color: #10b981;
}

.g4a-sbt-status-accepted .g4a-sbt-status,
.g4a-sbt-status.g4a-sbt-status-accepted {
    background: #dcfce7;
    color: #059669;
}

.g4a-sbt-detail-panel {
    max-height: 690px;
    overflow-y: auto;
    position: relative;
}

.g4a-sbt-detail {
    background: #ffffff;
    min-height: 100%;
}

.g4a-sbt-back {
    display: none;
}

.g4a-sbt-detail-head {
    align-items: flex-start;
    border-bottom: 1px solid var(--g4a-line);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 24px;
}

.g4a-sbt-detail-head p {
    color: var(--g4a-violet);
    font-size: 12px;
    font-weight: 800;
    margin: 0 0 6px;
}

.g4a-sbt-detail-head h4 {
    color: var(--g4a-navy);
    font-size: 25px;
    font-weight: 850;
    line-height: 1.2;
}

.g4a-sbt-detail-head span:not(.g4a-sbt-status) {
    color: #94a3b8;
    display: block;
    font-size: 12px;
    margin-top: 8px;
}

.g4a-sbt-alert {
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    margin: 18px 24px 0;
    padding: 14px 16px;
}

.g4a-sbt-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.g4a-sbt-form {
    background: #f8fafc;
    padding: 22px 24px 0;
}

.g4a-sbt-block {
    margin: 0 0 20px;
}

.g4a-sbt-block h5 {
    color: var(--g4a-navy);
    font-size: 15px;
    font-weight: 850;
    margin-bottom: 9px;
}

.g4a-sbt-readonly,
.g4a-sbt-empty-inline {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #334155;
    line-height: 1.6;
    min-height: 48px;
    padding: 15px;
}

.g4a-sbt-comment-block .g4a-sbt-readonly {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: var(--g4a-navy);
}

.g4a-sbt-empty-inline {
    color: #64748b;
}

.g4a-sbt-assignment-sample-block .g4a-sbt-url-input {
    margin-bottom: 10px;
}

.g4a-sbt-inline-link {
    margin: 0 0 10px;
}

.g4a-sbt-form textarea,
.g4a-sbt-form input[type="url"] {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: inset 0 2px 5px rgba(15, 23, 42, 0.04);
    color: #1f2937;
    display: block;
    font: inherit;
    font-size: 14px;
    line-height: 1.6;
    min-height: 170px;
    outline: none;
    padding: 15px;
    resize: vertical;
    width: 100%;
}

.g4a-sbt-form input[type="url"] {
    min-height: 48px;
    resize: none;
}

.g4a-sbt-form textarea[name="content"] {
    min-height: 330px;
}

.g4a-sbt-form textarea:focus,
.g4a-sbt-form input[type="url"]:focus {
    border-color: var(--g4a-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 255, 0.12);
}

.g4a-sbt-form textarea[readonly] {
    background: #f8fafc;
    color: #475569;
}

.g4a-sbt-autosave-status {
    background: transparent;
    color: var(--g4a-blue);
    font-size: 12px;
    margin-top: 8px;
    padding-left: 0;
}

.g4a-sbt-actions {
    align-items: center;
    background: #ffffff;
    border-top: 1px solid var(--g4a-line);
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin: 0 -24px;
    padding: 16px 24px;
    position: sticky;
    z-index: 2;
}

.g4a-sbt-button {
    background: linear-gradient(90deg, var(--g4a-cyan), var(--g4a-blue), var(--g4a-violet));
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    justify-content: center;
    line-height: 1.2;
    padding: 11px 18px;
    text-decoration: none;
}

.g4a-sbt-button-secondary {
    background: #eef2f7;
    color: var(--g4a-navy);
}

.g4a-sbt-button-danger {
    background: #ef4444;
}

.g4a-sbt-button-success {
    background: #10b981;
}

.g4a-sbt-button:hover,
.g4a-sbt-sample-link:hover {
    opacity: 0.92;
}

.g4a-sbt-action-text {
    color: #334155;
    font-weight: 700;
    margin: 0;
}

.g4a-sbt-learner-picker {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 16px;
}

.g4a-sbt-learner-picker > span {
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.g4a-sbt-learner-link {
    background: #ffffff;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
    text-decoration: none;
}

.g4a-sbt-learner-link.is-active {
    background: var(--g4a-navy);
    border-color: var(--g4a-navy);
    color: #ffffff;
}

.g4a-sbt-notice,
.g4a-sbt-empty {
    border-radius: 10px;
    margin: 12px 0;
    padding: 12px 14px;
}

.g4a-sbt-notice-success {
    background: #dcfce7;
    color: #166534;
}

.g4a-sbt-notice-error {
    background: #fee2e2;
    color: #991b1b;
}

.g4a-sbt-notice-warning,
.g4a-sbt-empty {
    background: #fef3c7;
    color: #92400e;
}

.g4a-sbt-empty-detail {
    align-items: center;
    color: #64748b;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 640px;
    padding: 32px;
    text-align: center;
}

.g4a-sbt-empty-detail h4 {
    color: var(--g4a-navy);
    font-size: 20px;
    margin: 14px 0 8px;
}

.g4a-sbt-empty-detail p {
    max-width: 360px;
}

.g4a-sbt-empty-icon {
    align-items: center;
    background: #f1f5f9;
    border-radius: 999px;
    color: #94a3b8;
    display: flex;
    font-size: 30px;
    height: 76px;
    justify-content: center;
    width: 76px;
}

.g4a-sbt-hidden-by-filter {
    display: none;
}

@media (max-width: 980px) {
    .g4a-sbt-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .g4a-sbt-session-list,
    .g4a-sbt-detail-panel {
        min-height: 0;
        max-height: none;
    }

    .g4a-sbt-list-scroll {
        max-height: none;
    }

    .g4a-sbt-layout.has-selection .g4a-sbt-session-list {
        display: none;
    }

    .g4a-sbt-layout:not(.has-selection) .g4a-sbt-detail-panel {
        display: none;
    }

    .g4a-sbt-back {
        background: #eff6ff;
        border-radius: 10px;
        color: var(--g4a-blue);
        display: inline-flex;
        font-size: 13px;
        font-weight: 800;
        margin: 16px 16px 0;
        padding: 9px 12px;
        text-decoration: none;
    }
}

@media (max-width: 760px) {
    .g4a-sbt-wrap {
        padding: 12px;
        border-radius: 0;
    }

    .g4a-sbt-class-heading {
        align-items: stretch;
        flex-direction: column;
        padding: 18px;
    }

    .g4a-sbt-class-heading h3,
    .g4a-sbt-detail-head h4 {
        font-size: 21px;
    }

    .g4a-sbt-progress-card {
        min-width: 0;
        width: 100%;
    }

    .g4a-sbt-filter {
        gap: 8px;
    }

    .g4a-sbt-filter-button {
        font-size: 13px;
        padding: 8px 12px;
    }

    .g4a-sbt-detail-head {
        flex-direction: column;
        padding: 18px;
    }

    .g4a-sbt-form {
        padding: 18px 18px 0;
    }

    .g4a-sbt-form textarea[name="content"] {
        min-height: 260px;
    }

    .g4a-sbt-actions {
        align-items: stretch;
        flex-direction: column;
        margin: 0 -18px;
        padding: 14px 18px;
    }

    .g4a-sbt-button {
        width: 100%;
    }
}

.g4a-sbt-login-body {
    margin: 0;
}

.g4a-sbt-trainer-body {
    margin: 0;
    background: #e8edf5;
}

.g4a-sbt-trainer-wrap {
    border-radius: 0;
    min-height: 100vh;
}

.g4a-sbt-trainer-head {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    margin-bottom: 18px;
    padding: 22px 24px;
}

.g4a-sbt-trainer-head h2 {
    color: var(--g4a-navy);
    font-size: 26px;
    margin: 0;
}

.g4a-sbt-trainer-head p {
    color: var(--g4a-muted);
    margin: 8px 0 0;
}

.g4a-sbt-trainer-shell {
    display: grid;
    gap: 18px;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
}

.g4a-sbt-trainer-sidebar {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 16px;
    position: sticky;
    top: 18px;
}

.g4a-sbt-trainer-class-block {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 14px;
    padding-bottom: 14px;
}

.g4a-sbt-trainer-class-block:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.g4a-sbt-trainer-class-block h3 {
    color: var(--g4a-navy);
    font-size: 15px;
    margin: 0 0 10px;
}

.g4a-sbt-trainer-class-block p {
    color: #64748b;
    margin: 0;
}

.g4a-sbt-trainer-student-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.g4a-sbt-trainer-student {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #111827;
    display: block;
    padding: 10px;
    text-decoration: none;
}

.g4a-sbt-trainer-student:hover,
.g4a-sbt-trainer-student.is-active {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.g4a-sbt-trainer-student strong,
.g4a-sbt-trainer-student span {
    display: block;
}

.g4a-sbt-trainer-student span {
    color: #64748b;
    font-size: 12px;
    margin-top: 3px;
}

.g4a-sbt-trainer-main .g4a-sbt-wrap,
.g4a-sbt-trainer-main .g4a-sbt-class {
    margin: 0;
}

.g4a-sbt-login-page {
    --g4a-navy: #050a2e;
    --g4a-blue: #2563ff;
    --g4a-cyan: #00c8ff;
    --g4a-violet: #8a2dff;
    --g4a-bg: #e8edf5;
    align-items: center;
    background:
        radial-gradient(circle at 20% 15%, rgba(0, 200, 255, 0.16), transparent 28%),
        radial-gradient(circle at 80% 20%, rgba(138, 45, 255, 0.14), transparent 30%),
        var(--g4a-bg);
    color: #111827;
    display: flex;
    font-family: inherit;
    min-height: 100vh;
    padding: 32px 18px;
}

.g4a-sbt-login-page *,
.g4a-sbt-login-page *::before,
.g4a-sbt-login-page *::after {
    box-sizing: border-box;
}

.g4a-sbt-login-shell {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
    margin: 0 auto;
    max-width: 1080px;
    width: 100%;
}

.g4a-sbt-login-brand,
.g4a-sbt-login-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
}

.g4a-sbt-login-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 440px;
    padding: 42px;
}

.g4a-sbt-login-badge {
    background: linear-gradient(90deg, var(--g4a-cyan), var(--g4a-blue), var(--g4a-violet));
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0;
    padding: 8px 13px;
    width: max-content;
}

.g4a-sbt-login-brand h1 {
    color: var(--g4a-navy);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 22px 0 14px;
}

.g4a-sbt-login-brand p {
    color: #475569;
    font-size: 17px;
    line-height: 1.65;
    margin: 0;
    max-width: 560px;
}

.g4a-sbt-login-route {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 750;
    margin-top: 28px;
    padding: 14px 16px;
    width: max-content;
    max-width: 100%;
}

.g4a-sbt-login-card {
    padding: 30px;
}

.g4a-sbt-login-card h2 {
    color: var(--g4a-navy);
    font-size: 28px;
    font-weight: 850;
    letter-spacing: 0;
    margin: 0 0 6px;
}

.g4a-sbt-login-card > p {
    color: #64748b;
    margin: 0 0 22px;
}

.g4a-sbt-login-card label {
    color: var(--g4a-navy);
    display: block;
    font-size: 14px;
    font-weight: 800;
    margin: 16px 0 7px;
}

.g4a-sbt-login-card input[type="text"],
.g4a-sbt-login-card input[type="password"] {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: #111827;
    font: inherit;
    font-size: 15px;
    min-height: 48px;
    outline: none;
    padding: 12px 14px;
    width: 100%;
}

.g4a-sbt-login-card input[type="text"]:focus,
.g4a-sbt-login-card input[type="password"]:focus {
    border-color: var(--g4a-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 255, 0.12);
}

.g4a-sbt-login-remember {
    align-items: center;
    display: flex !important;
    gap: 9px;
    margin: 18px 0 0 !important;
}

.g4a-sbt-login-remember input {
    margin: 0;
}

.g4a-sbt-login-submit {
    background: linear-gradient(90deg, var(--g4a-cyan), var(--g4a-blue), var(--g4a-violet));
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 850;
    margin-top: 22px;
    min-height: 50px;
    width: 100%;
}

.g4a-sbt-login-submit:hover {
    opacity: 0.92;
}

.g4a-sbt-login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #991b1b;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.5;
    margin: 0 0 18px;
    padding: 12px 14px;
}

@media (max-width: 840px) {
    .g4a-sbt-login-shell {
        grid-template-columns: 1fr;
    }

    .g4a-sbt-login-brand {
        min-height: 0;
        padding: 30px;
    }
}

@media (max-width: 1040px) {
    .g4a-sbt-trainer-shell {
        grid-template-columns: 1fr;
    }

    .g4a-sbt-trainer-sidebar {
        max-height: none;
        position: static;
    }
}

@media (max-width: 560px) {
    .g4a-sbt-login-page {
        padding: 14px;
    }

    .g4a-sbt-login-brand,
    .g4a-sbt-login-card {
        border-radius: 14px;
        padding: 22px;
    }
}

/* ============================================================
 * Sprint 2: AI tạo input bài tập
 * ============================================================ */

.g4a-sbt-ai-card {
    border: 1px solid var(--g4a-line);
    border-left: 4px solid var(--g4a-violet);
    border-radius: 10px;
    padding: 16px;
    background: #fff;
}

.g4a-sbt-ai-note {
    margin: 6px 0 12px;
    color: var(--g4a-muted);
    font-size: 13px;
}

.g4a-sbt-ai-info {
    background: #f6f8fc;
    border: 1px solid var(--g4a-line);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    font-size: 13px;
    display: grid;
    gap: 4px;
}

.g4a-sbt-ai-info span {
    color: var(--g4a-muted);
}

.g4a-sbt-ai-instruction summary {
    cursor: pointer;
    color: var(--g4a-blue);
    font-weight: 600;
    margin-top: 4px;
}

.g4a-sbt-ai-instruction .g4a-sbt-readonly {
    margin-top: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.g4a-sbt-ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 14px;
    margin-bottom: 10px;
}

.g4a-sbt-ai-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--g4a-navy);
}

.g4a-sbt-ai-form input,
.g4a-sbt-ai-form select,
.g4a-sbt-ai-form textarea {
    border: 1px solid var(--g4a-line);
    border-radius: 8px;
    padding: 8px 10px;
    font: inherit;
    font-weight: 400;
    width: 100%;
}

.g4a-sbt-ai-full {
    margin-bottom: 10px;
}

.g4a-sbt-ai-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

.g4a-sbt-ai-status {
    font-size: 13px;
    color: var(--g4a-muted);
}

.g4a-sbt-ai-status.is-error {
    color: #b32d2e;
}

.g4a-sbt-ai-result {
    border: 1px dashed var(--g4a-violet);
    border-radius: 8px;
    padding: 12px 14px;
    background: #fbf9ff;
}

.g4a-sbt-ai-meta {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--g4a-muted);
}

.g4a-sbt-ai-result-body h5 {
    margin: 0 0 8px;
    font-size: 15px;
}

.g4a-sbt-ai-result-body h6 {
    margin: 12px 0 4px;
    font-size: 13.5px;
    color: var(--g4a-navy);
}

.g4a-sbt-ai-result-body p {
    margin: 4px 0;
    font-size: 13.5px;
    line-height: 1.55;
}

.g4a-sbt-ai-result-body ul {
    margin: 4px 0 4px 18px;
    padding: 0;
    font-size: 13.5px;
}

.g4a-sbt-ai-raw[hidden] {
    display: none;
}

/* v1.2.1: đếm lượt AI + hồ sơ học viên */
.g4a-sbt-ai-remaining {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--g4a-muted, #5b6470);
    background: #f1f5fb;
    border: 1px solid var(--g4a-line, #e3e8ef);
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
}

.g4a-sbt-ai-subnote {
    font-size: 13px;
    color: var(--g4a-muted, #5b6470);
    margin: 0 0 10px;
}

.g4a-sbt-profile-card {
    border: 1px solid var(--g4a-line, #e3e8ef);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
    background: #fbfcfe;
}

.g4a-sbt-profile-card > summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.g4a-sbt-profile-card > summary::-webkit-details-marker {
    display: none;
}

.g4a-sbt-profile-card > summary::before {
    content: "▸";
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.15s ease;
}

.g4a-sbt-profile-card[open] > summary::before {
    transform: rotate(90deg);
}

/* v1.2.2: skeleton khi đang soạn đề + CTA dưới kết quả */
.g4a-sbt-ai-skeleton {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.g4a-sbt-ai-skeleton span {
    display: block;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 37%, #eef2f7 63%);
    background-size: 400% 100%;
    animation: g4a-sbt-shimmer 1.3s ease infinite;
}

.g4a-sbt-ai-skeleton span:nth-child(1) { width: 92%; }
.g4a-sbt-ai-skeleton span:nth-child(2) { width: 100%; }
.g4a-sbt-ai-skeleton span:nth-child(3) { width: 85%; }
.g4a-sbt-ai-skeleton span:nth-child(4) { width: 70%; }

@keyframes g4a-sbt-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

.g4a-sbt-ai-actions-bottom {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--g4a-line, #e5e7eb);
}

/* v1.2.3: bảng trong đề AI tạo */
.g4a-sbt-ai-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13.5px;
}

.g4a-sbt-ai-table th,
.g4a-sbt-ai-table td {
    border: 1px solid var(--g4a-line, #e5e7eb);
    padding: 7px 10px;
    text-align: left;
    vertical-align: top;
}

.g4a-sbt-ai-table thead th {
    background: #f1f5fb;
    font-weight: 600;
}

.g4a-sbt-ai-table tbody tr:nth-child(even) td {
    background: #fafbfd;
}
