#live-dashboard-content-area .hm-live-tab-nav {
    display: inline-flex;
    width: min(100%, 740px);
    border: 1px solid #9bbce0;
    border-radius: 14px;
    background: linear-gradient(180deg, #edf5ff 0%, #dbe9fb 100%);
    padding: 0.3rem;
    margin-bottom: 1rem;
    gap: 0.35rem;
}

#live-dashboard-content-area .hm-live-tab-pill {
    flex: 1 1 0;
    border: 1px solid #7eaee6;
    background: linear-gradient(180deg, #e9f3ff 0%, #d3e6ff 100%);
    color: #11467c;
    border-radius: 10px;
    padding: 0.5rem 0.85rem;
    font-weight: 600;
    font-size: 0.96rem;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 2px 0 #9bbce0, inset 0 1px 0 rgba(255, 255, 255, 0.86);
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

#live-dashboard-content-area .hm-live-tab-pill:hover {
    border-color: #5b95d6;
    background: linear-gradient(180deg, #dceeff 0%, #bfdcff 100%);
    color: #0e3d6f;
    transform: translateY(-1px);
    box-shadow: 0 3px 0 #87add8, inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

#live-dashboard-content-area .hm-live-tab-pill.is-active {
    border-color: #0f5fb9;
    background: linear-gradient(180deg, #2f87ef 0%, #1466d0 100%);
    color: #ffffff;
    box-shadow: 0 3px 0 #0d4f9f, inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

#live-dashboard-content-area .hm-live-tab-pill:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #7da6d5, inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

#live-dashboard-content-area .hm-live-tab-pill.is-active:active {
    box-shadow: 0 1px 0 #0d4f9f, inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#live-dashboard-content-area.hm-live-view-focus #teacher-live-dashboard-state-tabs {
    display: none !important;
}

#live-dashboard-content-area .hm-live-layout-hidden {
    display: none !important;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-focus-only {
    display: none;
}

#live-dashboard-content-area.hm-live-view-focus[data-live-dashboard-focus-owner="live_slides"] #teacher-live-slides-phase2-card .hm-ls-focus-only {
    display: block;
}

#live-dashboard-content-area.hm-live-view-focus[data-live-dashboard-focus-owner="live_slides"] #teacher-live-slides-phase2-card .hm-ls-setup-only {
    display: none !important;
}

#live-dashboard-content-area.hm-live-view-idle #teacher-live-slides-phase2-card .hm-ls-focus-only {
    display: none !important;
}

#live-dashboard-content-area.hm-live-view-idle #teacher-live-slides-phase2-card .hm-ls-setup-only {
    display: block;
}

#live-dashboard-content-area #teacher-live-slides-end-session-focus {
    border-width: 1px;
    min-width: 182px;
    min-height: 42px;
    padding: 0.45rem 1rem;
    font-size: 0.95rem;
    line-height: 1.2;
    font-weight: 700;
}

#live-dashboard-content-area.hm-live-view-idle #teacher-live-slides-end-session-focus {
    display: none !important;
}

#live-dashboard-content-area #activity-monitor-tabs {
    display: none !important;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-advanced-debug,
#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-focus-diagnostics {
    border: 1px dashed #c6d0db;
    border-radius: 10px;
    background: #f8fafc;
    overflow: hidden;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-advanced-debug > summary,
#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-focus-diagnostics > summary {
    cursor: pointer;
    list-style: none;
    padding: 0.65rem 0.8rem;
    user-select: none;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-advanced-debug > summary::-webkit-details-marker,
#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-focus-diagnostics > summary::-webkit-details-marker {
    display: none;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-focus-grid {
    display: grid;
    gap: 0.9rem;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-focus-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: flex-start;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-focus-mode-panel {
    flex: 1 1 420px;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid #c8d2de;
    border-radius: 999px;
    padding: 0.4rem 0.7rem;
    background: linear-gradient(180deg, #f4f7fb 0%, #e7edf4 100%);
}

#live-dashboard-content-area #teacher-live-slides-context-start {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #27ae60;
    --bs-btn-border-color: #1d8547;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #1f9d54;
    --bs-btn-hover-border-color: #166c37;
    --bs-btn-focus-shadow-rgb: 39, 174, 96;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #1a8e4a;
    --bs-btn-active-border-color: #145e30;
    --bs-btn-disabled-color: #e6f5eb;
    --bs-btn-disabled-bg: #9ac6ab;
    --bs-btn-disabled-border-color: #82ae93;
    border-width: 1px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
    background-image: linear-gradient(180deg, #3fce74 0%, #28ab5f 55%, #1c8f4b 100%);
    box-shadow: 0 4px 0 #166834, 0 8px 16px rgba(16, 74, 40, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform: translateY(0);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

#live-dashboard-content-area #teacher-live-slides-context-start:hover:not(:disabled),
#live-dashboard-content-area #teacher-live-slides-context-start:focus-visible:not(:disabled) {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 5px 0 #145e2f, 0 10px 18px rgba(16, 74, 40, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

#live-dashboard-content-area #teacher-live-slides-context-start:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #145e2f, 0 4px 8px rgba(16, 74, 40, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

#live-dashboard-content-area #teacher-live-slides-context-start:disabled {
    opacity: 1;
    background-image: linear-gradient(180deg, #a8cdb6 0%, #93bba2 100%);
    box-shadow: 0 2px 0 #7ea68e, inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-mode-switch .form-check {
    display: flex;
    align-items: center;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card #teacher-live-slides-presentation-mode-toggle {
    width: 2.9rem;
    height: 1.45rem;
    cursor: pointer;
    margin-top: 0;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-focus-end-wrap {
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-focus-metrics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    border: 1px solid #d5dfe9;
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    background: #f6f9fc;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-confusion-tone-0 {
    background: #eaf9ee;
    border-color: #c8e5cf;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-confusion-tone-low {
    background: #fff8d8;
    border-color: #eed98f;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-confusion-tone-mid {
    background: #ffe4ba;
    border-color: #e6b66f;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-confusion-tone-high {
    background: #f7c3c3;
    border-color: #df8f8f;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-connected-metric {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-connected-metric-row {
    padding-left: 0.15rem;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-online-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #63f381 0%, #1fb954 75%);
    box-shadow: 0 0 0 2px rgba(31, 185, 84, 0.2);
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-connected-value {
    font-weight: 700;
    font-size: 1.05rem;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-confusion-metric {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.7rem;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-confused-students-select {
    min-width: min(280px, 100%);
}

#live-dashboard-content-area #teacher-live-slides-phase2-card #teacher-live-slides-reset-confusion {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #000000;
    --bs-btn-border-color: #000000;
    --bs-btn-hover-color: #d7941f;
    --bs-btn-hover-bg: #000000;
    --bs-btn-hover-border-color: #000000;
    --bs-btn-focus-shadow-rgb: 0, 0, 0;
    --bs-btn-active-color: #d7941f;
    --bs-btn-active-bg: #000000;
    --bs-btn-active-border-color: #000000;
    --bs-btn-disabled-color: rgba(255, 255, 255, 0.72);
    --bs-btn-disabled-bg: #000000;
    --bs-btn-disabled-border-color: #000000;
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card #teacher-live-slides-reset-confusion.hm-ls-clear-gauge-btn {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card #teacher-live-slides-reset-confusion.hm-ls-clear-gauge-btn:hover,
#live-dashboard-content-area #teacher-live-slides-phase2-card #teacher-live-slides-reset-confusion.hm-ls-clear-gauge-btn:focus-visible {
    background-color: #000000;
    border-color: #000000;
    color: #d7941f;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card #teacher-live-slides-reset-confusion.hm-ls-clear-gauge-btn:active {
    background-color: #000000;
    border-color: #000000;
    color: #d7941f;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card #teacher-live-slides-reset-confusion.hm-ls-clear-gauge-btn:disabled {
    background-color: #000000;
    border-color: #000000;
    color: rgba(255, 255, 255, 0.72);
    opacity: 0.75;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-focus-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem 1rem;
    border: 1px solid #d5dfe9;
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    background: #ffffff;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-toolbar-left,
#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-toolbar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-toolbar-right {
    margin-left: auto;
    justify-content: flex-end;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card #teacher-live-slides-open-text-broadcast-controls {
    margin-left: 0;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-force-clear-wrap {
    margin-left: auto;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card #teacher-live-slides-force-clear-broadcast.hm-ls-force-clear-btn {
    white-space: nowrap;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-poll-config {
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.28rem 0.55rem;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-poll-config > summary {
    cursor: pointer;
    list-style: none;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-poll-config > summary::-webkit-details-marker {
    display: none;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-poll-config-body {
    display: grid;
    grid-template-columns: minmax(220px, 1fr);
    gap: 0.65rem;
    margin-top: 0.55rem;
    align-items: end;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-poll-config-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-poll-config-body > button {
    grid-column: 1 / -1;
    justify-self: start;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-default-text {
    color: #5d6671;
    font-style: italic;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-question-info-panel {
    border: 1px solid #9ec2ef;
    border-radius: 10px;
    background: #e6f2ff;
    color: #0f3f73;
    padding: 0.7rem 0.8rem;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-question-info-title {
    font-weight: 700;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-question-info-details {
    font-size: 0.88rem;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-focus-data {
    border: 1px solid #d1dbe6;
    border-radius: 10px;
    padding: 0.8rem;
    background: #ffffff;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-response-host {
    min-height: 170px;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-empty-state {
    border: 1px dashed #d2dae4;
    border-radius: 10px;
    padding: 1rem;
    color: #5d6b7c;
    background: #fbfdff;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-open-feed {
    display: grid;
    gap: 0.75rem;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-open-card {
    border: 1px solid #d6dfe8;
    border-radius: 10px;
    padding: 0.75rem;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-open-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-open-card-name {
    font-weight: 700;
    color: #1f2d3d;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-open-card-meta {
    font-size: 0.78rem;
    color: #5f6c7b;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-open-card-answer {
    margin-top: 0.62rem;
    border-top: 1px solid #e3e9ef;
    padding-top: 0.62rem;
    color: #1f2d3d;
    white-space: pre-wrap;
    word-break: break-word;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-open-card-judgement {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-judge-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-judge-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-judge-box {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 0.34rem;
    border: 1px solid #bcc9d6;
    background: #ffffff;
    color: transparent;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-judge-toggle.is-correct .hm-ls-judge-box {
    border-color: #9ccaa8;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-judge-toggle.is-correct .hm-ls-judge-input:checked + .hm-ls-judge-box {
    background: #dff4e3;
    border-color: #4a9c63;
    color: #1f7d3d;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-judge-toggle.is-incorrect .hm-ls-judge-box {
    border-color: #d7a6a6;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-judge-toggle.is-incorrect .hm-ls-judge-input:checked + .hm-ls-judge-box {
    background: #f9d9d9;
    border-color: #b74e4e;
    color: #b31f1f;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-judge-toggle.is-locked {
    cursor: not-allowed;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-judge-toggle.is-locked .hm-ls-judge-box {
    opacity: 0.72;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-mcq-table-wrap {
    border: 1px solid #ccd7e2;
    border-radius: 10px;
    overflow: hidden;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-response-sort-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.9rem;
    align-items: center;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-response-sort-buttons .btn {
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1.25;
    padding: 0.22rem 0.62rem;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-mcq-table {
    margin-bottom: 0;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-mcq-table thead th {
    background: linear-gradient(180deg, #1f6187 0%, #184f6f 100%);
    color: #ffffff;
    border-color: #3f7596;
    font-size: 0.86rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-mcq-table tbody td {
    font-size: 0.88rem;
    border-color: #e3e9f0;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-mcq-table tbody tr.hm-ls-row-correct-low-med td {
    background: #e7f6e8;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-mcq-table tbody tr.hm-ls-row-correct-high td {
    background: #cdeed1;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-mcq-table tbody tr.hm-ls-row-incorrect-low-med td {
    background: #fdeaea;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-mcq-table tbody tr.hm-ls-row-incorrect-high td {
    background: #f8d0d0;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-confidence-table tbody tr.hm-ls-row-confidence-low td {
    background: #f8d7da;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-confidence-table tbody tr.hm-ls-row-confidence-medium td {
    background: #fff3cd;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-confidence-table tbody tr.hm-ls-row-confidence-high td {
    background: #d1e7dd;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-accuracy {
    font-weight: 700;
    font-size: 0.82rem;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-accuracy.is-correct { color: #0a8f3f; }
#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-accuracy.is-incorrect { color: #c22a2a; }
#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-accuracy.is-ungraded { color: #6c7a89; }

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-confidence-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.52rem;
    border: 1px solid transparent;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-confidence-chip.is-low {
    background: #fbe8e6;
    color: #aa3128;
    border-color: #ebc2bf;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-confidence-chip.is-medium {
    background: #f2f5d8;
    color: #5f6f18;
    border-color: #dbe2ac;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-confidence-chip.is-high {
    background: #e0eff8;
    color: #1f5c84;
    border-color: #c1dcec;
}

@media (max-width: 991px) {
    #live-dashboard-content-area .hm-live-tab-nav {
        width: 100%;
    }

    #live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-poll-config-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #live-dashboard-content-area .hm-live-tab-nav {
        display: grid;
        grid-template-columns: 1fr;
    }

    #live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-focus-end-wrap {
        width: 100%;
    }

    #live-dashboard-content-area #teacher-live-slides-phase2-card #teacher-live-slides-end-session-focus {
        width: 100%;
    }

    #live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-toolbar-right {
        margin-left: 0;
        justify-content: flex-start;
    }
}
