/* @coding-campus/live-ui default theme. Override the custom properties to brand it. */
.ccl-root, .ccl-join, .ccl-toast {
  --ccl-bg: #ffffff; --ccl-surface: #f4f6fa; --ccl-text: #142033; --ccl-muted: #5b6678; --ccl-border: #d7dde8;
  --ccl-primary: #2457d6; --ccl-primary-text: #ffffff; --ccl-danger: #c62f3b; --ccl-live: #e0313f; --ccl-radius: 10px;
  color: var(--ccl-text); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}
@media (prefers-color-scheme: dark) {
  .ccl-root, .ccl-join, .ccl-toast {
    --ccl-bg: #10151f; --ccl-surface: #1a2130; --ccl-text: #e8edf6; --ccl-muted: #9aa6ba; --ccl-border: #2c3648;
    --ccl-primary: #5b8cff; --ccl-primary-text: #0b1020;
  }
}
.ccl-root { display: grid; grid-template-columns: minmax(0, 1fr) 280px; grid-template-rows: auto 1fr; gap: 12px; background: var(--ccl-bg); }
.ccl-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.ccl-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ccl-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (max-width: 720px) { .ccl-root { grid-template-columns: 1fr; } }
.ccl-button { border: 1px solid var(--ccl-border); background: var(--ccl-surface); color: var(--ccl-text); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; min-height: 36px; }
.ccl-button:disabled { opacity: .55; cursor: progress; }
.ccl-button[aria-pressed="true"] { outline: 2px solid var(--ccl-primary); outline-offset: -2px; }
.ccl-primary { background: var(--ccl-primary); border-color: var(--ccl-primary); color: var(--ccl-primary-text); }
.ccl-danger { background: var(--ccl-danger); border-color: var(--ccl-danger); color: #fff; }
.ccl-link { border: 0; background: none; color: var(--ccl-primary); cursor: pointer; padding: 0 4px; font: inherit; }
.ccl-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.ccl-status { font-weight: 600; color: var(--ccl-muted); }
.ccl-status[data-live="true"] { color: var(--ccl-live); }
.ccl-join { display: grid; gap: 12px; max-width: 360px; padding: 20px; background: var(--ccl-bg); border: 1px solid var(--ccl-border); border-radius: var(--ccl-radius); }
.ccl-join h2 { margin: 0; font-size: 18px; }
.ccl-label { display: grid; gap: 6px; }
.ccl-code-input { font: 600 20px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; padding: 10px; border: 1px solid var(--ccl-border); border-radius: 8px; background: var(--ccl-surface); color: var(--ccl-text); text-transform: uppercase; }
.ccl-error { margin: 0; color: var(--ccl-danger); }
.ccl-stage { position: relative; aspect-ratio: 16 / 9; background: #05080e; border-radius: var(--ccl-radius); overflow: hidden; display: grid; place-items: center; }
.ccl-stage-video { width: 100%; height: 100%; object-fit: contain; background: #05080e; }
.ccl-stage[data-mode="idle"] .ccl-stage-video, .ccl-stage[data-mode="live"] .ccl-stage-video { visibility: hidden; }
.ccl-stage-placeholder { position: absolute; color: #c9d3e6; margin: 0; padding: 16px; text-align: center; }
.ccl-stage-label { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.6); color: #fff; padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.ccl-stage-label:empty { display: none; }
.ccl-stage-expand { position: absolute; right: 10px; bottom: 10px; }
.ccl-stage-expanded { position: fixed; inset: 0; z-index: 2147483000; aspect-ratio: auto; border-radius: 0; }
.ccl-tiles { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; }
.ccl-tile { margin: 0; width: 120px; background: #000; border-radius: 6px; overflow: hidden; }
.ccl-tile video { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.ccl-tile figcaption { color: #fff; font-size: 11px; padding: 2px 4px; }
.ccl-participants h3 { margin: 0 0 6px; font-size: 14px; }
.ccl-participant-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 360px; overflow: auto; }
.ccl-participant { display: grid; grid-template-columns: 32px 1fr; column-gap: 8px; align-items: center; padding: 6px; border-radius: 8px; background: var(--ccl-surface); }
.ccl-participant[data-hand="true"] { outline: 2px solid #f0b429; }
.ccl-avatar { grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--ccl-border); display: grid; place-items: center; font-weight: 700; }
.ccl-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccl-badges { color: var(--ccl-muted); font-size: 12px; }
.ccl-moderation { grid-column: 2; font-size: 12px; }
.ccl-chat { display: grid; gap: 6px; }
.ccl-chat-log { list-style: none; margin: 0; padding: 6px; height: 180px; overflow: auto; background: var(--ccl-surface); border-radius: 8px; }
.ccl-chat-form { display: flex; gap: 6px; }
.ccl-chat-input { flex: 1; min-width: 0; padding: 8px; border: 1px solid var(--ccl-border); border-radius: 8px; background: var(--ccl-bg); color: var(--ccl-text); }
.ccl-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #142033; color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 2147483001; max-width: calc(100vw - 32px); }
.ccl-camera-thumb { object-fit: cover; background: #000; }
