/* YLMS Frontend */
:root {
    --ylms-primary: var(--accent-color, #1d73e8);
    --ylms-navy: var(--text-primary, #1f2b3a);
    --ylms-dark: var(--text-primary, #0f172a);
    --ylms-muted: var(--text-secondary, #64748b);
    --ylms-light: var(--surface-muted, #f6f8fb);
    --ylms-card: var(--surface, #ffffff);
    --ylms-border: var(--border, #e5e7eb);
    --ylms-radius: var(--radius-md, 16px);
    --ylms-shadow: var(--shadow-md, 0 18px 45px rgba(15, 23, 42, 0.12));
    --ylms-font-heading: var(--font-heading, inherit);
    --ylms-font-body: var(--font-body, inherit);
}

.ylms-container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.ylms-section,
.ylms-hero,
.ylms-course-hero,
.ylms-panel,
.ylms-card {
    font-family: var(--ylms-font-body);
}

.ylms-section-title,
.ylms-course-hero__content h1,
.ylms-hero__content h1 {
    font-family: var(--ylms-font-heading);
}

.ylms-section {
    padding: 60px 0;
}

.ylms-section--light {
    background: var(--ylms-light);
}

.ylms-section-title {
    font-size: 28px;
    color: var(--ylms-dark);
    margin-bottom: 26px;
}

.ylms-hero {
    background: linear-gradient(120deg, #fff 0%, #f8f7ff 40%, #eef6ff 100%);
    padding: 70px 0;
}

.ylms-hero .ylms-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: center;
}

.ylms-hero__content h1 {
    font-size: 38px;
    color: var(--ylms-dark);
    margin-bottom: 14px;
}

.ylms-hero__content p {
    color: var(--ylms-muted);
    font-size: 16px;
}

.ylms-hero__panel {
    display: flex;
    justify-content: flex-end;
}

.ylms-hero__card {
    background: var(--ylms-card);
    padding: 28px;
    border-radius: var(--ylms-radius);
    box-shadow: var(--ylms-shadow);
}

.ylms-search {
    margin-top: 22px;
    display: flex;
    gap: 10px;
}

.ylms-search input[type="search"] {
    flex: 1;
    border: 1px solid var(--ylms-border);
    padding: 12px 14px;
    border-radius: 10px;
}

.ylms-search button {
    background: var(--ylms-navy);
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
}

.ylms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.ylms-grid--two {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.ylms-card {
    background: var(--ylms-card);
    border-radius: var(--ylms-radius);
    box-shadow: var(--ylms-shadow);
    overflow: hidden;
}

.ylms-card--center {
    text-align: center;
    padding: 24px;
}

.ylms-card--sticky {
    position: sticky;
    top: 90px;
    padding: 22px;
}

.ylms-sidebar {
    display: grid;
    gap: 16px;
    align-content: start;
}

.ylms-card__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.ylms-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ylms-card__thumb--placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, #f1f5f9, #e2e8f0);
}

.ylms-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    background: var(--ylms-primary);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.ylms-badge--alt {
    right: auto;
    left: 12px;
    background: var(--ylms-navy);
}

.ylms-card__body {
    padding: 18px;
}

.ylms-card__meta {
    display: flex;
    gap: 14px;
    color: var(--ylms-muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.ylms-card__title {
    font-size: 18px;
    color: var(--ylms-dark);
    margin-bottom: 10px;
}

.ylms-card__title a {
    color: inherit;
    text-decoration: none;
}

.ylms-card__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ylms-stars {
    color: #fbbf24;
    letter-spacing: 1px;
}

.ylms-muted {
    color: var(--ylms-muted);
    font-size: 14px;
}

.ylms-empty {
    color: var(--ylms-muted);
    padding: 12px 0;
}

.ylms-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--ylms-primary);
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}

.ylms-button--ghost {
    background: transparent;
    color: var(--ylms-primary);
    border: 1px solid var(--ylms-primary);
}

.ylms-live-box {
    border: 1px solid var(--ylms-border);
    border-radius: 12px;
    padding: 16px;
    background: #f8fbff;
}

body.ylms-live-chrome-off .ylms-live-shell-minimal {
    padding: 0;
}

body.ylms-live-chrome-off .ylms-live-shell-minimal .ylms-container {
    width: min(100vw, 1920px);
    margin: 0;
}

body.ylms-live-chrome-off .ylms-live-shell-minimal .ylms-live-lesson-layout.ylms-live-surface--presenter,
body.ylms-live-chrome-off .ylms-live-shell-minimal .ylms-live-lesson-layout.ylms-live-surface--moderator {
    width: 100vw;
    margin: 0;
    min-height: 100dvh;
}

body.ylms-live-chrome-off .ylms-live-shell-minimal .ylms-live-lesson-layout.ylms-live-surface--participant {
    width: 100vw;
    margin: 0;
    min-height: auto;
}

body.ylms-live-chrome-off .ylms-live-shell-minimal .ylms-live-lesson-layout.ylms-live-surface--presenter .ylms-panel,
body.ylms-live-chrome-off .ylms-live-shell-minimal .ylms-live-lesson-layout.ylms-live-surface--moderator .ylms-panel {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

body.ylms-live-chrome-off .ylms-live-shell-minimal ~ * {
    display: none;
}

body.ylms-live-chrome-off .ylms-live-shell-minimal ~ footer,
body.ylms-live-chrome-off .ylms-live-shell-minimal ~ .site-footer {
    display: none !important;
}

body.ylms-live-chrome-off .ylms-live-shell-minimal + footer,
body.ylms-live-chrome-off .ylms-live-shell-minimal + .site-footer,
body.ylms-live-chrome-off .ylms-live-shell-minimal + .footer,
body.ylms-live-chrome-off .ylms-live-shell-minimal + .page-footer {
    display: none !important;
}

body.ylms-live-chrome-off header,
body.ylms-live-chrome-off .site-header,
body.ylms-live-chrome-off .header,
body.ylms-live-chrome-off .navbar,
body.ylms-live-chrome-off .breadcrumbs,
body.ylms-live-chrome-off .breadcrumb,
body.ylms-live-chrome-off .page-breadcrumbs,
body.ylms-live-chrome-off .page-title,
body.ylms-live-chrome-off footer,
body.ylms-live-chrome-off .site-footer {
    display: none !important;
}

.ylms-live-lesson-layout .ylms-panel {
    max-width: 1240px;
    margin: 0 auto;
}

.ylms-live-lesson-layout.ylms-live-surface--presenter,
.ylms-live-lesson-layout.ylms-live-surface--moderator {
    width: min(98vw, 1920px);
    max-width: none;
}

.ylms-live-lesson-layout.ylms-live-surface--participant {
    width: min(98vw, 1920px);
    max-width: none;
}

.ylms-live-lesson-layout.ylms-live-surface--presenter .ylms-panel,
.ylms-live-lesson-layout.ylms-live-surface--moderator .ylms-panel {
    max-width: none;
    width: 100%;
}

.ylms-live-lesson-shell {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.ylms-live-role-links {
    border: 1px solid var(--ylms-border);
    border-radius: 12px;
    padding: 12px;
    background: #ffffff;
}

.ylms-live-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    margin: 4px 0 10px;
}

.ylms-live-status--live {
    background: #dcfce7;
    color: #166534;
}

.ylms-live-status--upcoming {
    background: #dbeafe;
    color: #1d4ed8;
}

.ylms-live-status--ended,
.ylms-live-status--unscheduled {
    background: #f1f5f9;
    color: #334155;
}

.ylms-live-room,
.ylms-presenter-console {
    margin-top: 16px;
    border: 1px solid var(--ylms-border);
    border-radius: 14px;
    padding: 14px;
    background: #fff;
}

/* Theme styles can override HTML hidden attr; force-hide live blocks explicitly. */
.ylms-live-room [hidden],
.ylms-teach-mode [hidden],
.ylms-presenter-console [hidden],
.ylms-live-engage [hidden],
.ylms-live-slide [hidden] {
    display: none !important;
}

.ylms-teach-mode {
    margin-top: 16px;
    border: 1px solid var(--ylms-border);
    border-radius: 20px;
    padding: 12px;
    background: #fff;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: calc(100vh - 64px);
}

.ylms-teach-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f5ec9 0%, #1d76db 100%);
    color: #fff;
    padding: 12px 16px;
}

.ylms-teach-banner__join {
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    font-size: 16px;
    display: grid;
    gap: 2px;
}

.ylms-teach-banner__join strong {
    font-size: 18px;
    letter-spacing: 0;
    font-weight: 700;
    word-break: break-all;
}

.ylms-teach-banner__link {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: #e6f1ff;
    text-decoration: underline;
    word-break: break-all;
}

.ylms-teach-banner__link:hover,
.ylms-teach-banner__link:focus-visible {
    color: #ffffff;
}

.ylms-teach-banner__meta {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.ylms-teach-stage {
    position: relative;
    border: 1px solid var(--ylms-border);
    border-radius: 18px;
    padding: 10px;
    background: #f4f7fb;
    min-height: 0;
    height: 100%;
}

.ylms-teach-main {
    height: 100%;
    min-width: 0;
    display: grid;
}

.ylms-teach-stage .ylms-live-slide__canvas {
    height: 100%;
    min-height: 0;
    max-height: none;
    border-radius: 14px;
    border-style: solid;
}

.ylms-teach-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid #b7c8df;
    background: rgba(255, 255, 255, 0.92);
    color: #1f3d68;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
}

.ylms-teach-nav--prev {
    left: 8px;
}

.ylms-teach-nav--next {
    right: 8px;
}

.ylms-teach-dock {
    border: 1px solid var(--ylms-border);
    border-radius: 14px;
    background: #fff;
    padding: 12px;
    display: grid;
    gap: 10px;
}

.ylms-teach-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.ylms-teach-infobar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid #d8e2ef;
    background: #f8fbff;
    border-radius: 10px;
    padding: 8px 10px;
}

.ylms-teach-infobar .ylms-muted {
    margin: 0;
}

.ylms-teach-action {
    border: 1px solid var(--ylms-border);
    border-radius: 12px;
    background: #fff;
    padding: 10px 8px;
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
}

.ylms-teach-action__icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: #1d76db;
}

.ylms-teach-action:nth-child(2) .ylms-teach-action__icon {
    background: #0f172a;
}

.ylms-teach-action:nth-child(3) .ylms-teach-action__icon {
    background: #dc2626;
}

.ylms-teach-action:nth-child(4) .ylms-teach-action__icon {
    background: #2563eb;
}

.ylms-teach-action:nth-child(5) .ylms-teach-action__icon {
    background: #0b4aa5;
}

.ylms-live-surface--presenter .ylms-teach-mode,
.ylms-live-surface--moderator .ylms-teach-mode {
    --ylms-live-admin-offset: 0px;
    margin-top: 0;
    min-height: calc(100dvh - var(--ylms-live-admin-offset));
    height: calc(100dvh - var(--ylms-live-admin-offset));
    grid-template-rows: minmax(0, 1fr);
    gap: 2px;
    padding: 3px;
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
}

body.admin-bar .ylms-live-surface--presenter .ylms-teach-mode,
body.admin-bar .ylms-live-surface--moderator .ylms-teach-mode {
    --ylms-live-admin-offset: 32px;
}

.ylms-live-surface--presenter .ylms-teach-banner,
.ylms-live-surface--moderator .ylms-teach-banner {
    height: 100%;
    min-height: 0;
    padding: 10px 16px;
}

.ylms-live-surface--presenter .ylms-teach-stage,
.ylms-live-surface--moderator .ylms-teach-stage {
    height: 100%;
    min-height: 0;
    padding: 2px;
    border-radius: 10px;
}

.ylms-live-surface--presenter .ylms-teach-stage .ylms-live-slide__canvas,
.ylms-live-surface--moderator .ylms-teach-stage .ylms-live-slide__canvas {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    margin-bottom: 0;
}

.ylms-live-surface--presenter .ylms-teach-main,
.ylms-live-surface--moderator .ylms-teach-main {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(145px, 13%) minmax(0, 87%);
    gap: 6px;
    align-items: stretch;
}

.ylms-live-surface--presenter .ylms-teach-slidepane,
.ylms-live-surface--moderator .ylms-teach-slidepane {
    min-width: 0;
}

.ylms-teach-rail {
    border: 1px solid #d8e2ef;
    border-radius: 12px;
    background: #f8fbff;
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
}

.ylms-teach-rail__panel {
    display: grid;
    gap: 8px;
}

.ylms-teach-rail__panel h4 {
    margin: 0;
    font-size: 13px;
    color: #1e293b;
}

.ylms-teach-slidepane {
    min-width: 0;
    height: 100%;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    position: relative;
}

.ylms-stage-mode-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 9;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
    pointer-events: none;
}

.ylms-slide-hitnav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 8;
}

.ylms-slide-hitnav--prev {
    left: 8px;
}

.ylms-slide-hitnav--next {
    right: 8px;
}

.ylms-slide-hitnav:hover,
.ylms-slide-hitnav:focus-visible {
    background: #ffffff;
    border-color: #93c5fd;
}

.ylms-share-float {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 12;
    width: min(420px, calc(100% - 16px));
    border: 1px solid #d8e2ef;
    border-radius: 12px;
    background: #f8fbff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
    padding: 12px;
    display: grid;
    gap: 10px;
}

.ylms-share-float h4 {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
}

.ylms-share-float .ylms-muted {
    margin: 0;
}

.ylms-share-float__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 180px);
    gap: 8px;
}

.ylms-share-float__row input[type="url"],
.ylms-share-float__row input[type="text"],
.ylms-share-float__row input[type="file"] {
    width: 100%;
    min-width: 0;
}

.ylms-share-float__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ylms-share-float__actions .ylms-button {
    min-width: 140px;
}

.ylms-teach-rail [data-live-poll-pane] p {
    margin: 0;
}

.ylms-teach-rail .ylms-live-actions {
    display: grid;
    gap: 6px;
}

.ylms-teach-rail .ylms-live-actions input,
.ylms-teach-rail .ylms-live-actions button {
    width: 100%;
}

.ylms-teach-rail__prompt {
    margin: 0;
}

.ylms-live-poll-overlay {
    height: 100%;
    overflow-y: auto;
    padding: 16px 20px;
    background: #fff;
    border-radius: 10px;
}

.ylms-live-poll-overlay__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 40px 16px;
    text-align: center;
    color: #64748b;
}

.ylms-live-poll-overlay__placeholder strong {
    font-size: 1.1rem;
    color: #334155;
}

.ylms-live-surface--presenter .ylms-teach-stage .ylms-live-poll-overlay,
.ylms-live-surface--moderator .ylms-teach-stage .ylms-live-poll-overlay {
    position: absolute;
    inset: 0;
    z-index: 9;
    height: 100%;
    min-height: 0;
    margin: 0;
}

.ylms-teach-mode.is-full-slide .ylms-teach-main {
    grid-template-columns: minmax(0, 1fr) !important;
}

.ylms-teach-mode.is-full-slide .ylms-teach-rail {
    display: none !important;
}

.ylms-live-surface--presenter .ylms-teach-action--full-slide .ylms-teach-action__icon,
.ylms-live-surface--moderator .ylms-teach-action--full-slide .ylms-teach-action__icon {
    background: #0b4aa5;
    color: #ffffff;
}

.ylms-fullslide-panel {
    position: absolute;
    inset: 6px;
    z-index: 24;
    display: grid;
    align-items: flex-start;
    pointer-events: none;
}

.ylms-fullslide-panel__card {
    width: 100%;
    height: 100%;
    max-height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border: 1px solid #d8e2ef;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
    pointer-events: auto;
}

.ylms-fullslide-panel__head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #d8e2ef;
    background: rgba(248, 251, 255, 0.98);
}

.ylms-fullslide-panel__body {
    padding: 10px 12px 12px;
    min-height: 0;
    overflow: auto;
}

.ylms-teach-mode.is-full-slide .ylms-live-poll-overlay {
    inset: 6px;
    border-radius: 14px;
}

.ylms-live-surface--presenter .ylms-teach-stage .ylms-live-screen-share,
.ylms-live-surface--moderator .ylms-teach-stage .ylms-live-screen-share {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
}

.ylms-live-surface--presenter .ylms-teach-stage .ylms-live-screen-share iframe,
.ylms-live-surface--moderator .ylms-teach-stage .ylms-live-screen-share iframe,
.ylms-live-surface--presenter .ylms-teach-stage .ylms-live-share-image,
.ylms-live-surface--moderator .ylms-teach-stage .ylms-live-share-image {
    min-height: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    border: none;
    border-radius: 10px;
}

.ylms-live-surface--presenter .ylms-teach-stage .ylms-live-screen-share > p[hidden],
.ylms-live-surface--moderator .ylms-teach-stage .ylms-live-screen-share > p[hidden] {
    display: none !important;
}

.ylms-live-surface--presenter .ylms-teach-nav,
.ylms-live-surface--moderator .ylms-teach-nav {
    display: none !important;
}

.ylms-live-poll-overlay h4 {
    margin: 0 0 8px;
}

.ylms-live-poll-nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.ylms-live-poll-nav .ylms-button {
    min-width: 96px;
}

.ylms-teach-share-float {
    position: absolute;
    top: 8px;
    right: 8px;
    width: min(420px, 56%);
    max-height: calc(100% - 16px);
    overflow: auto;
    border: 1px solid #d8e2ef;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
    z-index: 6;
}

.ylms-teach-share-float h4 {
    margin: 0 0 8px;
}

.ylms-teach-mobile-block {
    display: none;
}

.ylms-live-surface--presenter .ylms-teach-dock,
.ylms-live-surface--moderator .ylms-teach-dock {
    border: 1px solid #d8e2ef;
    background: rgba(255, 255, 255, 0.96);
    padding: 4px 8px;
    height: auto;
    min-height: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(4px + env(safe-area-inset-bottom, 0px));
    width: min(960px, calc(100vw - 10px));
    border-radius: 16px;
    z-index: 30;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.ylms-live-surface--presenter .ylms-teach-infobar,
.ylms-live-surface--moderator .ylms-teach-infobar {
    display: none;
}

.ylms-live-surface--presenter .ylms-teach-actions,
.ylms-live-surface--moderator .ylms-teach-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 6px;
    flex-wrap: nowrap;
}

.ylms-live-surface--presenter .ylms-teach-action,
.ylms-live-surface--moderator .ylms-teach-action {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 0;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: none;
}

.ylms-live-surface--presenter .ylms-teach-action.is-active .ylms-teach-action__icon,
.ylms-live-surface--moderator .ylms-teach-action.is-active .ylms-teach-action__icon {
    box-shadow: 0 0 0 2px rgba(29, 118, 219, 0.24), 0 6px 14px rgba(15, 23, 42, 0.14);
}

.ylms-live-surface--presenter .ylms-teach-action[data-live-count]:not([data-live-count="0"])::after,
.ylms-live-surface--moderator .ylms-teach-action[data-live-count]:not([data-live-count="0"])::after {
    content: attr(data-live-count);
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.ylms-live-surface--presenter .ylms-teach-action__icon,
.ylms-live-surface--moderator .ylms-teach-action__icon {
    width: 30px;
    height: 30px;
    font-size: 15px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
    transition: transform 0.16s ease;
}

.ylms-live-surface--presenter .ylms-teach-action--canvas .ylms-teach-action__icon,
.ylms-live-surface--moderator .ylms-teach-action--canvas .ylms-teach-action__icon {
    background: #1976d2;
    color: #ffffff;
}

.ylms-live-surface--presenter .ylms-teach-action--rail-qa .ylms-teach-action__icon,
.ylms-live-surface--moderator .ylms-teach-action--rail-qa .ylms-teach-action__icon {
    background: #2563eb;
    color: #ffffff;
}

.ylms-live-surface--presenter .ylms-teach-action--session-start .ylms-teach-action__icon,
.ylms-live-surface--moderator .ylms-teach-action--session-start .ylms-teach-action__icon {
    background: #16a34a;
    color: #ffffff;
}

.ylms-live-surface--presenter .ylms-teach-action--session-end .ylms-teach-action__icon,
.ylms-live-surface--moderator .ylms-teach-action--session-end .ylms-teach-action__icon {
    background: #ef4444;
    color: #ffffff;
}

.ylms-live-surface--presenter .ylms-teach-action--chat-mute .ylms-teach-action__icon,
.ylms-live-surface--moderator .ylms-teach-action--chat-mute .ylms-teach-action__icon {
    background: #ffffff;
    color: #475569;
    border: 1px solid #d8e2ef;
}

.ylms-live-surface--presenter .ylms-teach-action--room-lock .ylms-teach-action__icon,
.ylms-live-surface--moderator .ylms-teach-action--room-lock .ylms-teach-action__icon {
    background: #ffffff;
    color: #334155;
    border: 1px solid #d8e2ef;
}

.ylms-live-surface--presenter .ylms-teach-action--screen-share .ylms-teach-action__icon,
.ylms-live-surface--moderator .ylms-teach-action--screen-share .ylms-teach-action__icon {
    background: #0ea5e9;
    color: #ffffff;
}

.ylms-live-surface--presenter .ylms-teach-action--slide-share .ylms-teach-action__icon,
.ylms-live-surface--moderator .ylms-teach-action--slide-share .ylms-teach-action__icon {
    background: #0f766e;
    color: #ffffff;
}

.ylms-live-surface--presenter .ylms-teach-action--capture .ylms-teach-action__icon,
.ylms-live-surface--moderator .ylms-teach-action--capture .ylms-teach-action__icon {
    background: #0369a1;
    color: #ffffff;
}

.ylms-live-surface--presenter .ylms-teach-action--canvas-add .ylms-teach-action__icon,
.ylms-live-surface--moderator .ylms-teach-action--canvas-add .ylms-teach-action__icon {
    background: #15803d;
    color: #ffffff;
}

.ylms-live-surface--presenter .ylms-teach-action--whiteboard .ylms-teach-action__icon,
.ylms-live-surface--moderator .ylms-teach-action--whiteboard .ylms-teach-action__icon {
    background: #ffffff;
    color: #0b4aa5;
    border: 1px solid #d8e2ef;
}

.ylms-live-surface--presenter .ylms-teach-action--freeze .ylms-teach-action__icon,
.ylms-live-surface--moderator .ylms-teach-action--freeze .ylms-teach-action__icon {
    background: #ef4444;
    color: #ffffff;
}

.ylms-live-surface--presenter .ylms-teach-action--responses .ylms-teach-action__icon,
.ylms-live-surface--moderator .ylms-teach-action--responses .ylms-teach-action__icon {
    background: #ffffff;
    color: #0b4aa5;
    border: 1px solid #d8e2ef;
}

.ylms-live-surface--presenter .ylms-teach-action--rail-poll .ylms-teach-action__icon,
.ylms-live-surface--moderator .ylms-teach-action--rail-poll .ylms-teach-action__icon {
    background: #7c3aed;
    color: #ffffff;
}

.ylms-live-surface--presenter .ylms-teach-action--share-desktop .ylms-teach-action__icon,
.ylms-live-surface--moderator .ylms-teach-action--share-desktop .ylms-teach-action__icon {
    background: #0369a1;
    color: #ffffff;
}

.ylms-live-surface--presenter .ylms-teach-action--share-slides .ylms-teach-action__icon,
.ylms-live-surface--moderator .ylms-teach-action--share-slides .ylms-teach-action__icon {
    background: #0d9488;
    color: #ffffff;
}

.ylms-live-surface--presenter .ylms-teach-action--whiteboard .ylms-teach-action__icon,
.ylms-live-surface--moderator .ylms-teach-action--whiteboard .ylms-teach-action__icon {
    background: #15803d;
    color: #ffffff;
}

.ylms-live-reaction-bursts {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 7;
}

.ylms-live-reaction-burst {
    position: absolute;
    bottom: 10%;
    font-size: clamp(22px, 2.4vw, 38px);
    animation: ylms-reaction-rise 2.2s ease-out forwards;
    opacity: 0;
    filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.25));
}

@keyframes ylms-reaction-rise {
    0% { transform: translateY(8px) scale(0.92); opacity: 0; }
    15% { opacity: 1; }
    100% { transform: translateY(-220px) scale(1.08); opacity: 0; }
}

.ylms-live-surface--presenter .ylms-teach-action__label,
.ylms-live-surface--moderator .ylms-teach-action__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.ylms-live-surface--presenter .ylms-teach-action:hover .ylms-teach-action__icon,
.ylms-live-surface--presenter .ylms-teach-action:focus-visible .ylms-teach-action__icon,
.ylms-live-surface--moderator .ylms-teach-action:hover .ylms-teach-action__icon,
.ylms-live-surface--moderator .ylms-teach-action:focus-visible .ylms-teach-action__icon {
    transform: translateY(-1px);
}

@media (max-width: 1024px) {
    .ylms-live-surface--presenter .ylms-teach-mode,
    .ylms-live-surface--moderator .ylms-teach-mode {
        grid-template-rows: minmax(0, 1fr);
        gap: 2px;
        padding: 3px;
        padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    }
    .ylms-live-surface--presenter .ylms-teach-banner,
    .ylms-live-surface--moderator .ylms-teach-banner {
        padding: 8px 12px;
    }
    .ylms-live-surface--presenter .ylms-teach-banner__join,
    .ylms-live-surface--moderator .ylms-teach-banner__join {
        font-size: 14px;
    }
    .ylms-live-surface--presenter .ylms-teach-banner__join strong,
    .ylms-live-surface--moderator .ylms-teach-banner__join strong {
        font-size: 15px;
    }
    .ylms-live-surface--presenter .ylms-teach-actions,
    .ylms-live-surface--moderator .ylms-teach-actions {
        gap: 6px;
    }
    .ylms-live-surface--presenter .ylms-teach-dock,
    .ylms-live-surface--moderator .ylms-teach-dock {
        width: calc(100vw - 8px);
        border-radius: 14px;
        padding: 4px 6px;
        bottom: calc(4px + env(safe-area-inset-bottom, 0px));
    }
    .ylms-live-surface--presenter .ylms-teach-action,
    .ylms-live-surface--moderator .ylms-teach-action {
        width: 38px;
        height: 38px;
    }
    .ylms-live-surface--presenter .ylms-teach-action__icon,
    .ylms-live-surface--moderator .ylms-teach-action__icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    .ylms-live-surface--presenter .ylms-teach-main,
    .ylms-live-surface--moderator .ylms-teach-main {
        grid-template-columns: 1fr;
        position: relative;
    }
    .ylms-teach-rail {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(360px, 78%);
        z-index: 5;
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
    }
    .ylms-teach-rail[hidden] {
        display: none !important;
    }
    .ylms-live-poll-overlay {
        padding: 12px 14px;
    }
    .ylms-live-surface--presenter .ylms-teach-action--capture,
    .ylms-live-surface--moderator .ylms-teach-action--capture {
        display: none !important;
    }
    [data-live-capture-float] {
        display: none !important;
    }
}

@media (max-width: 760px) {
    .ylms-live-surface--presenter .ylms-teach-mode,
    .ylms-live-surface--moderator .ylms-teach-mode {
        display: none !important;
    }
    .ylms-teach-mobile-block {
        display: block;
        border: 1px solid var(--ylms-border);
        border-radius: 12px;
        padding: 12px;
        background: #fff;
    }
    body.admin-bar .ylms-live-surface--presenter .ylms-teach-mode,
    body.admin-bar .ylms-live-surface--moderator .ylms-teach-mode {
        --ylms-live-admin-offset: 46px;
    }
    .ylms-live-surface--presenter .ylms-teach-mode,
    .ylms-live-surface--moderator .ylms-teach-mode {
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 6px;
        padding: 6px;
    }
    .ylms-live-surface--presenter .ylms-teach-banner,
    .ylms-live-surface--moderator .ylms-teach-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 8px 10px;
    }
    .ylms-live-surface--presenter .ylms-teach-banner__join,
    .ylms-live-surface--moderator .ylms-teach-banner__join {
        font-size: 13px;
    }
    .ylms-live-surface--presenter .ylms-teach-banner__join strong,
    .ylms-live-surface--moderator .ylms-teach-banner__join strong {
        font-size: 13px;
    }
    .ylms-live-surface--presenter .ylms-teach-banner__meta .ylms-muted,
    .ylms-live-surface--moderator .ylms-teach-banner__meta .ylms-muted {
        display: none;
    }
    .ylms-live-surface--presenter .ylms-teach-stage,
    .ylms-live-surface--moderator .ylms-teach-stage {
        padding: 8px 44px;
        border-radius: 12px;
    }
    .ylms-live-surface--presenter .ylms-teach-nav,
    .ylms-live-surface--moderator .ylms-teach-nav {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
    .ylms-live-surface--presenter .ylms-teach-nav--prev,
    .ylms-live-surface--moderator .ylms-teach-nav--prev {
        left: 4px;
    }
    .ylms-live-surface--presenter .ylms-teach-nav--next,
    .ylms-live-surface--moderator .ylms-teach-nav--next {
        right: 4px;
    }
    .ylms-share-float {
        width: calc(100% - 12px);
        top: 6px;
        right: 6px;
        border-radius: 10px;
        padding: 10px;
    }
    .ylms-share-float__row {
        grid-template-columns: minmax(0, 1fr);
    }
    .ylms-live-surface--presenter .ylms-teach-actions,
    .ylms-live-surface--moderator .ylms-teach-actions {
        gap: 8px;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 2px 2px;
    }
    .ylms-live-surface--presenter .ylms-teach-action,
    .ylms-live-surface--moderator .ylms-teach-action {
        width: 46px;
        height: 46px;
    }
    .ylms-live-surface--presenter .ylms-teach-action__icon,
    .ylms-live-surface--moderator .ylms-teach-action__icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
    }
}

.ylms-teach-drawer {
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: #fff;
    display: grid;
    grid-template-rows: auto 1fr;
}

.ylms-teach-drawer[hidden] {
    display: none !important;
}

.ylms-teach-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ylms-border);
}

.ylms-teach-drawer__body {
    padding: 12px;
    overflow: auto;
    display: grid;
    gap: 10px;
}

.ylms-live-room__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.ylms-live-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 14px;
}

.ylms-live-room--participant .ylms-live-layout {
    grid-template-columns: minmax(0, 1fr);
}

.ylms-live-room--participant .ylms-live-room__header {
    display: none;
}

.ylms-live-room--participant .ylms-live-slide {
    order: 1;
    position: relative;
    padding: 0;
    border: none;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.ylms-live-room--participant .ylms-live-engage {
    order: 2;
    border: none;
    padding: 8px 0;
    background: transparent;
}

.ylms-live-room--participant .ylms-live-slide__toolbar,
.ylms-live-room--participant [data-live-state-text],
.ylms-live-room--participant [data-live-reveal-text] {
    display: none !important;
}

.ylms-live-room--participant .ylms-live-room__header,
.ylms-live-room--participant .ylms-live-slide__toolbar,
.ylms-live-room--participant .ylms-live-slide h2,
.ylms-live-room--participant .ylms-live-slide h3,
.ylms-live-room--participant [data-live-slide-placeholder-title],
.ylms-live-room--participant [data-live-slide-placeholder-sub] {
    display: none !important;
}

.ylms-live-room--participant {
    height: auto;
    max-height: none;
    overflow: visible;
}

.ylms-live-room--participant .ylms-live-layout {
    overflow: visible;
}

.ylms-live-room--participant .ylms-live-slide__canvas {
    aspect-ratio: 16 / 10;
    min-height: 66vh;
    max-height: none;
}

/* Hide info header for guests */
.ylms-live-surface--participant .ylms-live-lesson-shell {
    display: none;
}

/* Hide "Open Live Session" button in participant view */
.ylms-live-room--participant .ylms-live-slide > p > .ylms-button {
    display: none !important;
}

/* Slide share fills guest slide panel */
.ylms-live-room--participant .ylms-live-screen-share {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
}

.ylms-live-room--participant .ylms-live-screen-share iframe,
.ylms-live-room--participant .ylms-live-share-image {
    aspect-ratio: 16 / 10;
    min-height: 66vh;
    width: 100%;
    border: none;
    border-radius: 10px;
}

.ylms-live-room--participant .ylms-live-slide-image,
.ylms-live-room--participant .ylms-live-share-image {
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Desktop: audience dock vertical strip on right side */
@media (min-width: 961px) {
    .ylms-live-room--participant .ylms-live-audience-dock {
        position: absolute;
        right: 12px;
        bottom: 12px;
        flex-direction: column;
        z-index: 5;
    }
}

.ylms-live-name-gate {
    border: 1px solid var(--ylms-border);
    border-radius: 12px;
    padding: 12px;
    background: #f8fbff;
    margin-bottom: 12px;
}

.ylms-live-room--awaiting-name [data-live-main] {
    display: none;
}

.ylms-live-room--engage-focus .ylms-live-layout {
    grid-template-columns: minmax(0, 1fr);
}

.ylms-live-slide,
.ylms-live-engage,
.ylms-presenter-stage,
.ylms-presenter-panel {
    border: 1px solid var(--ylms-border);
    border-radius: 12px;
    padding: 12px;
    background: #fafcff;
}

.ylms-live-screen-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    display: grid;
    place-content: center;
    text-align: center;
    gap: 6px;
    z-index: 3;
    padding: 16px;
}

.ylms-live-sheet-toggle {
    display: none;
    width: 100%;
    margin-bottom: 8px;
}

.ylms-live-sheet {
    display: block;
}

.ylms-live-engage--audience .ylms-live-sheet {
    margin-top: 10px;
}

.ylms-live-audience-dock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 4px 0;
    overflow-x: auto;
}

.ylms-live-audience-dock .ylms-teach-action {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    border: 0;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: none;
}

.ylms-live-audience-dock .ylms-teach-action__icon {
    width: 46px;
    height: 46px;
    font-size: 22px;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
}

.ylms-live-audience-dock .ylms-teach-action__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.ylms-live-audience-dock .ylms-teach-action.is-active .ylms-teach-action__icon {
    box-shadow: 0 0 0 2px rgba(29, 118, 219, 0.24), 0 6px 14px rgba(15, 23, 42, 0.14);
}

.ylms-live-engage--audience .ylms-live-tabpanel {
    display: none;
}

.ylms-live-engage--audience .ylms-live-tabpanel.is-active {
    display: block;
}

.ylms-live-sheet-close {
    margin: 0 0 8px;
}

.ylms-live-room--participant .ylms-live-tab[data-target="hands"],
.ylms-live-room--participant .ylms-live-tab[data-target="handouts"],
.ylms-live-room--participant .ylms-live-tab[data-target="reflection"] {
    display: none;
}

.ylms-live-sheet-peek {
    display: none;
    width: 100%;
    border: 1px solid var(--ylms-border);
    border-radius: 10px;
    background: #fff;
    padding: 8px 10px;
    margin-bottom: 8px;
    text-align: left;
    gap: 8px;
}

.ylms-live-sheet-peek__item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
    font-size: 12px;
    color: var(--ylms-muted);
}

.ylms-moderator-console {
    border-color: #c6dbf8;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.ylms-moderator-console .ylms-presenter-grid {
    grid-template-columns: minmax(0, 1fr);
}

.ylms-moderator-console .ylms-presenter-stage {
    display: none;
}

.ylms-presenter-console--minimal [data-live-qa-list],
.ylms-presenter-console--minimal [data-live-hands-manage],
.ylms-presenter-console--minimal [data-live-participants],
.ylms-presenter-console--minimal [data-live-breakout-summary],
.ylms-presenter-console--minimal [data-live-ink-devices],
.ylms-presenter-console--minimal [data-live-handouts-manage],
.ylms-presenter-console--minimal [data-live-reflections-manage],
.ylms-presenter-console--minimal [data-live-analytics] {
    display: none;
}

.ylms-live-toasts {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 2000;
    display: grid;
    gap: 8px;
    max-width: min(360px, calc(100vw - 28px));
}

.ylms-live-toast {
    background: #0f172a;
    color: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.26);
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.ylms-live-toast a {
    color: #93c5fd;
    text-decoration: underline;
    white-space: nowrap;
}

.ylms-live-toast.is-hiding {
    opacity: 0;
    transform: translateY(8px);
}

.ylms-live-slide__toolbar {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
}

.ylms-live-slide__canvas {
    width: 100%;
    max-width: min(100%, calc(74vh * 16 / 9));
    min-height: 220px;
    aspect-ratio: 16 / 9;
    max-height: 74vh;
    border: 1px dashed #b6c7e6;
    border-radius: 10px;
    background: #fff;
    margin: 0 auto 10px;
    position: relative;
    overflow: hidden;
}

.ylms-live-slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    transition: opacity 0.12s ease;
}

.ylms-ink-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
    pointer-events: none;
}

.ylms-ink-canvas.is-drawing {
    pointer-events: auto;
    cursor: crosshair;
}

.ylms-live-placeholder {
    min-height: 180px;
    display: grid;
    place-content: center;
    text-align: center;
    color: var(--ylms-muted);
    gap: 6px;
}

.ylms-live-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.ylms-live-tab {
    border: 1px solid var(--ylms-border);
    background: #fff;
    border-radius: 999px;
    padding: 6px 10px;
    cursor: pointer;
}

.ylms-live-tab.is-active {
    border-color: var(--ylms-primary);
    color: var(--ylms-primary);
}

.ylms-live-tabpanel {
    display: none;
}

.ylms-live-tabpanel.is-active {
    display: block;
}

.ylms-live-tabpanel textarea {
    width: 100%;
    margin-bottom: 8px;
}

.ylms-live-feed {
    margin-top: 10px;
    border: 1px solid var(--ylms-border);
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
    max-height: 180px;
    overflow: auto;
}

.ylms-live-feed--participants {
    max-height: 420px;
    min-height: 180px;
}

.ylms-live-feed p {
    margin: 0 0 6px;
    font-size: 13px;
}

/* Presenter Q&A readability boost (distance-friendly) */
.ylms-live-surface--presenter .ylms-teach-rail__panel[data-live-rail-panel="qa"] h4,
.ylms-live-surface--moderator .ylms-teach-rail__panel[data-live-rail-panel="qa"] h4 {
    font-size: 22px;
    line-height: 1.2;
}

.ylms-live-surface--presenter .ylms-teach-rail__panel[data-live-rail-panel="qa"] .ylms-live-feed,
.ylms-live-surface--moderator .ylms-teach-rail__panel[data-live-rail-panel="qa"] .ylms-live-feed {
    max-height: 56vh;
}

.ylms-live-surface--presenter .ylms-teach-rail__panel[data-live-rail-panel="qa"] .ylms-live-feed p,
.ylms-live-surface--moderator .ylms-teach-rail__panel[data-live-rail-panel="qa"] .ylms-live-feed p {
    font-size: 20px;
    line-height: 1.45;
    margin-bottom: 12px;
}

.ylms-live-surface--presenter .ylms-teach-rail__panel[data-live-rail-panel="qa"] .ylms-live-feed small,
.ylms-live-surface--moderator .ylms-teach-rail__panel[data-live-rail-panel="qa"] .ylms-live-feed small {
    font-size: 15px;
    display: inline-block;
    margin-bottom: 4px;
}

.ylms-live-surface--presenter .ylms-teach-rail__panel[data-live-rail-panel="qa"] [data-live-viewers-total],
.ylms-live-surface--moderator .ylms-teach-rail__panel[data-live-rail-panel="qa"] [data-live-viewers-total] {
    font-size: 19px;
    line-height: 1.35;
    font-weight: 700;
    color: #1e293b;
}

.ylms-live-surface--presenter .ylms-teach-rail__panel[data-live-rail-panel="qa"] .ylms-teach-rail__prompt,
.ylms-live-surface--moderator .ylms-teach-rail__panel[data-live-rail-panel="qa"] .ylms-teach-rail__prompt {
    font-size: 18px;
    line-height: 1.45;
    color: #334155;
}

.ylms-fullslide-panel .ylms-live-feed p,
.ylms-fullslide-panel .ylms-live-feed li {
    font-size: 22px;
    line-height: 1.5;
}

.ylms-fullslide-panel .ylms-live-feed small {
    font-size: 16px;
}

.ylms-live-qa-tools {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

.ylms-live-qa-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ylms-live-qa-item {
    border: 1px solid var(--ylms-border);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 6px;
    background: #fff;
}

.ylms-live-slide-jump {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ylms-live-screen-share {
    margin-top: 10px;
    border: 1px solid var(--ylms-border);
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.ylms-live-screen-share iframe {
    width: 100%;
    min-height: 360px;
    border: 1px solid var(--ylms-border);
    border-radius: 8px;
    background: #f8fafc;
}

.ylms-live-share-image {
    width: 100%;
    min-height: 360px;
    max-height: 70vh;
    border: 1px solid var(--ylms-border);
    border-radius: 8px;
    object-fit: contain;
    background: #f8fafc;
}

.ylms-live-screen-share-form {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.ylms-live-thumbs {
    margin-top: 10px;
}

.ylms-live-thumbs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
    gap: 6px;
}

.ylms-thumb-btn {
    border: 1px solid var(--ylms-border);
    border-radius: 8px;
    background: #fff;
    padding: 8px 6px;
    display: grid;
    gap: 2px;
    cursor: pointer;
    text-align: center;
    font-size: 12px;
}

.ylms-live-poll-options {
    display: grid;
    gap: 6px;
    margin: 8px 0;
}

.ylms-live-replay-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.ylms-live-replay-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

[data-replay-highlights] [data-replay-jump] {
    padding: 2px 8px;
    font-size: 12px;
}

[data-replay-item] {
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

[data-replay-item].is-active {
    opacity: 1;
    font-weight: 600;
}

.ylms-presenter-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 12px;
}

.ylms-live-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.ylms-live-alias {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ylms-live-alias input {
    min-width: 220px;
}

.ylms-live-alias-error {
    margin: 6px 0 0;
    color: #b42318;
    font-weight: 600;
}

.ylms-pair-qr {
    width: 140px;
    height: 140px;
    border: 1px solid var(--ylms-border);
    border-radius: 10px;
    background: #fff;
    padding: 6px;
}

.ylms-live-qr {
    margin-top: 10px;
    display: grid;
    gap: 6px;
    justify-items: start;
}

.ylms-live-qr img {
    width: 180px;
    height: 180px;
    border: 1px solid var(--ylms-border);
    border-radius: 10px;
    background: #fff;
    padding: 6px;
}

.ylms-live-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}

.ylms-live-link-card {
    border: 1px solid var(--ylms-border);
    border-radius: 10px;
    padding: 8px;
    background: #fff;
}

.ylms-live-link-card p {
    margin: 6px 0;
}

.ylms-live-link-card img {
    width: 100%;
    max-width: 120px;
    height: auto;
    border: 1px solid var(--ylms-border);
    border-radius: 8px;
    background: #fff;
    padding: 4px;
}

.ylms-live-listing {
    display: grid;
    gap: 12px;
}

.ylms-live-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.ylms-live-card {
    border: 1px solid var(--ylms-border);
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
}

.ylms-live-card h3 {
    margin: 6px 0;
    color: var(--ylms-dark);
    font-size: 1.05rem;
}

.ylms-live-card__qr {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 6px;
}

.ylms-live-card__qr img {
    width: 140px;
    height: 140px;
    border: 1px solid var(--ylms-border);
    border-radius: 10px;
    background: #fff;
    padding: 6px;
}

.ylms-live-waiting,
.ylms-live-locked {
    margin-top: 14px;
    border: 1px solid var(--ylms-border);
    border-radius: 12px;
    background: #fff;
    padding: 16px;
}

.ylms-ink-remote-canvas {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--ylms-border);
    border-radius: 10px;
    background: #fff;
    touch-action: none;
}

.ylms-live-approved-banner {
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    background: #dcfce7;
    color: #166534;
}


.ylms-course-hero {
    background: linear-gradient(120deg, #fff, #f7f3ff);
    padding: 70px 0;
}

.ylms-course-hero .ylms-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 34px;
    align-items: center;
}

.ylms-course-hero__content h1 {
    font-size: 38px;
    color: var(--ylms-dark);
    margin-bottom: 12px;
}

.ylms-lead {
    color: var(--ylms-muted);
    font-size: 16px;
}

.ylms-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 14px 0 18px;
    color: var(--ylms-muted);
}

.ylms-course-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ylms-course-hero__rating {
    margin-top: 12px;
}

.ylms-video-card {
    background: var(--ylms-card);
    border-radius: var(--ylms-radius);
    box-shadow: var(--ylms-shadow);
    padding: 12px;
}

.ylms-video {
    position: relative;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
}

.ylms-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ylms-content iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 220px;
    border: 0;
    border-radius: 12px;
}

.ylms-video-card__meta {
    display: flex;
    justify-content: space-between;
    color: var(--ylms-muted);
    font-size: 13px;
    padding: 10px 4px 0;
}

.ylms-panel {
    background: var(--ylms-card);
    border-radius: var(--ylms-radius);
    padding: 16px;
    box-shadow: var(--ylms-shadow);
}

.ylms-course-menu-title {
    margin: 0 0 8px;
    color: var(--ylms-dark);
    font-size: 1.2rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.ylms-course-menu-group + .ylms-course-menu-group {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--ylms-border);
}

.ylms-course-menu-group__title {
    margin: 0 0 4px;
    color: var(--ylms-muted);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ylms-course-menu-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 2px;
}

.ylms-course-menu-list a {
    display: block;
    text-decoration: none;
    color: var(--ylms-dark);
    font-weight: 500;
    font-size: 13px;
    line-height: 1.25;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 5px 8px;
    transition: 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ylms-course-menu-list a:hover {
    background: #f3f8ff;
    border-color: #d6e5fb;
    color: #175ec2;
}

.ylms-menu-link.is-active {
    background: #edf4ff;
    border-color: #c8ddff;
    color: #184a9f;
    font-weight: 600;
}

.ylms-course-menu-section-label {
    margin: 6px 0 4px;
    font-size: 11px;
    color: var(--ylms-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ylms-course-chapter {
    border: 1px solid #d7e3f5;
    border-radius: 8px;
    background: #fbfdff;
    margin-bottom: 6px;
    overflow: hidden;
}

.ylms-course-chapter summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    padding: 8px 10px;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.2;
    color: var(--ylms-dark);
    background: #f2f6fc;
    border-bottom: 1px solid #dde8f8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ylms-course-chapter summary::after {
    content: "\25BE";
    flex: 0 0 auto;
    font-size: 11px;
    color: #45638f;
}

.ylms-course-chapter:not([open]) summary::after {
    transform: rotate(-90deg);
}

.ylms-course-chapter summary::-webkit-details-marker {
    display: none;
}

.ylms-course-chapter .ylms-course-menu-list {
    padding: 6px;
}

.ylms-course-chapter .ylms-course-menu-list a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ylms-course-chapter .ylms-course-menu-list a::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #b5c915;
    flex: 0 0 auto;
}

.ylms-box {
    background: var(--ylms-light);
    padding: 18px;
    border-radius: 12px;
}

.ylms-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 20px 0;
}

.ylms-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ylms-list li {
    padding: 6px 0 6px 24px;
    position: relative;
}

.ylms-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--ylms-primary);
    font-weight: bold;
}

.ylms-curriculum {
    display: grid;
    gap: 12px;
}

.ylms-curriculum-group {
    margin-bottom: 18px;
}

.ylms-curriculum__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ylms-curriculum__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--ylms-border);
}

.ylms-curriculum__item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.ylms-curriculum__item a {
    text-decoration: none;
    color: var(--ylms-dark);
    font-weight: 600;
}

.ylms-sidebar .ylms-card__meta {
    flex-direction: column;
    gap: 8px;
}

.ylms-progress-bar {
    background: #e2e8f0;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
    margin: 12px 0;
}

.ylms-progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--ylms-primary), #38bdf8);
}

.ylms-pill {
    background: #fff0f1;
    color: var(--ylms-primary);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 10px;
}

.ylms-instructor {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
}

.ylms-avatar img {
    border-radius: 50%;
}

.ylms-lesson-title {
    font-size: clamp(1.45rem, 2.3vw, 1.9rem);
    line-height: 1.2;
    margin: 10px 0 4px;
}

.ylms-complete {
    margin-top: 18px;
}

.ylms-quiz-question {
    border: 1px solid var(--ylms-border);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.ylms-quiz-option {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
}

.ylms-quiz-option input[type="checkbox"] {
    accent-color: var(--ylms-primary);
}

.ylms-quiz-option input {
    margin: 0;
}

.ylms-quiz-fill {
    width: 100%;
    border: 1px solid var(--ylms-border);
    padding: 12px;
    border-radius: 10px;
    margin-top: 10px;
}

.ylms-quiz-option.is-correct {
    background: #ecfdf3;
    border-color: #22c55e;
}

.ylms-quiz-option.is-wrong {
    background: #fff1f2;
    border-color: #fb7185;
}

.ylms-rating-field select {
    margin-left: 8px;
}

.ylms-rating-inline {
    color: var(--ylms-muted);
    font-size: 13px;
    margin-top: 6px;
}

.ylms-certificate {
    padding: 80px 0;
    background: linear-gradient(120deg, #f7f3ff, #fff);
    background-size: cover;
    background-position: center;
}

.ylms-certificate__inner {
    width: min(900px, 90%);
    margin: 0 auto;
    background: #fff;
    border-radius: 28px;
    padding: 50px;
    box-shadow: var(--ylms-shadow);
    text-align: center;
    border: 8px solid #f8fafc;
}

.ylms-certificate__badge {
    display: inline-block;
    background: #fef3c7;
    color: #b45309;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 14px;
}

.ylms-certificate h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.ylms-certificate h2 {
    font-size: 26px;
    color: var(--ylms-primary);
    margin: 10px 0;
}

.ylms-certificate h3 {
    font-size: 20px;
    color: var(--ylms-dark);
}

.ylms-certificate__meta {
    color: var(--ylms-muted);
}

.ylms-certificate__footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    color: var(--ylms-muted);
    font-weight: 600;
}

.ylms-certificate__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.ylms-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.ylms-stat {
    background: var(--ylms-light);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.ylms-stat strong {
    font-size: 24px;
    color: var(--ylms-dark);
    display: block;
}

.ylms-dashboard-actions {
    margin-bottom: 20px;
}

.ylms-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.ylms-qa-replies {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.ylms-qa-reply {
    background: var(--ylms-light);
    padding: 10px 12px;
    border-radius: 10px;
}

.ylms-qa-form textarea {
    width: 100%;
    border: 1px solid var(--ylms-border);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
}

.ylms-notes {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.ylms-notes textarea {
    width: 100%;
    border: 1px solid var(--ylms-border);
    border-radius: 10px;
    padding: 12px;
}

.ylms-live-replay-sections {
    margin: 10px 0;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.ylms-live-replay-sections select {
    min-width: 220px;
    border: 1px solid var(--ylms-border);
    border-radius: 8px;
    padding: 6px 8px;
}

.ylms-apply-form {
    display: grid;
    gap: 12px;
    background: var(--ylms-card);
    padding: 24px;
    border-radius: var(--ylms-radius);
    box-shadow: var(--ylms-shadow);
}

.ylms-apply-form input,
.ylms-apply-form textarea,
.ylms-apply-form select {
    width: 100%;
    border: 1px solid var(--ylms-border);
    border-radius: 10px;
    padding: 12px;
}

.ylms-pagination {
    margin-top: 26px;
}

.single-ylms_course .ylms-course-hero {
    background: linear-gradient(130deg, #ffffff 0%, #f7f9fc 55%, #eef2f6 100%);
    padding: 56px 0 48px;
}

.single-ylms_course .ylms-section {
    padding: 46px 0;
}

.single-ylms_course .ylms-course-shell {
    padding-top: 22px;
    min-height: calc(100vh - 110px);
}

.single-ylms_course .ylms-grid--two {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

.single-ylms_course .ylms-panel {
    border: 1px solid var(--ylms-border);
    border-radius: 18px;
}

.single-ylms_course .ylms-sidebar .ylms-card {
    padding: 18px;
    border: 1px solid var(--ylms-border);
    border-radius: 16px;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

.single-ylms_course .ylms-card--sticky {
    top: 88px;
}

.single-ylms_course .ylms-course-menu-card {
    max-height: calc(100vh - 110px);
    overflow: auto;
}

.single-ylms_course [id] {
    scroll-margin-top: 108px;
}

.ylms-course-workspace {
    display: grid;
    gap: 12px;
}

.ylms-course-flow {
    display: grid;
    gap: 12px;
    min-height: 0;
}

.single-ylms_course .ylms-course-workspace {
    max-height: calc(100vh - 110px);
    overflow: auto;
}

.ylms-course-meta-block {
    margin: 0;
}

.ylms-course-workspace h1,
.ylms-course-workspace h2 {
    line-height: 1.15;
}

.ylms-course-workspace h1 {
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    letter-spacing: -0.01em;
}

.ylms-course-workspace h2 {
    font-size: clamp(1.1rem, 1.7vw, 1.45rem);
}

.ylms-workspace-headline h2 {
    margin: 10px 0 4px;
    color: var(--ylms-dark);
}

.ylms-workspace-banner {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 240px;
    background: #0f172a;
}

.ylms-workspace-banner__image img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    display: block;
}

.ylms-workspace-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.22) 0%, rgba(2, 6, 23, 0.86) 90%);
}

.ylms-workspace-banner__content {
    position: absolute;
    inset: auto 22px 20px;
    color: #fff;
}

.ylms-workspace-banner__content h2 {
    margin: 8px 0 10px;
    color: #fff;
    font-size: clamp(1.35rem, 2.2vw, 1.95rem);
}

.ylms-workspace-banner__progress {
    margin-bottom: 14px;
}

.ylms-workspace-banner__progress .ylms-progress-bar {
    background: rgba(255, 255, 255, 0.28);
    margin-bottom: 6px;
}

.ylms-workspace-banner__progress p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.ylms-workspace-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 1px solid var(--ylms-border);
    padding-bottom: 8px;
}

.ylms-workspace-tabs a {
    text-decoration: none;
    color: var(--ylms-muted);
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.86rem;
}

.ylms-workspace-tabs a.is-active,
.ylms-workspace-tabs a:hover {
    color: var(--ylms-dark);
    background: var(--ylms-light);
}

.ylms-workspace-block {
    border: 1px solid var(--ylms-border);
    border-radius: 12px;
    background: #fff;
    padding: 16px;
}

.ylms-workspace-block h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--ylms-dark);
    font-size: 1rem;
}

.ylms-workspace-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ylms-course-workspace .ylms-button {
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.ylms-course-workspace .ylms-button--ghost {
    border-color: #bfd2ee;
    color: #174b9f;
    background: #f8fbff;
}

/* Guests should scroll the page, not the embedded slide itself. */
.ylms-live-room--participant [data-live-slide-share-frame],
.ylms-live-room--participant [data-live-screen-share-frame] {
    pointer-events: none;
}

/* Presenter must drive slide changes through YLMS controls to keep audience in sync. */
.ylms-teach-mode [data-live-slide-share-frame],
.ylms-teach-mode [data-live-screen-share-frame],
.ylms-presenter-console [data-live-slide-share-frame],
.ylms-presenter-console [data-live-screen-share-frame] {
    pointer-events: none;
}

@media (max-width: 960px) {
    .ylms-grid--two,
    .ylms-course-hero .ylms-container {
        grid-template-columns: 1fr;
    }
    .ylms-live-layout,
    .ylms-presenter-grid {
        grid-template-columns: 1fr;
    }
    .ylms-live-slide__canvas {
        aspect-ratio: 4 / 3;
        max-height: none;
    }
    .ylms-live-card {
        grid-template-columns: 1fr;
    }
    .ylms-live-card__qr {
        justify-items: start;
    }
    .ylms-card--sticky {
        position: static;
    }
    .single-ylms_course .ylms-card--sticky {
        position: static;
        top: auto;
    }
    .single-ylms_course .ylms-course-shell {
        min-height: 0;
    }
    .single-ylms_course .ylms-course-menu-card,
    .single-ylms_course .ylms-course-workspace {
        max-height: none;
        overflow: visible;
    }
    .ylms-split {
        grid-template-columns: 1fr;
    }
    .ylms-live-sheet-toggle {
        display: inline-flex;
        justify-content: center;
    }
    .ylms-live-sheet-peek {
        display: block;
    }
    .ylms-live-sheet {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 0;
        max-height: 82vh;
        overflow: auto;
        background: #ffffff;
        border-top: 1px solid var(--ylms-border);
        border-radius: 14px 14px 0 0;
        z-index: 1000;
        padding: 12px;
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.2);
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.22s ease, opacity 0.22s ease;
    }
    .ylms-live-audience-dock {
        justify-content: flex-start;
    }
    .ylms-live-room--participant .ylms-live-engage--audience .ylms-live-sheet {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 0;
        max-height: 70vh;
        overflow: auto;
        background: #ffffff;
        border-top: 1px solid var(--ylms-border);
        border-radius: 14px 14px 0 0;
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.2);
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;
        z-index: 1000;
        padding: 14px;
        transition: transform 0.22s ease, opacity 0.22s ease;
    }
    .ylms-live-room--participant .ylms-live-sheet.is-open {
        opacity: 1;
        pointer-events: auto;
    }
    .ylms-live-room--participant .ylms-live-sheet.is-open-half {
        height: 44vh;
        transform: translateY(0);
    }
    .ylms-live-room--participant .ylms-live-sheet.is-open-full {
        height: 70vh;
        transform: translateY(0);
    }
    /* Slide: fill width, natural 16:9, no forced height */
    .ylms-live-room--participant .ylms-live-slide__canvas {
        aspect-ratio: 16 / 9;
        min-height: 0;
        max-height: none;
        border: none;
        border-radius: 8px;
        margin-bottom: 0;
    }
    .ylms-live-room--participant .ylms-live-screen-share iframe,
    .ylms-live-room--participant .ylms-live-share-image {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }
    .ylms-live-room--participant .ylms-live-slide-image,
    .ylms-live-room--participant .ylms-live-share-image {
        object-fit: scale-down;
    }
    .ylms-live-room--participant .ylms-live-slide {
        border: none;
        padding: 6px 0 0;
        background: transparent;
    }
    .ylms-live-room--participant .ylms-live-engage--audience {
        position: relative;
        min-height: 0;
        padding: 0;
    }
    /* Dock: horizontal toolbar below slide */
    .ylms-live-room--participant .ylms-live-audience-dock {
        position: static;
        flex-direction: row;
        justify-content: center;
        gap: 6px;
        z-index: auto;
        padding: 8px 0 4px;
        background: transparent;
    }
    .ylms-live-room--participant .ylms-live-audience-dock .ylms-teach-action {
        width: auto;
        height: auto;
        flex: 1 1 0;
        max-width: 110px;
        border-radius: 10px;
        padding: 8px 4px;
        background: #f0f4fa;
        border: 1px solid var(--ylms-border);
        flex-direction: column;
        gap: 2px;
    }
    .ylms-live-room--participant .ylms-live-audience-dock .ylms-teach-action__icon {
        width: 32px;
        height: 32px;
        font-size: 17px;
        box-shadow: none;
        background: transparent;
    }
    .ylms-live-room--participant .ylms-live-audience-dock .ylms-teach-action__label {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        margin: 0;
        overflow: visible;
        clip: auto;
        font-size: 11px;
        font-weight: 600;
        color: var(--ylms-navy);
        letter-spacing: 0;
    }
    .ylms-live-room--participant .ylms-live-audience-dock .ylms-teach-action.is-active {
        background: #dce8f8;
        border-color: var(--ylms-primary);
    }
    .ylms-live-room--participant .ylms-live-audience-dock .ylms-teach-action.is-active .ylms-teach-action__icon {
        box-shadow: none;
    }
    /* Reactions button visible on mobile dock */
    .ylms-live-room--participant .ylms-live-tabpanel textarea {
        min-height: 80px;
        font-size: 16px;
    }
    .ylms-live-room--participant .ylms-live-tabpanel[data-panel="polls"] > p,
    .ylms-live-room--participant .ylms-live-tabpanel[data-panel="polls"] .ylms-muted {
        font-size: 13px;
        line-height: 1.35;
    }
    .ylms-live-room--participant .ylms-live-tabpanel[data-panel="polls"] > p strong {
        font-size: 15px;
        line-height: 1.35;
    }
    .ylms-live-room--participant .ylms-live-tabpanel[data-panel="polls"] .ylms-live-poll-options {
        display: grid;
        gap: 6px;
    }
    .ylms-live-room--participant .ylms-live-tabpanel[data-panel="polls"] .ylms-button {
        font-size: 13px;
        line-height: 1.2;
        padding: 9px 10px;
        white-space: normal;
        text-align: left;
    }
    .ylms-live-room--participant .ylms-live-feed {
        max-height: 240px;
    }
    .ylms-live-sheet.is-open {
        opacity: 1;
        pointer-events: auto;
    }
    .ylms-live-sheet.is-open-half {
        height: 44vh;
        transform: translateY(0);
    }
    .ylms-live-sheet.is-open-full {
        height: 82vh;
        transform: translateY(0);
    }
    .ylms-live-feed--participants {
        max-height: 280px;
    }
    .ylms-live-actions .ylms-button {
        flex: 1 1 calc(50% - 8px);
        min-width: 140px;
    }
    .ylms-live-slide-jump input,
    .ylms-live-slide-jump select,
    .ylms-live-screen-share-form input,
    .ylms-live-screen-share-form button {
        width: 100%;
    }
    .ylms-live-screen-share iframe {
        min-height: 240px;
    }
    .ylms-live-alias input {
        width: 100%;
        min-width: 0;
    }
    .ylms-teach-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .ylms-teach-banner__join {
        font-size: 16px;
    }
    .ylms-teach-banner__join strong {
        font-size: 22px;
    }
    .ylms-teach-stage {
        padding: 10px;
    }
    .ylms-teach-nav {
        position: static;
        transform: none;
        width: 38px;
        height: 38px;
    }
    .ylms-teach-stage {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        gap: 8px;
        align-items: center;
    }
    .ylms-teach-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ylms-teach-infobar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    .single-ylms_course .ylms-section,
    .single-ylms_lesson .ylms-section {
        padding: 24px 0;
    }

    .single-ylms_course .ylms-grid--two,
    .single-ylms_lesson .ylms-grid--two {
        gap: 14px;
    }
    .single-ylms_course .ylms-panel,
    .single-ylms_lesson .ylms-panel,
    .single-ylms_course .ylms-workspace-block,
    .single-ylms_course .ylms-apply-form,
    .single-ylms_course .ylms-sidebar .ylms-card,
    .single-ylms_lesson .ylms-sidebar .ylms-card {
        padding: 14px;
    }

    .single-ylms_course .ylms-workspace-headline h2,
    .single-ylms_lesson .ylms-lesson-title {
        font-size: 1.2rem;
        line-height: 1.25;
    }

    .single-ylms_course .ylms-workspace-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .single-ylms_course .ylms-workspace-actions form,
    .single-ylms_course .ylms-workspace-actions .ylms-button,
    .single-ylms_lesson .ylms-complete .ylms-button,
    .single-ylms_lesson .ylms-notes .ylms-button {
        width: 100%;
    }

    .ylms-content {
        overflow-wrap: anywhere;
    }

    .ylms-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ── Poll Overlay ─────────────────────────────────────── */

.ylms-poll-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    border-radius: inherit;
}

.ylms-poll-overlay[hidden] {
    display: none !important;
}

.ylms-poll-card {
    background: var(--ylms-card, #fff);
    border-radius: 20px;
    padding: 32px 28px;
    max-width: 520px;
    width: 92%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.ylms-poll-card__question {
    font-size: 22px;
    font-weight: 700;
    color: var(--ylms-dark, #0f172a);
    margin: 0 0 24px;
    line-height: 1.3;
}

.ylms-poll-options {
    display: grid;
    gap: 12px;
}

.ylms-poll-option-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--ylms-border, #e5e7eb);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    transition: border-color 0.15s, background 0.15s;
}

.ylms-poll-option-btn:hover {
    border-color: var(--ylms-primary, #1d73e8);
    background: #f0f6ff;
}

.ylms-poll-option__letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--ylms-light, #f6f8fb);
    font-weight: 700;
    font-size: 15px;
    color: var(--ylms-primary, #1d73e8);
    flex-shrink: 0;
}

.ylms-poll-option__text {
    flex: 1;
}

.ylms-poll-option__check {
    color: #16a34a;
    font-size: 20px;
    font-weight: 700;
}

/* Voted state */
.ylms-poll-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 2px solid var(--ylms-border, #e5e7eb);
    border-radius: 14px;
    margin-bottom: 10px;
    background: #fafbfc;
}

.ylms-poll-option--selected {
    border-color: #16a34a;
    background: #f0fdf4;
}

.ylms-poll-submitted {
    margin-top: 16px;
    font-weight: 600;
    color: #16a34a;
    font-size: 15px;
}

/* Poll results (presenter view) */
.ylms-poll-results {
    text-align: left;
}

.ylms-poll-result-row {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.ylms-poll-result-label {
    font-weight: 500;
    font-size: 14px;
    color: var(--ylms-dark, #0f172a);
}

.ylms-poll-result-bar {
    height: 22px;
    background: var(--ylms-light, #f1f5f9);
    border-radius: 6px;
    overflow: hidden;
}

.ylms-poll-result-fill {
    height: 100%;
    background: var(--ylms-primary, #1d73e8);
    border-radius: 6px;
    transition: width 0.3s ease;
    min-width: 2px;
}

.ylms-poll-result-pct {
    font-size: 13px;
    font-weight: 600;
    color: var(--ylms-muted, #64748b);
    min-width: 70px;
    text-align: right;
}

/* Pre-set polls list in dock */
.ylms-preset-polls-list {
    display: grid;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
}

.ylms-preset-poll-item {
    border: 1px solid var(--ylms-border, #e5e7eb);
    border-radius: 10px;
    padding: 10px 12px;
    background: #fafbfc;
}

.ylms-preset-poll-item p {
    margin: 0 0 4px;
}

.ylms-preset-poll-results {
    margin-top: 12px;
    padding: 10px;
    border: 1px solid var(--ylms-border, #e5e7eb);
    border-radius: 10px;
    background: #f8fbff;
}

/* ── Freeze Indicator ────────────────────────────────── */

.ylms-slide--frozen .ylms-live-slide__canvas {
    border-color: #3b82f6 !important;
    border-width: 3px;
    position: relative;
}

.ylms-slide--frozen .ylms-live-slide__canvas::after {
    content: 'FROZEN';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #3b82f6;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    z-index: 5;
    pointer-events: none;
}

/* Freeze dock button active state */
.ylms-teach-action--freeze.is-active .ylms-teach-action__icon {
    background: #3b82f6 !important;
    color: #fff !important;
}

/* ── Poll Overlay responsive ─────────────────────────── */

@media (max-width: 600px) {
    .ylms-poll-card {
        padding: 20px 16px;
    }

    .ylms-poll-card__question {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .ylms-poll-option-btn {
        padding: 12px 14px;
        font-size: 14px;
    }

    .ylms-poll-option__letter {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .ylms-poll-result-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* ── Quiz Timer Ring ─────────────────────────────────── */

.ylms-poll-timer {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
}

.ylms-poll-timer svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ylms-poll-timer__ring {
    transition: stroke-dashoffset 0.25s linear, stroke 0.5s ease;
}

.ylms-poll-timer__text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--ylms-dark, #0f172a);
    font-variant-numeric: tabular-nums;
}

/* ── Answer Reveal Banners ───────────────────────────── */

.ylms-poll-answer-banner {
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
    text-align: center;
    animation: ylms-banner-slide 0.35s ease-out;
}

.ylms-poll-answer-banner--correct {
    background: #dcfce7;
    color: #166534;
    border: 2px solid #86efac;
}

.ylms-poll-answer-banner--wrong {
    background: #fef2f2;
    color: #991b1b;
    border: 2px solid #fca5a5;
}

.ylms-poll-answer-banner--timeout {
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #cbd5e1;
}

@keyframes ylms-banner-slide {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Answer Reveal: Correct/Wrong Result Row Coloring ── */

.ylms-poll-result-row--correct .ylms-poll-result-fill {
    background: #22c55e;
}

.ylms-poll-result-row--correct .ylms-poll-result-label {
    color: #166534;
    font-weight: 700;
}

.ylms-poll-result-row--wrong .ylms-poll-result-fill {
    background: #f87171;
}

.ylms-poll-result-row--wrong .ylms-poll-result-label {
    color: #991b1b;
}

/* ── Points Popup Animation ──────────────────────────── */

.ylms-points-pop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 48px;
    font-weight: 900;
    color: #16a34a;
    text-shadow: 0 2px 8px rgba(22, 163, 106, 0.3);
    pointer-events: none;
    animation: ylms-points-fly 1.6s ease-out forwards;
    z-index: 30;
}

@keyframes ylms-points-fly {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
    }
    30% {
        opacity: 1;
        transform: translate(-50%, -70%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -120%) scale(1);
    }
}

/* ── Leaderboard Overlay ─────────────────────────────── */

.ylms-leaderboard-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    animation: ylms-lb-fadein 0.4s ease-out;
}

.ylms-leaderboard-overlay[hidden] {
    display: none !important;
}

@keyframes ylms-lb-fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ylms-lb-inner {
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px;
    max-width: 440px;
    width: 92%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    animation: ylms-lb-scalein 0.35s ease-out;
}

@keyframes ylms-lb-scalein {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ylms-lb-inner h3 {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--ylms-dark, #0f172a);
    margin: 0 0 18px;
}

.ylms-lb-list {
    display: grid;
    gap: 6px;
}

.ylms-lb-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: background 0.2s;
}

.ylms-lb-row:nth-child(1) {
    background: linear-gradient(135deg, #fef9c3, #fef3c7);
    border-color: #fde68a;
}

.ylms-lb-row:nth-child(2) {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-color: #cbd5e1;
}

.ylms-lb-row:nth-child(3) {
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
    border-color: #fdba74;
}

.ylms-lb-row--me {
    border-color: var(--ylms-primary, #1d73e8);
    border-width: 2px;
    box-shadow: 0 0 0 2px rgba(29, 115, 232, 0.15);
}

.ylms-lb-medal {
    font-size: 22px;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

.ylms-lb-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    font-weight: 800;
    font-size: 14px;
    color: #475569;
    flex-shrink: 0;
}

.ylms-lb-alias {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
    color: var(--ylms-dark, #0f172a);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ylms-lb-score {
    font-weight: 800;
    font-size: 16px;
    color: var(--ylms-primary, #1d73e8);
    font-variant-numeric: tabular-nums;
}

.ylms-lb-streak {
    font-size: 13px;
    color: #ea580c;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Quiz Badge ──────────────────────────────────────── */

.ylms-quiz-badge {
    display: inline-block;
    background: #ede9fe;
    color: #7c3aed;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    vertical-align: middle;
}

/* ── Disabled Poll Options ───────────────────────────── */

.ylms-poll-option-btn.ylms-poll-option--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.ylms-poll-option--disabled {
    opacity: 0.5;
}

/* ── Presenter Leaderboard Panel ─────────────────────── */

[data-live-leaderboard-panel] {
    margin-top: 12px;
    border: 1px solid var(--ylms-border, #e5e7eb);
    border-radius: 12px;
    padding: 12px;
    background: #fafbfc;
}

[data-live-leaderboard-panel] h4 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ylms-dark, #0f172a);
}

[data-live-leaderboard-body] {
    display: grid;
    gap: 4px;
    max-height: 240px;
    overflow-y: auto;
}

[data-live-leaderboard-body] .ylms-lb-row {
    padding: 6px 10px;
    font-size: 13px;
}

[data-live-leaderboard-body] .ylms-lb-rank {
    width: 24px;
    height: 24px;
    font-size: 12px;
}

[data-live-leaderboard-body] .ylms-lb-alias {
    font-size: 13px;
}

[data-live-leaderboard-body] .ylms-lb-score {
    font-size: 13px;
}

/* ── Quiz Poll Responsive ────────────────────────────── */

@media (max-width: 600px) {
    .ylms-poll-timer {
        width: 64px;
        height: 64px;
        margin-bottom: 12px;
    }

    .ylms-poll-timer__text {
        font-size: 20px;
    }

    .ylms-poll-answer-banner {
        font-size: 14px;
        padding: 10px 14px;
    }

    .ylms-points-pop {
        font-size: 36px;
    }

    .ylms-lb-inner {
        padding: 20px 16px;
    }

    .ylms-lb-inner h3 {
        font-size: 18px;
    }

    .ylms-lb-row {
        padding: 8px 10px;
        gap: 8px;
    }

    .ylms-lb-medal {
        font-size: 18px;
        width: 26px;
    }

    .ylms-lb-rank {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .ylms-lb-alias {
        font-size: 13px;
    }

    .ylms-lb-score {
        font-size: 14px;
    }

    .ylms-leaderboard-overlay {
        align-items: flex-end;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .ylms-lb-inner {
        border-radius: 20px 20px 0 0;
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
    }
}

/* ── Presenter reaction toasts ── */
.ylms-reaction-toast-layer {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
    max-height: 240px;
    overflow: hidden;
}

.ylms-reaction-toast-layer--global {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 99999;
    max-height: min(64vh, 420px);
}

.ylms-reaction-toast {
    background: #fff;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
    animation: ylms-toast-in 0.3s ease-out;
    white-space: nowrap;
    pointer-events: auto;
}

.ylms-reaction-toast--out {
    animation: ylms-toast-out 0.4s ease-in forwards;
}

@keyframes ylms-toast-in {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes ylms-toast-out {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(30px); }
}

.ylms-teach-mode .ylms-live-reaction-burst {
    font-size: clamp(28px, 3vw, 48px);
}

/* ── Compact participant rows ── */
.ylms-participant-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.15s;
}

.ylms-participant-row:hover {
    background: rgba(15, 23, 42, 0.05);
}

.ylms-participant-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
}

.ylms-participant-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.4;
}

.ylms-participant-info .ylms-muted {
    font-size: 11px;
}

.ylms-participant-role {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 999px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.ylms-participant-role--presenter {
    background: #dbeafe;
    color: #1e40af;
}

.ylms-participant-role--moderator {
    background: #ede9fe;
    color: #6d28d9;
}

.ylms-participant-role--learner {
    background: #f1f5f9;
    color: #475569;
}

.ylms-participant-role--audience {
    background: #f8fafc;
    color: #94a3b8;
}

.ylms-participant-actions {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.ylms-participant-action {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ylms-participant-row:hover .ylms-participant-action {
    opacity: 1;
}

.ylms-participant-action:hover {
    background: rgba(15, 23, 42, 0.1);
}

.ylms-participant-action--kick:hover {
    background: #fee2e2;
    color: #dc2626;
}

.ylms-participant-overflow {
    text-align: center;
    padding: 6px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
}

.ylms-participant-overflow:hover {
    background: rgba(15, 23, 42, 0.05);
}

.ylms-badge {
    display: inline-block;
    background: #e2e8f0;
    color: #334155;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 999px;
    vertical-align: middle;
    margin-left: 6px;
}

/* ── Breakout room panel ── */
.ylms-breakout-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ylms-breakout-room-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
}

.ylms-breakout-room-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.ylms-breakout-room-card__name {
    font-weight: 600;
    font-size: 13px;
    flex: 1;
    min-width: 0;
}

.ylms-breakout-room-card__count {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 1px 7px;
    border-radius: 999px;
}

.ylms-breakout-room-card__actions {
    display: flex;
    gap: 4px;
}

.ylms-breakout-room-card__action {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s;
}

.ylms-breakout-room-card__action:hover {
    background: rgba(15, 23, 42, 0.08);
}

.ylms-breakout-room-card__participants {
    font-size: 12px;
    color: #475569;
    line-height: 1.6;
}

.ylms-breakout-room-card__participants:empty::after {
    content: "No participants";
    color: #94a3b8;
    font-style: italic;
}

.ylms-breakout-room-card__assign {
    margin-top: 6px;
}

.ylms-breakout-room-card__assign select {
    font-size: 12px;
    padding: 2px 6px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    max-width: 140px;
}

.ylms-breakout-unassigned {
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
    margin-top: 4px;
}

.ylms-breakout-unassigned__title {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

.ylms-breakout-unassigned__row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    font-size: 12px;
}

.ylms-breakout-unassigned__row select {
    font-size: 11px;
    padding: 1px 4px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.ylms-breakout-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Grouped reaction counter bar ── */
.ylms-reaction-counter-bar {
    display: flex;
    gap: 10px;
    padding: 0 8px;
    font-size: 11px;
    color: #64748b;
    transition: opacity 0.5s;
    flex-wrap: wrap;
    min-height: 0;
    justify-content: center;
}

.ylms-reaction-counter-bar--faded {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.ylms-reaction-counter-item {
    white-space: nowrap;
}

/* ── Sound toggle ── */
.ylms-sound-toggle {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s;
}

.ylms-sound-toggle:hover {
    background: rgba(15, 23, 42, 0.08);
}
