/* Videos (videos.html, video.html): video guides made by X-ray's video agent. */
.vg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 0 0 18px; }
.vg-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; color: var(--text); text-decoration: none; display: flex; flex-direction: column; }
.vg-card:hover { border-color: var(--accent); text-decoration: none; }
.vg-thumb { aspect-ratio: 16 / 10; background: var(--panel-2) center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 13px; }
.vg-card-b { padding: 10px 12px 12px; }
.vg-card-t { font-weight: 600; font-size: 14px; margin: 0 0 4px; line-height: 1.3; }
.vg-meta { font-size: 12px; color: var(--dim); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.vg-status { font-size: 11.5px; padding: 1px 7px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--dim); white-space: nowrap; }
.vg-status.running, .vg-status.queued { color: var(--warn); border-color: var(--warn); }
.vg-status.failed { color: var(--bad); border-color: var(--bad); }
.vg-status.done { color: var(--good); border-color: var(--good); }
.vg-new textarea, .vg-new input[type=text], .vg-new select, .vg-form textarea, .vg-form input[type=text], .vg-form select, .vg-form input[type=number] {
  width: 100%; box-sizing: border-box; background: var(--bg); color: var(--text); border: 1px solid var(--line-2);
  border-radius: 5px; padding: 7px 9px; font: inherit; font-size: 13.5px; }
.vg-new textarea { min-height: 84px; }
.vg-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; margin: 8px 0; }
.vg-row label, .vg-form label { display: block; font-size: 12px; color: var(--dim); margin: 0 0 3px; }
.vg-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0 0; }
.vg-error { border: 1px solid var(--bad); color: var(--bad); padding: 8px 12px; border-radius: 6px; margin: 0 0 14px; font-size: 13.5px; }
.vg-hint { font-size: 12.5px; color: var(--dim); margin: 6px 0 0; }
.vg-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 1.2fr); gap: 14px; align-items: start; }
.vg-player video { width: 100%; border-radius: 6px; background: #000; display: block; }
.vg-empty { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; color: var(--dim); background: var(--panel-2); border-radius: 6px; text-align: center; padding: 20px; }
.vg-versions { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.vg-versions li { padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.vg-versions li.on a { color: var(--text); font-weight: 600; }
.vg-beat { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.vg-beat-n { color: var(--dim); font-variant-numeric: tabular-nums; padding-top: 6px; }
.vg-beat textarea.say { min-height: 52px; font-size: 14px; }
.vg-beat details { margin: 6px 0 0; font-size: 12.5px; }
.vg-beat details summary { color: var(--dim); cursor: pointer; }
.vg-beat textarea.steps { font-family: var(--mono); font-size: 12px; min-height: 60px; }
.vg-beat-tools { display: flex; gap: 12px; font-size: 12px; color: var(--dim); margin-top: 4px; }
.vg-log { font-family: var(--mono); font-size: 12px; max-height: 280px; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 8px 10px; white-space: pre-wrap; word-break: break-word; }
.vg-log .t { color: var(--dimmer); }
.vg-jobs { width: 100%; font-size: 13px; border-collapse: collapse; }
.vg-jobs td, .vg-jobs th { text-align: left; padding: 5px 8px 5px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.vg-jobs th { color: var(--dim); font-weight: 500; font-size: 12px; }
.vg-btn-row form { display: inline; }
.vg-kv { font-size: 13px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.vg-kv dt { color: var(--dim); }
.vg-kv dd { margin: 0; }
@media (max-width: 900px) { .vg-top, .vg-row { grid-template-columns: 1fr; } }
