/* Quay video từ webcam (recorder.js) – dùng chung trang cô và Góc phụ huynh */
.rc { display: flex; flex-direction: column; gap: 8px; }
.rc-stage { position: relative; aspect-ratio: 4 / 3; background: #10162a; border-radius: 14px; overflow: hidden; }
.rc-video { width: 100%; height: 100%; object-fit: contain; transform: scaleX(-1); display: block; }
.rc-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #aab3cc; text-align: center; padding: 16px; }
.rc-ph span { font-size: 52px; }
.rc-ph[hidden], .rc-badge[hidden], .rc-devs[hidden], .rc-sel[hidden] { display: none !important; }
.rc-badge { position: absolute; top: 10px; left: 10px; background: #e11d48; color: #fff; font-weight: 800; border-radius: 999px; padding: 3px 12px; font-variant-numeric: tabular-nums; }
.rc[data-state='paused'] .rc-badge { background: #64748b; }
.rc[data-state='recording'] .rc-badge { animation: rc-blink 1.4s infinite; }
@keyframes rc-blink { 50% { opacity: 0.6; } }
.rc-devs { display: flex; gap: 6px; flex-wrap: wrap; }
.rc-sel { flex: 1 1 140px; min-width: 0; padding: 6px 8px; border: 1px solid #e7e2d8; border-radius: 10px; font: inherit; font-size: 13px; background: #fff; }
.rc-title { padding: 8px 10px; border: 1px solid #e7e2d8; border-radius: 10px; font: inherit; }
.rc-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.rc-btns .btn.rec { background: #e11d48; border-color: #e11d48; color: #fff; }
.rc-btns .btn.stop { background: #1d2742; border-color: #1d2742; color: #fff; }
.rc-status { font-size: 13.5px; color: #6b7590; min-height: 18px; }
.rc-status.rec { color: #be123c; font-weight: 700; }
.rc-status.warn { color: #b45309; font-weight: 600; }
.rc-status.err { color: #dc2626; font-weight: 600; }
.rc-status.ok { color: #15803d; font-weight: 700; }
/* tự che mặt */
.rc-blur { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid #e7e0d2; background: #fff; cursor: pointer; white-space: nowrap; }
.rc-blur.on { background: #eef7ff; border-color: #9cc7ff; color: #1d4ed8; }
.rc-blur input { margin: 0; }
.rc-blur input:disabled + * , .rc-blur:has(input:disabled) { cursor: not-allowed; }

/* v27: video lưu trên máy · bảng tải lên Google Drive / YouTube của chính người dùng (localsave.js) */
.rc-where { font-size: 13px; color: #475569; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; }
.rc-where .btn { padding: 4px 10px; font-size: 13px; }
.rc-after:empty { display: none; }
.rc-after { margin-top: 8px; }
.vs { border: 1px solid #dbe3ec; background: #f8fafc; border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.45; color: #1f2937; }
.vs p { margin: 0 0 8px; }
.vs-saved { word-break: break-word; }
.vs-up { color: #166534; font-weight: 600; }
.vs-q { color: #334155; }
.vs-acts { display: grid; gap: 8px; }
.vs-acts > .btn { justify-self: start; }
.vs-any { font-size: 13px; color: #475569; display: flex; gap: 6px; align-items: flex-start; }
.vs-yt { border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; background: #fff; }
.vs-yt summary { cursor: pointer; font-weight: 700; }
.vs-yt ol { margin: 8px 0; padding-left: 1.3em; display: grid; gap: 4px; }
.vs-yt small { display: block; color: #64748b; margin: 6px 0; }
.vs-link { display: flex; gap: 6px; margin-top: 6px; }
.vs-inp { flex: 1; min-width: 0; border: 1px solid #cbd5e1; border-radius: 9px; padding: 8px 10px; font: inherit; font-size: 14px; }
.vs-msg { margin: 8px 0 0 !important; font-size: 13.5px; }
.vs-msg:empty { display: none; }
.vs-msg.ok { color: #166534; font-weight: 600; }
.vs-msg.warn { color: #92400e; }
.vs-msg.err { color: #b91c1c; font-weight: 600; }
.vs-ov { position: fixed; inset: 0; background: #0f172a88; z-index: 100002; display: flex; align-items: center; justify-content: center; padding: 16px; }
.vs-card { background: #fff; border-radius: 16px; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; padding: 14px 16px 16px; box-shadow: 0 20px 50px #0004; }
.vs-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.vs-x { border: 0; background: #f1f5f9; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: 15px; }
.vs .btn, .rc-where .btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #cbd5e1; background: #fff; color: #1f2937; border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.vs .btn.primary { background: #ff6b3d; border-color: #ff6b3d; color: #fff; }
.vs .btn.small { padding: 5px 10px; font-size: 13px; }
.vs .btn.ghost, .rc-where .btn.ghost { background: transparent; }
.vs .btn:disabled { opacity: 0.5; cursor: default; }
