/* Home, host and participant share the workroom colors and control hierarchy. */
:is(.vc-home-workroom, .vc-host-shell, .vc-room-shell, .vc-learning-shell) {
    --vc-workroom-ground: #edf4fa;
    --vc-workroom-ink: #13283d;
    --vc-workroom-secondary: #425a70;
    --vc-workroom-line: #cfdeeb;
    --vc-workroom-blue: #036fa6;
    --vc-workroom-active: #e2f1fb;
    --vc-workroom-stage: #132639;
    --vc-workroom-radius: 12px;
    --vc-accent-primary: var(--vc-workroom-blue);
    background: var(--vc-workroom-ground);
    color: var(--vc-workroom-ink);
    accent-color: var(--vc-workroom-blue);
}

:is(.vc-home-workroom, .vc-host-shell, .vc-room-shell, .vc-learning-shell) :focus-visible {
    outline: 2px solid var(--vc-workroom-blue);
    outline-offset: 3px;
}

:is(.vc-home-workroom, .vc-host-shell, .vc-room-shell) .vc-panel {
    border-color: var(--vc-workroom-line);
    border-radius: var(--vc-workroom-radius);
    background: #fff;
    box-shadow: none;
}

.vc-home-workroom .vc-main-console { overflow: visible; padding: 24px 28px; }
.vc-home-workroom .vc-main-header { align-items: center; }
.vc-main-header h1 { color: var(--vc-workroom-ink); font-size: 2rem; font-weight: 850; line-height: 1.2; letter-spacing: -.03em; }
.vc-home-workroom .vc-main-utility-link { background: transparent; color: var(--vc-workroom-blue); padding-inline: 4px; text-decoration: underline; text-underline-offset: .22em; transform: none; }
.vc-home-workroom :is(.vc-main-live-block, .vc-course-catalog, .vc-home-drafts) { margin-block-start: 24px; }
.vc-home-workroom .vc-main-live-block { background: transparent; border-radius: 0; padding: 0; }
.vc-home-workroom :is(.vc-main-section-head h2, .vc-home-drafts h2, .vc-course-catalog > h2) {
    color: var(--vc-workroom-ink); font-size: 1.125rem; font-weight: 850; line-height: 1.35;
}
.vc-home-workroom .vc-main-live-stack { margin-top: 10px; gap: 8px; }
.vc-home-workroom .vc-main-live-stack .vc-main-session-card {
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 14px 16px;
    gap: 16px;
    border: 1px solid #bad8ec;
    border-radius: 10px;
    background: var(--vc-workroom-active);
}
.vc-home-workroom .vc-main-session-title { margin: 0; white-space: normal; overflow-wrap: anywhere; font-size: 1.125rem; color: var(--vc-workroom-ink); }
.vc-home-workroom .vc-main-session-time { font-weight: 550; color: var(--vc-workroom-secondary); }
.vc-home-workroom .vc-main-session-code { display: grid; border-inline-start: 1px solid #a8c9df; padding-inline-start: 16px; margin: 0; }
.vc-home-workroom .vc-main-session-code strong { color: var(--vc-workroom-ink); font-size: 1.25rem; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.vc-home-workroom .vc-readiness-strip { margin-top: 6px; gap: 4px; }
.vc-home-workroom .vc-readiness-label,
.vc-home-workroom .vc-readiness-chip { min-height: 22px; padding: 2px 6px; font-size: .8125rem; font-weight: 650; }
.vc-home-workroom .vc-readiness-label { background: transparent; padding-inline-start: 0; }
.vc-home-workroom .vc-readiness-chip:not(.vc-readiness-chip--warn) { color: var(--vc-workroom-secondary); background: #f5faff; }
.vc-home-workroom .vc-main-session-actions { justify-content: flex-end; gap: 8px; }
.vc-home-workroom .vc-main-primary-action { min-height: 44px; border-radius: 8px; background: var(--vc-workroom-blue); color: #fff; transform: none; }
.vc-home-workroom .vc-main-primary-action:hover { background: #035783; }
.vc-home-session-tools { position: relative; }
.vc-home-session-tools summary { list-style: none; cursor: pointer; display: grid; place-items: center; min-height: 44px; padding-inline: 10px; font-weight: 700; color: var(--vc-workroom-ink); }
.vc-home-session-tools summary::-webkit-details-marker { display: none; }
.vc-home-session-menu { position: absolute; z-index: 5; inset: 100% 0 auto auto; display: grid; gap: 4px; min-width: 180px; padding: 6px; background: #fff; border: 1px solid var(--vc-workroom-line); border-radius: 10px; }
.vc-home-session-menu :is(.vc-main-quiet-action, .vc-main-end-action) { width: 100%; border-radius: 6px; min-height: 44px; }
.vc-home-workroom .vc-main-empty-state { min-height: 44px; margin-top: 8px; background: #f7fafd; border: 1px solid var(--vc-workroom-line); border-radius: 8px; padding: 10px 12px; }
.vc-home-draft-list { margin-top: 8px; border: 1px solid var(--vc-workroom-line); border-radius: 10px; }
.vc-home-workroom .vc-home-draft-list .vc-main-session-card { border: 0; border-radius: 0; padding: 10px 14px; }
.vc-home-workroom .vc-home-draft-list .vc-main-session-card + article { border-top: 1px solid var(--vc-workroom-line); }
.vc-home-workroom .vc-home-draft-list .vc-main-primary-action { background: #fff; color: var(--vc-workroom-blue); border: 1px solid #abc9de; }
.vc-home-workroom .vc-course-catalog { gap: 8px; }
.vc-home-workroom .vc-course-card { gap: 14px; padding: 12px; border-color: var(--vc-workroom-line); border-radius: 10px; }
.vc-home-workroom .vc-course-card-image { width: 140px; align-self: center; border-radius: 6px; background: var(--vc-workroom-active); }
.vc-home-workroom .vc-course-card h3 { font-size: 1.05rem; }
.vc-home-workroom .vc-course-card p { margin: 4px 0 6px; color: var(--vc-workroom-secondary); }
.vc-home-workroom .vc-course-card-actions { gap: 12px; }
.vc-home-workroom .vc-course-card .vc-learning-button--primary { min-height: 44px; background: var(--vc-workroom-blue); border-color: var(--vc-workroom-blue); border-radius: 8px; color: #fff; }
.vc-home-workroom .vc-course-other > summary { min-height: 44px; color: var(--vc-workroom-blue); font-weight: 700; }

.vc-host-shell .vc-host-toolbar { background: #d9edf9; border-color: #bad8ec; padding-block: 10px; }
.vc-host-session-title { color: var(--vc-workroom-ink); font-size: 1.375rem; font-weight: 850; line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; }
/* 진행 화면 머리: 나가기 · 제목 · 상태를 한 줄로 두고 공용 상단바 없이도 빠져나갈 길을 남긴다. */
.vc-host-title-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vc-host-title-line .vc-host-session-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-host-exit { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; color: var(--vc-workroom-secondary); font-size: .875rem; font-weight: 700; white-space: nowrap; }
.vc-host-exit:hover { color: var(--vc-workroom-blue); }
.vc-host-state-chip { flex: 0 0 auto; padding: 3px 10px; border: 1px solid #9dbacf; border-radius: 6px; background: #fff; color: var(--vc-workroom-secondary); font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.vc-host-resources .vc-action-menu { min-width: 280px; }
.vc-host-resources .vc-quick-links { max-width: 100%; }
.vc-host-resources .vc-quick-links-list { display: grid; gap: 4px; }
@media (max-width: 767px) {
    /* 휴대폰: 입장 단추를 한 줄 전체로 먼저 두고, 자료·사이트와 미리보기는 그 아래 한 줄에 나란히 둔다. */
    .vc-host-shell .vc-host-primary-actions > form { order: -1; flex: 1 1 100%; }
    .vc-host-shell .vc-host-primary-actions > form > .vc-next-step-action { width: 100%; }
    .vc-host-resources .vc-action-menu { position: fixed; inset: auto 12px 12px 12px; width: auto; min-width: 0; max-width: none; max-height: 50dvh; overflow-y: auto; }
}
.vc-live-indicator { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: #145b41; font-weight: 750; }
.vc-live-indicator::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #188358; }
.vc-host-shell :is(.vc-next-step-action, .vc-studio-dock .vc-next-step-action) { border-radius: 8px; background: var(--vc-workroom-blue); color: #fff; box-shadow: none; }
.vc-host-shell .vc-next-step-action:hover:not(:disabled) { background: #035783; }
.vc-host-shell :is(.vc-host-qr, .vc-host-toolbar .vc-action-menu-summary, .vc-host-toolbar .vc-compact-action) { border-radius: 8px; }
.vc-host-shell .vc-host-qr { background: #fff; border: 1px solid #9dbacf; color: var(--vc-workroom-ink); }
.vc-host-shell .vc-field-toolbar { background: transparent; padding: 4px 0; border: 0; box-shadow: none; }

:is(.vc-host-shell, .vc-room-shell) :is(.vc-workroom-tabs, .vc-studio-tabs, .vc-mobile-switch, .vc-room-tab-panel > div:first-child) {
    padding: 0 8px;
    gap: 0;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid var(--vc-workroom-line);
    background: #fff;
}
:is(.vc-host-shell, .vc-room-shell) .vc-mobile-switch { border-radius: 10px 10px 0 0; }
:is(.vc-host-shell, .vc-room-shell) :is(.vc-workroom-tabs, .vc-studio-tabs, .vc-mobile-switch, .vc-room-tab-panel > div:first-child) > :is(button, details > summary) {
    min-height: 44px;
    border-radius: 0;
    border-bottom: 3px solid transparent;
    padding-inline: 6px;
    color: var(--vc-workroom-secondary);
    background: transparent;
    box-shadow: none;
    font-size: .875rem;
    white-space: nowrap;
}
:is(.vc-host-shell, .vc-room-shell) :is(.vc-workroom-tabs, .vc-studio-tabs, .vc-mobile-switch, .vc-room-tab-panel > div:first-child) > :is([aria-pressed="true"], .bg-slate-900, details > summary.bg-slate-900) {
    border-bottom-color: var(--vc-workroom-blue);
    color: var(--vc-workroom-blue);
}
.vc-host-shell .vc-studio-action-header h2 { font-size: 1.25rem; line-height: 1.35; white-space: normal; }
.vc-host-shell .vc-studio-primary-guide { background: #f2f8fd; border: 0; border-radius: 8px; }
.vc-host-shell #vc-studio-instructor-script { color: var(--vc-workroom-ink); font-size: .9375rem; line-height: 1.6; }

:is(.vc-host-shell, .vc-room-shell) #vc-viewer-shell { background: var(--vc-workroom-stage); }
.vc-host-shell .vc-material-toolbar { min-height: 54px; }
.vc-host-shell .vc-material-toolbar :is(#vc-prev-page, #vc-next-page) {
    border: 1px solid var(--vc-workroom-line); border-radius: 8px; background: #fff; color: var(--vc-workroom-ink);
}
:is(.vc-host-shell, .vc-room-shell) #vc-page-indicator { color: var(--vc-workroom-ink); font-variant-numeric: tabular-nums; border-radius: 6px; background: #f0f5f9; }
.vc-room-shell .vc-room-title { color: var(--vc-workroom-ink); font-size: 1.125rem; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
.vc-room-shell .vc-room-step-guide { border-top: 1px solid var(--vc-workroom-line); background: #fff; }
.vc-room-shell .vc-room-step-guide > summary { display: list-item; padding: 12px; color: var(--vc-workroom-ink); }
.vc-room-shell #vc-step-desc { padding: 4px 12px 14px; font-size: .9375rem; line-height: 1.6; color: var(--vc-workroom-secondary); }
.vc-room-shell .vc-field-participant-actions { margin: 0; border: 0; border-top: 1px solid var(--vc-workroom-line); border-radius: 0; padding: 10px 12px; gap: 8px; }
.vc-room-shell .vc-field-participant-actions .vc-field-button { min-height: 44px; border: 1px solid #a6bed0; border-radius: 8px; background: #fff; color: var(--vc-workroom-ink); }
.vc-room-shell .vc-field-participant-actions .vc-field-button--complete,
.vc-learning-shell #vc-learning-complete:not(:disabled) { background: var(--vc-workroom-blue); border-color: var(--vc-workroom-blue); color: #fff; }
.vc-learning-shell :is(.vc-learning-header, .vc-learning-viewer, .vc-learning-action-panel, .vc-learning-completion) { border-color: var(--vc-workroom-line); border-radius: var(--vc-workroom-radius); box-shadow: none; }
.vc-learning-shell .vc-learning-canvas { background: var(--vc-workroom-stage); }
.vc-learning-shell .vc-learning-viewer-message { color: #e2eff9; }

@media (min-width: 1100px) {
    .vc-host-shell .vc-side-pane { flex-basis: clamp(340px, 28%, 420px); max-width: 420px; }
}
@media (max-width: 767px) {
    .vc-home-workroom .vc-main-console { padding: 16px 12px; }
    .vc-main-header h1 { font-size: 1.625rem; }
    .vc-home-workroom .vc-main-header { flex-wrap: wrap; gap: 4px 10px; }
    .vc-home-workroom .vc-main-live-stack .vc-main-session-card { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
    .vc-home-workroom .vc-main-session-copy { grid-column: 1 / -1; }
    .vc-home-workroom .vc-main-session-code { border: 0; padding: 0; }
    .vc-home-workroom .vc-main-session-actions { justify-content: flex-end; gap: 3px; }
    .vc-home-workroom .vc-main-primary-action { padding-inline: 9px; }
    .vc-home-workroom .vc-home-draft-list .vc-main-session-card { display: flex; justify-content: space-between; gap: 8px; }
    .vc-home-workroom .vc-course-card { flex-direction: row; align-items: flex-start; gap: 10px; }
    .vc-home-workroom .vc-course-card-image { width: clamp(62px, 22%, 116px); }
    .vc-host-session-title { font-size: 1.125rem; }
    .vc-host-shell .vc-host-primary-actions { flex-wrap: wrap; }
    .vc-host-shell .vc-host-primary-actions > .vc-next-step-action { flex: 1 1 50%; }
    .vc-room-shell #vc-viewer-body { min-height: 0; }
    .vc-room-shell #vc-viewer-body :is(.vc-image-figure, .vc-pdf-viewer) { min-height: 0; }
}

/* 넓은 화면의 참여자 방은 자료·단계 안내·완료 버튼·채팅을 스크롤 없이 한 화면에 담는다. */
@media (min-width: 1100px) {
    .vc-room-shell {
        box-sizing: border-box;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
        padding-bottom: 12px;
    }
    .vc-room-shell .vc-room-frame { display: flex; height: 100%; min-height: 0; flex-direction: column; }
    .vc-room-shell .vc-room-frame > * { flex: 0 0 auto; }
    .vc-room-shell .vc-room-frame > .vc-live-layout { flex: 1 1 auto; min-height: 0; }
    /* 한 화면에 고정되므로 머리를 따로 붙여 둘 필요가 없다. 붙여 두면 자료 위를 덮는다. */
    .vc-room-shell .vc-room-frame > .vc-room-header-panel.vc-panel { position: relative; top: auto; z-index: 30; }
    .vc-room-shell .vc-room-resources:not([data-vc-collected="true"]) > .vc-room-resources-panel { display: contents; }
    .vc-room-shell .vc-material-pane { display: flex; min-height: 0; }
    .vc-room-shell .vc-material-pane > .vc-panel { display: flex; width: 100%; min-height: 0; flex-direction: column; }
    .vc-room-shell .vc-material-pane > .vc-panel > * { flex: 0 0 auto; }
    .vc-room-shell #vc-viewer-shell:not(.vc-viewer-shell--spotlight),
    .vc-room-shell .vc-material-pane > .vc-panel > .vc-field-stage { flex: 1 1 auto; min-height: 0; overflow: auto; }
    .vc-room-shell #vc-viewer-shell:not(.vc-viewer-shell--spotlight) #vc-viewer-body { height: 100%; min-height: 0; }
    .vc-room-shell #vc-viewer-shell:not(.vc-viewer-shell--spotlight) .vc-image-figure:not([data-fit-mode="manual"]) { height: 100%; min-height: 0; }
    .vc-room-shell #vc-viewer-shell:not(.vc-viewer-shell--spotlight) .vc-image-figure:not([data-fit-mode="manual"]) .vc-image-viewer-image { min-height: 0; max-height: 100%; flex: 0 1 auto; }
    .vc-room-shell :is(.vc-external-link-card, .vc-external-link-frame-wrap, .vc-external-link-frame) { min-height: 0; }
    .vc-room-shell .vc-external-link-card { height: 100%; }
    .vc-room-shell .vc-room-step-guide { max-height: 28%; overflow-y: auto; }
    /* 안내는 늘 펼쳐져 있으므로 접는 줄을 빼고, 할 일과 버튼을 한 줄에 둬 자료를 더 크게 보여 준다. */
    .vc-room-shell .vc-room-step-guide > summary { display: none; }
    .vc-room-shell #vc-step-desc { padding-block: 10px; }
    .vc-room-shell .vc-field-participant-actions { flex-wrap: nowrap; align-items: center; }
    .vc-room-shell .vc-field-participant-actions strong { flex: 1 1 auto; min-width: 0; }
    .vc-room-shell .vc-field-participant-actions .vc-field-button { flex: 0 0 auto; }
    .vc-room-shell .vc-room-side-stack { height: auto; min-height: 0; }
}

/* 링크가 있는 참여자 방: 머리 줄에는 `자료·사이트` 버튼 하나만 두고, 누르면 전체 목록이 펼쳐진다. */
.vc-room-shell .vc-room-resources[data-vc-collected="true"] { display: block; flex: 0 0 auto; }
.vc-room-shell .vc-room-resources[data-vc-collected="true"] > summary {
    display: inline-flex; min-height: 44px; align-items: center; gap: 6px; padding: 0 16px;
    border: 1px solid #a6bed0; border-radius: 8px; background: #fff; color: var(--vc-workroom-ink); list-style: none;
}
.vc-room-shell .vc-room-resources[data-vc-collected="true"] > summary::-webkit-details-marker { display: none; }
.vc-room-shell .vc-room-resources[data-vc-collected="true"] > summary::after { content: "▾"; font-size: .75rem; color: var(--vc-workroom-secondary); }
.vc-room-shell .vc-room-resources[data-vc-collected="true"][open] > summary { border-color: var(--vc-workroom-blue); background: #eef6fb; }
.vc-room-shell .vc-room-resources[data-vc-collected="true"] > .vc-room-resources-panel {
    /* 좁은 화면에서는 머리 줄 오른쪽 끝에 맞춰 화면 밖으로 넘치지 않게 한다. */
    position: absolute; top: calc(100% + 6px); right: 12px; z-index: 40;
    display: flex; flex-direction: column; gap: 10px;
    width: min(420px, calc(100% - 24px)); max-height: min(70vh, 560px); overflow-y: auto;
    padding: 12px; border: 1px solid var(--vc-workroom-line); border-radius: 12px; background: #fff;
    box-shadow: 0 12px 32px rgba(19, 40, 61, .16);
}
.vc-room-shell .vc-room-resources[data-vc-collected="true"] .vc-participant-links { order: -1; }
.vc-room-shell .vc-room-resources[data-vc-collected="true"] .vc-quick-links { display: block; max-width: none; }
.vc-room-shell .vc-room-resources[data-vc-collected="true"] .vc-quick-links-list { flex-direction: column; align-items: stretch; gap: 6px; padding: 0; overflow: visible; }
.vc-room-shell .vc-room-resources[data-vc-collected="true"] .vc-quick-link { justify-content: space-between; min-height: 44px; white-space: normal; text-align: left; line-height: 1.4; }
@media (min-width: 1100px) {
    /* 넓은 화면에서는 버튼 바로 아래에 펼친다. */
    .vc-room-shell .vc-room-resources[data-vc-collected="true"] { position: relative; }
    .vc-room-shell .vc-room-resources[data-vc-collected="true"] > .vc-room-resources-panel { right: 0; width: min(420px, calc(100vw - 32px)); }
}

/* 강사가 다른 탭을 보는 동안 들어온 질문과 도움 요청. */
.vc-host-tab { position: relative; }
.vc-host-tab-dot { display: none; position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 999px; background: #c2410c; }
.vc-host-tab[data-vc-unread="true"] .vc-host-tab-dot { display: block; }
.vc-host-tab-count { display: inline-block; min-width: 20px; margin-left: 5px; padding: 0 6px; border-radius: 999px; background: #c2410c; color: #fff; font-size: .75rem; font-weight: 800; line-height: 20px; font-variant-numeric: tabular-nums; vertical-align: 1px; }
.vc-host-tab-count[hidden] { display: none; }
#vc-field-help-list:not(:empty) + #vc-help-list:not(:has(button)) { display: none; }

/* Keep screen sharing controls separate from the main stage actions. */
.vc-host-shell .vc-field-toolbar #vc-field-start {
    background: #fff;
    border: 1px solid #a6bed0;
    border-radius: 8px;
    color: var(--vc-workroom-ink);
}
.vc-host-shell .vc-field-toolbar :is(label, select)[hidden],
.vc-host-shell #vc-field-status:empty { display: none; }
.vc-host-shell .vc-workroom-guide {
    border-inline-start: 1px solid #699fbe;
    padding-inline-start: 14px;
}
.vc-host-shell :is(#vc-studio-action-meta, #vc-studio-action-progress) {
    color: var(--vc-workroom-secondary);
    font-size: .875rem;
}
.vc-room-shell :is(.vc-image-viewer-image, .vc-pdf-canvas) { box-shadow: none; }

@media (min-width: 1100px) {
    .vc-host-shell #vc-step-desc.vc-guide-in-side { display: none; }
}

/* Keep the operational labels legible in both the compact and wide layouts. */
.vc-home-workroom :is(.vc-readiness-label, .vc-readiness-chip),
:is(.vc-host-shell, .vc-room-shell) :is(#vc-step-badge, .vc-image-control-btn, .vc-image-zoom-label),
.vc-host-shell .vc-host-toolbar .vc-compact-action,
.vc-host-shell #vc-step-list :is(.vc-step-go, summary, p),
.vc-host-shell .vc-side-pane summary,
.vc-room-shell .vc-room-checklist-state { font-size: .875rem; }
.vc-host-shell :is(#vc-participant-count, .vc-host-title-block > p, .vc-host-title-block > a, #vc-step-list p) {
    color: var(--vc-workroom-secondary);
}
.vc-host-shell .vc-action-menu-summary--danger { color: #a81d3a; }
.vc-host-shell #vc-studio-action-meta { line-height: 1.4; }
.vc-host-shell #vc-plan-material-stage label { font-size: .875rem; }
.vc-host-shell #vc-plan-material-select,
:is(.vc-host-shell, .vc-room-shell) #vc-chat-input { font-size: 1rem; }
:is(.vc-host-shell, .vc-room-shell) #vc-chat-input::placeholder { color: #586d80; opacity: 1; }
:is(.vc-host-shell, .vc-room-shell) :is(#vc-chat-send, .vc-image-control-btn--primary),
.vc-host-shell #vc-step-list .vc-step-go { background: var(--vc-workroom-blue); color: #fff; }
.vc-room-shell #vc-room-follow-state { font-size: .875rem; color: #145b41; }
.vc-room-shell #vc-room-follow-state[data-state="slow"] { border-color: #f1c98b; background: #fff8eb; color: #8a4b07; }
.vc-room-shell #vc-room-follow-state[data-state="lost"] { border-color: #f0b4b4; background: #fff1f1; color: #9b1c1c; }

@media (max-width: 767px) {
    .vc-host-shell .vc-host-title-block > .flex { flex-wrap: wrap; }
    .vc-host-shell #vc-participant-count { white-space: nowrap; }
    .vc-host-shell .vc-field-toolbar { justify-content: flex-start; gap: 6px; }
    .vc-host-shell #vc-field-screen-actions { flex: 0 1 auto; min-width: min(100%, 128px); }
    .vc-host-shell .vc-field-toolbar .vc-field-button { white-space: nowrap; }
    .vc-home-workroom .vc-main-header { align-items: center; justify-content: space-between; text-align: start; }
}

.vc-host-shell #vc-step-list p { line-height: 1.5; }
.vc-host-shell .vc-field-toolbar .vc-field-button { min-height: 44px; }

@media (max-width: 767px) {
    .vc-host-shell .vc-host-primary-actions > details { flex: 0 0 auto; }
    .vc-host-shell .vc-host-primary-actions .vc-action-menu-summary { padding-inline: 9px; }
    .vc-host-shell .vc-field-toolbar .vc-field-button { padding-inline: 10px; }
    .vc-host-shell #vc-viewer-shell:not(.vc-viewer-shell--spotlight) #vc-viewer-body:has(.vc-image-figure) { min-height: 0; }
    .vc-host-shell #vc-viewer-shell:not(.vc-viewer-shell--spotlight) .vc-image-figure { min-height: 0; }
    body:not(.vc-material-spotlight-open) .vc-host-shell #vc-image-controls > :is(#vc-image-fit, #vc-image-zoom-out, #vc-image-zoom-label, #vc-image-zoom-in) { display: none; }
}

/* Entry and records use the same surfaces and actions as the workroom. */
.vc-lifecycle {
    background: #edf4fa;
    color: #13283d;
}
.vc-lifecycle-inner {
    width: min(100%, 560px);
    margin-inline: auto;
}
.vc-lifecycle-record { width: min(100%, 840px); }
.vc-lifecycle .vc-panel,
.vc-host-shell .vc-lifecycle-card,
.vc-host-shell .vc-lifecycle-shelf {
    border: 1px solid #cfdeeb;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
}
.vc-lifecycle-card { padding: clamp(18px, 4vw, 36px); }
.vc-lifecycle-card h1 {
    margin: 0 0 14px;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: -.025em;
    color: #13283d;
}
.vc-lifecycle-course { font-size: 1.125rem; font-weight: 750; line-height: 1.4; color: #13283d; overflow-wrap: anywhere; }
.vc-lifecycle-note { margin-top: 8px; font-size: .9375rem; line-height: 1.5; color: #425a70; }
.vc-join-form { display: grid; gap: 8px; margin-top: 20px; }
.vc-join-form label { font-size: .875rem; font-weight: 750; }
.vc-join-form input {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #9dbacf;
    border-radius: 8px;
    color: #13283d;
    background: #fff;
    font-size: 1rem;
}
.vc-join-form input::placeholder { color: #52697f; opacity: 1; }
.vc-join-form input + label { margin-top: 8px; }
.vc-join-form #vc-join-code { font-size: 1.375rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: .14em; }
.vc-join-form .vc-lifecycle-primary { margin-top: 8px; }
.vc-join-error { margin: 4px 0; padding: 10px 12px; border: 1px solid #eab1bc; border-radius: 8px; background: #fff1f3; color: #8c1f34; font-size: .9375rem; line-height: 1.45; }
.vc-join-preparation { margin-top: 12px; border-top: 1px solid #cfdeeb; }
.vc-join-preparation > summary { min-height: 44px; padding-block: 12px; color: #036fa6; font-weight: 700; cursor: pointer; }
.vc-join-preparation > section { margin-top: 4px; padding: clamp(12px, 3vw, 24px); }
.vc-lifecycle-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.vc-lifecycle-actions form { margin: 0; }
.vc-lifecycle-primary, .vc-lifecycle-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #036fa6;
    border-radius: 8px;
    background: #036fa6;
    color: #fff;
    font-weight: 750;
    text-align: center;
}
.vc-lifecycle-primary:hover { background: #035783; color: #fff; }
.vc-lifecycle-secondary { border-color: #9dbacf; background: #fff; color: #13283d; }
.vc-lifecycle-secondary:hover { background: #e2f1fb; color: #13283d; }
.vc-lifecycle :focus-visible { outline: 2px solid #036fa6; outline-offset: 3px; }
.vc-lifecycle-shelf { margin-top: 12px; padding: 0 16px 8px; }
.vc-lifecycle-shelf > summary, .vc-live-shelf > summary {
    min-height: 44px;
    padding-block: 11px;
    color: #13283d;
    cursor: pointer;
    font-size: .9375rem;
    font-weight: 750;
}
.vc-lifecycle-card .vc-session-record-grid { gap: 1px; overflow: hidden; border: 1px solid #cfdeeb; border-radius: 8px; background: #cfdeeb; }
.vc-lifecycle-card .vc-session-record-item { border: 0; border-radius: 0; background: #f5faff; }
.vc-lifecycle-card .vc-session-record-item span { color: #425a70; font-size: .875rem; }
.vc-host-toolbar .vc-live-operation-menu {
    max-height: min(70dvh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.vc-host-toolbar .vc-live-operation-menu .vc-field-toolbar { padding: 0; }
.vc-host-toolbar .vc-live-operation-menu #vc-field-screen-actions { width: 100%; }
.vc-live-tool-links:has(.vc-quick-links[hidden]) { display: none; }
.vc-live-tool-links .vc-quick-links { max-width: 100%; }
.vc-live-tool-links .vc-quick-links-list { display: grid; gap: 4px; }
.vc-live-tool-links .vc-quick-link { white-space: normal; }
.vc-host-toolbar #vc-end-btn { min-height: 44px; color: #a81d3a; white-space: nowrap; }
.vc-live-operation-menu .vc-preflight-status { font-size: .875rem; }

/* The QR occupies its own space beside the presentation when requested. */
.vc-projector { background: #132639; }
.vc-projector .vc-projector-viewer { background: #132639; }
.vc-projector .vc-projector-viewer-head { border-color: #4f6980; padding-inline: clamp(12px, 3vw, 44px); }
.vc-projector-course-title { min-width: 0; overflow-wrap: anywhere; font-size: clamp(1.125rem, 2.3vw, 2rem); font-weight: 850; line-height: 1.25; }
.vc-projector .vc-image-figure:not([data-fit-mode="manual"]) { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; min-height: 0; justify-items: center; }
.vc-projector .vc-image-figure:not([data-fit-mode="manual"]) .vc-image-viewer-image { width: 100%; height: 100%; min-height: 0; max-height: none; border-radius: 0; box-shadow: none; }
.vc-projector-action-heading h2 { color: #f8fafc; font-size: clamp(1.125rem, 2vw, 2rem); font-weight: 850; line-height: 1.25; }
.vc-projector-content, .vc-projector-stage {
    display: grid;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
}
.vc-projector-content { grid-template-areas: "stage"; }
.vc-projector-stage { grid-area: stage; }
.vc-projector-stage .vc-field-stage:not([hidden]) { display: flex; flex-direction: column; min-height: 0; }
.vc-projector-stage .vc-field-picture { display: grid; grid-template-rows: minmax(0, 1fr) auto; flex: 1; min-height: 0; }
.vc-projector-stage .vc-field-picture img { width: 100%; height: 100%; min-height: 0; }
.vc-projector-content:has(> .vc-projector-address) {
    grid-template: "stage" minmax(0, 1fr) "address" auto / minmax(0, 1fr);
}
.vc-projector-content:has(> .vc-projector-entry:not([hidden])) {
    grid-template: "stage qr" minmax(0, 1fr) "address address" auto / minmax(0, 1fr) clamp(190px, 19vw, 256px);
}
.vc-projector-entry {
    grid-area: qr;
    align-self: center;
    display: grid;
    justify-items: start;
    gap: 12px;
    margin: 12px;
    padding: 12px;
    border-radius: 10px;
    color: #13283d;
    background: #fff;
}
.vc-projector-entry[hidden] { display: none; }
.vc-projector-entry img { width: min(100%, 208px); height: auto; }
.vc-projector-entry > div { min-width: 0; }
.vc-projector-entry strong { font-size: clamp(1.375rem, 3vw, 2.5rem); line-height: 1.2; font-weight: 850; font-variant-numeric: tabular-nums; letter-spacing: .05em; }
.vc-projector-address {
    grid-area: address;
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px clamp(8px, 1.6vw, 24px);
    min-width: 0;
    padding: 10px clamp(12px, 3vw, 44px);
    border-top: 1px solid #4f6980;
    color: #f8fafc;
    text-align: center;
}
.vc-projector-address span { color: #c5d9e9; font-size: clamp(.875rem, 1.6vw, 1.375rem); font-weight: 700; }
.vc-projector-address strong {
    min-width: 0;
    font-size: clamp(1.25rem, 3.4vw, 3.25rem);
    line-height: 1.2;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.vc-projector-content:has(> .vc-projector-address):has(.vc-projector-waiting):not(:has(.vc-field-stage:not([hidden]))) {
    grid-template-rows: auto minmax(0, 1fr);
}
.vc-projector-content:has(> .vc-projector-address):has(.vc-projector-waiting):not(:has(.vc-field-stage:not([hidden]))) .vc-projector-address {
    align-self: center;
    display: grid;
    container-type: inline-size;
    justify-content: stretch;
    gap: 10px;
    border-top: 0;
}
.vc-projector-content:has(> .vc-projector-address):has(.vc-projector-waiting):not(:has(.vc-field-stage:not([hidden]))) .vc-projector-address strong {
    font-size: clamp(1.25rem, 6.2cqi, 5.25rem);
    text-wrap: balance;
}
.vc-projector-content:has(> .vc-projector-address) .vc-projector-waiting {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
}
.vc-projector-waiting, .vc-projector-closed {
    display: grid;
    place-items: center;
    min-height: 100%;
    color: #e2eff9;
    text-align: center;
    font-size: clamp(1.125rem, 2.6vw, 2rem);
    font-weight: 700;
}
.vc-projector-closed h2 { padding: 24px 36px; border-radius: 12px; color: #13283d; background: #fff; }

@media (min-width: 768px) {
    .vc-projector-content:has(> .vc-projector-entry:not([hidden])):has(.vc-projector-waiting):not(:has(.vc-field-stage:not([hidden]))) {
        grid-template-areas: "stage stage" "address qr";
    }
}
@media (max-width: 767px) {
    .vc-projector-content:has(> .vc-projector-entry:not([hidden])) {
        grid-template: "stage" minmax(0, 1fr) "address" auto "qr" auto / minmax(0, 1fr);
    }
    .vc-projector-content:has(> .vc-projector-entry:not([hidden])):has(.vc-projector-waiting):not(:has(.vc-field-stage:not([hidden]))) {
        grid-template-rows: auto minmax(0, 1fr) auto;
    }
    .vc-projector-entry { grid-template-columns: 88px minmax(0, 1fr); align-items: center; justify-self: end; }
    .vc-lifecycle-actions > *, .vc-lifecycle-actions form button { width: 100%; }
    .vc-host-toolbar .vc-live-operation-menu { position: fixed; inset: auto 12px 12px 12px; width: auto; max-width: none; max-height: 50dvh; }
    .vc-host-shell .vc-host-primary-actions > .vc-next-step-action { flex: 1 1 100%; }
}

@media (max-width: 1023px) {
    .vc-lifecycle-card .vc-session-record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vc-lifecycle-card .vc-session-record-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* 자료 한 장(강사·참가자 공용): 종류 → 제목 → 행동 순서로 읽힌다. 제목은 자르지 않고 두 줄까지 보인다. */
#vc-material-list { display: grid; gap: 10px; }
.vc-mat-card {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid var(--vc-workroom-line, #cfdeeb);
    border-radius: 12px;
    background: #fff;
}
.vc-mat-card.is-current {
    border-color: var(--vc-workroom-blue, #036fa6);
    box-shadow: inset 4px 0 0 var(--vc-workroom-blue, #036fa6);
    background: #f5fbff;
}
.vc-mat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; }
.vc-host-shell .vc-mat-head { margin-block: -6px -2px; margin-inline-end: -6px; }
.vc-mat-head-end { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.vc-mat-kind { font-size: .8125rem; font-weight: 700; color: var(--vc-workroom-secondary, #425a70); }
.vc-mat-live {
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 6px;
    border-radius: 999px; padding: 2px 10px;
    background: var(--vc-workroom-blue, #036fa6); color: #fff;
    font-size: .8125rem; font-weight: 800;
}
.vc-mat-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.vc-mat-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 1rem; font-weight: 800; line-height: 1.4; color: var(--vc-workroom-ink, #13283d);
    overflow-wrap: anywhere;
}
.vc-mat-caption { font-size: .875rem; font-weight: 500; line-height: 1.45; color: var(--vc-workroom-secondary, #425a70); overflow-wrap: anywhere; }
.vc-mat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.vc-mat-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 44px; padding: 0 14px;
    border: 1px solid transparent; border-radius: 10px;
    font-size: .875rem; font-weight: 800; line-height: 1.2; white-space: nowrap;
    cursor: pointer; text-decoration: none;
}
.vc-mat-btn--primary { background: var(--vc-workroom-blue, #036fa6); color: #fff; }
.vc-mat-btn--primary:hover:not(:disabled) { background: #035783; }
.vc-mat-btn--primary:disabled { cursor: default; background: var(--vc-workroom-active, #e2f1fb); color: var(--vc-workroom-blue, #036fa6); }
.vc-mat-btn--soft { background: #f1f5f9; color: var(--vc-workroom-ink, #13283d); }
.vc-mat-btn--soft:hover { background: #e2e8f0; }
.vc-mat-send { background: #fff; border-color: var(--vc-workroom-line, #cfdeeb); color: var(--vc-workroom-ink, #13283d); }
.vc-mat-send:hover:not(:disabled) { border-color: #9fbfd6; }
.vc-mat-send.is-on { background: #ecfdf5; border-color: #8fd3b4; color: #0d6b47; }
.vc-mat-check {
    display: inline-grid; place-items: center; width: 18px; height: 18px;
    border: 2px solid currentColor; border-radius: 5px; font-size: .75rem; line-height: 1;
}
.vc-mat-send.is-on .vc-mat-check { background: #0d6b47; border-color: #0d6b47; color: #fff; }
.vc-mat-more { position: relative; }
.vc-mat-more > summary { list-style: none; }
.vc-mat-more > summary::-webkit-details-marker { display: none; }
.vc-mat-more-toggle { width: 44px; min-height: 40px; padding: 0; background: transparent; font-size: 1.25rem; letter-spacing: 0; }
.vc-mat-more[open] > summary { background: #e2e8f0; }
.vc-mat-menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
    display: grid; min-width: 200px; padding: 6px;
    border: 1px solid var(--vc-workroom-line, #cfdeeb); border-radius: 12px;
    background: #fff; box-shadow: 0 12px 28px rgba(19, 40, 61, .16);
}
.vc-mat-menu-item {
    display: flex; align-items: center; min-height: 44px; padding: 0 12px;
    border: 0; border-radius: 8px; background: transparent;
    font-size: .9375rem; font-weight: 700; color: var(--vc-workroom-ink, #13283d);
    text-align: start; text-decoration: none; cursor: pointer;
}
.vc-mat-menu-item:hover:not(:disabled) { background: #f1f5f9; }
.vc-mat-menu-item:disabled { color: #9aa9b7; cursor: default; }
.vc-mat-menu-item--danger { color: #a81d3a; border-top: 1px solid #edf2f7; border-radius: 0 0 8px 8px; margin-top: 4px; }

/* 단계 탭: 진행할 단계 목록이 먼저, 만들기·추가는 접어 둔다. */
.vc-step-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; overflow-wrap: anywhere; }
.vc-step-builder { border: 1px dashed #b7cde0; border-radius: 12px; background: #f8fbfe; }
.vc-step-builder > summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; min-height: 48px; padding: 0 14px;
    font-size: .9375rem; font-weight: 800; color: var(--vc-workroom-blue, #036fa6);
}
.vc-step-builder > summary::-webkit-details-marker { display: none; }
.vc-step-builder[open] > summary { border-bottom: 1px solid #dbe7f1; }
.vc-step-builder-body { padding: 12px; }
.vc-step-menu-toggle { font-size: 1.25rem !important; letter-spacing: 0; justify-content: center; min-width: 44px; }

/* 발표자료 양옆 넘기기 단추: 넘길 수 있는 자료(PDF·활동)일 때만 보인다. */
.vc-host-shell #vc-viewer-shell:not(.vc-viewer-shell--spotlight) { position: relative; }
.vc-stage-nav {
    position: absolute; top: 50%; z-index: 4;
    display: none; place-items: center;
    width: 52px; height: 88px; margin-top: -44px;
    border: 0; border-radius: 14px;
    background: rgba(15, 23, 42, .38); color: #fff;
    font-size: 2.5rem; font-weight: 300; line-height: 1;
    cursor: pointer; opacity: .55;
    transition: opacity .15s ease, background-color .15s ease;
}
.vc-stage-nav--prev { left: 10px; }
.vc-stage-nav--next { right: 10px; }
.vc-viewer-shell--click-next > .vc-stage-nav { display: grid; }
.vc-viewer-shell--click-next:hover > .vc-stage-nav { opacity: .85; }
.vc-stage-nav:hover, .vc-stage-nav:focus-visible { opacity: 1 !important; background: rgba(3, 111, 166, .92); }
@media (max-width: 767px) {
    .vc-stage-nav { width: 40px; height: 64px; margin-top: -32px; font-size: 2rem; }
}

/* 프로젝터 창: 마우스를 움직일 때만 넘기는 방법을 잠깐 알려 준다. */
.vc-projector-remote-hint {
    position: fixed; left: 50%; bottom: 18px; z-index: 90;
    transform: translateX(-50%);
    padding: 8px 16px; border-radius: 999px;
    background: rgba(15, 23, 42, .78); color: #fff;
    font-size: .9375rem; font-weight: 700; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.vc-projector-remote-hint.is-visible { opacity: 1; }
.vc-projector .vc-projector-stage { cursor: pointer; }

/* 강사 도구줄: 넘기기(다음 쪽)가 주인공, 보기 조절은 조용하게. */
.vc-host-shell .vc-material-toolbar #vc-next-page { background: var(--vc-workroom-blue); border-color: var(--vc-workroom-blue); color: #fff; }
.vc-host-shell .vc-material-toolbar #vc-next-page:hover { background: #035783; }
.vc-host-shell .vc-material-toolbar #vc-prev-page { margin-inline-start: 6px; }
.vc-host-shell .vc-material-toolbar #vc-image-spotlight { border: 1px solid var(--vc-workroom-line); background: #fff; color: var(--vc-workroom-ink); }
body.vc-material-spotlight-open .vc-host-shell .vc-material-toolbar #vc-image-close { background: var(--vc-workroom-blue); color: #fff; }

/* 첫 화면 '내 강의': 진행 중·준비 중·최근 종료를 한 목록에, 상태는 글자 칩으로 구분 */
.vc-lecture-state {
    display: inline-flex;
    align-items: center;
    margin-bottom: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.6;
}
.vc-lecture-state--live { background: #dcfce7; color: #166534; }
.vc-lecture-state--draft { background: #e0f2fe; color: #075985; }
.vc-lecture-state--ended { background: #f1f5f9; color: #475569; }
.vc-home-workroom .vc-main-live-stack .vc-main-session-card--ended { background: #fff; border-color: #e2e8f0; }
.vc-main-session-card--ended .vc-main-session-title { color: #334155; font-size: 1rem; }
button.vc-main-quiet-action { border: 0; font: inherit; cursor: pointer; }
.vc-home-workroom .vc-main-reuse-action { background: #e0f2fe; color: #075985; }
.vc-home-workroom .vc-main-reuse-action:hover { background: #bae6fd; }
.vc-main-session-actions form { margin: 0; }
button.vc-main-primary-action { border: 0; font: inherit; cursor: pointer; }
.vc-course-building-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.vc-course-building-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e2e6ef;
    border-radius: 10px;
    background: #fff;
    font-weight: 700;
    color: #334155;
    word-break: keep-all;
}
.vc-main-older > summary { list-style: none; }
.vc-main-older > summary::-webkit-details-marker { display: none; }
@media (max-width: 640px) {
    .vc-home-workroom .vc-main-live-stack .vc-main-session-card--ended .vc-main-session-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }
    .vc-home-workroom .vc-main-session-card--ended .vc-main-session-actions form,
    .vc-home-workroom .vc-main-session-card--ended .vc-main-session-actions :is(button, a) {
        width: 100%;
        margin: 0;
    }
}
