#live-dashboard-content-area #teacher-live-slides-phase2-card {
    --hm-ls-live-canvas: #edf1f5;
    --hm-ls-controls-surface: #f4f7fb;
    --hm-ls-controls-border: #7896b3;
    --hm-ls-controls-accent: #365f86;
    --hm-ls-activity-surface: #f7f4f8;
    --hm-ls-activity-border: #8a7898;
    --hm-ls-activity-accent: #675473;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-teaching-clarity {
    border-radius: 18px;
    background: var(--hm-ls-live-canvas);
    box-shadow: 0 0 0 0.5rem var(--hm-ls-live-canvas);
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-student-view-status {
    justify-content: center;
    width: 100%;
    margin-top: 0.65rem;
    margin-bottom: 0.35rem;
    text-align: center;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-student-view-label {
    justify-content: center;
    gap: 0.42rem;
    max-width: 100%;
    min-height: 40px;
    padding: 0.5rem 1rem;
    border: 1px solid #274f75;
    border-radius: 999px;
    background: #365f86;
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 800;
    box-shadow: 0 6px 15px rgba(38, 76, 111, 0.2);
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-student-view-icon {
    flex: 0 0 auto;
    color: #dcebf8;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-student-view-label strong {
    color: #ffffff;
    font-weight: 900;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-console {
    position: relative;
    display: grid;
    gap: 0;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--hm-ls-controls-border);
    border-left-width: 4px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f7f9fc 0%, var(--hm-ls-controls-surface) 100%);
    box-shadow: 0 5px 16px rgba(54, 95, 134, 0.1);
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-zone-legend {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #41566c;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.065em;
    line-height: 1.1;
    text-transform: uppercase;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-zone-legend i {
    width: 1rem;
    text-align: center;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-zone-legend-controls {
    position: absolute;
    top: 0;
    left: 0.75rem;
    z-index: 2;
    transform: translateY(-50%);
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--hm-ls-controls-border);
    border-radius: 999px;
    background: #dce8f3;
    color: #2f5578;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-section {
    display: grid;
    grid-template-columns: 6.3rem minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    padding: 0.62rem 0;
    border-bottom: 1px solid #cad8e5;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-section:last-child {
    border-bottom: 0;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-section-label {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    color: #3e5e7b;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    line-height: 1.2;
    text-transform: uppercase;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-section-label i {
    width: 1rem;
    color: #4f7091;
    text-align: center;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-grid,
#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-inline-session-actions {
    display: grid;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    margin-left: 0;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-grid-pacing {
    grid-template-columns: minmax(15rem, 1.3fr) minmax(10.5rem, 0.8fr);
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-grid-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-inline-session-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-console .btn,
#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-console .hm-ls-mode-switch {
    min-width: 0;
    min-height: 42px;
    border-width: 1px;
    border-radius: 10px;
    box-shadow: none;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.15;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-console .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-color: #a8bacb;
    background: #ffffff;
    color: #29435f;
    white-space: nowrap;
    transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-console .btn:not(:disabled):hover,
#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-console .btn:not(:disabled):focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(30, 64, 110, 0.1);
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-console .btn:disabled {
    opacity: 0.52;
    transform: none;
    box-shadow: none;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-console .hm-ls-mode-switch {
    display: flex;
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0.52rem 0.72rem;
    border-color: #b9c8d8;
    color: #53677c;
    background: #ffffff;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-console .hm-ls-mode-switch:has(#teacher-live-slides-presentation-mode-toggle:not(:checked)) > span:first-child,
#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-console .hm-ls-mode-switch:has(#teacher-live-slides-presentation-mode-toggle:checked) > span:last-child {
    color: #174f9d;
    font-weight: 800 !important;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-console #teacher-live-slides-presentation-mode-toggle {
    flex: 0 0 auto;
    margin-inline: auto;
    accent-color: #2467c8;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-console #teacher-live-slides-teacher-preview-toggle,
#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-console #teacher-live-slides-attention-check-toggle {
    color: #29435f;
    border-color: #b9c8d8;
    background: #ffffff;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-console #teacher-live-slides-teacher-preview-toggle.is-active {
    color: #ffffff;
    border-color: var(--hm-ls-controls-accent);
    background: var(--hm-ls-controls-accent);
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-console #teacher-live-slides-attention-check-toggle.is-active {
    color: #704d00;
    border-color: #e1b94a;
    background: #fff3c4;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-console #teacher-live-slides-open-navigator {
    color: #29435f;
    border-color: #a8bacb;
    background: #ffffff;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-console #teacher-live-slides-open-navigator:not(:disabled):hover,
#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-console #teacher-live-slides-open-navigator:not(:disabled):focus-visible {
    color: #ffffff;
    border-color: #2467c8;
    background: #2467c8;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-console #teacher-live-slides-toggle-music.is-stopped {
    color: #17603a;
    border-color: #94caaa;
    background: #e7f6ec;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-console #teacher-live-slides-toggle-music.is-playing {
    color: #8a4c12;
    border-color: #e8bd83;
    background: #fff3df;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-console #teacher-live-slides-end-session-focus {
    color: #8b2e2e;
    border-color: #e5b0b0;
    background: #fff1f1;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-console #teacher-live-slides-end-session-focus-no-save {
    color: #8b2e2e;
    border-color: #d49a9a;
    background: #ffffff;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-console .hm-ls-music-toggle-btn.hidden {
    display: none !important;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-task-confusion {
    border-left-width: 4px;
    box-shadow: 0 4px 12px rgba(70, 86, 75, 0.12);
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-task-confusion-icon {
    width: 1rem;
    flex: 0 0 auto;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.82;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-task-shell {
    position: relative;
    border-color: var(--hm-ls-activity-border);
    border-left-width: 4px;
    background: var(--hm-ls-activity-surface);
    box-shadow: 0 10px 24px rgba(87, 70, 101, 0.12);
    overflow: visible;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-task-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 1.05rem 0.72rem 0.65rem;
    border-radius: 15px 15px 0 0;
    border-bottom-color: #c9bfd1;
    background: #ebe5ef;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-zone-legend-activity {
    position: absolute;
    top: 0;
    left: 0.75rem;
    z-index: 3;
    transform: translateY(-50%);
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--hm-ls-activity-border);
    border-radius: 999px;
    background: #e6deeb;
    color: #594568;
    white-space: nowrap;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-task-nav .hm-ls-task-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-width: 0;
    padding: 0.65rem 0.7rem;
    border-color: #b8adc4;
    background: #ffffff;
    color: #514361;
    box-shadow: none;
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-task-nav .hm-ls-task-nav-button:hover,
#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-task-nav .hm-ls-task-nav-button:focus-visible {
    border-color: var(--hm-ls-activity-border);
    background: #f9f7fa;
    color: #514361;
    box-shadow: 0 4px 10px rgba(87, 70, 101, 0.12);
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-task-nav .hm-ls-task-nav-button.is-active,
#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-task-nav .hm-ls-task-nav-button.is-active:hover,
#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-task-nav .hm-ls-task-nav-button.is-active:focus-visible {
    border-color: var(--hm-ls-activity-accent);
    background: var(--hm-ls-activity-accent);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(103, 84, 115, 0.24);
}

#live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-task-body {
    border-radius: 0 0 15px 15px;
    background: linear-gradient(180deg, #ffffff 0%, #fbf9fc 100%);
}

@media (max-width: 560px) {
    #live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-student-view-label {
        padding-inline: 0.75rem;
        border-radius: 14px;
        font-size: 0.86rem;
    }

    #live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.45rem;
    }

    #live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-grid-pacing,
    #live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-grid-tools,
    #live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-inline-session-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-control-grid-tools > :nth-child(3):not(.hidden) {
        grid-column: 1 / -1;
    }

    #live-dashboard-content-area #teacher-live-slides-phase2-card .hm-ls-task-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
