/* A compact gallery keeps every recording's full native frame. */
.gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-4px 0 24px;color:#727d88;font-size:11px;letter-spacing:.025em}.gallery-toolbar>div{display:flex;gap:8px}.gallery-toolbar button{border:1px solid #e0e5e9;background:white;border-radius:20px;padding:7px 11px;font-size:10px;color:#556574}.gallery-toolbar button:hover{border-color:#9cabb9;color:#263e51}
.task-video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 18px;align-items:start}.task-video-card{min-width:0}.gallery-card-header{display:flex;align-items:center;gap:9px;margin-bottom:10px;min-height:44px}.gallery-card-header h4{margin:0;font-size:12px;font-weight:600;letter-spacing:-.1px}.gallery-task-image{width:57px;height:36px;object-fit:contain;flex-shrink:0;mix-blend-mode:multiply}
.gallery-player{overflow:hidden;border-radius:7px;background:#edf0f1}.gallery-frame{position:relative;aspect-ratio:16/9;overflow:hidden;background:#e9edef}.gallery-frame:has(.gallery-video){aspect-ratio:auto}.gallery-video{display:block;width:100%;height:auto;object-fit:contain}.gallery-pending{display:grid;place-items:center;border:1px dashed #d4dce3;background:linear-gradient(140deg,#f7f9fb,#eef2f5);color:#8e9aa5;font-size:11px}.gallery-error{position:absolute;inset:0;display:grid;place-items:center;background:#eef1f4;color:#5e6a77;font-size:11px}
.gallery-controls{display:flex;align-items:center;gap:7px;padding:7px 9px;background:#f1f4f6;color:#4d6272;height:32px}.gallery-controls button{border:0;background:transparent;padding:2px;min-width:16px;font-size:11px}.gallery-time{font:9px ui-monospace,monospace;min-width:25px}.gallery-speed{font-size:9px;font-weight:600;white-space:nowrap}.gallery-scrub{min-width:0;flex:1;width:50%;height:3px;accent-color:#6689a4;cursor:pointer}.gallery-expand{font-size:17px!important;line-height:1}
.gallery-code{position:absolute;top:7px;right:7px;width:29%;height:39%;max-height:115px;padding:6px 6px 3px;border-radius:4px;background:linear-gradient(135deg,#17293296,#17293266);color:#eff9f8d9;pointer-events:none;overflow:hidden;opacity:.85;transition:opacity .3s}.gallery-code-label{font:7px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.025em;color:#e8f3f2c9;white-space:nowrap;margin-bottom:4px}.gallery-code-viewport{height:calc(100% - 13px);overflow:hidden;mask-image:linear-gradient(transparent,#000 9%,#000 82%,transparent)}.gallery-code-track{transition:transform .6s cubic-bezier(.2,.65,.3,1);padding-top:3px}.gallery-code-line{display:flex;gap:5px;font:8px/14px ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre;min-height:14px}.gallery-code-line code{font:inherit;overflow:hidden;text-overflow:clip}.gallery-line-number{flex:0 0 10px;color:#b9d5d080;font-size:6px}.gallery-code-line.is-current{color:#fff;background:#d3ebe226}.gallery-hide-code .gallery-code{opacity:0}.task-video-card:hover .gallery-code{opacity:1}.gallery-hide-code .task-video-card:hover .gallery-code{opacity:0}
.gallery-player:is(:fullscreen,.is-expanded){display:flex;flex-direction:column;border-radius:0;background:#111}.gallery-player:is(:fullscreen,.is-expanded) .gallery-frame{flex:1;min-height:0;aspect-ratio:auto;background:#111}.gallery-player:is(:fullscreen,.is-expanded) .gallery-controls{height:44px;padding-inline:24px;gap:16px}.gallery-player:is(:fullscreen,.is-expanded) .gallery-code{top:24px;right:24px;width:26%;max-height:250px;height:34%;padding:15px}.gallery-player:is(:fullscreen,.is-expanded) .gallery-code-label{font-size:12px;margin-bottom:10px}.gallery-player:is(:fullscreen,.is-expanded) .gallery-code-line{font-size:13px;line-height:23px;min-height:23px}.gallery-player:is(:fullscreen,.is-expanded) .gallery-line-number{font-size:10px;flex-basis:20px}.gallery-player:is(:fullscreen,.is-expanded) .gallery-code-viewport{height:calc(100% - 28px)}
@media(max-width:1050px) and (min-width:821px){.task-video-grid{gap:22px 12px}.gallery-card-header h4{font-size:11px}.gallery-task-image{width:40px}.gallery-code{width:29%;right:4px;top:4px;padding:4px}.gallery-code-line{font-size:6px;line-height:11px;min-height:11px}}
@media(max-width:680px){.task-video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 14px}.gallery-toolbar{align-items:flex-start;line-height:1.6}.gallery-toolbar>div{flex-shrink:0}.gallery-task-image{width:42px}.gallery-card-header h4{font-size:11px}}
@media(max-width:460px){.task-video-grid{grid-template-columns:1fr;gap:26px}.gallery-card-header h4{font-size:14px}.gallery-task-image{width:64px;height:40px}.gallery-code{font-size:9px;max-height:none}.gallery-code-label{font-size:8px}.gallery-code-line{font-size:8px;line-height:15px;min-height:15px}.gallery-line-number{font-size:7px}.gallery-toolbar{flex-wrap:wrap;gap:9px}.gallery-controls{height:35px}.gallery-time{font-size:10px}.gallery-speed{font-size:10px}}
@media(prefers-reduced-motion:reduce){.gallery-code-track{transition:none}}

.gallery-modal-open{overflow:hidden}.gallery-dialog{width:min(1280px,95vw,calc(80svh * var(--video-ratio,1.777778) + 20px));max-width:95vw;max-height:95svh;padding:10px;border:1px solid #53626b;border-radius:12px;background:#14202b;color:white;box-shadow:0 25px 120px #0008}.gallery-dialog::backdrop{background:#09121ed9;backdrop-filter:blur(7px)}.gallery-dialog-header{display:flex;align-items:center;justify-content:space-between;padding:4px 5px 12px;font-size:14px;font-weight:500}.gallery-dialog-header button{border:0;background:transparent;color:#fff;font-size:27px;line-height:1;min-width:30px}.gallery-player.is-expanded{height:auto}.gallery-player.is-expanded .gallery-frame{flex:none;aspect-ratio:auto}

.gallery-toolbar{justify-content:flex-end;margin-top:-12px;margin-bottom:24px}.gallery-expand{position:absolute;right:9px;bottom:9px;border:0;border-radius:4px;background:#ffffffe0;color:#354a58;width:27px;height:27px;opacity:0;transition:opacity .2s;cursor:pointer}.gallery-player:hover .gallery-expand,.gallery-expand:focus-visible{opacity:1}.gallery-player.is-expanded .gallery-expand{display:none}@media(hover:none){.gallery-expand{opacity:.8}}

.gallery-video{filter:brightness(1.08) saturate(1.03)}
.gallery-asterisk{color:var(--red);font-size:.85em;margin-left:2px}.gallery-recording-note{font-size:11px;line-height:1.7;color:#75808c;margin:10px 0 0}.gallery-recording-note strong{font-weight:650;color:#485563}.gallery-recording-note a{white-space:nowrap;color:#65798e;text-underline-offset:3px}

.gallery-toolbar .gallery-code-toggle{display:inline-flex;align-items:center;gap:10px;border:0;border-radius:6px;padding:5px 1px;background:transparent;font-size:12px;font-weight:500;color:#556574;cursor:pointer}.gallery-toolbar .gallery-code-toggle[hidden]{display:none}.gallery-code-toggle:focus-visible{outline:2px solid var(--red);outline-offset:5px}.gallery-switch-track{display:block;width:38px;height:22px;padding:3px;border-radius:14px;background:#b7bfc7;transition:background .2s}.gallery-switch-thumb{display:block;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .2s}.gallery-code-toggle[aria-checked="true"] .gallery-switch-track{background:var(--red)}.gallery-code-toggle[aria-checked="true"] .gallery-switch-thumb{transform:translateX(16px)}@media(prefers-reduced-motion:reduce){.gallery-switch-track,.gallery-switch-thumb{transition:none}}


.gallery-play{position:absolute;z-index:6;left:50%;top:50%;transform:translate(-50%,-50%);padding:10px 18px;border:1px solid #ffffff80;border-radius:24px;background:#111c;color:#fff;cursor:pointer}.gallery-play[hidden]{display:none}.cin-play{position:absolute;z-index:12;right:24px;bottom:24px;padding:10px 18px;border-radius:24px;border:1px solid #ffffff80;background:#111c;color:#fff;pointer-events:auto;cursor:pointer}.cin-play[hidden]{display:none}
