.desktop-library {
  --dlb-ink:#293b36;
  --dlb-muted:#626f69;
  --dlb-line:#e1e8e2;
  --dlb-accent:#3d6955;
  color:var(--dlb-ink);
  padding-top:36px;
  max-width:1440px;
  margin:auto
}

.dlb-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:26px
}
.dlb-header h1 {
  margin:0;
  font-size:28px;
  line-height:1.4;
  letter-spacing:-.025em
}
.dlb-header p {
  margin:8px 0 0;
  color:var(--dlb-muted);
  font-size:14px;
  line-height:1.7
}

.dlb-actions {
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  align-items:center
}
.dlb-actions .button {
  white-space:nowrap;
  min-height:36px
}
.dlb-toolbar {
  display:flex;
  gap:18px;
  justify-content:space-between;
  align-items:center;
  padding:0 0 17px;
  border-bottom:1px solid var(--dlb-line);
  flex-wrap:wrap
}

.dlb-tabs {
  flex-wrap:wrap
}
.dlb-tab {
  border-radius:9px;
  font:inherit;
  }
.dlb-tab:hover {
  background:#edf2ed;
  color:var(--dlb-ink)
}
.dlb-tab.selected {
  background:#e6eee6;
  color:#2d5943;
  }

.dlb-tools {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap
}
.dlb-search input {
  width:245px;
  min-height:37px;
  border:1px solid var(--dlb-line);
  border-radius:9px;
  padding:8px 12px;
  font-size:12px;
  background:#fff;
  color:var(--dlb-ink)
}
.dlb-search input::placeholder {
  color:#6e7972
}
.dlb-tools select {
  max-width:132px;
  min-height:37px;
  border:1px solid var(--dlb-line);
  border-radius:9px;
  font-size:12px;
  padding:6px 9px;
  background:#fff;
  color:var(--dlb-ink)
}

.dlb-layout {
  display:flex;
  gap:2px;
  border:1px solid var(--dlb-line);
  padding:3px;
  border-radius:9px;
  background:#fff
}
.dlb-layout-button,.dlb-close {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:var(--dlb-muted);
  cursor:pointer
}
.dlb-layout-button.selected {
  background:#e7eee7;
  color:#345b46
}
.dlb-layout-button:hover,.dlb-close:hover {
  background:#edf2ed;
  color:var(--dlb-ink)
}

.dlb-content {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:24px;
  align-items:start
}
.desktop-library.has-detail .dlb-content {
  grid-template-columns:minmax(0,1fr) minmax(300px,370px)
}
.dlb-results {
  min-width:0
}

.dlb-integrations {
  display:grid;
  gap:28px;
  min-width:0;
  padding-bottom:28px;
  container-type:inline-size;
}

.dlb-integration-view {
  padding-top:28px;
}

@media (max-width:980px) {
  .dlb-integration-view .dlb-cat-nav {
    position:static;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

}

@media (min-width:901px) {
  body.reference-mode .ref-application:has(.dlb-integration-view) {
    grid-template-columns:64px 0 minmax(0,1fr);
  }

  .ref-application:has(.dlb-integration-view) > .ref-sidebar,
  .ref-application:has(.dlb-integration-view) .ref-header-leading {
    display:none;
  }

  .ref-application:has(.dlb-integration-view) .ref-header-actions {
    margin-inline-start:auto;
  }
}

.dlb-integration-library-title,
.dlb-integration-header h2 {
  margin:0;
  font-size:25px;
  line-height:1.25;
  letter-spacing:-.025em;
}


.dlb-integration-header {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.dlb-integration-group > h3 {
  margin:0 0 10px;
  font-size:15px;
  line-height:1.5;
}

.dlb-integration-note {
  margin:0 0 12px;
  color:var(--dlb-muted);
  font-size:13px;
  line-height:1.65;
}

.dlb-integration-note a {
  color:var(--dlb-accent);
  text-decoration:underline;
  text-underline-offset:3px;
}

.dlb-integration-source {
  margin:12px 0 0;
}

.dlb-integration-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.dlb-local-agents .dlb-integration-grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.dlb-integration-card {
  min-width:0;
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  align-items:start;
  gap:6px 14px;
  padding:15px 16px;
  border:1px solid var(--dlb-line);
  border-radius:14px;
  background:var(--surface-raised,#fff);
}

.dlb-integration-card:has(.button):hover {
  border-color:var(--field-line,#d5dee2);
}

.dlb-integration-mark {
  grid-row:1 / span 2;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border:1px solid var(--dlb-line);
  border-radius:12px;
  color:var(--dlb-accent);
  background:#fff;
}

.dlb-integration-mark img {
  display:block;
  width:27px;
  height:27px;
  object-fit:contain;
}

.dlb-integration-mark img[src$="/codex.png"] {
  width:34px;
  height:34px;
}

.dlb-integration-copy h4 {
  margin:0;
  font-size:15px;
  line-height:1.4;
  overflow-wrap:anywhere;
}

.dlb-integration-copy p {
  margin:4px 0 0;
  color:var(--dlb-muted);
  font-size:13px;
  line-height:1.5;
  overflow-wrap:anywhere;
}

.dlb-integration-actions {
  grid-column:2;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:4px 10px;
}


.dlb-integration-status {
  display:inline-flex;
  align-items:center;
  min-height:23px;
  padding:2px 8px;
  border-radius:999px;
  background:var(--surface-muted,#f1f3f4);
  color:var(--dlb-muted);
  font-size:12px;
  font-weight:600;
}

.dlb-integration-status.is-available {
  color:var(--dlb-accent);
  background:var(--dlb-line);
}


.dlb-integration-requirements {
  grid-column:2;
  min-width:0;
  color:var(--dlb-muted);
  font-size:12px;
  line-height:1.55;
}

.dlb-integration-requirements summary {
  width:fit-content;
  padding:3px 0;
  color:var(--dlb-accent);
  cursor:pointer;
}

.dlb-integration-requirements p {
  margin:4px 0 0;
  overflow-wrap:anywhere;
}

.dlb-integrations .button.secondary {
  min-height:30px;
  padding:4px 8px;
  border-color:transparent;
  box-shadow:none;
  background:transparent;
  font-size:12px;
}

.dlb-integrations .button.secondary:hover {
  background:var(--surface-muted,#f1f3f4);
}

@container (max-width:820px) {
  .dlb-local-agents .dlb-integration-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}

@container (max-width:570px) {
  .dlb-integration-grid,.dlb-local-agents .dlb-integration-grid {grid-template-columns:minmax(0,1fr)}
}

.dlb-projects.grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px
}
.desktop-library.has-detail .dlb-projects.grid {
  grid-template-columns:repeat(2,minmax(0,1fr))
}
.dlb-card {
  display:flex;
  flex-direction:column;
  padding:0;
  overflow:hidden;
  min-width:0;
  border:1px solid var(--dlb-line);
  border-radius:14px;
  background:#fff;
  text-align:left;
  color:var(--dlb-ink);
  font:inherit;
  transition:border-color .18s,transform .18s cubic-bezier(.16,1,.3,1);
  width:100%
}
.dlb-card:hover {
  transform:translateY(-2px);
  border-color:#a4baa8
}
.dlb-card.selected {
  border-color:var(--dlb-accent);
  outline:1px solid var(--dlb-accent);
  outline-offset:0
}
.dlb-card-open {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  flex:1 1 auto;
  width:100%;
  min-width:0;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  text-align:start;
  font:inherit;
  cursor:pointer;
}
.dlb-card-open:focus-visible { outline-offset:-3px; }
.dlb-card-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding:8px 12px;
  border-top:1px solid var(--dlb-line);
}
.dlb-card-actions .dlb-video-download,
.dlb-detail-download .dlb-video-download { min-height:34px; white-space:nowrap; }

.dlb-preview {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  aspect-ratio:1.45;
  background:#f0f3ee;
  overflow:hidden
}
.dlb-preview>img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  padding:12px
}
.dlb-preview-empty {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  color:var(--muted-strong, #52685d);
  font-size:12px;
  min-height:140px
}
.dlb-preview-label {
  position:absolute;
  left:12px;
  top:12px;
  background:#fffffff0;
  color:#405346;
  border-radius:5px;
  padding:4px 7px;
  font-size:12px;
  line-height:1.3
}

.dlb-card-body {
  display:block;
  padding:15px 16px
}
.dlb-card-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px
}
.dlb-card-title strong {
  font-size:14px;
  font-weight:650;
  line-height:1.55;
  white-space:nowrap;
  text-overflow:ellipsis;
  overflow:hidden
}
.dlb-card-title svg {
  flex:none;
  color:#718276
}
.dlb-card-subtitle {
  display:block;
  font-size:12px;
  color:var(--dlb-muted);
  line-height:1.6;
  margin:5px 0 13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.dlb-card-meta,.dlb-card-foot {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-size:12px;
  color:var(--dlb-muted)
}
.dlb-card-meta {
  font-size:12px
}
.dlb-status {
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:12px;
  line-height:1.4;
  color:#5e6c63;
  white-space:nowrap
}
.dlb-status:before {
  content:"";
  width:5px;
  height:5px;
  border-radius:50%;
  background:#8a978e;
  display:block
}
.dlb-status.ready {
  color:#376349
}
.dlb-status.ready:before {
  background:#568765
}
.dlb-status.warning {
  color:#83571e
}
.dlb-status.warning:before {
  background:#a87b3d
}
.dlb-status.working {
  color:#42658a
}
.dlb-status.working:before {
  background:#6183a9
}

.dlb-projects.list {
  display:flex;
  flex-direction:column;
  gap:10px
}
.dlb-projects.list .dlb-card {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  min-height:96px
}
.dlb-projects.list .dlb-card-open {
  flex-direction:row;
  align-items:center;
  align-self:stretch;
  min-height:96px
}
.dlb-projects.list .dlb-card-actions { padding-inline:0 12px; border-top:0; }
.dlb-projects.list .dlb-preview {
  width:120px;
  aspect-ratio:1.2;
  flex:none;
  align-self:stretch
}
.dlb-projects.list .dlb-preview-empty {
  min-height:96px;
  font-size:12px;
  gap:7px
}
.dlb-projects.list .dlb-preview-empty svg {
  width:22px;
  height:22px
}
.dlb-projects.list .dlb-preview-label {
  font-size:12px;
  top:6px;
  left:6px;
  padding:2px 4px
}
.dlb-projects.list .dlb-card-body {
  flex:1;
  min-width:0;
  padding:13px 17px
}
.dlb-projects.list .dlb-card-subtitle {
  margin-bottom:8px
}
.dlb-projects.list .dlb-card-meta {
  font-size:12px
}

.dlb-detail {
  min-width:0;
  margin-top:20px;
  position:sticky;
  top:20px;
  border:1px solid var(--dlb-line);
  border-radius:14px;
  background:#fff;
  padding:19px;
  animation:dlb-detail-in .24s cubic-bezier(.16,1,.3,1)
}
.dlb-detail-heading {
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:17px
}
.dlb-detail-heading>div {
  min-width:0
}
.dlb-detail h2 {
  font-size:18px;
  line-height:1.5;
  margin:7px 0 0;
  overflow-wrap:anywhere
}
.dlb-close {
  flex:none;
  margin:-5px -5px 0 0
}
.dlb-detail .dlb-preview {
  border-radius:9px;
  aspect-ratio:1.45
}
.dlb-detail .dlb-preview>img {
  padding:8px
}
.dlb-project-facts {
  margin:19px 0;
  font-size:12px;
  line-height:1.7
}
.dlb-project-facts>div {
  display:grid;
  grid-template-columns:45px minmax(0,1fr);
  gap:12px;
  margin-bottom:7px
}
.dlb-project-facts dt {
  color:var(--dlb-muted)
}
.dlb-project-facts dd {
  margin:0;
  overflow-wrap:anywhere
}
.dlb-brief {
  margin:19px 0
}
.dlb-detail h3 {
  font-size:13px;
  line-height:1.6;
  margin:0 0 8px;
  font-weight:650
}
.dlb-brief p {
  margin:0;
  color:var(--dlb-muted);
  font-size:12px;
  line-height:1.85;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  max-height:220px;
  overflow:auto
}
.dlb-detail .dlb-actions {
  gap:8px
}
.dlb-detail .button {
  font-size:12px;
  padding:8px 10px;
  min-height:34px
}
.dlb-output-section {
  border-top:1px solid var(--dlb-line);
  margin-top:22px;
  padding-top:18px
}
.dlb-output-section>h3 {
  display:flex;
  align-items:center;
  gap:8px
}
.dlb-output-section>h3 span {
  font-size:12px;
  color:var(--dlb-muted);
  font-weight:400
}
.dlb-output-section>.text-link {
  font-size:12px;
  display:inline-flex;
  gap:7px;
  align-items:center;
  line-height:1.6;
  margin-top:13px
}
.dlb-output {
  padding:0;
  margin:14px 0 20px
}
.dlb-output>a {
  display:block
}
.dlb-output img,.dlb-output video {
  width:100%;
  max-height:360px;
  object-fit:contain;
  background:#f0f3ee;
  border-radius:8px;
  display:block
}
.dlb-output-caption {
  display:flex;
  gap:10px;
  justify-content:space-between;
  align-items:center;
  margin-top:10px
}
.dlb-output-caption>div {
  min-width:0
}
.dlb-output-caption strong {
  display:block;
  font-size:12px;
  font-weight:600;
  line-height:1.7;
  overflow-wrap:anywhere
}
.dlb-output-caption p {
  margin:2px 0 0;
  color:var(--dlb-muted);
  font-size:12px;
  line-height:1.6
}
.dlb-output-caption .button {
  font-size:12px;
  padding:6px 8px;
  flex:none
}
.dlb-output-empty,.dlb-output-error,.dlb-loading {
  font-size:12px;
  line-height:1.8;
  color:var(--dlb-muted);
  margin:10px 0
}
.dlb-loading {
  padding:10px 0;
  margin-bottom:0
}
.dlb-error {
  font-size:12px;
  line-height:1.7;
  color:#873f31;
  background:#fff5f1;
  border-radius:8px;
  padding:10px 12px;
  overflow-wrap:anywhere
}
.dlb-error .text-link {
  margin-left:10px;
  color:inherit
}

.dlb-empty {
  padding:74px 18px;
  text-align:center;
  color:var(--dlb-muted);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px
}
.dlb-empty>svg {
  color:#819785
}
.dlb-empty h2 {
  font-size:18px;
  color:var(--dlb-ink);
  margin:4px 0 0;
  font-weight:600
}
.dlb-empty p {
  font-size:13px;
  max-width:420px;
  line-height:1.85;
  margin:0 0 5px
}
.dlb-empty .dlb-actions {
  justify-content:center
}
.desktop-library :focus-visible {
  outline:2px solid #5d8667;
  outline-offset:3px
}
.desktop-library ::selection {
  background:#dce9dc;
  color:#203a29
}
.desktop-library input {
  caret-color:#3b684a
}

@keyframes dlb-detail-in {
  from {
    transform:translateX(9px);
    opacity:.5
  }
  to {
    transform:translateX(0);
    opacity:1
  }
  
}

@media(min-width:1600px) {
  .dlb-projects.grid {
    grid-template-columns:repeat(4,minmax(0,1fr))
  }
  .desktop-library.has-detail .dlb-projects.grid {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  
}

@media(max-width:1120px) {
  .dlb-projects.grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .desktop-library.has-detail .dlb-projects.grid {
    grid-template-columns:minmax(0,1fr)
  }
  .desktop-library.has-detail .dlb-content {
    grid-template-columns:minmax(0,1fr) minmax(285px,340px)
  }
  .dlb-toolbar {
    align-items:flex-start
  }
  .dlb-tools {
    flex:1
  }
  .dlb-search {
    flex:1
  }
  .dlb-search input {
    width:100%;
    min-width:160px
  }
  .dlb-header {
    align-items:flex-start
  }
  .dlb-header>.dlb-actions {
    justify-content:flex-end
  }
  
}

@media(max-width:760px) {
  .desktop-library {
    padding-top:22px
  }
  .dlb-header {
    flex-direction:column;
    gap:15px;
    margin-bottom:20px
  }
  .dlb-header h1 {
    font-size:25px
  }
  .dlb-header p {
    font-size:13px
  }
  .dlb-header>.dlb-actions {
    justify-content:flex-start
  }
  .dlb-tabs {
    width:100%;
    gap:1px
  }
  .dlb-tab {
    padding:9px 10px;
    font-size:12px
  }
  .dlb-toolbar {
    gap:13px
  }
  .dlb-tools {
    width:100%;
    gap:7px
  }
  .dlb-tools select {
    max-width:111px
  }
  .dlb-search {
    min-width:0
  }
  .dlb-search input {
    min-width:0
  }
  .dlb-layout-button {
    padding:6px
  }
  .desktop-library.has-detail .dlb-content {
    grid-template-columns:minmax(0,1fr)
  }
  .desktop-library.has-detail .dlb-projects.grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .dlb-detail {
    position:relative;
    top:0;
    grid-row:1;
    margin-top:18px
  }
  .dlb-projects.grid {
    gap:12px
  }
  .dlb-card-body {
    padding:12px
  }
  .dlb-card-title strong {
    font-size:13px
  }
  .dlb-card-subtitle {
    font-size:12px
  }
  .dlb-card-meta {
    flex-wrap:wrap;
    gap:5px;
    font-size:12px
  }
  .dlb-preview-label {
    font-size:12px;
    left:7px;
    top:7px
  }
  .dlb-empty {
    padding:54px 12px
  }
  .dlb-projects.list .dlb-preview {
    width:100px
  }
  
}

@media(max-width:620px) {
  .dlb-projects.list .dlb-card { grid-template-columns:minmax(0,1fr); }
  .dlb-projects.list .dlb-card-actions { padding:8px 12px; border-top:1px solid var(--dlb-line); }
}
html[data-yb-theme='dark'] .dlb-card-actions { border-color:var(--yb-line); }

@media(max-width:380px) {
  .dlb-projects.grid,.desktop-library.has-detail .dlb-projects.grid {
    grid-template-columns:minmax(0,1fr)
  }
  .dlb-tools {
    flex-wrap:wrap
  }
  .dlb-search {
    flex-basis:100%
  }
  
}

@media(prefers-reduced-motion:reduce) {
  .dlb-detail {
    animation:none
  }
  .dlb-card,.dlb-tab {
    transition:none
  }
  .dlb-card:hover {
    transform:none
  }
  
}

.zyh-connect-scope {
  display: grid;
  gap: 6px 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px 10px;
  border: 1px solid var(--wb-line);
  border-radius: 9px;
  background: var(--wb-subtle);
}
.zyh-connect-scope dt { color: var(--wb-muted); font-size: .8rem; }
.zyh-connect-scope dd { margin: 0; color: var(--wb-ink); font-size: .85rem; overflow-wrap: anywhere; }
.zyh-connect-scope time { display: block; }
.zyh-connect-dialog .button.primary {
  background: var(--wb-accent);
  border-color: var(--wb-accent);
  color: var(--wb-accent-text);
}

.zyh-store-distribution {
  margin: 0 0 10px;
  color: var(--wb-muted);
  font-size: .8rem;
}
body #app .zyh-app-store .zyh-store-copy .dlb-integration-status:not(.is-available) {
  background: var(--wb-subtle);
  color: var(--wb-muted);
}
body #app .zyh-store-search-input::placeholder { color: var(--wb-muted); opacity: 1; }
body #app .zyh-store-copy > [data-store-details] {
  align-self: flex-start;
  justify-self: start;
  min-height: 24px;
  padding: 0 2px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--wb-ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
body #app .zyh-store-copy > [data-store-details]:hover { color: var(--wb-ink); }
body #app .zyh-store-copy > [data-store-details]:active { opacity: .78; }
body #app .zyh-store-copy > [data-store-details]:focus-visible {
  outline: 2px solid var(--wb-accent);
  outline-offset: 1px;
}
body #app .zyh-store-cta:has(.zyh-store-shortcut) { flex-wrap: wrap; justify-content: flex-end; }
body #app .zyh-store-shortcut { min-height: 30px; white-space: nowrap; }
body #app .zyh-store-shortcut:focus-visible { outline: 2px solid var(--wb-accent); outline-offset: 2px; }
@media (max-width: 640px) {
  body #app .zyh-store-row:has(.zyh-store-shortcut) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }
  body #app .zyh-store-row:has(.zyh-store-shortcut) .zyh-store-cta {
    grid-column: 2;
    justify-content: flex-start;
  }
}
