.ds-library { container-type: inline-size; }
.ds-library-list {
  overflow: hidden; min-width: 0;
  border: 1px solid #d6dee7; border-radius: var(--radius-panel); background: white;
}
.ds-file-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.ds-no-file { color: #58697b; font-size: var(--type-caption); }
.ds-library-location { margin: 10px 0 0; padding: 0 3px; color: #516479; font-size: var(--type-caption); }
.ds-library-location summary { width: fit-content; cursor: pointer; }
.ds-library-location svg { width: 14px; height: 14px; margin-right: 5px; vertical-align: middle; }
.ds-library-location p { margin: 6px 0; overflow-wrap: anywhere; }
.desk-window .ds-library .df-toolbar {
  display: grid; grid-template-columns: minmax(130px,1fr) minmax(150px,1.1fr) minmax(180px,1.5fr) auto;
  align-items: end; gap: 12px; padding: 15px 18px; margin: 0; border-bottom: 1px solid #dfe6ed;
}
.desk-window .ds-library .df-field select { min-width: 0; }
.ds-library .df-toolbar > .btn { justify-self: start; }
.ds-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ds-table thead th { padding: 9px 12px; color: #54687c; background: #f5f7fa; text-align: left; }
.ds-table th:nth-child(1) { width: 32%; }
.ds-table th:nth-child(2) { width: 21%; }
.ds-table th:nth-child(3) { width: 20%; }
.ds-table th:nth-child(4) { width: 14%; }
.ds-table th:nth-child(5) { width: 13%; }
.ds-table td { padding: 16px 12px; vertical-align: middle; white-space: normal; overflow-wrap: anywhere; }
.ds-table :is(td,th):first-child { padding-left: 18px; }
.ds-table :is(td,th):last-child { padding-right: 18px; text-align: left; }
.ds-table tbody tr:hover { background: #fbfcfe; }
.ds-scene, .ds-owner { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ds-scene > div:last-child { min-width: 0; }
.ds-cover { position: relative; flex: none; width: 85px; aspect-ratio: 3/2; overflow: hidden; border-radius: var(--radius-small); background: #e8edf1; }
.ds-cover .scene-photo { width: 100%; height: 100%; object-fit: cover; }
.ds-cover > .scene-cover-placeholder > small { display: none; }
.ds-cover > small {
  position: absolute; bottom: 3px; right: 3px; margin: 0; padding: 0 4px; border-radius: 3px;
  color: #fff; background: #1c2735cb; font-size: 10px; font-variant-numeric: tabular-nums;
}
.ds-table button.ds-scene-title {
  display: inline-flex; align-items: baseline; gap: 4px; min-height: 24px; max-width: 100%; border: 0;
  padding: 0; background: transparent; color: #21364a; text-align: left; cursor: pointer;
  font: inherit; font-size: var(--type-body); font-weight: 670; line-height: 1.45;
}
.ds-scene-title :is(span,svg) { min-width: 0; }
.ds-scene-title > svg { flex: none; width: 12px; height: 12px; align-self: center; color: #617185; }
.ds-scene-title[aria-expanded="true"] > svg { transform: rotate(90deg); }
.ds-table .ds-scene-title:is(:hover,:focus-visible) { color: #2252b6; }
.ds-scene-title:focus-visible { outline: 2px solid var(--blue-strong); outline-offset: 3px; border-radius: 3px; }
.ds-library .ds-table > tbody > tr[data-scene-extra][hidden] { display: none; }
.ds-library .ds-table > tbody > tr[data-scene-extra] > td { padding: 0; background: #f9fafc; }
.ds-table tr:has(.ds-scene-title[aria-expanded="true"]) { background: #f5f8fd; }
.ds-table tbody tr:has(.ds-scene-title[aria-current="location"]) {
  background: #edf3ff; outline: 2px solid var(--blue-strong); outline-offset: -2px;
}
.ds-scene > div:last-child > small, .ds-owner-cell > small, .ds-content > small {
  display: block; margin-top: 4px; color: #57697b; font-size: var(--small-label); font-variant-numeric: tabular-nums;
}
.ds-scene > div:last-child > small { padding-left: 16px; }
.ds-owner { gap: 6px; }
.ds-owner strong { color: #304255; font-size: var(--type-ui); font-weight: 590; }
.ds-owner :is(img,svg) { width: 17px; height: 17px; flex: none; }
.ds-owner-cell > small { padding-left: 23px; }
.ds-state { display: inline-flex; align-items: baseline; gap: 5px; color: #526275; font-size: var(--type-caption); font-weight: 590; }
.ds-state i { width: 6px; height: 6px; align-self: center; flex: none; border-radius: 100%; background: currentColor; }
.ds-green { color: #287054; }
.ds-active, .ds-blue { color: #315f92; }
.ds-amber { color: #89591b; }
.ds-failed { color: #a53136; }
.ds-content progress { display: block; width: 100%; max-width: 140px; height: 4px; margin: 5px 0 0; border: 0; border-radius: var(--radius-pill); overflow: hidden; background: var(--progress-track); color: var(--blue-strong); appearance: none; }
.ds-content progress::-webkit-progress-bar { background: var(--progress-track); }
.ds-content progress::-webkit-progress-value { background: var(--blue-strong); border-radius: var(--radius-pill); }
.ds-content progress::-moz-progress-bar { background: var(--blue-strong); }
.ds-content-cell > .btn, .ds-owner-cell > .btn { margin-top: 5px; }
.ds-table .btn { justify-self: end; min-height: 30px; padding: 4px 7px; font-size: var(--type-caption); line-height: 1.4; }
.ds-action, .ds-primary-action { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.ds-table .ds-action, .ds-empty .ds-action { color: #355f87; border-color: #d2dce7; background: white; }
.ds-table .ds-primary-action { color: #245980; background: #eaf2f8; border-color: #cfdfeb; }
.ds-table .ds-action:hover, .ds-table .ds-primary-action:hover { background: #e1edf7; }
.ds-table .btn svg { width: 13px; height: 13px; }
.ds-foot { display:flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; padding: 10px 18px; border-top: 1px solid #dee5ed; background: #fafbfc; color: #607183; font-size: var(--type-caption); }
.ds-foot b { color: #324d66; }
.ds-empty { display: grid; align-content: center; justify-items: center; gap: 6px; min-height: 150px; padding: 16px; text-align: center; color:#43566b; }
.ds-empty > svg { width: 22px; height: 22px; color:#6a8196; }
.ds-empty p { margin: 0; color: #617185; font-size: var(--type-caption); }
.ds-empty .btn { margin-top: 3px; }
@container (max-width: 940px) {
  .ds-cover { width: 68px; }
  .ds-scene { gap: 8px; }
  .ds-table :is(th,td) { padding-inline: 8px; }
  .ds-table .btn { white-space: normal; }
}
@container (max-width: 760px) {
  .desk-window .ds-library .df-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px 14px; gap: 8px 12px; }
  .ds-library .df-search { grid-column: 1/-1; }
  .ds-library .df-toolbar:has(> .btn) .df-search { grid-column: auto; }
  .ds-table, .ds-table tbody { display: block; }
  .ds-library .ds-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ds-table > tbody > tr[data-scene-row] {
    display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-areas: "scene scene owner" "video comments metrics";
    align-items: start; gap: 10px 14px; padding: 14px;
  }
  .ds-table > tbody > tr + tr { border-top: 1px solid #e2e8ef; }
  .ds-table > tbody > tr[data-scene-extra] { display: block; }
  .ds-table > tbody > tr > td { display: block; min-width: 0; padding: 0; border: 0; }
  .ds-table > tbody > tr > td:first-child, .ds-table > tbody > tr > td:last-child { padding-inline: 0; }
  .ds-scene-cell { grid-area: scene; }
  .ds-owner-cell { grid-area: owner; }
  .ds-video-cell { grid-area: video; }
  .ds-comments-cell { grid-area: comments; }
  .ds-metrics-cell { grid-area: metrics; }
  .ds-table-single .ds-content-cell { grid-column: 1 / -1; }
  .ds-content-cell::before { content: attr(data-label); display: block; margin-bottom: 3px; color: #626e7e; font-size: var(--small-label); }
}
@container (max-width: 520px) {
  .ds-table > tbody > tr[data-scene-row] { grid-template-areas: "scene scene scene" "owner owner owner" "video comments metrics"; gap: 10px 8px; }
  .ds-cover { width: 64px; }
  .ds-owner-cell > small { margin-top: 2px; }
  .ds-content > small { margin-top: 2px; }
}

.history-cover-empty > svg { width: 18px; height: 18px; }
