#videoTestDialog{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;padding:0;background:var(--sheet);color:var(--ink);overflow:hidden}
#videoTestDialog[open]{display:flex;flex-direction:column}#videoTestDialog::backdrop,#videoMomentDialog::backdrop{background:#0009}
.video-test-top{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px 28px;border-bottom:1px solid var(--line);flex-shrink:0}.video-test-top h2{font-size:22px;font-weight:400;margin:0}
.video-test-body{padding:20px 28px 40px;overflow:auto;min-height:0;overscroll-behavior:contain}.video-test-body p,.video-test-body small{line-height:1.55}.video-test-help{color:var(--muted);font-size:13px;max-width:960px}.video-test-controls{display:flex;flex-wrap:wrap;gap:16px;margin:18px 0}.video-test-controls label{display:grid;gap:7px;font-size:12px}.video-test-controls select,.video-test-search input{border:1px solid var(--line);border-radius:6px;background:var(--sheet);padding:10px;font:inherit;color:inherit}
#videoTestSelection{max-height:240px;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:10px}.video-test-choice{display:grid;grid-template-columns:20px minmax(0,1fr);gap:6px 10px;padding:9px;border-bottom:1px solid var(--line);font-size:13px;cursor:pointer}.video-test-choice small{grid-column:2;color:var(--muted);overflow-wrap:anywhere}.video-test-choice span{overflow-wrap:anywhere}.video-test-choice input,#videoTestHistoryRows input{width:17px;height:17px;accent-color:var(--ink)}
.video-test-error{color:#923e35;font-size:13px;overflow-wrap:anywhere}.video-test-error:empty{display:none}.video-test-search{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}.video-test-search input{min-width:200px;flex:1;max-width:600px}.video-test-summary{border-bottom:1px solid var(--line);padding:14px 0}.video-test-summary h3{font-weight:400;font-size:16px;margin:0}.video-test-summary p,.video-test-summary small{font-size:12px;color:var(--muted)}.video-test-moments{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.video-test-moments .ai-tag{font-size:12px;padding:7px 12px}
.video-test-frames{display:grid;grid-template-columns:repeat(auto-fill,minmax(195px,1fr));gap:16px;margin:22px 0}.video-test-frames figure{margin:0;min-width:0}.video-test-frame{position:relative;border:0;background:#e5e4e1;padding:0;width:100%;border-radius:7px;overflow:hidden}.video-test-frame img{width:100%;height:135px;object-fit:contain;display:block}.video-test-frame span{position:absolute;bottom:7px;left:8px;background:#0009;color:white;padding:4px 7px;border-radius:4px;font-size:11px}.video-test-frames figcaption{font-size:12px;margin-top:7px;overflow-wrap:anywhere}.video-test-frames p,.video-test-frames small{font-size:11px;color:var(--muted);margin:5px 0}
#videoTestHistoryRows{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;margin-top:16px}#videoTestHistoryRows label{font-size:13px}#videoTestHistoryRows span{font-size:12px}#videoTestHistoryRows small{font-size:11px}
#videoMomentDialog{width:min(1000px,96vw);max-height:96dvh;background:var(--sheet);color:var(--ink);border:0;border-radius:10px;padding:18px}#videoMomentTitle{font-size:15px;font-weight:400;overflow-wrap:anywhere}#videoTestPlayer{width:100%;max-height:72dvh;background:#111;display:block;margin-top:15px}#openVideoTest{white-space:nowrap}
@media(max-width:600px){.video-test-body{padding:16px}.video-test-top{padding:16px}.video-test-top h2{font-size:18px}.video-test-frames{grid-template-columns:repeat(2,minmax(0,1fr))}.video-test-controls select,.video-test-search input{font-size:16px}.video-test-frames img{height:110px}#videoTestHistoryRows{grid-template-columns:1fr}}
