/* Result history: one bounded card, a complete preview, and a clear reading
   order of choices, title, parameters, status, and bottom-aligned actions. */
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"] .queue-grid,.project-work-grid.is-list) {
  gap:20px!important;
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial {
  --list-preview-height:clamp(220px,23cqi,320px);
  display:grid!important; grid-template-columns:minmax(0,2fr) minmax(0,1fr)!important;
  grid-template-rows:auto!important; align-items:stretch!important;
  min-height:var(--list-preview-height)!important; padding:14px!important; gap:24px!important;
  border:1px solid color-mix(in srgb,var(--studio-line) 85%,transparent)!important;
  border-radius:18px!important; background:var(--studio-surface)!important;
  box-shadow:0 2px 10px color-mix(in srgb,var(--studio-text) 2%,transparent)!important;
}
html[data-zq-theme="dark"] body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial {
  background:color-mix(in srgb,var(--studio-surface) 86%,#101b29)!important;
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-row.job-list-editorial::before { display:none!important; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-row.job-list-editorial.selected {
  outline:2px solid var(--studio-accent); outline-offset:1px;
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial>.thumb {
  grid-column:1!important; grid-row:1!important; width:100%!important; height:100%!important;
  min-height:var(--list-preview-height)!important; aspect-ratio:auto!important; padding:0!important;
  border:0!important; border-radius:10px!important; background:var(--studio-soft)!important; overflow:hidden!important;
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial .thumb :is(img,video) {
  object-fit:contain!important; object-position:center!important; background:transparent!important; border:0!important;
}
/* Extend the current image/poster into the unused preview space. The sharp
   foreground remains uncropped; only its decorative duplicate is blurred. */
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial.job-list-visual>.thumb {
  position:relative!important; isolation:isolate;
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial .thumb img.list-preview-backdrop {
  position:absolute!important; inset:0!important; z-index:0!important;
  display:block!important; width:100%!important; height:100%!important; max-width:none!important; max-height:none!important;
  object-fit:cover!important; object-position:center!important; border:0!important; border-radius:0!important;
  filter:blur(24px) saturate(.85) brightness(1.04)!important; transform:scale(1.14)!important;
  opacity:.72; pointer-events:none!important; user-select:none;
}
html[data-zq-theme="dark"] body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial .thumb img.list-preview-backdrop {
  filter:blur(24px) saturate(.9) brightness(.7)!important; opacity:.82;
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial .thumb img.list-preview-backdrop[hidden] { display:none!important; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial.job-list-visual>.thumb>:is(img:not(.list-preview-backdrop),video),
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial .multi-result-frame>img:not(.list-preview-backdrop) {
  position:absolute!important; inset:0!important; z-index:1!important;
  width:100%!important; height:100%!important; max-width:100%!important; max-height:100%!important;
  object-fit:contain!important; filter:none!important; transform:none!important; opacity:1!important;
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial.job-type-video>.thumb>.play {
  position:absolute!important; top:50%!important; left:50%!important; bottom:auto!important; right:auto!important;
  width:60px!important; height:60px!important; min-width:60px!important; min-height:60px!important; padding:0!important;
  display:grid!important; place-items:center; border-radius:50%!important; border:1px solid rgb(255 255 255 / 35%)!important;
  background:rgb(12 18 27 / 60%)!important; color:#fff!important; font-size:23px!important; line-height:1!important;
  transform:translate(-50%,-50%)!important; box-shadow:0 6px 22px rgb(0 0 0 / 16%)!important;
  opacity:1; transition:opacity 160ms ease,transform 160ms ease; z-index:3;
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial.job-type-video>.thumb>video.playing~.play { opacity:0; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial.job-type-video>.thumb>.play:is(:hover,:focus-visible) {
  opacity:1; transform:translate(-50%,-50%) scale(1.05)!important;
}
@media (prefers-reduced-motion:reduce) {
  html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-row.job-list-editorial.job-type-video>.thumb>.play { transition:none; }
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-row.job-list-editorial>.job-list-panel {
  grid-column:2; grid-row:1; min-width:0; display:flex; flex-direction:column; align-items:stretch;
  padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; color:var(--studio-text);
  container-type:inline-size; container-name:result-panel;
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial .job-main {
  display:block!important; align-self:stretch!important; padding:0!important; min-width:0!important;
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial .job-main h3 {
  margin:0 0 8px!important; font-size:20px!important; line-height:1.4!important; font-weight:650!important;
  -webkit-line-clamp:2; overflow-wrap:anywhere;
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:8px; min-width:0; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial .job-list-heading h3 { flex:1; min-width:0; margin:0!important; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-editorial .job-list-state { margin:0; min-height:22px; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-editorial :is(.job-list-state.badge,.job-list-state>.badge,.job-list-heading>.badge) {
  display:inline-flex; align-items:center; gap:7px; flex:none; margin:0; padding:0!important;
  height:auto; min-height:22px; border:0!important; border-radius:0; background:transparent!important;
  color:var(--studio-sub)!important; font-family:inherit!important; font-size:13px!important; font-weight:500!important; line-height:22px!important; white-space:nowrap;
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-editorial :is(.job-list-state.badge,.job-list-state>.badge,.job-list-heading>.badge)::before { width:8px; height:8px; box-shadow:none; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-editorial :is(.job-list-state.badge,.job-list-state>.badge,.job-list-heading>.badge).succeeded::before { background:var(--refine-success,#37916e); }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-editorial :is(.job-list-state.badge,.job-list-state>.badge,.job-list-heading>.badge):is(.failed,.canceled) { color:var(--refine-danger,#b85555)!important; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-editorial :is(.job-list-state.badge,.job-list-state>.badge,.job-list-heading>.badge):is(.failed,.canceled)::before { background:var(--refine-danger,#b85555); }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-editorial :is(.job-list-state.badge,.job-list-state>.badge,.job-list-heading>.badge):is(.queued,.running,.submitted,.downloading,.awaiting_confirmation)::before { background:var(--studio-accent); }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial .job-parameter-chips {
  gap:6px 12px!important; margin:0 0 8px!important;
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial .job-parameter-chips span {
  padding:0!important; min-height:0; border:0!important; border-radius:0!important; background:transparent!important;
  color:var(--studio-muted)!important; font-size:13px!important; line-height:1.6!important;
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-row.job-list-editorial .job-list-model { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial .job-status-row :is(.badge,.project-chip) {
  padding:0!important; height:auto!important; border:0!important; border-radius:0!important; background:transparent!important;
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial .job-meta {
  margin:4px 0!important; font-size:12px!important;
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial .job-actions {
  align-self:stretch!important; margin:0!important; padding:0!important;
  gap:8px!important; border:0!important; display:flex!important; flex-direction:row!important; flex-wrap:wrap!important;
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial .job-actions>button {
  flex:0 0 auto!important; min-width:0!important; width:auto!important; height:40px!important; min-height:40px!important;
  padding:0 10px!important; border:1px solid var(--studio-line)!important; border-radius:8px!important; background:transparent!important;
  box-shadow:none!important; color:var(--studio-text)!important; font-size:12px!important;
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial .job-actions>.download-action {
  padding-inline:14px!important; border-color:var(--studio-primary)!important; background:var(--studio-primary)!important; color:var(--studio-on-accent,#fff)!important; font-weight:600!important;
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-row.job-list-editorial .job-actions>button:hover:not(:disabled):not(.download-action) { background:var(--studio-soft)!important; color:var(--studio-accent)!important; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial>.select-hit { top:24px!important; left:24px!important; }
html body.reference-ui-shell[data-studio-ui] .job-row.job-list-editorial .list-result-stage {
  position:absolute!important; inset:0; display:block!important; width:100%; height:100%; padding:0; overflow:hidden!important; border-radius:0;
}
html body.reference-ui-shell[data-studio-ui] .job-row.job-list-editorial .list-result-stage .multi-result-frame {
  position:absolute!important; inset:0!important; width:100%!important; height:100%!important;
  min-width:0!important; min-height:0!important; padding:0!important; margin:0!important;
  display:flex!important; align-items:center; justify-content:center; border:0!important; border-radius:0!important;
  background:transparent!important; cursor:zoom-in; box-shadow:none!important;
}
html body.reference-ui-shell[data-studio-ui] .job-row.job-list-editorial .list-result-stage .multi-result-frame:not(.is-active) { display:none!important; }
html body.reference-ui-shell[data-studio-ui] .job-row.job-list-editorial .list-result-choices { min-width:0; margin:0 0 14px; }
html body.reference-ui-shell[data-studio-ui] .job-row.job-list-editorial .list-result-caption {
  display:flex; justify-content:flex-end; gap:8px; color:var(--studio-muted); font-size:11px; line-height:1.5; margin-bottom:7px;
}
html body.reference-ui-shell[data-studio-ui] .job-row.job-list-editorial .list-result-caption b { font-weight:500; }
html body.reference-ui-shell[data-studio-ui] .job-row.job-list-editorial .multi-results-thumbs {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; padding:3px; margin:-3px; max-width:360px;
  overflow-x:hidden; overflow-y:auto; max-height:190px; scrollbar-width:thin;
}
html body.reference-ui-shell[data-studio-ui] .job-row.job-list-editorial .multi-result-thumb {
  position:relative; display:block; min-width:0!important; width:100%!important; height:auto!important; aspect-ratio:1;
  min-height:0!important; padding:0!important; margin:0!important; overflow:hidden; border:0!important; border-radius:8px!important;
  background:var(--studio-soft)!important; box-shadow:none!important;
}
html body.reference-ui-shell[data-studio-ui] .job-row.job-list-editorial .multi-result-thumb img {
  display:block; width:100%; height:100%; object-fit:contain; border-radius:0; background:transparent;
}
html body.reference-ui-shell[data-studio-ui] .job-row.job-list-editorial .multi-result-thumb.is-active { outline:2px solid var(--studio-accent); outline-offset:2px; }
html body.reference-ui-shell[data-studio-ui] .job-row.job-list-editorial .multi-result-thumb:focus-visible { outline:2px solid var(--studio-accent); outline-offset:3px; }
html body.reference-ui-shell[data-studio-ui] .job-row.job-list-editorial [hidden] { display:none!important; }
/* Four primary actions stay together; all-output download lives in More. */
@container history-list (max-width:800px) {
  html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial {
    grid-template-columns:minmax(0,1fr)!important; grid-template-rows:auto auto!important; gap:16px!important; min-height:0!important;
    padding:12px!important; border-radius:16px!important;
    --list-preview-height:clamp(225px,56cqi,360px);
  }
  html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial>.select-hit { top:24px!important; left:24px!important; }
  html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial>.thumb {
    grid-column:1!important; grid-row:1!important; height:var(--list-preview-height)!important;
  }
  html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-row.job-list-editorial>.job-list-panel { grid-column:1; grid-row:2; padding:0; }
  html body.reference-ui-shell[data-studio-ui] .job-row.job-list-editorial .list-result-choices { max-width:340px; width:100%; }
}

/* Metadata remains readable but gives the result and selected candidate priority. */
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-editorial .job-list-prompt {
  margin:0 0 8px; color:var(--studio-muted); font-size:13px; line-height:1.6;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere;
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-editorial.job-list-audio .job-list-prompt { -webkit-line-clamp:1; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial .job-parameter-chips { gap:6px 11px!important; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial .job-parameter-chips .badge {
  min-height:0; padding:0!important; border:0!important; background:transparent!important; line-height:1.6!important;
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial .job-parameter-chips .badge.succeeded { color:var(--studio-success,#37916e)!important; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial .job-parameter-chips .badge:is(.failed,.canceled) { color:var(--studio-danger,#b85555)!important; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial .job-parameter-chips .badge:is(.queued,.running,.submitted,.downloading,.awaiting_confirmation) { color:var(--studio-accent)!important; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-footer { margin-top:auto; padding-top:18px; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-byline {
  display:flex; flex-wrap:wrap; align-items:center; gap:5px 9px; margin-bottom:9px;
  color:var(--studio-muted); font-size:12px; line-height:1.6; min-width:0;
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-byline>*+*::before { content:'·'; margin-right:8px; opacity:.65; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-byline .job-list-project { min-width:0; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-byline :is(.job-list-author,.job-list-avatar) { display:none; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-byline time::before { content:none; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial .job-actions>.menu-btn { min-width:42px!important; font-size:17px!important; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial.job-list-audio {
  --list-preview-height:156px; grid-template-columns:minmax(0,2fr) minmax(0,1fr)!important;
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial.job-list-audio>.thumb {
  display:flex!important; align-items:center; align-self:center!important; height:auto!important;
  min-height:128px!important; padding:8px 20px!important; background:transparent!important;
}
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .list-audio-media { width:100%; min-width:0; max-height:240px; overflow:auto; scrollbar-width:thin; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .list-audio-label { display:flex; align-items:center; gap:8px; margin-bottom:15px; color:var(--studio-sub); font-size:13px; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .list-audio-label svg { width:20px; height:20px; color:var(--studio-accent); }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-audio :is(.audio-thumb,.audio-output-stack) { width:100%; min-width:0; padding:0!important; background:transparent!important; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-audio .audio-output-stack { display:flex; flex-direction:column; gap:12px; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-audio .audio-output-item { border:0!important; background:transparent!important; padding:0!important; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-audio .audio-output-head { display:flex; align-items:center; justify-content:space-between; color:var(--studio-muted); font-size:11px; margin-bottom:6px; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-audio .audio-output-download { border:0!important; background:transparent!important; padding:4px 6px!important; color:var(--studio-accent)!important; min-height:30px; }
html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-audio audio { display:block; width:100%; min-width:0; max-width:100%; height:44px; }
html[data-zq-theme="light"] body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-audio audio { color-scheme:light; }
html[data-zq-theme="dark"] body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-audio audio { color-scheme:dark; }
@container history-list (max-width:800px) {
  html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial.job-list-audio { grid-template-columns:minmax(0,1fr)!important; --list-preview-height:124px; }
  html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) :is(#jobBoard[data-view-mode="list"],.project-work-grid.is-list) .job-row.job-list-editorial.job-list-audio>.thumb { padding:18px!important; height:auto!important; min-height:124px!important; }
  html body.reference-ui-shell[data-studio-ui] :is(#view-work,#view-projects) .job-list-audio .job-list-footer { padding-top:15px; }
}
