/* «عرض مباشر بلغات الحضور»: the presenter's dialog, the QR code over the presentation, the live chip. */
.live-dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 40px); border: 0; border-radius: 22px; padding: 0; box-shadow: 0 30px 90px #0f1d2a33; color: #1d2a32; font-family: var(--brand-font), sans-serif; overflow: auto; }
.live-dialog::backdrop { background: #13222e66; backdrop-filter: blur(4px); }
.live-dialog header { display: flex; gap: 14px; align-items: flex-start; padding: 24px 26px 8px; }
.live-dialog h2 { margin: 2px 0 6px; font-size: 19px; font-weight: 700; }
.live-dialog header p { margin: 0; font-size: 12.5px; line-height: 1.8; color: #6b7a83; }
.live-mark { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--brand-primary-soft, #e8f4f2); color: var(--brand-primary, #0f7a6e); }
.live-mark svg { width: 22px; height: 22px; }
.live-close { margin-inline-start: auto; border: 0; background: none; color: #93a0a8; cursor: pointer; padding: 4px; }
.live-close svg { width: 18px; }
.live-dialog section { padding: 10px 26px 24px; }
.live-dialog h3 { font-size: 13px; margin: 8px 0 12px; font-weight: 700; display: flex; gap: 8px; align-items: baseline; }
.live-dialog h3 small { color: #93a0a8; font-weight: 400; font-size: 11px; }
.live-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.live-langs label { position: relative; cursor: pointer; }
.live-langs input { position: absolute; opacity: 0; pointer-events: none; }
.live-langs span { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border: 1px solid #e1e7eb; border-radius: 11px; background: #fff; transition: border-color .15s, background .15s; }
.live-langs b { font-size: 12.5px; font-weight: 600; }
.live-langs small { font-size: 11px; color: #8a979f; }
.live-langs input:checked + span { border-color: var(--brand-primary, #0f7a6e); background: var(--brand-primary-tint, #f1f8f7); box-shadow: inset 0 0 0 1px var(--brand-primary, #0f7a6e); }
.live-langs input:focus-visible + span { outline: 2px solid var(--brand-primary, #0f7a6e); outline-offset: 2px; }
.live-cost { font-size: 12px; color: #6b7a83; margin: 16px 0 4px; }
.live-cost b { color: #1d2a32; }
.live-actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.live-actions .pz-cta { display: inline-flex; gap: 8px; align-items: center; }
.live-actions svg { width: 16px; height: 16px; }
.live-ghost { border: 1px solid #dfe5e9; background: #fff; color: #4e5d66; border-radius: 10px; padding: 10px 16px; font: inherit; font-size: 12px; cursor: pointer; }
.live-current { margin: 4px 26px 0; padding: 14px 16px !important; border-radius: 14px; background: #f5f8f9; display: grid; gap: 4px; }
.live-current b { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.live-current small { color: #7d8a92; font-size: 11.5px; }
.live-note { margin-top: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 0 #e5484d66; animation: live-pulse 1.8s infinite; flex: none; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 #e5484d66; } 70% { box-shadow: 0 0 0 7px #e5484d00; } 100% { box-shadow: 0 0 0 0 #e5484d00; } }
.live-progress { text-align: center; }
.live-bar { height: 6px; border-radius: 6px; background: #edf1f3; overflow: hidden; margin: 18px 0 14px; }
.live-bar i { display: block; height: 100%; width: 3%; background: var(--brand-primary, #0f7a6e); border-radius: inherit; transition: width .3s; }
.live-progress p { font-size: 13px; margin: 0 0 6px; }
.live-progress small { color: #93a0a8; font-size: 11px; }
.live-progress.is-error p { color: #b42318; }
.live-ready { display: flex; gap: 22px; align-items: center; }
.live-ready .live-qr { flex: none; width: 168px; height: 168px; border-radius: 14px; overflow: hidden; border: 1px solid #e6ebee; }
.live-ready .live-qr svg { width: 100%; height: 100%; display: block; }
.live-ready b { font-size: 16px; }
.live-ready p { font-size: 12.5px; line-height: 1.8; color: #6b7a83; margin: 6px 0 10px; }
.live-ready code { display: inline-block; font-size: 12px; padding: 5px 10px; border-radius: 8px; background: #f3f6f8; color: #33444d; }
.live-dialog kbd, .live-qr-overlay kbd { font: 600 11px/1 ui-monospace, monospace; padding: 2px 6px; border: 1px solid #d5dde2; border-bottom-width: 2px; border-radius: 5px; background: #fff; color: #33444d; }
@media (max-width: 560px) { .live-ready { flex-direction: column; text-align: center; } }

/* Over the running presentation: a calm card with the QR code; the slide stays as designed. */
.live-qr-overlay { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: #0b131acc; backdrop-filter: blur(6px); cursor: default; animation: live-fade .25s ease-out; }
.live-qr-overlay[hidden] { display: none; }
@keyframes live-fade { from { opacity: 0; } to { opacity: 1; } }
.live-qr-card { display: flex; gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(22px, 3vw, 40px); border-radius: 28px; background: #fff; box-shadow: 0 30px 80px #0006; max-width: 92vw; font-family: var(--brand-font), sans-serif; }
.live-qr-code { width: min(42vh, 38vw); aspect-ratio: 1; flex: none; }
.live-qr-code svg { width: 100%; height: 100%; display: block; }
.live-qr-text { display: grid; gap: 8px; color: #1d2a32; max-width: 34vw; }
.live-qr-text b { font-size: clamp(22px, 3.2vw, 42px); font-weight: 700; line-height: 1.3; }
.live-qr-sub { font: 500 clamp(14px, 1.6vw, 22px)/1.3 system-ui, sans-serif; color: #6b7a83; }
.live-qr-text p { margin: 4px 0; font-size: clamp(12px, 1.3vw, 18px); color: #4e5d66; line-height: 1.7; }
.live-qr-text code { font-size: clamp(12px, 1.2vw, 17px); color: var(--brand-primary, #0f7a6e); }
.live-qr-text small { color: #93a0a8; font-size: 12px; }
.live-chip { display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; padding: 0 10px !important; }
.live-chip svg { width: 16px; height: 16px; }
.live-chip [data-joins] { font: 600 12px/1 system-ui, sans-serif; }
.presentation-menu [data-live] { border-top: 1px solid #eef2f4; margin-top: 4px; padding-top: 10px; }
