/* VidLab API platform: one model's page (model.js). The shared catalogue pieces (maker logo tile, Save badge) come
   from the market's stylesheet. */
@import url("/api-platform/pages/models.css");

.vlmd { min-width: 0; }
.vlmd-dim { color: var(--vla-ink-3); }
.vlmd-small { font-size: 12.5px; }
.vlmd-bad { color: var(--vla-bad); }
.vlmd-hidden { display: none; }
.vlmd-link { color: var(--vla-ink); text-decoration: underline; text-decoration-color: var(--vla-line-2); text-underline-offset: 3px; }
.vlmd-link:hover { text-decoration-color: var(--vla-ink); }

/* buttons: small caps labels, pill, pure white primary */
.vlmd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--vla-r-pill);
  border: 1px solid var(--vla-line-2);
  background: transparent;
  color: var(--vla-ink);
  font: 500 12px/1 var(--vla-font);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.vlmd-btn svg { width: 15px; height: 15px; flex: none; }
.vlmd-btn:hover { background: var(--vla-hover-2); }
.vlmd-btn--white { background: #fff; border-color: #fff; color: #050505; }
.vlmd-btn--white:hover { background: #ececec; border-color: #ececec; }
.vlmd-btn--ghost { background: var(--vla-panel-2); }
.vlmd-btn:disabled { opacity: .45; cursor: default; }
.vlmd-linkbtn { padding: 0; border: 0; background: none; color: var(--vla-ink); text-decoration: underline; text-decoration-color: var(--vla-line-2); text-underline-offset: 3px; }
.vlmd-linkbtn:hover { text-decoration-color: var(--vla-ink); }

.vlmd-back { display: inline-flex; align-items: center; gap: 6px; height: 30px; margin: -6px 0 14px -8px; padding: 0 12px 0 6px; border-radius: var(--vla-r-pill); color: var(--vla-ink-2); font: 500 11.5px/1 var(--vla-font); letter-spacing: .08em; }
.vlmd-back:hover { background: var(--vla-hover); color: var(--vla-ink); }
.vlmd-back svg { width: 14px; height: 14px; }

/* header and highlights */
.vlmd-top { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: stretch; }
.vlmd-head { padding: 20px 24px 22px; min-width: 0; }
.vlmd-head__row { display: flex; align-items: center; gap: 10px; }
.vlmd-kind { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--vla-line-2); font: 500 10.5px/1 var(--vla-mono); letter-spacing: .1em; color: var(--vla-ink-2); }
.vlmd-title { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font: 500 36px/1.1 var(--vla-font-display); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.vlmd-copy { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--vla-ink-3); }
.vlmd-copy:hover { background: var(--vla-hover); color: var(--vla-ink); }
.vlmd-copy svg { width: 15px; height: 15px; }
.vlmd-desc { max-width: 640px; margin: 10px 0 0; color: var(--vla-ink-2); font-size: 14.5px; line-height: 1.6; }
.vlmd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.vlmd-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--vla-line-2); background: rgba(255, 255, 255, .02); color: var(--vla-ink-2); font-size: 12px; }
.vlmd-head__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.vlmd-hl { display: flex; flex-direction: column; padding: 22px 22px 22px; min-width: 0; }
.vlmd-hl__h { margin: 0; font: 500 15px/1.2 var(--vla-font-display); letter-spacing: .02em; }
.vlmd-hl__list { list-style: none; margin: 18px 0 0; padding: 0 0 18px; display: grid; gap: 12px; border-bottom: 1px solid var(--vla-line); }
.vlmd-hl__list li { display: flex; align-items: center; gap: 10px; color: var(--vla-ink-2); font-size: 13px; }
.vlmd-hl__list svg { width: 15px; height: 15px; flex: none; color: var(--vla-ink-2); }
.vlmd-hl__more { margin-top: 18px; width: 100%; }

/* examples: real pictures under the header, one tile each, click to enlarge */
.vlmd-ex { margin-top: 28px; min-width: 0; }
.vlmd-ex .vlmd-h2 { font-size: 20px; }
.vlmd-ex__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.vlmd-ex__li { min-width: 0; }
.vlmd-ex__item { display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--vla-line); border-radius: var(--vla-r); background: var(--vla-panel-2); transition: border-color 150ms ease; }
.vlmd-ex__item:hover { border-color: var(--vla-line-2); }
.vlmd-ex__item img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.vlmd-lb { width: min(460px, calc(100vw - 24px)); }
.vlmd-lb .vla-dialog__box { padding: 12px; }
.vlmd-lb__fig { margin: 0; }
.vlmd-lb__img { display: block; width: 100%; height: auto; max-height: calc(100vh - 170px); object-fit: contain; border-radius: 10px; }
.vlmd-lb__cap { margin: 10px 2px 0; color: var(--vla-ink-2); font-size: 13px; }
.vlmd-lb__prompt { margin: 10px 2px 0; color: var(--vla-ink); font-size: 13px; line-height: 1.55; }
.vlmd-lb__nav { display: flex; gap: 8px; margin-top: 12px; }
.vlmd-lb__nav .vlmd-btn { flex: 1; }
@media (max-width: 900px) {
  /* a phone: one row that scrolls inside itself, never the page */
  .vlmd-ex__row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .vlmd-ex__row::-webkit-scrollbar { display: none; }
  .vlmd-ex__li { flex: none; width: min(46vw, 200px); scroll-snap-align: start; }
}

/* mode tabs: underline on the active one */
.vlmd-tabs { margin-top: 26px; border-bottom: 1px solid var(--vla-line); }
.vlmd-tabs__row { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.vlmd-tabs__row::-webkit-scrollbar { display: none; }
.vlmd-tab { position: relative; flex: none; padding: 12px 0 13px; color: var(--vla-ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.vlmd-tab:hover { color: var(--vla-ink); }
.vlmd-tab.is-on { color: var(--vla-accent); }
.vlmd-tab.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--vla-accent); }

/* input and output */
.vlmd-io { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; align-items: stretch; margin-top: 22px; }
.vlmd-panel { min-width: 0; display: flex; flex-direction: column; }
.vlmd-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.vlmd-panel__h { margin: 0; font: 500 15px/1 var(--vla-font-display); letter-spacing: .02em; }
.vlmd-panel__body { padding: 0 18px 18px; min-width: 0; }
.vlmd-out .vlmd-panel__head { border-bottom: 1px solid var(--vla-line); margin-bottom: 18px; }
.vlmd-seg { display: inline-flex; border: 1px solid var(--vla-line-2); border-radius: 8px; overflow: hidden; background: var(--vla-field); }
.vlmd-seg__b { height: 28px; padding: 0 12px; border: 0; background: transparent; color: var(--vla-ink-2); font: 500 11px/1 var(--vla-font); letter-spacing: .06em; }
.vlmd-seg__b:hover { background: var(--vla-hover); color: var(--vla-ink); }
.vlmd-seg__b.is-on { background: #fff; color: #050505; }

.vlmd-form { display: grid; gap: 15px; }
.vlmd-field { min-width: 0; }
.vlmd-label { display: block; margin: 0 0 6px; color: var(--vla-ink); font-size: 12.5px; font-weight: 500; }
.vlmd-label--row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.vlmd-star { font-style: normal; color: var(--vla-ink-2); }
.vlmd-opt { color: var(--vla-ink-3); font-weight: 400; }
.vlmd-read { color: var(--vla-ink-3); font-size: 12px; font-weight: 400; }
.vlmd-input,
.vlmd-select,
.vlmd-textarea { min-height: 38px; padding: 8px 12px; font-size: 13px; }
.vlmd-input[readonly] { color: var(--vla-ink); cursor: default; }
.vlmd-textarea { min-height: 84px; resize: vertical; }
.vlmd-sel { position: relative; display: block; }
.vlmd-sel::after { content: ""; position: absolute; right: 14px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--vla-ink-2); border-bottom: 1.5px solid var(--vla-ink-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.vlmd-select { appearance: none; -webkit-appearance: none; padding-right: 34px; }
.vlmd-range { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 18px; margin: 4px 0 0; background: transparent; }
.vlmd-range::-webkit-slider-runnable-track { height: 2px; border-radius: 1px; background: var(--vla-line-2); }
.vlmd-range::-moz-range-track { height: 2px; border-radius: 1px; background: var(--vla-line-2); }
.vlmd-range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -5px; border: 0; border-radius: 50%; background: #fff; }
.vlmd-range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.vlmd-range { cursor: pointer; }
.vlmd-range:focus-visible { outline-offset: 4px; }
.vlmd-foot { margin: 0; color: var(--vla-ink-3); font-size: 12px; }
.vlmd-note { margin: 12px 0 0; color: var(--vla-ink-2); font-size: 12.5px; }
.vlmd-json { min-height: 380px; font: 400 12px/1.6 var(--vla-mono); resize: vertical; white-space: pre; overflow: auto; }

/* file boxes: the whole row is the label of the field's file input, so a press anywhere on it opens the files */
.vlmd-field--file { position: relative; }
.vlmd-pick { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.vlmd-file { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 6px 6px 10px; border: 1px solid var(--vla-line-2); border-radius: 10px; background: var(--vla-field); min-width: 0; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease; }
.vlmd-file:hover { background: var(--vla-hover); }
.vlmd-file:hover .vlmd-btn--select { background: var(--vla-hover-2); }
.vlmd-file.is-drag { border-color: #fff; background: var(--vla-hover); }
.vlmd-file.is-full { cursor: default; }
.vlmd-file.is-full:hover { background: var(--vla-field); }
.vlmd-file.is-full .vlmd-btn--select { opacity: .45; }
.vlmd-field--file:has(.vlmd-pick:focus-visible) .vlmd-file { outline: 2px solid rgba(255, 255, 255, .55); outline-offset: 2px; }
.vlmd-file.is-bad { border-color: rgba(248, 113, 113, .45); }
.vlmd-file__ic { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; overflow: hidden; color: var(--vla-ink-3); }
.vlmd-file__ic svg { width: 17px; height: 17px; }
.vlmd-file__ic img,
.vlmd-file__ic video { width: 100%; height: 100%; object-fit: cover; }
.vlmd-file__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--vla-ink-3); font-size: 12.5px; }
.vlmd-file.has-file .vlmd-file__name { color: var(--vla-ink); }
.vlmd-file__x { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--vla-ink-3); cursor: pointer; }
.vlmd-file__x:hover { background: var(--vla-hover-2); color: var(--vla-ink); }
.vlmd-file__x svg { width: 11px; height: 11px; }
.vlmd-btn--select { height: 30px; padding: 0 12px; border-radius: 8px; background: var(--vla-panel-2); font-size: 11px; flex: none; }
.vlmd-thumb__x { cursor: pointer; }
.vlmd-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.vlmd-thumb { position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; border: 1px solid var(--vla-line-2); background: var(--vla-field); color: var(--vla-ink-3); }
.vlmd-thumb.is-busy { opacity: .55; }
.vlmd-thumb.is-bad { border-color: rgba(248, 113, 113, .5); }
.vlmd-thumb img,
.vlmd-thumb video { width: 100%; height: 100%; object-fit: cover; }
.vlmd-thumb svg { width: 20px; height: 20px; }
.vlmd-thumb__x { position: absolute; top: 3px; right: 3px; display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .72); color: #fff; }
.vlmd-thumb__x svg { width: 9px; height: 9px; }

/* run bar */
.vlmd-actions { display: flex; gap: 10px; margin-top: 16px; }
.vlmd-sq { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border-radius: 10px; border: 1px solid var(--vla-line-2); background: transparent; color: var(--vla-ink); }
.vlmd-sq:hover { background: var(--vla-hover-2); }
.vlmd-sq svg { width: 16px; height: 16px; }
.vlmd-run { flex: 1; min-width: 0; height: 40px; border-radius: 10px; gap: 8px; }
.vlmd-run svg { width: 13px; height: 13px; }
.vlmd-run.is-dim { background: #ececec; border-color: transparent; color: rgba(5, 5, 5, .6); }
.vlmd-run.is-dim:hover { background: #f4f4f4; }
.vlmd-run__price { font-family: var(--vla-mono); letter-spacing: .02em; }
.vlmd-rule { margin: 8px 0 0; color: var(--vla-ink-3); font-size: 12px; text-align: right; }
.vlmd-keyline { margin: 12px 0 0; color: var(--vla-ink-3); font-size: 12px; overflow-wrap: anywhere; }
.vlmd-keyline .vlmd-linkbtn { margin-left: 6px; }

/* output */
.vlmd-stage { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; width: 100%; border-radius: 12px; background: #000; overflow: hidden; }
.vlmd-wait { display: grid; justify-items: center; gap: 12px; padding: 20px; text-align: center; color: var(--vla-ink-2); }
.vlmd-wait__w { color: var(--vla-ink); font-size: 13px; }
.vlmd-bar { position: relative; width: min(260px, 70vw); height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.vlmd-bar span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 2px; background: #fff; transition: width 400ms var(--vla-ease); }
.vlmd-bar.is-loose span { width: 35%; animation: vlmd-slide 1.4s var(--vla-ease) infinite; }
@keyframes vlmd-slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
@media (prefers-reduced-motion: reduce) { .vlmd-bar.is-loose span { animation: none; width: 100%; opacity: .4; } }
/* One row as tall as the stage: a tall (9:16) picture is fitted inside it, not stretched to the stage width and cropped. */
.vlmd-media { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.vlmd-media.is-many { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2px; }
.vlmd-media img { min-height: 0; min-width: 0; }
.vlmd-media video,
.vlmd-media img { width: 100%; height: 100%; object-fit: contain; background: #000; }
.vlmd-media audio { align-self: center; width: calc(100% - 32px); margin: 0 16px; }
.vlmd-out__note { margin: 10px 0 0; }
.vlmd-out__tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; min-height: 36px; }
.vlmd-out__btns { display: inline-flex; gap: 8px; margin-left: auto; }
.vlmd-round { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--vla-line-2); background: transparent; color: var(--vla-ink); }
.vlmd-round:hover { background: var(--vla-hover-2); }
.vlmd-round svg { width: 15px; height: 15px; }
.vlmd-round.is-off,
.vlmd-round:disabled { opacity: .4; pointer-events: none; }
.vlmd-outjson { margin: 0; min-height: 280px; max-height: 560px; padding: 14px; overflow: auto; border-radius: 12px; border: 1px solid var(--vla-line); background: #0c0c0c; font: 400 12px/1.6 var(--vla-mono); color: #e5e5e5; white-space: pre-wrap; overflow-wrap: anywhere; }

/* sections below */
.vlmd-sec { margin-top: 56px; min-width: 0; }
.vlmd-h2 { margin: 0; font: 500 26px/1.2 var(--vla-font-display); letter-spacing: -0.02em; }
.vlmd-lede { max-width: 640px; margin: 10px 0 20px; color: var(--vla-ink-2); font-size: 14px; line-height: 1.65; }
.vlmd-ptable { overflow-x: auto; }
.vlmd-ptable .vla-table { min-width: 460px; }
.vlmd-ptable .vla-table th:last-child,
.vlmd-ptable .vla-table td:last-child { text-align: right; }
.vlmd-pt__v { font-family: var(--vla-mono); font-size: 13px; color: var(--vla-ink); }
.vlmd-pt__sub { margin-top: 2px; font-size: 12px; }
.vlmd-pt__usual s { color: var(--vla-ink-3); }
.vlmd-wf .vlmd-btn { margin-top: 2px; }
.vlmd-arrow { display: inline-flex; }
.vlmd-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.vlmd-fc { padding: 18px 18px 20px; border-radius: var(--vla-r); }
.vlmd-fc h3 { margin: 0; font: 500 13px/1.35 var(--vla-font-display); letter-spacing: .02em; text-transform: uppercase; }
.vlmd-fc p { margin: 10px 0 0; color: var(--vla-ink-2); font-size: 12.5px; line-height: 1.6; }

/* the API section: the endpoint, the request for the task, its fields, the answer */
.vlmd-api { min-width: 0; }
.vlmd-api__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vlmd-api__tabs { margin-top: 18px; }
.vlmd-api__body { display: grid; gap: 16px; margin-top: 22px; min-width: 0; }
.vlmd-api__card { min-width: 0; padding: 18px 20px 20px; }
.vlmd-api__card--code { padding: 0; overflow: hidden; }
.vlmd-api__h { margin: 0 0 14px; font: 500 15px/1 var(--vla-font-display); letter-spacing: .02em; text-transform: uppercase; }
.vlmd-api__lede { margin: 0 0 14px; color: var(--vla-ink-2); font-size: 13.5px; line-height: 1.7; }
.vlmd-api__foot { margin: 14px 0 0; color: var(--vla-ink-3); font-size: 12.5px; line-height: 1.7; }
.vlmd-ic { padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--vla-ink); font: 400 12px/1.4 var(--vla-mono); }

.vlmd-eps { display: grid; margin: 0; padding: 0; list-style: none; }
.vlmd-ep { display: grid; grid-template-columns: 58px minmax(0, max-content) minmax(0, 1fr) 30px; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--vla-line); }
.vlmd-ep:first-child { padding-top: 0; border-top: 0; }
.vlmd-ep:last-child { padding-bottom: 0; }
.vlmd-meth { display: inline-flex; align-items: center; justify-content: center; height: 24px; border-radius: 7px; border: 1px solid var(--vla-line-2); color: #fff; font: 500 11px/1 var(--vla-mono); letter-spacing: .08em; }
.vlmd-meth.is-get { color: var(--vla-ink-2); }
.vlmd-ep__url { min-width: 0; color: var(--vla-ink); font: 400 13.5px/1.5 var(--vla-mono); overflow-wrap: anywhere; }
.vlmd-ep__what { min-width: 0; color: var(--vla-ink-2); font-size: 13px; line-height: 1.5; }
.vlmd-ep__copy { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--vla-ink-3); }
.vlmd-ep__copy:hover { background: var(--vla-hover-2); color: var(--vla-ink); }
.vlmd-ep__copy svg { width: 15px; height: 15px; }

.vlmd-tbl { overflow-x: auto; border: 1px solid var(--vla-line); border-radius: var(--vla-r-sm); }
.vlmd-tbl .vla-table { min-width: 560px; }
.vlmd-tbl .vla-table th { padding: 11px 14px; white-space: nowrap; }
.vlmd-tbl .vla-table td { padding: 11px 14px; vertical-align: top; font-size: 13px; line-height: 1.55; }
.vlmd-pn { min-width: 150px; }
.vlmd-pn__what { max-width: 360px; margin-top: 5px; font-size: 12px; line-height: 1.55; }
.vlmd-tbl .vlmd-pn__what .vlmd-link { color: var(--vla-ink-2); }

.vlmd-code__bar { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 12px 6px 12px; border-bottom: 1px solid var(--vla-line); background: rgba(255, 255, 255, .02); }
.vlmd-code__tabs { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.vlmd-code__tabs::-webkit-scrollbar { display: none; }
.vlmd-code__tab { height: 28px; padding: 0 12px; border: 0; border-radius: var(--vla-r-pill); background: transparent; color: var(--vla-ink-3); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.vlmd-code__tab:hover { background: var(--vla-hover); color: var(--vla-ink); }
.vlmd-code__tab.is-on { background: var(--vla-hover-2); color: var(--vla-ink); }
.vlmd-copybtn { flex: none; height: 28px; margin-left: auto; padding: 0 13px; border: 1px solid var(--vla-line-2); border-radius: var(--vla-r-pill); background: transparent; color: var(--vla-ink-2); font-size: 12px; font-weight: 500; }
.vlmd-copybtn:hover { background: var(--vla-hover-2); color: var(--vla-ink); }
.vlmd-code__pre { margin: 0; padding: 16px 18px; overflow-x: auto; color: #e5e5e5; font: 400 12.5px/1.7 var(--vla-mono); white-space: pre; tab-size: 2; }
.vlmd-code__pre code { font: inherit; color: inherit; }
.vlmd-code__pre[hidden] { display: none; }
.vlmd-api__resp { max-height: 440px; border: 1px solid var(--vla-line); border-radius: var(--vla-r-sm); background: #0a0a0a; overflow: auto; }

@media (max-width: 900px) {
  .vlmd-ep { grid-template-columns: auto minmax(0, 1fr) 30px; row-gap: 8px; }
  .vlmd-ep__url { grid-column: 1 / -1; grid-row: 2; }
  .vlmd-ep__what { grid-column: 1 / -1; grid-row: 3; }
  .vlmd-ep .vlmd-meth { grid-column: 1; grid-row: 1; width: 58px; }
  .vlmd-ep__copy { grid-column: 3; grid-row: 1; }
}
@media (max-width: 560px) {
  .vlmd-api__card { padding: 16px 14px 18px; }
  .vlmd-code__pre { padding: 14px; }
}

/* ---------- a run on its way (the OUTPUT card): go on submitting, follow it below ---------- */
.vlmd-going { display: grid; justify-items: center; gap: 10px; padding: 20px; text-align: center; }
.vlmd-going__ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 4px; border-radius: 50%; border: 1px solid var(--vla-line-2); background: var(--vla-hover); color: var(--vla-ink); }
.vlmd-going__ic svg { width: 20px; height: 20px; }
.vlmd-going__w { display: inline-flex; align-items: center; gap: 8px; color: var(--vla-ink); font-size: 14px; font-weight: 500; }
.vlmd-going__sub { max-width: 300px; color: var(--vla-ink-2); font-size: 12.5px; line-height: 1.5; }
.vlmd-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; margin-top: 4px; padding: 0 14px; border-radius: var(--vla-r-pill); border: 1px solid var(--vla-line-2); background: transparent; color: var(--vla-ink); font-size: 12.5px; font-weight: 500; transition: background-color 150ms ease; }
.vlmd-pill:hover { background: var(--vla-hover-2); }
.vlmd-pill svg { width: 13px; height: 13px; }
.vlmd-spin { flex: none; display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid rgba(255, 255, 255, .2); border-top-color: #fff; animation: vlmd-spin .9s linear infinite; }
@keyframes vlmd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vlmd-spin { animation-duration: 2.4s; } }

/* ---------- the Generating list: a card per run, progress that turns into the result ---------- */
.vlmd-gen { scroll-margin-top: 80px; }
.vlmd-gen[hidden] { display: none; }
.vlmd-gen__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vlmd-gen__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.vlmd-gen__li { min-width: 0; }
.vlmd-gc { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden; border-radius: var(--vla-r); border: 1px solid var(--vla-line); background: var(--vla-panel); color: var(--vla-ink); text-align: left; transition: border-color 150ms ease, background-color 150ms ease; }
button.vlmd-gc:hover { border-color: var(--vla-line-2); background: var(--vla-hover); }
.vlmd-gc > img,
.vlmd-gc > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.vlmd-gc__mid { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; }
.vlmd-gc__pct { color: var(--vla-ink); font-size: 12.5px; }
.vlmd-gc__time { margin-top: -4px; color: var(--vla-ink-3); font-size: 11px; }
.vlmd-gc__aud { color: var(--vla-ink-2); }
.vlmd-gc__aud svg { width: 28px; height: 28px; }
.vlmd-gc__bar { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.vlmd-gc__bar span { position: absolute; inset: 0 auto 0 0; width: 0; background: #fff; transition: width 500ms var(--vla-ease); }
.vlmd-gc__bar.is-loose span { width: 30%; animation: vlmd-slide 1.4s var(--vla-ease) infinite; }
.vlmd-gc__foot { position: absolute; left: 8px; bottom: 8px; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, .62); color: var(--vla-ink-2); font: 500 11px/1.2 var(--vla-mono); }
.vlmd-gc.is-bad .vlmd-gc__foot { background: transparent; }
.vlmd-gc__n { position: absolute; top: 8px; right: 8px; min-width: 22px; padding: 3px 6px; border-radius: 6px; background: rgba(0, 0, 0, .62); color: var(--vla-ink); font-size: 11px; text-align: center; }
/* Hovered: where it is kept, said on the card itself. */
.vlmd-gc__keep { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 9px; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .86) 55%); color: var(--vla-ink); font-size: 11.5px; line-height: 1.35; opacity: 0; transition: opacity 150ms ease; pointer-events: none; }
.vlmd-gc.is-done:hover .vlmd-gc__keep,
.vlmd-gc.is-done:focus-visible .vlmd-gc__keep { opacity: 1; }
.vlmd-gc.is-done:hover .vlmd-gc__foot,
.vlmd-gc.is-done:focus-visible .vlmd-gc__foot { opacity: 0; }

/* ---------- one result, opened from its card ---------- */
.vlmd-rdlg.vla-dialog--wide { width: min(760px, calc(100vw - 32px)); }
.vlmd-rd__stage { display: grid; place-items: center; width: 100%; max-height: calc(100vh - 260px); min-height: 160px; overflow: hidden; border-radius: 14px; background: #000; }
.vlmd-rd__stage img,
.vlmd-rd__stage video { display: block; width: 100%; max-height: calc(100vh - 260px); object-fit: contain; }
.vlmd-rd__stage audio { width: calc(100% - 32px); margin: 24px 16px; }
.vlmd-rd__stage.is-many { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2px; overflow: auto; }
.vlmd-rd__stage--msg { align-content: center; gap: 8px; padding: 28px 20px; text-align: center; }
.vlmd-rd__prompt { margin: 14px 0 0; color: var(--vla-ink); font-size: 13.5px; line-height: 1.55; overflow-wrap: anywhere; }
.vlmd-rd__facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; font-size: 12.5px; }
.vlmd-rd__keep { margin: 8px 0 0; }

/* ---------- the page while its data is on the way: the same boxes in grey ---------- */
.vlmd--skel .vlmd-back { pointer-events: none; }
.vlmd-sk { display: block; border-radius: 8px; background: rgba(255, 255, 255, .055); animation: vlmd-pulse 1.4s ease-in-out infinite; }
@keyframes vlmd-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .vlmd-sk { animation: none; } }
.vlmd-sk-row { display: flex; gap: 8px; margin-top: 14px; }
.vlmd-sk-row.is-btns { gap: 10px; margin-top: 18px; }
.vlmd-sk-col { display: grid; gap: 8px; }
.vlmd-sk--logo { width: 44px; height: 44px; border-radius: 12px; }
.vlmd-sk--title { width: min(420px, 70%); height: 40px; margin-top: 14px; }
.vlmd-sk--line { width: min(620px, 92%); height: 14px; margin: 15px 0 4px; }
.vlmd-sk--line.is-short { display: none; width: min(380px, 60%); margin: 9px 0 0; }
.vlmd-sk--tag { width: 96px; height: 26px; border-radius: 7px; }
.vlmd-sk--btn { width: 138px; height: 38px; border-radius: var(--vla-r-pill); }
.vlmd-sk--hh { width: 150px; height: 18px; }
.vlmd-sk--ph { width: 120px; height: 30px; }
.vlmd-sk--li { width: 78%; height: 12px; margin-top: 20px; }
.vlmd-sk--wide { width: 100%; height: 38px; margin-top: 43px; border-radius: var(--vla-r-pill); }
.vlmd-sk--tab { width: 96px; height: 13px; margin: 15px 0 17px; }
.vlmd-sk--label { width: 80px; height: 11px; margin-top: 10px; }
.vlmd-sk--field { width: 100%; height: 38px; border-radius: 10px; }
.vlmd-sk--area { width: 100%; height: 84px; border-radius: 10px; }
@media (max-width: 560px) { .vlmd-sk--line.is-short { display: block; } }

@media (max-width: 1100px) {
  .vlmd-top { grid-template-columns: minmax(0, 1fr) 260px; }
  .vlmd-io { grid-template-columns: 300px minmax(0, 1fr); }
  .vlmd-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .vlmd-top { grid-template-columns: minmax(0, 1fr); }
  .vlmd-io { grid-template-columns: minmax(0, 1fr); }
  .vlmd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .vlmd-head { padding: 20px 18px 22px; }
  .vlmd-title { font-size: 30px; }
  .vlmd-head__btns .vlmd-btn { flex: 1; padding: 0 12px; }
  .vlmd-hl { padding: 18px; }
  .vlmd-tabs__row { gap: 18px; }
  .vlmd-panel__head { padding: 14px 16px; }
  .vlmd-panel__body { padding: 0 16px 16px; }
  .vlmd-sec { margin-top: 40px; }
  .vlmd-h2 { font-size: 22px; }
  .vlmd-cards { grid-template-columns: minmax(0, 1fr); }
  .vlmd-gen__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vlmd-gen__head .vlmd-btn { height: 34px; padding: 0 14px; }
}
/* A touch screen has no hover: the keep line is always on a finished card. */
@media (hover: none) {
  .vlmd-gc.is-done .vlmd-gc__keep { opacity: 1; padding-top: 18px; font-size: 11px; }
  .vlmd-gc.is-done .vlmd-gc__foot { display: none; }
}

/* Video generation: the Assets group (reference images, videos and audio) right under the prompt. */
.vlmd-assets { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--vla-line); border-radius: var(--vla-r-sm); background: var(--vla-panel-2); }
.vlmd-assets__head { display: grid; gap: 4px; }
.vlmd-assets__h { margin: 0; }
.vlmd-assets__rule { margin: 0; color: var(--vla-ink-3); }
.vlmd-assets .vlmd-field--file { margin: 0; }

/* A file that did not upload: marked on its own tile, with a button to send it again. */
.vlmd-thumb.is-bad { border-color: var(--vla-bad); box-shadow: inset 0 0 0 1px var(--vla-bad); }
.vlmd-thumb.is-bad img,
.vlmd-thumb.is-bad video { opacity: .35; }
.vlmd-thumb__retry { position: absolute; inset: auto auto 3px 3px; display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: var(--vla-bad); color: #fff; cursor: pointer; }
.vlmd-thumb__retry svg { width: 12px; height: 12px; }
.vlmd-file .vlmd-thumb__retry { position: static; margin-right: 6px; }
.vlmd-file.has-bad .vlmd-file__name { white-space: normal; overflow: visible; line-height: 1.3; }
/* Touch screens: the small retry dot answers a press anywhere in a 44 px square (the remove button stays on top). */
@media (pointer: coarse) {
  .vlmd-thumb__retry::before { content: ""; position: absolute; left: -3px; bottom: -3px; width: 44px; height: 44px; }
  .vlmd-file .vlmd-thumb__retry { position: relative; }
  .vlmd-file .vlmd-thumb__retry::before { left: -11px; bottom: -11px; }
  .vlmd-thumb__x { z-index: 1; }
}
/* "12.4 of 30 s used" under a box whose clips share a total. */
.vlmd-used { margin: 6px 0 0; color: var(--vla-ink-3); font-variant-numeric: tabular-nums; }
