/**
 * DAM browse P3 � active filters, library settings, Ventura sort row.
 */

.dam-active-filters {
  position: sticky;
  top: 0;
  z-index: 6;
  padding: 8px 16px;
  background: var(--studio-surface, #fff);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(27, 24, 20, 0.04);
}

.dam-active-filters-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.dam-active-filters-label {
  font-size: 0.76rem;
  font-weight: 600;
  flex-shrink: 0;
}

.dam-active-filter-chip {
  font-size: 0.74rem;
  max-width: min(100%, 280px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dam-active-filters-clear {
  font-size: 0.76rem;
  margin-left: auto;
  flex-shrink: 0;
}

.dam-sort-label--ventura .dam-sort-select {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.dam-sort-label--ventura {
  position: relative;
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--studio-surface, #fff);
}

.dam-sort-label--ventura:hover {
  border-color: var(--accent, var(--green));
}

.dam-library-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  padding: 4px 0;
}

.dam-library-meta-row code {
  font-size: 0.72rem;
  word-break: break-all;
}

.dam-library-access-hint {
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 8px 0 0;
}

@media (max-width: 900px) {
  .dam-active-filters {
    padding: 8px 12px;
  }

  .dam-active-filters-clear {
    margin-left: 0;
    width: 100%;
    text-align: left;
  }
}
