/* NGUỒN CSS DUY NHẤT của desktop_web (`choixanh-live.css`) — LUÔN viết multi-line, dễ đọc (1 rule/dòng, có space sau { : ;). KHÔNG nén 1 dòng, KHÔNG hand-minify. - Dev local (DESKTOP_WEB_DEV=1, start.bat): base.html nạp THẲNG file này (/static/choixanh-live.css). - Prod: base.html nạp bản minify /static/dist/choixanh-live.min.css — `publish.ps1` TỰ chạy `pub-css-js.ps1` (cleancss) sinh ra khi deploy. KHÔNG sửa tay file .min.css. Xem desktop_web/CLAUDE.md. Bảng màu khớp pc_app (2026-08-22, theo yêu cầu user "web phải giống app 100%"). ĐÃ SỬA LẠI LẦN 2 sau khi chụp màn hình app THẬT đang chạy (không đoán từ code QSS nữa): pc_app dùng Qt Fusion mặc định — thanh tab/toolbar và nút đều XÁM PHẲNG (không có bar màu đậm nào), chỉ có 3 điểm màu thật sự xuất hiện khi dùng app: 1. Link xanh dương chuẩn Qt (vd "(xem thư viện chuyển động)" ở tab Đạo diễn). 2. Badge trạng thái vàng/cam VÀ xanh dương nhạt (ad-hoc, xem `pc_app/ui_common.py` màu #ffd166/#6b4a00 và #a8d5ff/#0b3d63 — 2 badge job render "1|15%"/"1|0%" thấy trong ảnh chụp thật). 3. Chữ XANH LÁ cho trạng thái hợp lệ/thành công (vd "Tổng đang bật: 11.3s — cần 11.0s"). Màn splash tối #20232A CHỈ hiện 1-2 giây lúc khởi động, không xuất hiện lại trong MainWindow — dùng nó làm màu nút/thanh điều hướng (bản sửa lần 1) là SAI, đã bỏ. */ :root { --ink: #1e1e1e; --muted: #5f6368; --line: #c6c6c6; --bg: #f0f0f0; --surface: #ffffff; /* Nút Qt Fusion: mặt xám phẳng, không phải nút màu đặc */ --button-face: #efefef; --button-face-hover: #e1e1e1; --button-border: #adadad; /* Xanh dương Highlight mặc định của Qt Fusion — dùng cho link, ô chọn/focus, chỉ báo active */ --accent: #308cc6; --accent-strong: #1f6ea1; --danger: #a5340e; /* Xanh lá — CHỈ dùng cho trạng thái hợp lệ/thành công, đúng màu chữ thật thấy trong app */ --success: #1a7f37; --success-bg: #dcefdf; /* 2 badge ad-hoc thật của app (pc_app/ui_common.py) — dùng nguyên cho pill trạng thái */ --badge-amber-bg: #ffd166; --badge-amber-text: #6b4a00; --badge-blue-bg: #a8d5ff; --badge-blue-text: #0b3d63; } * { box-sizing: border-box; } body { margin: 0; background: var(--bg); color: var(--ink); /* "Noto Sans SC" nạp qua Google Fonts (base.html, chỉ khi lang=zh) — máy Windows thiếu font Hán tự sẽ tofu (ô vuông) dù HTML đúng UTF-8, xem ghi chú trong base.html. */ font-family: -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans SC", sans-serif; line-height: 1.55; } a { color: var(--accent-strong); } .topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; background: var(--surface); border-bottom: 1px solid var(--line); } .topbar .brand { font-weight: 700; font-size: 17px; text-decoration: none; color: var(--ink); } .topbar nav { display: flex; align-items: center; gap: 18px; } .topbar nav a { text-decoration: none; font-size: 14px; color: var(--muted); } .topbar nav a:hover { color: var(--ink); } .topbar .muted { color: var(--muted); } .topbar button.small { background: var(--button-face); color: var(--ink); border: 1px solid var(--button-border); } .topbar button.small:hover { background: var(--button-face-hover); } .nav-toggle-input { display: none; } .nav-toggle-btn { display: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); padding: 4px 6px; } @media (max-width: 760px) { .nav-toggle-btn { display: block; } .topbar { flex-wrap: wrap; } .topbar nav { flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 10px; max-height: 0; overflow: hidden; margin-top: 0; } .nav-toggle-input:checked ~ nav { max-height: 320px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); } } .page { max-width: 1400px; margin: 0 auto; padding: 28px 5px 64px; } .narrow { max-width: 640px; } h1 { font-size: 24px; margin: 0 0 6px; } h2 { font-size: 17px; margin: 24px 0 10px; } h3 { font-size: 14px; margin: 0 0 8px; } .muted { color: var(--muted); } .small { font-size: 12.5px; } .layout-with-sidebar { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; } @media (max-width: 760px) { .layout-with-sidebar { grid-template-columns: 1fr; } } .sidebar { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; position: sticky; top: 16px; } .sidebar h2 { margin-top: 0; } .sidebar fieldset { border: none; border-top: 1px solid var(--line); padding: 10px 0 4px; margin: 0; } .sidebar legend { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 0; } .checkbox-row { display: flex; align-items: center; gap: 7px; font-size: 13.5px; padding: 3px 0; } .form-block label.checkbox-row { flex-direction: row; align-items: center; font-weight: 400; } .sidebar button { width: 100%; margin-top: 12px; } .button-like.ghost { display: block; text-align: center; margin-top: 8px; font-size: 13px; text-decoration: none; color: var(--muted); } .content-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; } .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; } .card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow 0.15s, transform 0.15s; } .card:hover { box-shadow: 0 8px 20px -10px rgba(0,0,0,0.25); transform: translateY(-2px); } .thumb { aspect-ratio: 1; background: repeating-conic-gradient(#eee 0% 25%, #fff 0% 50%) 0 0 / 14px 14px; display: flex; align-items: center; justify-content: center; } .thumb img { width: 100%; height: 100%; object-fit: contain; } .thumb-placeholder { color: var(--muted); font-size: 12.5px; } .card-body { padding: 10px 12px 12px; } .card-name { font-weight: 650; margin-bottom: 6px; } .chip-row { display: flex; flex-wrap: wrap; gap: 5px; } .chip { font-size: 11px; background: #e4e5e7; color: var(--ink); border-radius: 4px; padding: 2px 7px; } .empty-state { color: var(--muted); padding: 32px 0; } .form-block { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 14px; } .form-block label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 600; } .form-block input[type="text"], .form-block input[type="password"] { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 14px; } .form-block fieldset { border: none; border-top: 1px solid var(--line); padding: 12px 0 4px; margin: 0; } .form-block legend { font-weight: 650; font-size: 13.5px; padding: 0; } .form-block select { padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; min-width: 220px; } /* Nút — khớp nút Qt Fusion thật: mặt xám phẳng viền mảnh, KHÔNG phải nút màu đặc như bản sửa lần 1 (ảnh chụp app thật: nút Play/Pause/Stop/Áp dụng chỉ đạo đều xám trơn). */ button { cursor: pointer; background: var(--button-face); color: var(--ink); border: 1px solid var(--button-border); border-radius: 4px; padding: 8px 16px; font-size: 14px; font-weight: 600; } button:hover { background: var(--button-face-hover); } button.danger { background: var(--button-face); color: var(--danger); border-color: var(--danger); } button.danger:hover { background: #f3e4d3; } button.small { padding: 4px 10px; font-size: 12.5px; } /* Nút/ô nhập chỉ để đối chiếu bố cục app (Hệ thống/Cấp quyền — mục OBS/LAN không thao tác được từ web), xem `disabled` trong he_thong.html/cap_quyen.html. */ button:disabled, .icon-btn:disabled, input:disabled { opacity: 0.55; cursor: not-allowed; } button:disabled:hover { background: var(--button-face); } .inline-form { display: flex; gap: 8px; align-items: center; } .back-link { display: inline-block; margin-bottom: 14px; font-size: 13.5px; } .image-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; } @media (max-width: 560px) { .image-slots { grid-template-columns: 1fr; } } .image-slot { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; } .slot-preview { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: repeating-conic-gradient(#eee 0% 25%, #fff 0% 50%) 0 0 / 14px 14px; border-radius: 6px; margin-bottom: 10px; } .slot-empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12.5px; } .option-group { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 14px; } .option-group legend { font-weight: 700; padding: 0; } .value-list { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; } .value-list li { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; border-top: 1px solid var(--line); } .value-list li:first-child { border-top: none; } .error-banner { background: #f3e4d3; border: 1px solid var(--danger); color: var(--danger); border-radius: 8px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; } .success-banner { background: var(--success-bg); border: 1px solid var(--success); color: var(--success); border-radius: 8px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; } .account-summary { display: flex; gap: 32px; flex-wrap: wrap; padding: 4px 0 18px; } .account-summary > div { display: flex; flex-direction: column; gap: 2px; } .account-summary strong { font-size: 1rem; } /* Login is centered within the space below the site header. */ .login-page { min-height: calc(100vh - 56px - 92px); display: flex; flex-direction: column; justify-content: center; width: 100%; margin: 0 auto; } .login-page .form-block { width: 100%; } @media (max-width: 760px) { .login-page { min-height: calc(100vh - 72px - 64px); } } .autosave-status { font-size: 12px; color: var(--muted); min-height: 1.4em; } .autosave-status[data-tone="busy"] { color: var(--muted); } .autosave-status[data-tone="ok"] { color: var(--success); } .autosave-status[data-tone="error"] { color: var(--danger); } .autosave-conflict-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 12px; border-radius: 8px; background: var(--danger-bg, #fdecea); border: 1px solid var(--danger); color: var(--danger); font-size: 13px; } .autosave-conflict-banner span { flex: 1; } .autosave-conflict-banner button { flex-shrink: 0; border: 1px solid var(--danger); background: transparent; color: var(--danger); border-radius: 6px; padding: 4px 10px; cursor: pointer; } /* WS "Reload bắt buộc" (ws_sync_client.js, FEATURE_SYNC_CORE_CONTRACT.md §8-2) — overlay toàn trang, CHỈ 1 nút bấm "Tải lại trang", không có cách đóng nào khác (đúng yêu cầu §8-2). */ .ws-reload-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.55); } .ws-reload-box { max-width: 420px; margin: 16px; padding: 20px; border-radius: 10px; background: var(--danger-bg, #fdecea); border: 1px solid var(--danger); color: var(--danger); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); } .ws-reload-box p { margin: 0 0 14px 0; font-size: 14px; line-height: 1.5; } .ws-reload-box button { width: 100%; padding: 10px; border: 1px solid var(--danger); background: var(--danger); color: #fff; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; } /* WS "Reload bắt buộc" - toast cảnh báo mất kết nối realtime (KHÔNG chặn thao tác, tự ẩn sau vài giây, khác hẳn .ws-reload-overlay là overlay chặn toàn trang). */ .ws-toast { position: fixed; right: 16px; bottom: 16px; z-index: 9998; max-width: 320px; padding: 10px 14px; border-radius: 8px; background: var(--danger-bg, #fdecea); border: 1px solid var(--danger); color: var(--danger); font-size: 13px; line-height: 1.4; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); } .vls-compositor-hidden-banner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 88%; padding: 14px 18px; border-radius: 8px; background: rgba(20, 20, 20, 0.88); border: 1px solid #d97706; color: #ffd27a; font-size: 13px; text-align: center; } .vls-compositor-hidden-banner button, .vls-compositor-hidden-banner a { border: 1px solid #ffd27a; background: transparent; color: #ffd27a; border-radius: 6px; padding: 5px 12px; cursor: pointer; font-weight: 600; text-decoration: none; } .vls-flash-highlight { animation: vls-flash-pulse 0.6s ease-in-out 3; border-radius: 6px; } @keyframes vls-flash-pulse { 0%, 100% { background: transparent; } 50% { background: rgba(217, 119, 6, 0.25); } } .vls-compositor-loading-overlay { position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; color: #cbd5e1; font-size: 14px; background: #111; } .vls-compositor-stage:fullscreen { max-width: none; max-height: none; } .vls-compositor-stage:fullscreen .vls-compositor-controls { padding: 10px 16px; } .vls-compositor-play-overlay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; padding: 14px 26px; border-radius: 999px; border: none; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; } .vls-compositor-play-overlay:hover { background: rgba(0, 0, 0, 0.85); } .vls-compositor-controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)); } .vls-cc-btn { flex-shrink: 0; border: none; background: transparent; color: #fff; font-size: 16px; width: 30px; height: 30px; border-radius: 6px; cursor: pointer; } .vls-cc-btn:hover { background: rgba(255, 255, 255, 0.15); } .vls-cc-seek { flex: 1; min-width: 0; accent-color: #fff; } .vls-cc-time { flex-shrink: 0; color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; } /* ==================== Cổng thành viên (member portal wizard) ==================== */ .panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; } .card-pad { padding: 18px; } .wz-stage-bar { margin-bottom: 18px; } .wz-panel h2 { font-size: 1.4rem; margin: 0 0 8px; } .wz-panel .lead { color: var(--muted); max-width: 62ch; margin: 0 0 22px; } .pill { display: inline-flex; align-items: center; gap: 5px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; width: fit-content; } .pill-ready { background: var(--success-bg); color: var(--success); } .pill-pending { background: var(--badge-amber-bg); color: var(--badge-amber-text); } .tabular { font-variant-numeric: tabular-nums; } .btn { cursor: pointer; background: var(--button-face); color: var(--ink); border: 1px solid var(--button-border); border-radius: 4px; padding: 8px 16px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; } .btn:hover { background: var(--button-face-hover); } .toolbar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; } /* Tab con kiểu tab Qt của app (2026-10-06 "giống app 100%"): ô có viền, tab đang mở nền trắng nối liền khung dưới. */ .subnav { display: flex; gap: 2px; border-bottom: 1px solid var(--button-border); margin-bottom: 14px; flex-wrap: wrap; } .subnav a, .subnav button.tab-btn { text-decoration: none; color: var(--ink); font-size: 0.85rem; font-weight: 400; padding: 4px 12px; margin-bottom: -1px; border: 1px solid var(--button-border); border-radius: 3px 3px 0 0; background: var(--button-face, #f0f0f0); cursor: pointer; font-family: inherit; } .subnav a:hover, .subnav button.tab-btn:hover { background: var(--button-face-hover, #e5f1fb); } .subnav a.active, .subnav button.tab-btn.active { background: var(--surface); border-bottom-color: var(--surface); } .global-scope-note { background: #f6eada; border: 1px solid #caa15c; border-radius: 8px; padding: 9px 12px; font-size: 0.78rem; color: #8a5a1e; margin: 0 0 18px; } .script-list { display: flex; flex-direction: column; gap: 10px; } .script-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px 14px; } .script-item-head { display: flex; align-items: center; gap: 12px; padding: 8px 0; } .script-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; } .script-item-title { font-weight: 650; font-size: 0.92rem; } .item-meta { display: flex; gap: 8px; align-items: center; } .dur-chip { font-size: 0.74rem; color: var(--muted); } .script-item-actions { flex: none; display: flex; align-items: center; gap: 4px; } .inline-form { display: inline-flex; } .icon-btn { background: none; border: 1px solid transparent; color: var(--muted); cursor: pointer; padding: 5px 8px; border-radius: 6px; font-size: 0.85rem; } .icon-btn:hover { background: var(--bg); border-color: var(--line); } .icon-btn.danger-icon:hover { background: #f3e4d3; color: var(--danger); border-color: var(--danger); } .switch { position: relative; width: 34px; height: 20px; flex: none; display: inline-block; } .switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; z-index: 1; } .switch .track { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background 0.15s; } .switch .thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: transform 0.15s; } .switch input:checked + .track { background: var(--accent); } .switch input:checked ~ .thumb { transform: translateX(14px); } .script-item-edit { border-top: 1px solid var(--line); margin-top: 4px; } .script-item-edit summary { cursor: pointer; font-size: 0.82rem; font-weight: 600; color: var(--accent-strong); padding: 8px 0; } .script-item-edit .form-block { border: none; padding: 4px 0 14px; } .config-grid { display: flex; flex-direction: column; gap: 18px; } .config-card h3 { font-size: 1rem; margin: 0 0 4px; } .config-card .hint { color: var(--muted); font-size: 0.82rem; margin: 0 0 14px; } .avatar-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; } .avatar-circle { width: 56px; height: 56px; border-radius: 50%; flex: none; background: #e4e5e7; display: grid; place-items: center; border: 2px solid var(--accent); overflow: hidden; } .avatar-circle img { width: 100%; height: 100%; object-fit: cover; } .avatar-name { font-weight: 700; } .avatar-tag { color: var(--muted); font-size: 0.82rem; } .avatar-pick-list { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; } .avatar-pick-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; } .avatar-pick-row:hover { background: var(--bg); } .avatar-pick-row input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; } .voice-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; } .voice-row.picked { border-color: var(--accent); background: #f2f2f3; } .voice-row input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; flex: none; } .voice-info { flex: 1; } .voice-info .name { font-weight: 700; font-size: 0.9rem; } .voice-info .desc { color: var(--muted); font-size: 0.78rem; } .voice-note { color: var(--muted); font-size: 0.78rem; margin-top: 6px; } .segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; } .segmented-input { position: absolute; opacity: 0; pointer-events: none; } .segmented label { display: inline-block; border: none; background: transparent; padding: 8px 18px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--muted); cursor: pointer; } .segmented-input:checked + label { background: var(--accent); color: #fff; } .segmented-input:focus-visible + label { outline: 2px solid var(--accent-strong); outline-offset: 2px; } .style-hint { margin-top: 12px; color: var(--muted); font-size: 0.82rem; } .demo-card { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 22px; } @media (max-width: 640px) { .demo-card { grid-template-columns: 1fr; } } .demo-avatar-box { aspect-ratio: 1; border-radius: 16px; background: #eeeff1; border: 1px solid var(--line); display: grid; place-items: center; position: relative; } .demo-body { display: flex; flex-direction: column; justify-content: center; gap: 14px; } .caption-box { font-size: 0.88rem; font-style: italic; background: var(--bg); border-radius: 8px; padding: 12px 14px; } .demo-tags { display: flex; gap: 8px; flex-wrap: wrap; } .summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } @media (max-width: 700px) { .summary-grid { grid-template-columns: 1fr; } } .checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; } .checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; } .checklist li .tick { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; } .checklist .lbl { display: block; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 700; margin-bottom: 2px; } .download-card { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; } .file-chip { display: flex; align-items: center; gap: 12px; } .file-icon { width: 38px; height: 38px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; font-size: 1.05rem; flex: none; } .file-name { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: 0.85rem; } .file-meta { color: var(--muted); font-size: 0.76rem; } .btn-lg { padding: 13px 22px; font-size: 0.95rem; } .instructions { margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; } .instructions summary { cursor: pointer; font-weight: 700; font-size: 0.88rem; color: var(--accent-strong); padding: 4px 0; } .instructions ol { margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 0.86rem; display: flex; flex-direction: column; gap: 8px; } .instructions ol code { font-family: Consolas, "SFMono-Regular", Menlo, monospace; background: var(--bg); padding: 1px 6px; border-radius: 4px; color: var(--ink); } .handoff { display: flex; align-items: stretch; gap: 10px; margin: 22px 0 26px; flex-wrap: wrap; } .handoff-node { flex: 1; min-width: 160px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; text-align: center; } .handoff-node .emoji { font-size: 1.3rem; } .handoff-node .label { font-weight: 700; font-size: 0.86rem; margin-top: 6px; } .handoff-node .sub { color: var(--muted); font-size: 0.74rem; margin-top: 2px; } .handoff-arrow { color: var(--muted); font-size: 1.2rem; flex: none; align-self: center; } .actionbar { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); } .actionbar .right { display: flex; gap: 10px; } a.btn { text-decoration: none; display: inline-flex; align-items: center; } .btn-ghost { background: transparent; color: var(--muted); border-color: transparent; } .btn-ghost:hover { background: var(--bg); color: var(--ink); } /* ==================== Biên tập (bảng đoạn kịch bản, kiểu app) ==================== */ .data-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); } .data-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; } .data-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); } .data-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; } .data-table tbody tr:last-child td { border-bottom: none; } .data-table tbody tr:hover { background: var(--bg); } .data-table td.actions-cell { white-space: nowrap; text-align: right; } /* Nut "Nghe"/link xem file that (khong disabled) trong bang du lieu he thong - can trong voi cac nut ghost khac (Sua/Thu muc/Xoa) dung ke ben. */ .data-table td.actions-cell a.btn-ghost { display: inline-block; padding: 4px 10px; font-size: 12.5px; border: 1px solid transparent; border-radius: 4px; text-decoration: none; cursor: pointer; } /* Tab Hệ thống — các bảng "danh sách" (Màn hình phát live / Background / Âm thanh phát live / Âm thanh nền / Âm thanh ngẫu nhiên) dùng CHUNG bố cục 3 cột CỐ ĐỊNH: cột "Hành động" của mọi bảng nằm thẳng hàng với nhau, bảng gọn lại để nhìn tổng quát từ xa (khớp ListConfigTable của app — 3 cột Active / Tên / Hành động). Xem <colgroup> trong he_thong.html. */ .data-table-wrap--sys { border: none; margin:0 auto; max-width: 99%; } .data-table--sys { table-layout: fixed; } .data-table--sys .c-active { width: 56px; } .data-table--sys .c-act { width: 252px; } .data-table--sys td.script-item-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .data-table--sys td.actions-cell { text-align: right; } .data-table--sys td.actions-cell > *, .data-table--sys td.actions-cell .row-edit { vertical-align: middle; } .data-table--sys td.actions-cell .action-note { color: var(--muted); font-size: 12px; } .status-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; color: var(--muted); } .status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line); } .status-dot[data-on="true"] { color: var(--success); } .status-dot[data-on="true"]::before { background: var(--success); } /* ==================== Canvas vị trí/kích thước nhân viên ảo (modal Biên tập) ==================== */ .canvas-editor-section { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; } .canvas-editor-section h4 { margin: 0 0 8px; font-size: 0.9rem; } .canvas-stage { position: relative; background: #1b1b1b; border-radius: 8px; overflow: hidden; margin: 8px 0; background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 10% 10%; } .canvas-box { position: absolute; border: 2px solid var(--accent); background: rgba(48, 140, 198, 0.28); cursor: move; min-width: 20px; min-height: 20px; } .canvas-resize-handle { position: absolute; right: -6px; bottom: -6px; width: 14px; height: 14px; background: var(--accent); border: 2px solid #fff; border-radius: 3px; cursor: nwse-resize; } .canvas-editor-section .field-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; } .canvas-editor-section .field-row label { display: flex; flex-direction: column; gap: 3px; font-size: 0.78rem; color: var(--muted); } .canvas-editor-section .field-row select, .canvas-editor-section .field-row input[type="number"] { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; } dialog.modal { border: none; border-radius: 12px; padding: 0; max-width: 480px; width: calc(100% - 32px); box-shadow: 0 20px 50px -20px rgba(0,0,0,0.35); } /* Biến thể rộng hơn — form nhiều field (vd "AI Viết nội dung") không lọt trong 480px mặc định. */ dialog.modal.modal-wide { max-width: 640px; } /* "AI Viết nội dung": nhãn trái + ô phải cùng dòng như QFormLayout bên app. */ #ai-write-body { gap: 8px; } #ai-write-body .kb-label { flex-basis: 140px; max-width: 140px; font-size: 13.5px; } #ai-write-body label.ai-write-radio { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; } #ai-write-body input[type="number"] { width: 90px; } #ai-write-body [hidden] { display: none; } #ai-write-followup { flex-direction: column; gap: 10px; } #ai-write-followup:not([hidden]) { display: flex; } /* Tab Kịch bản chỉ xem trong lúc AI viết (ai_write_content.js::setScriptTabBusy). Dòng báo vẫn rõ. */ .ai-write-busy { opacity: 0.55; cursor: progress; } .ai-write-busy [data-ai-write-hint] { opacity: 1; } /* Select2-like popup cho "Chọn kịch bản" — ô tìm kiếm nằm ngay trong dropdown. */ .kb-select2 { position: relative; width: 100%; } .kb-select2-display { width: 100%; box-sizing: border-box; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; } .kb-select2-display::after { content: "▾"; float: right; color: var(--muted); } .kb-select2-popup { position: absolute; z-index: 80; left: 0; right: 0; top: calc(100% + 3px); padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: 0 8px 24px rgba(0,0,0,.18); } .kb-select2-search { width: 100%; box-sizing: border-box; margin-bottom: 5px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; font: inherit; } .kb-select2-options { max-height: 280px; overflow-y: auto; } .kb-select2-option { display: block; width: 100%; border: 0; padding: 7px 9px; text-align: left; background: transparent; color: var(--ink); cursor: pointer; font: inherit; } .kb-select2-option:hover { background: var(--bg); } .kb-select2-options.is-empty::after { content: "Không tìm thấy kịch bản"; display: block; padding: 8px 9px; color: var(--muted); font-size: .9em; } .ai-script-busy { opacity: 0.55; cursor: progress; } .ai-script-busy [data-ai-write-hint] { opacity: 1; } dialog.modal::backdrop { background: rgba(20, 24, 20, 0.45); } /* Hộp thoại nhỏ của tab Kịch bản (Kịch bản mới / Chia sẻ) / Trợ giúp (Dùng kịch bản mẫu). */ dialog.kb-dialog { border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; max-width: 560px; width: calc(100% - 32px); font-size: 13px; } dialog.kb-dialog::backdrop { background: rgba(20, 24, 20, 0.45); } dialog.kb-dialog .form-block { display: flex; flex-direction: column; gap: 8px; } dialog.kb-dialog .form-block > label { display: flex; flex-direction: column; gap: 4px; } dialog.kb-dialog .form-block > label:has(input[type=checkbox]) { flex-direction: row; align-items: center; gap: 6px; } dialog.modal .modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); } dialog.modal .modal-head h3 { margin: 0; font-size: 1rem; } dialog.modal .modal-close { background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; padding: 2px 6px; } dialog.modal .modal-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 140px); overflow-y: auto; } dialog.modal .modal-body label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 600; } dialog.modal .modal-body input[type="text"], dialog.modal .modal-body input[type="number"], dialog.modal .modal-body select, dialog.modal .modal-body textarea { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; font-family: inherit; } /* ==================== "AI Biên tập kịch bản" (modal ai-edit-modal) ==================== */ .aies-box { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; } .aies-box-title { font-weight: 600; font-size: 13px; } .aies-box textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 60px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 13.5px; font-family: inherit; } .aies-box-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .aies-box-info { font-size: 12px; color: var(--muted); } .aies-stage-status { font-size: 13px; font-weight: 600; } .aies-stage-status[data-ok="true"] { color: var(--success); } .aies-stage-status[data-ok="false"] { color: #b23c17; } /* ==================== Cổng thành viên: layout quản trị theo ChoixanhCMS ==================== */ /* Sửa lần 2 (2026-08-22, sau khi chụp app thật): thanh sidebar/toolbar trong app KHÔNG có nền màu đậm nào — chỉ xám/trắng phẳng, mục đang chọn chỉ nổi nhẹ lên chứ không đổ màu. */ .member-shell { min-height:calc(100vh - 69px); margin:-28px -24px -64px; background:var(--bg); } .member-shell.mode-doc { display:grid; grid-template-columns:250px minmax(0,1fr); } .member-shell.mode-ngang { display:flex; flex-direction:column; } .member-sidebar { display:flex; flex-direction:column; background:var(--surface); border-right:1px solid var(--line); box-shadow:1px 0 4px rgba(0,0,0,.07); min-height:100%; } .member-topnav { display:flex; align-items:center; gap:18px; min-height:54px; background:var(--surface); border-bottom:1px solid var(--line); box-shadow:0 1px 4px rgba(0,0,0,.07); padding:0 22px; } .member-topnav-links { display:flex; align-items:center; gap:2px; flex:1; flex-wrap:wrap; } .member-topnav-links a,.member-topnav-links .is-disabled { color:var(--muted); text-decoration:none; font-size:.88rem; padding:17px 14px 15px; border-bottom:3px solid transparent; } .member-topnav-links a:hover { background:var(--bg); color:var(--ink); } .member-topnav-links a.active { color:var(--ink); font-weight:700; border-bottom-color:var(--accent); } .member-topnav-links .is-disabled { opacity:.62; cursor:not-allowed; } .member-topnav-toggle button { background:transparent; border:1px solid var(--line); border-radius:6px; color:var(--muted); padding:7px 12px; font-size:.82rem; font-weight:500; white-space:nowrap; cursor:pointer; } .member-topnav-toggle button:hover { background:var(--bg); color:var(--ink); } .member-side-head { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:54px; padding:0 12px; border-bottom:1px solid var(--line); } .member-side-home { display:flex; align-items:center; gap:6px; color:var(--ink); text-decoration:none; font-weight:700; font-size:.94rem; padding:8px 10px; border-radius:4px; } .member-side-home span { display:inline-block; width:16px; color:var(--muted); font-weight:700; } .member-side-home:hover { background:var(--bg); } .member-side-home.active { background:var(--bg); box-shadow:inset 3px 0 0 var(--accent); } .member-side-home.active span { color:var(--accent-strong); } .member-mode-switch { display:flex; align-items:center; gap:2px; background:var(--bg); border:1px solid var(--line); border-radius:6px; padding:2px; } .member-mode-switch form { display:contents; } .mode-icon { display:flex; align-items:center; justify-content:center; width:26px; height:26px; border:none; background:transparent; border-radius:4px; font-size:.85rem; line-height:1; color:var(--muted); cursor:pointer; } .mode-icon.active { background:var(--surface); color:var(--accent-strong); box-shadow:0 1px 2px rgba(0,0,0,.12); cursor:default; } button.mode-icon:hover { background:var(--surface); color:var(--ink); } .member-side-nav { display:flex; flex-direction:column; padding:16px 12px; gap:4px; } .member-side-divider { border:none; border-top:1px solid var(--line); margin:8px 4px; } .member-side-nav a,.member-side-nav .is-disabled { color:var(--ink); text-decoration:none; padding:12px 14px; border-radius:4px; font-size:.94rem; display:block; } .member-side-nav a span,.member-side-nav .is-disabled span { display:inline-block; width:21px; color:var(--muted); font-weight:700; } .member-side-nav a:hover { background:var(--bg); } .member-side-nav a.active { background:var(--bg); color:var(--ink); font-weight:700; box-shadow:inset 3px 0 0 var(--accent); } .member-side-nav a.active span { color:var(--accent-strong); } .member-side-nav .is-disabled { color:var(--muted); opacity:.62; cursor:not-allowed; } .member-workspace { min-width:0; } .member-toolbar { display:flex; align-items:center; min-height:54px; background:var(--surface); border-bottom:1px solid var(--line); padding:0 20px; gap:2px; } .member-toolbar a,.member-toolbar .is-disabled { color:var(--muted); text-decoration:none; font-size:.88rem; padding:17px 14px 15px; border-bottom:3px solid transparent; } .member-toolbar a:hover { background:var(--bg); color:var(--ink); } .member-toolbar a.active { color:var(--ink); font-weight:700; border-bottom-color:var(--accent); } .member-toolbar .is-disabled { opacity:.62; cursor:not-allowed; } .member-content { padding:0 5px; background:#fafafa } /* Khung thành viên theo đúng MainWindow desktop: không có header portal riêng, tab Qt phẳng, vùng nội dung cuộn và các panel dùng cùng nhịp 4px/6px. */ body.member-app-page { background: #f0f0f0; } body.member-app-page > .topbar { display: none; } body.member-app-page > .page { max-width: none; margin: 0; padding: 0; } /* `.page` đã bỏ padding ở trên → margin âm của .member-shell (bù padding cũ) phải về 0 cho CẢ 2 chế độ menu — trước chỉ menu ngang được về 0, menu dọc bị kéo lên 28px + lệch phải 24px, che "Dashboard" và nút góc phải. */ body.member-app-page .member-shell.mode-ngang, body.member-app-page .member-shell.mode-doc { min-height: 100vh; margin: 0; } body.member-app-page .member-topnav { min-height: 35px; height: 35px; padding: 0 8px; gap: 0; box-shadow: none; } body.member-app-page .member-topnav-links { gap: 0; flex-wrap: nowrap; } body.member-app-page .member-topnav-links a, body.member-app-page .member-topnav-links .is-disabled { font-size: 12px; padding: 8px 12px 7px; border-bottom: 1px solid transparent; color: var(--ink); } body.member-app-page .member-topnav-links a.active { border: 1px solid var(--line); border-bottom-color: var(--surface); background: var(--surface); margin-bottom: -1px; } body.member-app-page .member-topnav-toggle { margin-left: auto; } body.member-app-page .member-topnav-toggle button { padding: 3px 8px; border-radius: 3px; font-size: 11px; } body.member-app-page .member-workspace { min-height: calc(100vh - 35px); } body.member-app-page .member-main-row { display: grid; grid-template-columns: minmax(0, 1fr) 305px; min-height: calc(100vh - 66px); } /* Trợ lý AI dính theo màn hình khi cuộn (giống cột "Luồng kịch bản chính thức" tab Live): cao đúng 1 màn hình, khung chat tự cuộn bên trong. */ body.member-app-page .member-ai-panel { display: flex; flex-direction: column; gap: 6px; padding: 5px 8px; background: var(--surface); border-left: 1px solid var(--line); font-size: 11px; position: sticky; top: 0; align-self: start; height: 100vh; box-sizing: border-box; } body.member-app-page .member-ai-copy { flex: 1 1 auto; min-height: 0; overflow: auto; border: 1px solid var(--line); padding: 4px; line-height: 1.25; } body.member-app-page .member-ai-msg { margin-top: 6px; white-space: pre-wrap; word-break: break-word; } body.member-app-page .member-ai-status:empty { display: none; } /* Nút gấp/mở panel (static/panel_toggle.js) — icon khung + dải bên, dải tô đặc khi panel đang hiện. */ .panel-toggle { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; min-width: 0; padding: 0; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #3c3c3c; cursor: pointer; } .panel-toggle:hover { background: var(--bg); border-color: var(--line); } .panel-toggle .panel-toggle-bar { fill: currentColor; } html.vls-hide-ai .panel-toggle--ai .panel-toggle-bar, html.vls-hide-live-flow .panel-toggle--live-flow .panel-toggle-bar { fill: none; } body.member-app-page .member-topnav .panel-toggle { margin-left: 6px; } body.member-app-page .member-workspace { position: relative; } .member-ai-toggle-float { position: absolute; top: 3px; right: 6px; z-index: 6; } body.member-app-page .mode-doc .member-ai-panel { padding-top: 30px; } html.vls-hide-ai body.member-app-page .member-main-row { grid-template-columns: minmax(0, 1fr); } html.vls-hide-ai body.member-app-page .member-ai-panel { display: none; } html.vls-hide-live-flow .live-layout { grid-template-columns: minmax(0, 1fr); } html.vls-hide-live-flow .live-flow { display: none; } body.member-app-page .member-ai-panel input { width: 100%; height: 24px; padding: 3px 5px; border: 1px solid var(--button-border); border-radius: 3px; font-size: 11px; } body.member-app-page .member-ai-actions { display: flex; justify-content: space-between; } body.member-app-page .member-ai-actions button { min-width: 80px; } body.member-app-page .member-toolbar { min-height: 31px; padding: 0 8px; background: var(--surface); border-bottom: 1px solid var(--line); } /* Toolbar trống (tab Kịch bản/Dàn dựng giống app: không có thanh "Kịch bản đang chọn") → ẩn hẳn. */ body.member-app-page .member-toolbar:not(:has(*)) { display: none; } /* Tab Cấp quyền giống app: cột STT, tên kịch bản = link (xanh lá ở dòng active). */ .data-table .cq-stt { width: 28px; padding-left: 6px; padding-right: 2px; text-align: left; } .cq-title-link { color: #1a5fb4; text-decoration: underline; } .cq-title-link.is-active, .cq-active-text { color: #008000; } /* Tab Trợ giúp giống app (ui_help_tab_mixin + ui_sample_scripts_mixin): danh sách chủ đề kiểu QListWidget, ô nội dung có viền + cuộn riêng, nút "Mở tab liên quan" ngay dưới; khung "Kịch bản mẫu" bên dưới. */ .help-title { margin: 4px 0 8px; font-size: 1rem; } .help-search { width: 100%; margin-bottom: 8px; } .help-body, .help-samples-body { display: flex; gap: 8px; align-items: stretch; } .help-body { height: max(420px, calc(100vh - 230px)); } .help-list { list-style: none; margin: 0; padding: 2px 0; width: 255px; flex: 0 0 255px; overflow: auto; background: #fff; border: 1px solid var(--line); font-size: 12px; } .help-list li { padding: 1px 4px; cursor: default; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .help-list li.active { background: #3399ff; color: #fff; } .help-list li:focus { outline: 1px dotted #555; outline-offset: -1px; } .help-right { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; } .help-content { flex: 1 1 auto; overflow: auto; background: #fff; border: 1px solid var(--line); padding: 4px 6px; font-size: 13px; line-height: 1.35; } .help-content > :first-child { margin-top: 0; } .help-content h1 { font-size: 20px; margin: 4px 0 10px; } .help-content h2 { font-size: 16px; margin: 14px 0 8px; } .help-content h3 { font-size: 14px; margin: 12px 0 6px; } .help-content p, .help-content ul, .help-content ol { margin: 0 0 10px; } .help-right .btn, .help-right button { align-self: flex-start; font-size: 12px; padding: 3px 18px; min-height: 0; font-weight: normal; } .help-samples { margin: 12px 0 0; padding: 8px; border: 1px solid var(--line); } .help-samples legend { padding: 0 4px; font-size: 12px; } .help-samples-hint { margin: 0 0 6px; color: gray; font-size: 10px; } .help-samples-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } .help-samples-top label { min-width: 100px; font-size: 12px; } .help-samples-top select { flex: 0 0 auto; width: 255px; font-size: 12px; } .help-samples-body { height: 560px; } .help-sample-preview { flex: 1 1 auto; width: 100%; resize: none; background: #fff; font-family: "Segoe UI", sans-serif; font-size: 13px; } /* Phần đầu Dàn dựng giống app: dòng hướng dẫn nhỏ trên cùng, 3 tab con ngay dưới. */ .dd-intro { margin: 0; font-size: 0.75rem; color: var(--muted); } .dd-subnav { margin-bottom: 8px; } body.member-app-page .member-content { padding: 5px 8px; background: var(--surface); } body.member-app-page .wz-panel { max-width: none; } .rd-preview-controls { display: flex; justify-content: center; gap: 4px; } .rd-preview-controls button { opacity: .55; } .rd-preview-options { font-size: 11px; color: var(--muted); } .dp-import-row button { opacity: .55; } .admin-page-head { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:22px; } .admin-page-head h1 { font-size:1.45rem; margin:0 0 4px; } .admin-page-head p { margin:0; } .admin-kicker { color:var(--muted); font-size:.68rem; font-weight:700; letter-spacing:.09em; } .admin-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:22px; } .admin-metric { background:var(--surface); border-left:4px solid var(--muted); box-shadow:0 1px 3px rgba(0,0,0,.12); padding:16px 18px; } .admin-metric-green { border-left-color:var(--success); } .admin-metric-amber { border-left-color:#f39c12; } .admin-metric span,.admin-metric small { display:block; color:var(--muted); font-size:.7rem; } .admin-metric span { font-weight:700; letter-spacing:.05em; } .admin-metric strong { display:block; font-size:1.7rem; margin:4px 0; color:var(--ink); } .admin-card { background:var(--surface); border:1px solid var(--line); box-shadow:0 1px 3px rgba(0,0,0,.12); padding:18px; } .admin-card-head { border-bottom:1px solid var(--line); margin:-2px 0 14px; } .admin-card h2 { margin:0 0 3px; font-size:1.05rem; } .admin-card-head p { margin:0 0 14px; } @media (max-width:780px) { body.member-app-page .member-main-row { display: block; } body.member-app-page .member-ai-panel { border-left: none; border-top: 1px solid var(--line); position: static; height: auto; } body.member-app-page .member-ai-copy { min-height: 180px; } .member-shell.mode-doc { grid-template-columns:1fr; } .member-sidebar { min-height:auto; } .member-side-head { padding:0 10px; } .member-side-nav { flex-direction:row; flex-wrap:wrap; padding:10px; } .member-side-nav a { padding:8px 10px; } .member-topnav { flex-wrap:wrap; overflow-x:auto; padding:0 12px; } .member-toolbar { overflow-x:auto; padding:0 8px; } .member-toolbar a,.member-toolbar .is-disabled { white-space:nowrap; padding:15px 10px 13px; } .member-content { padding:20px 16px; } .admin-metrics { grid-template-columns:1fr; } .admin-page-head { align-items:flex-start; flex-direction:column; } } /* ==================== Trang chủ (landing page giới thiệu sản phẩm) ==================== */ .hero { max-width: 780px; margin: 8px 0 44px; } .hero h1 { font-size: 2rem; line-height: 1.25; margin: 14px 0 14px; } .hero .lead { color: var(--muted); font-size: 1rem; max-width: 68ch; margin: 0 0 26px; } .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; } .btn-primary { background: var(--accent); color: #fff; border-color: var(--accent-strong); } .btn-primary:hover { background: var(--accent-strong); } .pain-band, .feature-section, .tech-section, .steps-section, .compare-section, .pricing-section, .faq-section, .proof-band, .cta-band { margin: 48px 0; } .pain-band h2, .feature-section h2, .tech-section h2, .steps-section h2, .compare-section h2, .pricing-section h2, .faq-section h2, .proof-band h2, .cta-band h2 { font-size: 1.3rem; margin-bottom: 18px; } .section-lead { color: var(--muted); max-width: 72ch; margin: -6px 0 22px; } .pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; } .pain-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--ink); } .pain-emoji { font-size: 1.4rem; flex: none; } .feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; } .feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; } .feature-icon { font-size: 1.6rem; margin-bottom: 8px; } .feature-title { font-weight: 700; font-size: 1rem; margin-bottom: 8px; } .feature-card p { margin: 0; color: var(--muted); font-size: 0.88rem; } .tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; } .tech-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; } .tech-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; } .tech-card p { margin: 0; color: var(--muted); font-size: 0.86rem; } .steps-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; } .step-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 14px; text-align: center; } .step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.85rem; display: grid; place-items: center; margin: 0 auto 10px; } .step-label { font-weight: 700; font-size: 0.88rem; margin-bottom: 4px; } .step-desc { color: var(--muted); font-size: 0.76rem; } .pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: stretch; } .pricing-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px 20px; display: flex; flex-direction: column; gap: 10px; } .pricing-card.pricing-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); } .pricing-badge { position: absolute; top: -12px; left: 20px; background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; } .pricing-tier { font-weight: 700; font-size: 1.05rem; } .pricing-price { font-size: 1.6rem; font-weight: 700; color: var(--accent-strong); } .pricing-unit { font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-left: 2px; } .pricing-year { color: var(--muted); font-size: 0.82rem; } .pricing-features { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; } .pricing-features li { font-size: 0.86rem; color: var(--ink); padding-left: 18px; position: relative; } .pricing-features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-strong); font-weight: 700; } .proof-checklist { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; } .cta-band { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 36px 24px; } .cta-band .hero-cta { justify-content: center; margin-top: 14px; } .cta-band p { margin: 0 auto 4px; max-width: 56ch; } @media (max-width: 560px) { .hero h1 { font-size: 1.5rem; } .hero-cta { flex-direction: column; } .hero-cta .btn { width: 100%; justify-content: center; } } /* --- Kéo-thả đổi thứ tự (kichban_reorder.js + SortableJS) --- */ .drag-handle { cursor: grab; color: var(--muted, #8a8a8a); user-select: none; padding: 0 4px; font-size: 13px; } .drag-handle:active { cursor: grabbing; } tr[data-reorder-id] .drag-handle { margin-right: 2px; } .sortable-ghost { opacity: .4; background: var(--surface-2, #f0f0ef); } .sortable-chosen { background: var(--surface-2, #f5f5f4); } .sortable-drag { box-shadow: 0 6px 18px rgba(0,0,0,.14); } .reorder-list { list-style: none; margin: 8px 0 0; padding: 0; } .reorder-list li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); margin-bottom: 6px; } .reorder-list .reorder-label { flex: 1; } .reorder-move-group { display: inline-flex; gap: 2px; } /* --- Nhóm thu-gọn (peek-collapsible, mô phỏng pc_app tab Hệ thống/Biên tập/...) --- */ details.wz-collapsible { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin: 12px 0 0; overflow: hidden; } details.wz-collapsible > summary { cursor: pointer; list-style: none; padding: 12px 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; user-select: none; } details.wz-collapsible > summary::-webkit-details-marker { display: none; } details.wz-collapsible > summary > .wz-arrow { color: var(--muted, #8a8a8a); font-size: 12px; font-weight: 700; } details.wz-collapsible > summary > .wz-arrow-open { display: none; } details.wz-collapsible[open] > summary > .wz-arrow-closed { display: none; } details.wz-collapsible[open] > summary > .wz-arrow-open { display: inline; } details.wz-collapsible[open] > summary { border-bottom: 1px solid var(--line); } details.wz-collapsible > summary:hover { background: var(--surface-2, #f5f5f4); } details.wz-collapsible > .wz-collapsible-body { padding: 14px 16px; } details.wz-collapsible > .wz-collapsible-body > .muted.small:first-child { margin-top: 0; } /* --- Ngôn ngữ (footer, đồng bộ cookie vls_lang với "Cấu hình chung") --- */ .member-footer { margin-top: 28px; padding: 12px 0 4px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; } .member-lang { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); } .member-lang select { font-size: 0.85rem; padding: 3px 6px; border: 1px solid var(--button-border); background: var(--surface); color: var(--ink); border-radius: 3px; } .subnav .subnav-readonly { font-size: 0.85rem; padding: 4px 12px; margin-bottom: -1px; color: var(--muted); opacity: 0.6; cursor: not-allowed; border: 1px solid var(--button-border); border-radius: 3px 3px 0 0; background: var(--button-face, #f0f0f0); } /* --- Tab Kịch bản: bố cục QFormLayout của app (nhãn cột trái ~120px + field) --- */ .kb-session-header { padding: 4px 0; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; } .kb-header-form { gap: 8px; position: relative; } .kb-header-autosave { position: absolute; right: 0; top: -18px; font-size: 0.75rem; } .kb-check { display: inline-flex; align-items: center; gap: 4px; margin-right: 14px; font-size: 0.9rem; } /* Màu nút giống app: AI Biên tập tím, AI Viết xanh ngọc, Duyệt kịch bản xanh dương (mờ khi chưa bấm được). */ .btn-ai-edit, a.btn.btn-ai-edit { background: #6d28d9; color: #fff; border: 1px solid #55208f; font-weight: 700; } .btn-ai-write, a.btn.btn-ai-write { background: #0d9488; color: #fff; border: 1px solid #0b7268; font-weight: 700; } .btn-ai-edit:disabled, .btn-ai-write:disabled { opacity: 0.55; cursor: not-allowed; } .btn-review-storyboard { background: #0b6bcb; color: #fff; border: 1px solid #084f96; font-weight: 700; padding: 5px 16px; min-width: 135px; } .btn-review-storyboard:disabled { background: #9bbfe2; color: #eef5fb; border-color: #9bbfe2; cursor: not-allowed; } .kb-row { display: flex; gap: 12px; align-items: center; } .kb-row-top { align-items: flex-start; } .kb-row-actions { flex-wrap: wrap; gap: 8px; } .kb-label { flex: 0 0 120px; max-width: 120px; font-size: 0.9rem; color: var(--ink); padding-top: 4px; } .kb-field { flex: 1 1 auto; min-width: 0; } .kb-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .kb-inline select { flex: 1 1 240px; } textarea.kb-field, input.kb-field, select { width: 100%; padding: 6px 8px; border: 1px solid var(--button-border); border-radius: 3px; background: var(--surface); color: var(--ink); font-family: inherit; font-size: 0.9rem; } p.kb-field.hint { margin: 2px 0 0; font-size: 0.82rem; color: var(--muted); line-height: 1.5; } .kb-shared-radios { display: flex; flex-direction: column; gap: 3px; font-size: 0.9rem; } .kb-form { display: flex; flex-direction: column; gap: 8px; } .kb-form-foot { display: flex; align-items: center; gap: 12px; justify-content: flex-end; } .voice-list { display: flex; flex-direction: column; gap: 6px; } /* Hàng giọng giống app: tên (≥120px) · Engine (giãn) · Giọng (hẹp) · ▸ Nghe — không khung viền. */ .voice-row { display: flex; gap: 6px; align-items: center; padding: 0; border: 0; margin: 0; } .voice-name { font-weight: 700; min-width: 120px; font-size: 0.9rem; } .voice-form { display: flex; gap: 6px; margin: 0; flex: 1 1 auto; min-width: 0; } .voice-form select.voice-engine { flex: 1 1 auto; width: auto; min-width: 0; } .voice-form select.voice-selector { flex: 0 0 130px; width: 130px; } .btn-preview-voice { min-width: 95px; } button.ro, .kb-field.ro, input.ro { opacity: 0.55; cursor: not-allowed; } .kb-script-editor { width: 100%; font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: 13.5px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); } .tabular { font-variant-numeric: tabular-nums; text-align: center; } .kb-add-situation { margin-top: 12px; } .kb-add-situation > summary { display: inline-block; cursor: pointer; } /* --- Khung Log tab Kịch bản (READONLY) --- */ .kb-log-box { margin-top: 22px; opacity: 0.7; } .kb-log-status { display: flex; gap: 20px; flex-wrap: wrap; } .kb-log-box hr { border: none; border-top: 1px solid var(--line); margin: 8px 0; } .kb-log-modes { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 0.85rem; } .kb-log-modes input[type=text] { flex: 1 1 200px; padding: 3px 6px; border: 1px solid var(--button-border); border-radius: 3px; } .kb-log-area { width: 100%; font-family: Consolas, monospace; font-size: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-2, #f5f5f4); color: var(--muted); resize: vertical; margin-top: 6px; } /* --- Parity: tiêu đề khối + bảng trong Cổng thành viên đọc như app (không viết hoa) --- */ .kb-box-title { font-size: 1rem; font-weight: 700; margin: 18px 0 8px; } .member-content .data-table th { text-transform: none; font-size: 0.8rem; letter-spacing: 0; color: var(--ink); } .member-content .data-table td.actions-cell { text-align: left; } .member-content .kb-situation-actions { white-space: nowrap; } /* --- Tab Đạo diễn --- */ .rd-card { border: 1px solid var(--button-border); border-radius: 4px; background: var(--surface); padding: 6px; } .rd-card.ro { opacity: 0.75; } .rd-subhead { font-weight: 700; font-size: 0.7rem; color: var(--muted); margin: 6px 0 3px; } .rd-dual { display: flex; gap: 10px; flex-wrap: wrap; } .rd-pane { flex: 1 1 240px; min-width: 200px; } .rd-pane textarea { width: 100%; } .rd-preview { border: 1px solid var(--line); border-radius: 4px; padding: 6px; } .rd-preview-frame { background: #0d1117; color: #9aa5b1; text-align: center; padding: 44px 8px; border-radius: 3px; font-size: 0.82rem; } /* Khung placeholder TRƯỚC khi bấm "Xem như Live" (compositor WebGL) — PHẢI cùng tỉ lệ 16:9 + cùng max-width với khung `.vls-compositor-stage` thật sự thay vào sau khi bấm (JS tính Math.round(800*16/9)=1422px), để không bị đổi kích thước giật cục lúc chuyển. KHÔNG áp cho `.rd-preview-frame` dùng chung (vd #render-frame chế độ MuseTalk, không phải compositor). */ .vls-compositor-frame { width: 800px; max-width: 100%; aspect-ratio: 16 / 9; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; } #config-rows td { padding: 3px 4px; border: none; } #config-rows input[type=number] { width: 56px; } /* --- Tab Biên tập: Kho tài nguyên --- */ .section-head { font-weight: 700; font-size: 0.95rem; margin: 18px 0 4px; padding-bottom: 4px; border-bottom: 1px solid var(--line); } .asset-lib { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2, #f5f5f4); max-height: 160px; overflow-y: auto; } .asset-lib.ro { opacity: 0.8; } .asset-chip { font-size: 0.8rem; padding: 3px 8px; background: var(--surface); border: 1px solid var(--button-border); border-radius: 3px; white-space: nowrap; } .asset-chip.is-disabled { opacity: 0.5; text-decoration: line-through; } /* --- Tab Dựng phim: cấu hình READONLY --- */ .dp-config { border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; margin-bottom: 8px; opacity: 0.8; display: flex; flex-wrap: wrap; gap: 6px; flex-direction: column; } .dp-config .kb-row { flex-direction: row; } .dp-config .kb-label { flex-basis: 150px; max-width: 150px; } /* Biên tập — 5 hàng tài nguyên giống app: [☑ nhóm] + 1 dải chip nằm ngang, cuộn ngang khi dài. */ .bt-assets { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); } .bt-asset-row { display: flex; align-items: center; gap: 8px; min-width: 0; } .bt-asset-label { flex: 0 0 140px; display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; white-space: nowrap; } .bt-asset-chips { flex: 1 1 auto; min-width: 0; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; } .bt-asset-chips .asset-chip { flex: 0 0 auto; } .bt-flow-title { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; font-size: 0.85rem; } .bt-flow-title form { margin-left: auto; } /* Đạo diễn — ô "Dàn dựng cấu hình" giống app: dòng "Nhân viên ảo phụ trách" + đề xuất dựng phim, khung trắng có viền. */ .dd-contract { border: 1px solid var(--button-border); border-radius: 3px; background: var(--surface); padding: 6px 8px; max-height: 160px; overflow: auto; } .dd-contract-staff { margin: 0 0 10px; font-size: 0.75rem; } .dd-contract pre { margin: 0; white-space: pre-wrap; font-family: inherit; font-size: 0.72rem; } .rd-concat-pane > .hint { font-size: 0.72rem; color: var(--muted); } /* Dựng phim — form phẳng giống app (`_build_movie_stage_defaults_box`): tiêu đề nhóm xám có vạch trên, ô số + đơn vị. */ .dp-flat { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; } .dp-flat.ro { opacity: 0.6; } .dp-section { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); } .dp-flat > .dp-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; } .dp-unit { display: inline-flex; align-items: center; gap: 4px; } .dp-unit input[type=number], .dp-small input[type=number] { width: 72px; } .dp-hint { margin: 0 0 0 132px; font-size: 0.75rem; color: var(--muted); } .dp-color-btn { position: relative; display: inline-flex; align-items: center; padding: 3px 14px; border: 1px solid var(--button-border); border-radius: 3px; font-size: 0.85rem; cursor: pointer; } .dp-color-btn input[type=color] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; } /* --- Parity Fix: nhãn trạng thái server render (pinned) trong khung Log --- */ .server-status-pinned { display: inline-block; padding: 3px 8px; border-radius: 3px; font-size: 11px; font-weight: 600; background: #e6f4ea; color: #1a7a34; margin-bottom: 6px; } .server-status-pinned.is-busy { background: #fff3e0; color: #9a5b00; } /* Khu "Soạn kịch bản" (tab Kịch bản > Nội dung) — mỗi câu 1 textarea riêng (tự giãn cao), nút [⠿][↑][n][↓] gắn liền bên trái trong cùng 1 "thẻ câu" nên số luôn sát đúng câu. kichban_caudong.js dựng động từ <textarea#kb-script-editor> (ẩn); không JS thì hiện thẳng textarea đó. */ .kb-editor-row { display: flex; align-items: flex-start; } .kb-editor-row > .kb-form { flex: 1; min-width: 0; } /* Giống app (`ui_script_tab_mixin._build_script_tab`, 2026-10-06 "giống app 100%"): 1 ô soạn LIỀN, khoảng cách 18px giữa các câu (`_apply_script_line_spacing`), cột hẹp 46px bên trái mỗi câu: ↑ / ô số / ↓ xếp dọc. Không viền từng thẻ, không tay kéo ⠿ (app đổi thứ tự bằng ↑/↓). */ .kb-cau-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 10px; padding: 6px 4px 6px 0; border: 1px solid var(--button-border); border-radius: 3px; background: var(--surface); } .kb-cau-row { display: flex; align-items: stretch; } .kb-cau-row.sortable-ghost { opacity: 0.35; } .kb-cau-gutter { flex: 0 0 46px; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 3px 2px 3px 4px; } .kb-cau-handle { display: none; } .kb-cau-num { order: 0; height: 20px; line-height: 18px; font-size: 11px; color: var(--ink); text-align: center; font-variant-numeric: tabular-nums; border: 1px solid var(--button-border); border-radius: 2px; background: var(--surface); } .kb-cau-move { height: 18px; padding: 0; font-size: 11px; line-height: 1; border: 1px solid var(--button-border); border-radius: 2px; background: var(--button-face, #f0f0f0); color: var(--ink); cursor: pointer; } .kb-cau-move:hover:not(:disabled) { background: var(--button-face-hover); } .kb-cau-move:disabled { opacity: 0.4; cursor: default; } .kb-cau-input { flex: 1; min-width: 0; min-height: 3em; resize: none; overflow: hidden; border: 0; background: transparent; color: var(--ink); font-family: "Segoe UI", system-ui, sans-serif; font-size: 14.5px; line-height: 1.4; padding: 2px 4px; /* KHÔNG `height: auto !important` — chặn mất chiều cao tự giãn JS đặt (autoGrow) → câu dài bị cắt còn 3 dòng. */ } .kb-cau-input:focus { outline: none; } .kb-cau-input:read-only { color: var(--muted); background: #fafafa; } .kb-cau-add { display: none; /* app không có nút này — Enter ở cuối câu tách câu mới */ align-self: stretch; margin: 2px 0 4px; padding: 8px; border: 1px dashed var(--button-border); border-radius: 8px; background: transparent; color: var(--muted); font-weight: 600; } .kb-cau-add:hover { border-color: var(--accent); color: var(--accent-strong); background: rgba(48, 140, 198, 0.06); } /* --- Parity Fix: cột "Tài nguyên" bảng Biên tập --- */ .asset-chips-cell { display: flex; flex-wrap: wrap; gap: 4px; } /* --- Parity Fix: panel "Ghép video" tab Đạo diễn (READONLY) --- */ .rd-concat-pane.ro { opacity: 0.85; } .rd-clip-list { list-style: none; margin: 2px 0 0; padding: 0; font-size: 0.78rem; } .rd-clip-list li { padding: 2px 4px; border-bottom: 1px solid var(--line); color: var(--ink); } .rd-clip-list li.is-disabled { opacity: 0.45; text-decoration: line-through; } .rd-clip-selected li { display: flex; align-items: center; gap: 6px; } .rd-clip-selected .rd-drag { color: var(--muted); cursor: default; flex: 0 0 auto; } .rd-clip-selected .rd-clip-name { flex: 1 1 auto; min-width: 0; } .rd-clip-selected .icon-btn { flex: 0 0 auto; padding: 0 4px; } .rd-clip-total { font-size: 11px; font-weight: 600; color: #1a7f37; margin: 6px 0 0; } /* --- Tab "Live" (live.html) --- */ .live-preflight-list { list-style: none; margin: 0; padding: 0; } .live-preflight-list li { padding: 3px 0; } .live-preflight-list li label { color: var(--muted); } /* Bố cục giống app `_build_runtime_tab`: cột "Luồng kịch bản chính thức" đứng yên bên trái + cột nội dung. */ .live-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 6px; align-items: start; } .live-flow { position: sticky; top: 0; border: 1px solid #b0b0b0; border-radius: 4px; padding: 4px 6px 6px; height: calc(100vh - 4px); box-sizing: border-box; display: flex; flex-direction: column; background: var(--surface); } .live-flow-title { font-weight: bold; font-size: 12px; margin-bottom: 4px; } .live-flow-wrap { flex: 1 1 auto; overflow: auto; border: 1px solid var(--line); background: #fff; } .live-flow-table { border-collapse: collapse; font-size: 12px; white-space: nowrap; } .live-flow-table th { position: sticky; top: 0; background: #f3f3f3; font-weight: normal; border-bottom: 1px solid var(--line); padding: 2px 6px; } .live-flow-table td { border-bottom: 1px solid #e6e6e6; padding: 0 4px; height: 29px; } .live-flow-table td:first-child { color: var(--muted); } .live-flow-table tr.is-clickable { cursor: pointer; } .live-flow-table tr.is-clickable:hover td { background: #eef4fb; } .live-flow-table tr.is-playing td { background: #3399ff; color: #fff; } .live-flow-cell-title { max-width: 210px; overflow: hidden; text-overflow: ellipsis; } .live-main { min-width: 0; position: relative; } /* Nút gấp/mở cột Luồng nằm ngay trước tiêu đề "Chế độ phát" (như app). */ .live-flow-toggle { position: absolute; top: 2px; left: 2px; z-index: 2; } .live-main > details.wz-collapsible:first-of-type > summary { padding-left: 32px; } .live-main details.wz-collapsible { border-radius: 0; border-width: 0 0 1px; margin: 0; } .live-main details.wz-collapsible > summary { padding: 6px 8px; font-size: 12px; } .live-main .kb-label { font-size: 12px; } .live-section-title { font-size: 12px; font-weight: bold; margin: 12px 0 8px; padding-left: 8px; } .live-board-options { padding: 0 8px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; } .live-board-options label { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; } .live-time, .live-spin { width: 90px !important; } .live-board-hint { font-size: 12px; margin: 10px 0 6px; } .live-board { display: flex; gap: 10px; padding: 10px; background: #f0f2f5; border: 1px solid #d6d9de; border-radius: 8px; overflow-x: auto; } .live-card { flex: 0 0 190px; min-height: 190px; background: #fff; border: 1px solid #c9ccd1; border-radius: 3px; padding: 8px; font-size: 12px; display: flex; flex-direction: column; } .live-card[hidden], .live-card-form > [hidden] { display: none; } .live-card form { display: flex; flex-direction: column; flex: 1 1 auto; } .live-card-head { display: flex; align-items: flex-start; gap: 6px; font-weight: bold; } .live-card-drag { flex: 1 1 auto; min-height: 50px; cursor: move; color: transparent; display: flex; align-items: center; justify-content: center; } .live-card-drag:hover { color: #888; } .live-card-form { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; align-items: center; } .live-card-form input { padding: 2px 4px; } .live-card-form > span { white-space: nowrap; } .live-card-form .live-spin { width: 64px !important; } .live-group { margin: 12px 0 0; padding: 8px; border: 1px solid var(--line); font-size: 12px; } .live-group legend { padding: 0 4px; font-size: 12px; } .live-preview-wrap { display: flex; justify-content: center; padding: 10px 0; background: #e6e8eb; } .live-preview { --live-preview-zoom: 1; position: relative; width: calc(710px * var(--live-preview-zoom)); max-width: 100%; aspect-ratio: 16 / 9; background: #4b5563; border: 14px solid #687180; } .live-preview[data-ratio="9:16"] { aspect-ratio: 9 / 16; width: calc(260px * var(--live-preview-zoom)); } .live-preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; } .live-preview video:not([src]) { display: none; } .live-preview-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; } .live-preview-canvas[hidden] { display: none; } /* Bản lớp động: <video> vẫn chạy (đồng hồ + tiếng) nhưng hình do canvas vẽ (đã khử xanh + chồng lớp). */ .live-preview.is-layered video { opacity: 0; } .live-preview-caption { position: absolute; inset: 0; pointer-events: none; z-index: 2; } .live-preview-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; text-align: center; padding: 10px; } .live-preview-overlay[hidden] { display: none; } .live-preview-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 8px; } .live-preview-controls button { min-width: 0; padding: 3px 14px; } .live-preview-controls button.is-active { background: #d6d6d6; } .live-timeline-strip { display: flex; gap: 2px; margin-top: 8px; overflow-x: auto; } .live-timeline-clip { flex: 1 1 0; min-width: 120px; padding: 6px; color: #fff; background: #2e3a4b; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .live-timeline-clip--noidung { flex-grow: 4; background: #2f8f57; } .live-phatsinh { padding: 0 8px; font-size: 12px; } .live-phatsinh .kb-row { margin-bottom: 6px; } .live-phatsinh-stage { display: flex; gap: 6px; margin: 6px 0; min-height: 160px; } .live-phatsinh-bookend { flex: 0 0 170px; border: 1px solid var(--line); padding: 4px; display: flex; flex-direction: column; gap: 4px; align-items: center; } .live-phatsinh-bookend-title { border: 1px solid #b0b0b0; border-radius: 3px; padding: 2px 4px; font-size: 11px; text-align: center; } .live-phatsinh-middle { flex: 1 1 auto; border: 1px solid var(--line); padding: 6px; } .live-phatsinh-drop { color: #999; font-size: 11px; border: 1px solid #ddd; padding: 14px 8px; text-align: center; } .live-phatsinh-item { display: flex; align-items: center; gap: 6px; padding: 4px; border: 1px solid #ddd; margin-bottom: 4px; } .live-phatsinh-badge { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: #1a5fb4; color: #fff; align-items: center; justify-content: center; font-size: 10px; } .live-phatsinh-library { max-height: 240px; overflow: auto; } .live-phatsinh-item .icon-btn { padding: 0 4px; } .live-phatsinh-add { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; } .live-phatsinh-add select { flex: 1 1 140px; min-width: 0; font-size: 11px; } .live-phatsinh-add textarea { flex: 1 1 100%; font-size: 11px; } .live-phatsinh-bookend .live-phatsinh-add select { flex-basis: 100%; } .live-radio { display: block; margin: 2px 0; } .live-note { color: gray; font-size: 10px; margin: 4px 0; } .live-start-row { margin-top: 6px; } .live-start-row select { flex: 1 1 240px; } .live-start-btn { flex: 1 1 auto; min-height: 34px; } details.live-advanced { margin-top: 12px; font-size: 12px; } details.live-advanced > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; padding: 4px 0; } details.live-advanced > summary::-webkit-details-marker { display: none; } details.live-advanced > summary input { pointer-events: none; } @media (max-width: 900px) { .live-layout { grid-template-columns: 1fr; } .live-flow { position: static; height: 320px; } } .rd-clip-total.is-out { color: #c0392b; } /* --- Lightbox "Xem"/"Nghe" (tab Hệ thống) — xem media_viewer.js --- Ẩn/hiện overlay bằng class `.is-open`, KHÔNG dùng thuộc tính `hidden`: rule `display:flex` bên dưới nằm trong stylesheet của trang (author) nên luôn thắng rule mặc định trình duyệt `[hidden]{display:none}` (cùng độ ưu tiên, author-stylesheet thắng UA stylesheet) — nếu chỉ đặt `overlay.hidden = true` thì overlay vẫn hiện, không đóng được. */ .media-viewer-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.72); display: none; align-items: center; justify-content: center; padding: 24px; } .media-viewer-overlay.is-open { display: flex; } .media-viewer-box { position: relative; background: var(--surface); border-radius: 8px; padding: 16px; max-width: min(90vw, 900px); max-height: 90vh; overflow: auto; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); } .media-viewer-close { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; padding: 0; border-radius: 50%; line-height: 1; } .media-viewer-title { font-size: 0.85rem; font-weight: 600; margin: 0 32px 10px 0; word-break: break-all; color: var(--ink); } .media-viewer-counter { font-size: 0.75rem; color: var(--muted); margin: -6px 0 8px; } .media-viewer-body { display: flex; align-items: center; justify-content: center; position: relative; gap: 8px; } .media-viewer-body img { max-width: 100%; max-height: 78vh; display: block; border-radius: 4px; } .media-viewer-body audio { width: min(70vw, 420px); } .media-viewer-nav { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; padding: 0; font-size: 1.1rem; line-height: 1; } .media-viewer-nav[disabled] { visibility: hidden; } /* --- Popup "⚙️ Cấu hình chung" (tab Hệ thống) — 7 tab như hộp thoại cùng tên bên app. Toggle bằng thuộc tính `hidden` (general_config.js): base rule `display:none`, rule `:not([hidden])` (cùng độ ưu tiên nhưng đứng sau) thắng khi bỏ `hidden` → flex. */ .gc-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.72); display: none; align-items: flex-start; justify-content: center; padding: 40px 24px; overflow: auto; } .gc-modal:not([hidden]) { display: flex; } .gc-modal-box { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; width: min(92vw, 680px); max-height: 86vh; display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); } .gc-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); } .gc-modal-close { width: 28px; height: 28px; padding: 0; border-radius: 50%; line-height: 1; } .gc-modal-body { padding: 14px; overflow: auto; } .gc-tablist { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; } .gc-tab { background: transparent; border: 1px solid transparent; border-bottom: none; padding: 6px 12px; font-size: 0.9rem; cursor: pointer; color: var(--muted); border-radius: 6px 6px 0 0; } .gc-tab.is-active { color: var(--ink); background: var(--surface); border-color: var(--line); font-weight: 600; margin-bottom: -1px; } .gc-panel { } .gc-panel[hidden] { display: none; } .gc-config-page .gc-panel { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); padding: 18px; } .gc-config-page .gc-panel h2 { margin: 0 0 10px; font-size: 1.05rem; } .gc-ro { opacity: 0.7; } .gc-ro p { margin: 4px 0; } /* Sửa/Xóa nội tuyến 1 dòng thư viện tab Hệ thống (đổi tên file thật / thêm YouTube-scene) */ .row-edit { display: inline-block; } .row-edit > summary { display: inline-block; cursor: pointer; list-style: none; } .row-edit > summary::-webkit-details-marker { display: none; } .row-edit[open] > summary { font-weight: 600; } .inline-rename, .inline-channel-edit { margin-top: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); flex-wrap: wrap; } .inline-channel-edit { display: flex; flex-direction: column; align-items: stretch; gap: 6px; max-width: 320px; } .inline-channel-edit label { display: flex; flex-direction: column; font-size: 0.8rem; gap: 2px; } .btn-danger { color: #b91c1c; } /* "Timeline dựng phim" (tab Dựng phim) — dải Video READONLY: block rộng theo tỉ lệ thời lượng câu, khớp track Video của movie_timeline_widget bên desktop. Kéo/zoom canvas Qt thì web không có -> chỉ hiển thị + bấm chọn khung. */ .bt-asset-row.is-off .bt-asset-label { color: gray; } .bt-asset-row.is-off .bt-asset-chips { opacity: 0.4; } .mv-timeline { --mv-video: 1; --mv-time: 1; border: 1px solid var(--line); border-radius: 4px; padding: 3px; background: var(--bg); overflow-x: auto; } /* Zoom thời gian = dải rộng gấp N lần (giữ tỉ lệ thời lượng, cuộn ngang); Zoom Video = khối cao gấp N lần. */ .mv-track { display: flex; gap: 2px; align-items: stretch; width: calc(100% * var(--mv-time)); min-height: calc(56px * var(--mv-video)); } .mv-block { flex: 1 1 0; min-width: 46px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1px; padding: 4px 3px; border-radius: 3px; background: #d7e6f7; color: var(--ink); text-decoration: none; border: 1px solid #b9d2ec; overflow: hidden; } .mv-block:hover { background: #c6dcf3; } .mv-block.is-sel { outline: 2px solid var(--accent); background: #b9d7f5; } .mv-block.is-off { opacity: 0.45; background: #e3e3e3; border-color: var(--line); } .mv-block .mv-num { font-weight: 700; font-size: 11px; } .mv-block .mv-name { font-size: 10.5px; text-align: center; line-height: 1.2; max-height: 2.4em; overflow: hidden; } .mv-block .mv-dur { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; } /* Caption preview (tab Đạo diễn "Xem nhanh" + "Xem như Live") — PORT 1:1 của pc_app/caption_engine.py::_CAPTION_HTML (#wrap / #box). Trang caption này là ĐÚNG bộ mà OBS Browser Source live + preview trong app desktop (movie_preview_widget qua QWebEngineView) đều dùng -> web khớp 100%. JS điều khiển ở static/caption_overlay.js (window.VlsCaption): set biến --vls-cap-font / --vls-cap-hl, toggle .visible/.wrap/.no-bg. #box max-width 82% = KHUNG TỐI ĐA (không tràn); line_active = nowrap 1 dòng/1 cụm, full_text = .wrap tự xuống dòng. */ .vls-cap-wrap { position: absolute; left: 0; right: 0; bottom: 8%; display: flex; justify-content: center; pointer-events: none; z-index: 5; } .vls-cap-box { max-width: 82%; box-sizing: border-box; white-space: nowrap; overflow: hidden; background: rgba(0, 0, 0, 0.72); border-radius: 0.27em; padding: 0.55em 1em; font-family: "Segoe UI", Arial, sans-serif; font-weight: 700; line-height: 1.25; font-size: var(--vls-cap-font, 24px); color: #fff; text-align: left; opacity: 0; transition: opacity 0.15s ease-out; } .vls-cap-box.visible { opacity: 1; } .vls-cap-box.wrap { white-space: normal; overflow: visible; } .vls-cap-box.no-bg { background: transparent !important; } .vls-cap-box.no-bg span { text-shadow: -1.5px -1.5px 2px rgba(0, 0, 0, 0.95), 1.5px -1.5px 2px rgba(0, 0, 0, 0.95), -1.5px 1.5px 2px rgba(0, 0, 0, 0.95), 1.5px 1.5px 2px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0, 0, 0, 0.9); } .vls-cap-box .active { color: var(--vls-cap-hl, #ffd400); font-weight: 800; }